1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Device Tree Source for the RZ/A1H RSK board 4 * 5 * Copyright (C) 2016 Renesas Electronics 6 */ 7 8/dts-v1/; 9#include "r7s72100.dtsi" 10#include <dt-bindings/gpio/gpio.h> 11#include <dt-bindings/input/input.h> 12#include <dt-bindings/pinctrl/r7s72100-pinctrl.h> 13 14/ { 15 model = "RSKRZA1"; 16 compatible = "renesas,rskrza1", "renesas,r7s72100"; 17 18 aliases { 19 serial0 = &scif2; 20 }; 21 22 chosen { 23 bootargs = "ignore_loglevel"; 24 stdout-path = "serial0:115200n8"; 25 }; 26 27 memory@8000000 { 28 device_type = "memory"; 29 reg = <0x08000000 0x02000000>; 30 }; 31 32 flash@18000000 { 33 compatible = "mtd-rom"; 34 reg = <0x18000000 0x08000000>; 35 clocks = <&mstp9_clks R7S72100_CLK_SPIBSC0>; 36 power-domains = <&cpg_clocks>; 37 bank-width = <4>; 38 device-width = <1>; 39 #address-cells = <1>; 40 #size-cells = <1>; 41 42 partitions { 43 compatible = "fixed-partitions"; 44 #address-cells = <1>; 45 #size-cells = <1>; 46 47 partition@0 { 48 label = "uboot"; 49 reg = <0x00000000 0x00080000>; 50 }; 51 52 partition@80000 { 53 label = "uboot-env"; 54 reg = <0x00080000 0x00040000>; 55 }; 56 57 partition@c0000 { 58 label = "dt"; 59 reg = <0x000c0000 0x00040000>; 60 }; 61 62 partition@100000 { 63 label = "kernel"; 64 reg = <0x00100000 0x00280000>; 65 }; 66 67 partition@400000 { 68 label = "rootfs"; 69 reg = <0x00400000 0x01c00000>; 70 }; 71 }; 72 }; 73 74 keyboard { 75 compatible = "gpio-keys"; 76 77 pinctrl-names = "default"; 78 pinctrl-0 = <&keyboard_pins>; 79 80 key-1 { 81 interrupts-extended = <&irqc 3 IRQ_TYPE_EDGE_BOTH>; 82 linux,code = <KEY_1>; 83 label = "SW1"; 84 wakeup-source; 85 }; 86 87 key-2 { 88 interrupts-extended = <&irqc 2 IRQ_TYPE_EDGE_BOTH>; 89 linux,code = <KEY_2>; 90 label = "SW2"; 91 wakeup-source; 92 }; 93 94 key-3 { 95 interrupts-extended = <&irqc 5 IRQ_TYPE_EDGE_BOTH>; 96 linux,code = <KEY_3>; 97 label = "SW3"; 98 wakeup-source; 99 }; 100 }; 101 102 leds { 103 compatible = "gpio-leds"; 104 105 led0 { 106 gpios = <&port7 1 GPIO_ACTIVE_LOW>; 107 }; 108 109 led1 { 110 gpios = <&io_expander1 0 GPIO_ACTIVE_LOW>; 111 }; 112 113 led2 { 114 gpios = <&io_expander1 1 GPIO_ACTIVE_LOW>; 115 }; 116 117 led3 { 118 gpios = <&io_expander1 2 GPIO_ACTIVE_LOW>; 119 }; 120 }; 121}; 122 123&extal_clk { 124 clock-frequency = <13330000>; 125}; 126 127&i2c3 { 128 pinctrl-names = "default"; 129 pinctrl-0 = <&i2c3_pins>; 130 status = "okay"; 131 132 clock-frequency = <400000>; 133 134 io_expander1: gpio@20 { 135 compatible = "onnn,cat9554"; 136 reg = <0x20>; 137 gpio-controller; 138 #gpio-cells = <2>; 139 }; 140 141 io_expander2: gpio@21 { 142 compatible = "onnn,cat9554"; 143 reg = <0x21>; 144 gpio-controller; 145 #gpio-cells = <2>; 146 }; 147 148 eeprom@50 { 149 compatible = "renesas,r1ex24016", "atmel,24c16"; 150 reg = <0x50>; 151 pagesize = <16>; 152 }; 153}; 154 155&bsc { 156 flash@0 { 157 compatible = "cfi-flash"; 158 reg = <0x00000000 0x4000000>; 159 bank-width = <2>; 160 161 partitions { 162 compatible = "fixed-partitions"; 163 #address-cells = <1>; 164 #size-cells = <1>; 165 166 partition@0 { 167 label = "apps"; 168 reg = <0x00000000 0x01000000>; 169 }; 170 171 partition@1000000 { 172 label = "data"; 173 reg = <0x01000000 0x03000000>; 174 }; 175 }; 176 }; 177}; 178 179&usb_x1_clk { 180 clock-frequency = <48000000>; 181}; 182 183&rtc_x1_clk { 184 clock-frequency = <32768>; 185}; 186 187&pinctrl { 188 /* RIIC ch3 (Port Expander, EEPROM (MAC Addr), Audio Codec) */ 189 i2c3_pins: i2c3 { 190 pinmux = <RZA1_PINMUX(1, 6, 1)>, /* RIIC3SCL */ 191 <RZA1_PINMUX(1, 7, 1)>; /* RIIC3SDA */ 192 }; 193 194 keyboard_pins: keyboard { 195 pinmux = <RZA1_PINMUX(1, 9, 3)>, /* IRQ3 */ 196 <RZA1_PINMUX(1, 8, 3)>, /* IRQ2 */ 197 <RZA1_PINMUX(1, 11, 3)>; /* IRQ5 */ 198 }; 199 200 /* Serial Console */ 201 scif2_pins: serial2 { 202 pinmux = <RZA1_PINMUX(3, 0, 6)>, /* TxD2 */ 203 <RZA1_PINMUX(3, 2, 4)>; /* RxD2 */ 204 }; 205 206 /* Ethernet */ 207 ether_pins: ether { 208 /* Ethernet on Ports 1,2,3,5 */ 209 pinmux = <RZA1_PINMUX(1, 14, 4)>, /* ET_COL */ 210 <RZA1_PINMUX(5, 9, 2)>, /* ET_MDC */ 211 <RZA1_PINMUX(3, 3, 2)>, /* ET_MDIO */ 212 <RZA1_PINMUX(3, 4, 2)>, /* ET_RXCLK */ 213 <RZA1_PINMUX(3, 5, 2)>, /* ET_RXER */ 214 <RZA1_PINMUX(3, 6, 2)>, /* ET_RXDV */ 215 <RZA1_PINMUX(2, 0, 2)>, /* ET_TXCLK */ 216 <RZA1_PINMUX(2, 1, 2)>, /* ET_TXER */ 217 <RZA1_PINMUX(2, 2, 2)>, /* ET_TXEN */ 218 <RZA1_PINMUX(2, 3, 2)>, /* ET_CRS */ 219 <RZA1_PINMUX(2, 4, 2)>, /* ET_TXD0 */ 220 <RZA1_PINMUX(2, 5, 2)>, /* ET_TXD1 */ 221 <RZA1_PINMUX(2, 6, 2)>, /* ET_TXD2 */ 222 <RZA1_PINMUX(2, 7, 2)>, /* ET_TXD3 */ 223 <RZA1_PINMUX(2, 8, 2)>, /* ET_RXD0 */ 224 <RZA1_PINMUX(2, 9, 2)>, /* ET_RXD1 */ 225 <RZA1_PINMUX(2, 10, 2)>, /* ET_RXD2 */ 226 <RZA1_PINMUX(2, 11, 2)>; /* ET_RXD3 */ 227 }; 228 229 /* SDHI ch1 on CN1 */ 230 sdhi1_pins: sdhi1 { 231 pinmux = <RZA1_PINMUX(3, 8, 7)>, /* SD_CD_1 */ 232 <RZA1_PINMUX(3, 9, 7)>, /* SD_WP_1 */ 233 <RZA1_PINMUX(3, 10, 7)>, /* SD_D1_1 */ 234 <RZA1_PINMUX(3, 11, 7)>, /* SD_D0_1 */ 235 <RZA1_PINMUX(3, 12, 7)>, /* SD_CLK_1 */ 236 <RZA1_PINMUX(3, 13, 7)>, /* SD_CMD_1 */ 237 <RZA1_PINMUX(3, 14, 7)>, /* SD_D3_1 */ 238 <RZA1_PINMUX(3, 15, 7)>; /* SD_D2_1 */ 239 }; 240}; 241 242&mtu2 { 243 status = "okay"; 244}; 245 246ðer { 247 pinctrl-names = "default"; 248 pinctrl-0 = <ðer_pins>; 249 status = "okay"; 250 renesas,no-ether-link; 251 phy-handle = <&phy0>; 252 phy0: ethernet-phy@0 { 253 compatible = "ethernet-phy-idb824.2814", 254 "ethernet-phy-ieee802.3-c22"; 255 reg = <0>; 256 }; 257}; 258 259&sdhi1 { 260 pinctrl-names = "default"; 261 pinctrl-0 = <&sdhi1_pins>; 262 bus-width = <4>; 263 status = "okay"; 264}; 265 266&ostm0 { 267 status = "okay"; 268}; 269 270&ostm1 { 271 status = "okay"; 272}; 273 274&rtc { 275 status = "okay"; 276}; 277 278&scif2 { 279 pinctrl-names = "default"; 280 pinctrl-0 = <&scif2_pins>; 281 status = "okay"; 282}; 283 284&wdt { 285 timeout-sec = <60>; 286 status = "okay"; 287}; 288