Debian Codegraph @

arch/arm/boot/dts/renesas/r7s72100-rskrza1.dts

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