Debian Codegraph @

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

raw
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * Device Tree Source for the Genmai board
4 *
5 * Copyright (C) 2013-14 Renesas Solutions Corp.
6 * Copyright (C) 2014 Wolfram Sang, Sang Engineering <[email protected]>
7 */
8
9 /dts-v1/;
10 #include "r7s72100.dtsi"
11 #include <dt-bindings/gpio/gpio.h>
12 #include <dt-bindings/input/input.h>
13 #include <dt-bindings/pinctrl/r7s72100-pinctrl.h>
14
15 / {
16 model = "Genmai";
17 compatible = "renesas,genmai", "renesas,r7s72100";
18
19 aliases {
20 serial0 = &scif2;
21 };
22
23 chosen {
24 bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
25 stdout-path = "serial0:115200n8";
26 };
27
28 flash@18000000 {
29 compatible = "mtd-rom";
30 reg = <0x18000000 0x08000000>;
31 bank-width = <4>;
32 device-width = <1>;
33
34 clocks = <&mstp9_clks R7S72100_CLK_SPIBSC0>;
35 power-domains = <&cpg_clocks>;
36
37 partitions {
38 compatible = "fixed-partitions";
39 #address-cells = <1>;
40 #size-cells = <1>;
41
42 partition@0 {
43 label = "user";
44 reg = <0x00000000 0x04000000>;
45 };
46
47 partition@4000000 {
48 label = "user1";
49 reg = <0x04000000 0x04000000>;
50 };
51 };
52 };
53
54 keyboard {
55 compatible = "gpio-keys";
56
57 pinctrl-names = "default";
58 pinctrl-0 = <&keyboard_pins>;
59
60 key-1 {
61 /* JP3 must be set to 1-2 (default) */
62 interrupts-extended = <&irqc 6 IRQ_TYPE_EDGE_BOTH>;
63 linux,code = <KEY_1>;
64 label = "SW6,SW7";
65 wakeup-source;
66 };
67 };
68
69 leds {
70 /* Needs SDHI0 to be disabled */
71 status = "disabled";
72 compatible = "gpio-leds";
73
74 led1 {
75 gpios = <&port4 10 GPIO_ACTIVE_LOW>;
76 };
77
78 led2 {
79 gpios = <&port4 11 GPIO_ACTIVE_LOW>;
80 };
81 };
82
83 memory@8000000 {
84 device_type = "memory";
85 reg = <0x08000000 0x08000000>;
86 };
87
88 cvcc2: regulator-mmc {
89 compatible = "regulator-fixed";
90 regulator-name = "Cvcc2";
91 regulator-min-microvolt = <3300000>;
92 regulator-max-microvolt = <3300000>;
93 regulator-boot-on;
94 regulator-always-on;
95 };
96 };
97
98 &bsc {
99 flash@0 {
100 compatible = "cfi-flash";
101 reg = <0x00000000 0x04000000>;
102 bank-width = <2>;
103
104 partitions {
105 compatible = "fixed-partitions";
106 #address-cells = <1>;
107 #size-cells = <1>;
108
109 partition@0 {
110 label = "uboot";
111 reg = <0x00000000 0x00040000>;
112 };
113
114 partition@40000 {
115 label = "uboot-env";
116 reg = <0x00040000 0x00020000>;
117 };
118
119 partition@60000 {
120 label = "flash";
121 reg = <0x00060000 0x03fa0000>;
122 };
123 };
124 };
125
126 flash@4000000 {
127 compatible = "cfi-flash";
128 reg = <0x04000000 0x04000000>;
129 bank-width = <2>;
130
131 partitions {
132 compatible = "fixed-partitions";
133 #address-cells = <1>;
134 #size-cells = <1>;
135
136 partition@0 {
137 label = "uboot1";
138 reg = <0x00000000 0x00040000>;
139 };
140
141 partition@40000 {
142 label = "uboot-env1";
143 reg = <0x00040000 0x00020000>;
144 };
145
146 partition@60000 {
147 label = "flash1";
148 reg = <0x00060000 0x03fa0000>;
149 };
150 };
151 };
152 };
153
154 &ether {
155 pinctrl-names = "default";
156 pinctrl-0 = <&ether_pins>;
157
158 status = "okay";
159
160 renesas,no-ether-link;
161 phy-handle = <&phy0>;
162 phy0: ethernet-phy@0 {
163 compatible = "ethernet-phy-idb824.2814",
164 "ethernet-phy-ieee802.3-c22";
165 reg = <0>;
166 };
167 };
168
169 &extal_clk {
170 clock-frequency = <13330000>;
171 };
172
173 &i2c2 {
174 status = "okay";
175 clock-frequency = <400000>;
176
177 pinctrl-names = "default";
178 pinctrl-0 = <&i2c2_pins>;
179
180 eeprom@50 {
181 compatible = "renesas,r1ex24128", "atmel,24c128";
182 reg = <0x50>;
183 pagesize = <64>;
184 };
185 };
186
187 &mmcif {
188 pinctrl-0 = <&mmcif_pins>;
189 pinctrl-names = "default";
190 cd-gpios = <&port3 8 GPIO_ACTIVE_LOW>;
191
192 vmmc-supply = <&cvcc2>;
193 vqmmc-supply = <&cvcc2>;
194 bus-width = <8>;
195 status = "okay";
196 };
197
198 &mtu2 {
199 status = "okay";
200 };
201
202 &ostm0 {
203 bootph-all;
204 status = "okay";
205 };
206
207 &ostm1 {
208 status = "okay";
209 };
210
211 &pinctrl {
212 ether_pins: ether {
213 /* Ethernet on Ports 1,2,3,5 */
214 pinmux = <RZA1_PINMUX(1, 14, 4)>,/* P1_14 = ET_COL */
215 <RZA1_PINMUX(5, 9, 2)>, /* P5_9 = ET_MDC */
216 <RZA1_PINMUX(3, 3, 2)>, /* P3_3 = ET_MDIO */
217 <RZA1_PINMUX(3, 4, 2)>, /* P3_4 = ET_RXCLK */
218 <RZA1_PINMUX(3, 5, 2)>, /* P3_5 = ET_RXER */
219 <RZA1_PINMUX(3, 6, 2)>, /* P3_6 = ET_RXDV */
220 <RZA1_PINMUX(2, 0, 2)>, /* P2_0 = ET_TXCLK */
221 <RZA1_PINMUX(2, 1, 2)>, /* P2_1 = ET_TXER */
222 <RZA1_PINMUX(2, 2, 2)>, /* P2_2 = ET_TXEN */
223 <RZA1_PINMUX(2, 3, 2)>, /* P2_3 = ET_CRS */
224 <RZA1_PINMUX(2, 4, 2)>, /* P2_4 = ET_TXD0 */
225 <RZA1_PINMUX(2, 5, 2)>, /* P2_5 = ET_TXD1 */
226 <RZA1_PINMUX(2, 6, 2)>, /* P2_6 = ET_TXD2 */
227 <RZA1_PINMUX(2, 7, 2)>, /* P2_7 = ET_TXD3 */
228 <RZA1_PINMUX(2, 8, 2)>, /* P2_8 = ET_RXD0 */
229 <RZA1_PINMUX(2, 9, 2)>, /* P2_9 = ET_RXD1 */
230 <RZA1_PINMUX(2, 10, 2)>,/* P2_10 = ET_RXD2 */
231 <RZA1_PINMUX(2, 11, 2)>;/* P2_11 = ET_RXD3 */
232 };
233
234 i2c2_pins: i2c2 {
235 /* RIIC2: P1_4 as SCL, P1_5 as SDA */
236 pinmux = <RZA1_PINMUX(1, 4, 1)>, <RZA1_PINMUX(1, 5, 1)>;
237 };
238
239 keyboard_pins: keyboard {
240 /* P3_1 as IRQ6 */
241 pinmux = <RZA1_PINMUX(3, 1, 3)>;
242 };
243
244 mmcif_pins: mmcif {
245 /* MMCIF: P3_8 is CD_GPIO, P3_10 up to P3_15, P4_0 up to P4_3 */
246 pinmux = <RZA1_PINMUX(3, 10, 8)>, /* MMC_D1 */
247 <RZA1_PINMUX(3, 11, 8)>, /* MMC_D0 */
248 <RZA1_PINMUX(3, 12, 8)>, /* MMC_CLK */
249 <RZA1_PINMUX(3, 13, 8)>, /* MMC_CMD */
250 <RZA1_PINMUX(3, 14, 8)>, /* MMC_D3 */
251 <RZA1_PINMUX(3, 15, 8)>, /* MMC_D2 */
252 <RZA1_PINMUX(4, 0, 8)>, /* MMC_D4 */
253 <RZA1_PINMUX(4, 1, 8)>, /* MMC_D5 */
254 <RZA1_PINMUX(4, 2, 8)>, /* MMC_D6 */
255 <RZA1_PINMUX(4, 3, 8)>; /* MMC_D7 */
256 };
257
258 scif2_pins: serial2 {
259 bootph-all;
260 /* P3_0 as TxD2; P3_2 as RxD2 */
261 pinmux = <RZA1_PINMUX(3, 0, 6)>, <RZA1_PINMUX(3, 2, 4)>;
262 };
263
264 sdhi0_pins: sdhi0 {
265 /* SDHI0: P4_8 up to P4_15 */
266 pinmux = <RZA1_PINMUX(4, 8, 3)>, /* SD_CD_0 */
267 <RZA1_PINMUX(4, 9, 3)>, /* SD_WP_0 */
268 <RZA1_PINMUX(4, 10, 3)>, /* SD_D1_0 */
269 <RZA1_PINMUX(4, 11, 3)>, /* SD_D0_0 */
270 <RZA1_PINMUX(4, 12, 3)>, /* SD_CLK_0 */
271 <RZA1_PINMUX(4, 13, 3)>, /* SD_CMD_0 */
272 <RZA1_PINMUX(4, 14, 3)>, /* SD_D3_0 */
273 <RZA1_PINMUX(4, 15, 3)>; /* SD_D2_0 */
274 };
275 };
276
277 &rtc_x1_clk {
278 clock-frequency = <32768>;
279 };
280
281 &rtc {
282 status = "okay";
283 };
284
285 &scif2 {
286 pinctrl-names = "default";
287 pinctrl-0 = <&scif2_pins>;
288 bootph-all;
289 status = "okay";
290 };
291
292 &sdhi0 {
293 pinctrl-names = "default";
294 pinctrl-0 = <&sdhi0_pins>;
295
296 bus-width = <4>;
297 status = "okay";
298 };
299
300 &spi4 {
301 status = "okay";
302
303 codec: codec@0 {
304 compatible = "wlf,wm8978";
305 reg = <0>;
306 spi-max-frequency = <500000>;
307 #sound-dai-cells = <0>;
308 };
309 };
310
311 &usb_x1_clk {
312 clock-frequency = <48000000>;
313 };
314
315 &wdt {
316 timeout-sec = <60>;
317 status = "okay";
318 };