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 13 14 / { 15 model = "RSKRZA1"; 16 compatible = "renesas,rskrza1", "renes 17 18 aliases { 19 serial0 = &scif2; 20 }; 21 22 chosen { 23 bootargs = "ignore_loglevel"; 24 stdout-path = "serial0:115200n 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 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-pa 44 #address-cells = <1>; 45 #size-cells = <1>; 46 47 partition@0 { 48 label = "uboot 49 reg = <0x00000 50 }; 51 52 partition@80000 { 53 label = "uboot 54 reg = <0x00080 55 }; 56 57 partition@c0000 { 58 label = "dt"; 59 reg = <0x000c0 60 }; 61 62 partition@100000 { 63 label = "kerne 64 reg = <0x00100 65 }; 66 67 partition@400000 { 68 label = "rootf 69 reg = <0x00400 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 interrupt-parent = <&i 82 interrupts = <3 IRQ_TY 83 linux,code = <KEY_1>; 84 label = "SW1"; 85 wakeup-source; 86 }; 87 88 key-2 { 89 interrupt-parent = <&i 90 interrupts = <2 IRQ_TY 91 linux,code = <KEY_2>; 92 label = "SW2"; 93 wakeup-source; 94 }; 95 96 key-3 { 97 interrupt-parent = <&i 98 interrupts = <5 IRQ_TY 99 linux,code = <KEY_3>; 100 label = "SW3"; 101 wakeup-source; 102 }; 103 }; 104 105 leds { 106 compatible = "gpio-leds"; 107 108 led0 { 109 gpios = <&port7 1 GPIO 110 }; 111 112 led1 { 113 gpios = <&io_expander1 114 }; 115 116 led2 { 117 gpios = <&io_expander1 118 }; 119 120 led3 { 121 gpios = <&io_expander1 122 }; 123 }; 124 }; 125 126 &extal_clk { 127 clock-frequency = <13330000>; 128 }; 129 130 &i2c3 { 131 pinctrl-names = "default"; 132 pinctrl-0 = <&i2c3_pins>; 133 status = "okay"; 134 135 clock-frequency = <400000>; 136 137 io_expander1: gpio@20 { 138 compatible = "onnn,cat9554"; 139 reg = <0x20>; 140 gpio-controller; 141 #gpio-cells = <2>; 142 }; 143 144 io_expander2: gpio@21 { 145 compatible = "onnn,cat9554"; 146 reg = <0x21>; 147 gpio-controller; 148 #gpio-cells = <2>; 149 }; 150 151 eeprom@50 { 152 compatible = "renesas,r1ex2401 153 reg = <0x50>; 154 pagesize = <16>; 155 }; 156 }; 157 158 &bsc { 159 flash@0 { 160 compatible = "cfi-flash"; 161 reg = <0x00000000 0x4000000>; 162 bank-width = <2>; 163 164 partitions { 165 compatible = "fixed-pa 166 #address-cells = <1>; 167 #size-cells = <1>; 168 169 partition@0 { 170 label = "apps" 171 reg = <0x00000 172 }; 173 174 partition@1000000 { 175 label = "data" 176 reg = <0x01000 177 }; 178 }; 179 }; 180 }; 181 182 &usb_x1_clk { 183 clock-frequency = <48000000>; 184 }; 185 186 &rtc_x1_clk { 187 clock-frequency = <32768>; 188 }; 189 190 &pinctrl { 191 /* RIIC ch3 (Port Expander, EEPROM (MA 192 i2c3_pins: i2c3 { 193 pinmux = <RZA1_PINMUX(1, 6, 1) 194 <RZA1_PINMUX(1, 7, 1) 195 }; 196 197 keyboard_pins: keyboard { 198 pinmux = <RZA1_PINMUX(1, 9, 3) 199 <RZA1_PINMUX(1, 8, 3) 200 <RZA1_PINMUX(1, 11, 3 201 }; 202 203 /* Serial Console */ 204 scif2_pins: serial2 { 205 pinmux = <RZA1_PINMUX(3, 0, 6) 206 <RZA1_PINMUX(3, 2, 4) 207 }; 208 209 /* Ethernet */ 210 ether_pins: ether { 211 /* Ethernet on Ports 1,2,3,5 * 212 pinmux = <RZA1_PINMUX(1, 14, 4 213 <RZA1_PINMUX(5, 9, 2) 214 <RZA1_PINMUX(3, 3, 2) 215 <RZA1_PINMUX(3, 4, 2) 216 <RZA1_PINMUX(3, 5, 2) 217 <RZA1_PINMUX(3, 6, 2) 218 <RZA1_PINMUX(2, 0, 2) 219 <RZA1_PINMUX(2, 1, 2) 220 <RZA1_PINMUX(2, 2, 2) 221 <RZA1_PINMUX(2, 3, 2) 222 <RZA1_PINMUX(2, 4, 2) 223 <RZA1_PINMUX(2, 5, 2) 224 <RZA1_PINMUX(2, 6, 2) 225 <RZA1_PINMUX(2, 7, 2) 226 <RZA1_PINMUX(2, 8, 2) 227 <RZA1_PINMUX(2, 9, 2) 228 <RZA1_PINMUX(2, 10, 2 229 <RZA1_PINMUX(2, 11, 2 230 }; 231 232 /* SDHI ch1 on CN1 */ 233 sdhi1_pins: sdhi1 { 234 pinmux = <RZA1_PINMUX(3, 8, 7) 235 <RZA1_PINMUX(3, 9, 7) 236 <RZA1_PINMUX(3, 10, 7 237 <RZA1_PINMUX(3, 11, 7 238 <RZA1_PINMUX(3, 12, 7 239 <RZA1_PINMUX(3, 13, 7 240 <RZA1_PINMUX(3, 14, 7 241 <RZA1_PINMUX(3, 15, 7 242 }; 243 }; 244 245 &mtu2 { 246 status = "okay"; 247 }; 248 249 ðer { 250 pinctrl-names = "default"; 251 pinctrl-0 = <ðer_pins>; 252 status = "okay"; 253 renesas,no-ether-link; 254 phy-handle = <&phy0>; 255 phy0: ethernet-phy@0 { 256 compatible = "ethernet-phy-idb 257 "ethernet-phy-iee 258 reg = <0>; 259 }; 260 }; 261 262 &sdhi1 { 263 pinctrl-names = "default"; 264 pinctrl-0 = <&sdhi1_pins>; 265 bus-width = <4>; 266 status = "okay"; 267 }; 268 269 &ostm0 { 270 status = "okay"; 271 }; 272 273 &ostm1 { 274 status = "okay"; 275 }; 276 277 &rtc { 278 status = "okay"; 279 }; 280 281 &scif2 { 282 pinctrl-names = "default"; 283 pinctrl-0 = <&scif2_pins>; 284 status = "okay"; 285 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.