1 // SPDX-License-Identifier: GPL-2.0
3 * Device Tree Source for the RZA2MEVB board
5 * Copyright (C) 2018 Renesas Electronics
7 * As upstream Linux does not support XIP, it cannot run in 8 MiB of HyperRAM.
8 * Hence the 64 MiB of SDRAM on the sub-board needs to be enabled, which has
9 * the following ramifications:
10 * - SCIF4 connected to the on-board USB-serial can no longer be used as the
12 * - Instead, SCIF2 is used as the serial console, by connecting a 3.3V TTL
13 * USB-to-Serial adapter to the CMOS camera connector:
16 * - GND = CN17-2 or CN17-17,
17 * - The first Ethernet channel can no longer be used,
18 * - USB Channel 1 loses the overcurrent input signal.
20 * Please make sure your sub-board matches the following switch settings:
22 * SW6 SW6-1 set to SDRAM
23 * ON SW6-2 set to Audio
24 * +---------------------+ SW6-3 set to DRP
25 * | = = = = = | SW6-4 set to CEU
26 * | = = | SW6-5 set to Ether2
27 * | 1 2 3 4 5 6 7 8 9 0 | SW6-6 set to VDC6
28 * +---------------------+ SW6-7 set to VDC6
32 #include "r7s9210.dtsi"
33 #include <dt-bindings/gpio/gpio.h>
34 #include <dt-bindings/input/input.h>
35 #include <dt-bindings/pinctrl/r7s9210-pinctrl.h>
39 compatible = "renesas,rza2mevb", "renesas,r7s9210";
47 bootargs = "ignore_loglevel";
48 stdout-path = "serial0:115200n8";
52 compatible = "gpio-keys";
54 pinctrl-names = "default";
55 pinctrl-0 = <&keyboard_pins>;
58 interrupt-parent = <&irqc>;
59 interrupts = <0 IRQ_TYPE_EDGE_BOTH>;
72 compatible = "gpio-leds";
75 gpios = <&pinctrl RZA2_PIN(PORT6, 0) GPIO_ACTIVE_HIGH>;
78 gpios = <&pinctrl RZA2_PIN(PORTC, 1) GPIO_ACTIVE_HIGH>;
83 device_type = "memory";
84 reg = <0x0c000000 0x04000000>; /* SDRAM */
97 pinctrl-names = "default";
98 pinctrl-0 = <ð1_pins>;
100 renesas,no-ether-link;
101 phy-handle = <&phy1>;
102 phy1: ethernet-phy@1 {
103 compatible = "ethernet-phy-id001c.c816",
104 "ethernet-phy-ieee802.3-c22";
111 clock-frequency = <24000000>; /* 24MHz */
116 clock-frequency = <400000>;
118 pinctrl-names = "default";
119 pinctrl-0 = <&i2c3_pins>;
122 compatible = "renesas,r1ex24128", "atmel,24c128";
128 /* High resolution System tick timers */
139 pinmux = <RZA2_PINMUX(PORTE, 0, 7)>, /* REF50CK0 */
140 <RZA2_PINMUX(PORT6, 1, 7)>, /* RMMI0_TXDEN */
141 <RZA2_PINMUX(PORT6, 2, 7)>, /* RMII0_TXD0 */
142 <RZA2_PINMUX(PORT6, 3, 7)>, /* RMII0_TXD1 */
143 <RZA2_PINMUX(PORTE, 4, 7)>, /* RMII0_CRSDV */
144 <RZA2_PINMUX(PORTE, 1, 7)>, /* RMII0_RXD0 */
145 <RZA2_PINMUX(PORTE, 2, 7)>, /* RMII0_RXD1 */
146 <RZA2_PINMUX(PORTE, 3, 7)>, /* RMII0_RXER */
147 <RZA2_PINMUX(PORTE, 5, 1)>, /* ET0_MDC */
148 <RZA2_PINMUX(PORTE, 6, 1)>, /* ET0_MDIO */
149 <RZA2_PINMUX(PORTL, 0, 5)>; /* IRQ4 */
153 pinmux = <RZA2_PINMUX(PORTK, 3, 7)>, /* REF50CK1 */
154 <RZA2_PINMUX(PORTK, 0, 7)>, /* RMMI1_TXDEN */
155 <RZA2_PINMUX(PORTK, 1, 7)>, /* RMII1_TXD0 */
156 <RZA2_PINMUX(PORTK, 2, 7)>, /* RMII1_TXD1 */
157 <RZA2_PINMUX(PORT3, 2, 7)>, /* RMII1_CRSDV */
158 <RZA2_PINMUX(PORTK, 4, 7)>, /* RMII1_RXD0 */
159 <RZA2_PINMUX(PORT3, 5, 7)>, /* RMII1_RXD1 */
160 <RZA2_PINMUX(PORT3, 1, 7)>, /* RMII1_RXER */
161 <RZA2_PINMUX(PORT3, 3, 1)>, /* ET1_MDC */
162 <RZA2_PINMUX(PORT3, 4, 1)>, /* ET1_MDIO */
163 <RZA2_PINMUX(PORTL, 1, 5)>; /* IRQ5 */
167 pinmux = <RZA2_PINMUX(PORTD, 6, 1)>, /* RIIC3SCL */
168 <RZA2_PINMUX(PORTD, 7, 1)>; /* RIIC3SDA */
171 keyboard_pins: keyboard {
172 pinmux = <RZA2_PINMUX(PORTJ, 1, 6)>; /* IRQ0 */
176 scif2_pins: serial2 {
177 pinmux = <RZA2_PINMUX(PORTE, 2, 3)>, /* TxD2 */
178 <RZA2_PINMUX(PORTE, 1, 3)>; /* RxD2 */
182 pinmux = <RZA2_PINMUX(PORT5, 0, 3)>, /* SD0_CD */
183 <RZA2_PINMUX(PORT5, 1, 3)>; /* SD0_WP */
187 pinmux = <RZA2_PINMUX(PORT5, 4, 3)>, /* SD1_CD */
188 <RZA2_PINMUX(PORT5, 5, 3)>; /* SD1_WP */
192 pinmux = <RZA2_PINMUX(PORT5, 2, 3)>, /* VBUSIN0 */
193 <RZA2_PINMUX(PORTC, 6, 1)>, /* VBUSEN0 */
194 <RZA2_PINMUX(PORTC, 7, 1)>; /* OVRCUR0 */
198 pinmux = <RZA2_PINMUX(PORTC, 0, 1)>, /* VBUSIN1 */
199 <RZA2_PINMUX(PORTC, 5, 1)>; /* VBUSEN1 */
205 clock-frequency = <32768>;
210 pinctrl-names = "default";
211 pinctrl-0 = <&scif2_pins>;
217 pinctrl-names = "default";
218 pinctrl-0 = <&sdhi0_pins>;
224 pinctrl-names = "default";
225 pinctrl-0 = <&sdhi1_pins>;
232 pinctrl-names = "default";
233 pinctrl-0 = <&usb0_pins>;
234 dr_mode = "host"; /* Requires JP3 to be fitted */
240 pinctrl-names = "default";
241 pinctrl-0 = <&usb1_pins>;
248 clock-frequency = <48000000>;