1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 * Device Tree Source for the RZ/{G2L,V2L} SMARC SOM common parts
5 * Copyright (C) 2021 Renesas Electronics Corp.
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/pinctrl/rzg2l-pinctrl.h>
11 /* SW1[2] should be at position 2/OFF to enable 64 GB eMMC */
15 * To enable uSD card on CN3,
16 * SW1[2] should be at position 3/ON.
17 * Disable eMMC by setting "#define EMMC 0" above.
28 bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
32 device_type = "memory";
33 /* first 128MB is reserved for secure area. */
34 reg = <0x0 0x48000000 0x0 0x78000000>;
37 reg_1p8v: regulator-1p8v {
38 compatible = "regulator-fixed";
39 regulator-name = "fixed-1.8V";
40 regulator-min-microvolt = <1800000>;
41 regulator-max-microvolt = <1800000>;
46 reg_3p3v: regulator-3p3v {
47 compatible = "regulator-fixed";
48 regulator-name = "fixed-3.3V";
49 regulator-min-microvolt = <3300000>;
50 regulator-max-microvolt = <3300000>;
55 reg_1p1v: regulator-vdd-core {
56 compatible = "regulator-fixed";
57 regulator-name = "fixed-1.1V";
58 regulator-min-microvolt = <1100000>;
59 regulator-max-microvolt = <1100000>;
64 vccq_sdhi0: regulator-vccq-sdhi0 {
65 compatible = "regulator-gpio";
67 regulator-name = "SDHI0 VccQ";
68 regulator-min-microvolt = <1800000>;
69 regulator-max-microvolt = <3300000>;
70 states = <3300000 1>, <1800000 0>;
72 gpios = <&pinctrl RZG2L_GPIO(39, 0) GPIO_ACTIVE_HIGH>;
78 pinctrl-0 = <&adc_pins>;
79 pinctrl-names = "default";
82 /delete-node/ channel@6;
83 /delete-node/ channel@7;
87 pinctrl-0 = <ð0_pins>;
88 pinctrl-names = "default";
90 phy-mode = "rgmii-id";
93 phy0: ethernet-phy@7 {
94 compatible = "ethernet-phy-id0022.1640",
95 "ethernet-phy-ieee802.3-c22";
97 rxc-skew-psec = <2400>;
98 txc-skew-psec = <2400>;
100 txdv-skew-psec = <0>;
101 rxd0-skew-psec = <0>;
102 rxd1-skew-psec = <0>;
103 rxd2-skew-psec = <0>;
104 rxd3-skew-psec = <0>;
105 txd0-skew-psec = <0>;
106 txd1-skew-psec = <0>;
107 txd2-skew-psec = <0>;
108 txd3-skew-psec = <0>;
113 pinctrl-0 = <ð1_pins>;
114 pinctrl-names = "default";
115 phy-handle = <&phy1>;
116 phy-mode = "rgmii-id";
119 phy1: ethernet-phy@7 {
120 compatible = "ethernet-phy-id0022.1640",
121 "ethernet-phy-ieee802.3-c22";
123 rxc-skew-psec = <2400>;
124 txc-skew-psec = <2400>;
125 rxdv-skew-psec = <0>;
126 txdv-skew-psec = <0>;
127 rxd0-skew-psec = <0>;
128 rxd1-skew-psec = <0>;
129 rxd2-skew-psec = <0>;
130 rxd3-skew-psec = <0>;
131 txd0-skew-psec = <0>;
132 txd1-skew-psec = <0>;
133 txd2-skew-psec = <0>;
134 txd3-skew-psec = <0>;
139 clock-frequency = <24000000>;
143 mali-supply = <®_1p1v>;
156 pinmux = <RZG2L_PORT_PINMUX(9, 0, 2)>; /* ADC_TRG */
160 pinmux = <RZG2L_PORT_PINMUX(28, 1, 1)>, /* ET0_LINKSTA */
161 <RZG2L_PORT_PINMUX(27, 1, 1)>, /* ET0_MDC */
162 <RZG2L_PORT_PINMUX(28, 0, 1)>, /* ET0_MDIO */
163 <RZG2L_PORT_PINMUX(20, 0, 1)>, /* ET0_TXC */
164 <RZG2L_PORT_PINMUX(20, 1, 1)>, /* ET0_TX_CTL */
165 <RZG2L_PORT_PINMUX(20, 2, 1)>, /* ET0_TXD0 */
166 <RZG2L_PORT_PINMUX(21, 0, 1)>, /* ET0_TXD1 */
167 <RZG2L_PORT_PINMUX(21, 1, 1)>, /* ET0_TXD2 */
168 <RZG2L_PORT_PINMUX(22, 0, 1)>, /* ET0_TXD3 */
169 <RZG2L_PORT_PINMUX(24, 0, 1)>, /* ET0_RXC */
170 <RZG2L_PORT_PINMUX(24, 1, 1)>, /* ET0_RX_CTL */
171 <RZG2L_PORT_PINMUX(25, 0, 1)>, /* ET0_RXD0 */
172 <RZG2L_PORT_PINMUX(25, 1, 1)>, /* ET0_RXD1 */
173 <RZG2L_PORT_PINMUX(26, 0, 1)>, /* ET0_RXD2 */
174 <RZG2L_PORT_PINMUX(26, 1, 1)>; /* ET0_RXD3 */
178 pinmux = <RZG2L_PORT_PINMUX(37, 2, 1)>, /* ET1_LINKSTA */
179 <RZG2L_PORT_PINMUX(37, 0, 1)>, /* ET1_MDC */
180 <RZG2L_PORT_PINMUX(37, 1, 1)>, /* ET1_MDIO */
181 <RZG2L_PORT_PINMUX(29, 0, 1)>, /* ET1_TXC */
182 <RZG2L_PORT_PINMUX(29, 1, 1)>, /* ET1_TX_CTL */
183 <RZG2L_PORT_PINMUX(30, 0, 1)>, /* ET1_TXD0 */
184 <RZG2L_PORT_PINMUX(30, 1, 1)>, /* ET1_TXD1 */
185 <RZG2L_PORT_PINMUX(31, 0, 1)>, /* ET1_TXD2 */
186 <RZG2L_PORT_PINMUX(31, 1, 1)>, /* ET1_TXD3 */
187 <RZG2L_PORT_PINMUX(33, 1, 1)>, /* ET1_RXC */
188 <RZG2L_PORT_PINMUX(34, 0, 1)>, /* ET1_RX_CTL */
189 <RZG2L_PORT_PINMUX(34, 1, 1)>, /* ET1_RXD0 */
190 <RZG2L_PORT_PINMUX(35, 0, 1)>, /* ET1_RXD1 */
191 <RZG2L_PORT_PINMUX(35, 1, 1)>, /* ET1_RXD2 */
192 <RZG2L_PORT_PINMUX(36, 0, 1)>; /* ET1_RXD3 */
195 gpio-sd0-pwr-en-hog {
197 gpios = <RZG2L_GPIO(4, 1) GPIO_ACTIVE_HIGH>;
199 line-name = "gpio_sd0_pwr_en";
204 pins = "QSPI0_IO0", "QSPI0_IO1", "QSPI0_IO2", "QSPI0_IO3";
205 power-source = <1800>;
209 pins = "QSPI0_SPCLK", "QSPI0_SSL", "QSPI_RESET#";
210 power-source = <1800>;
215 * SD0 device selection is XOR between GPIO_SD0_DEV_SEL and SW1[2]
216 * The below switch logic can be used to select the device between
217 * eMMC and microSD, after setting GPIO_SD0_DEV_SEL to high in DT.
218 * SW1[2] should be at position 2/OFF to enable 64 GB eMMC
219 * SW1[2] should be at position 3/ON to enable uSD card CN3
223 gpios = <RZG2L_GPIO(41, 1) GPIO_ACTIVE_HIGH>;
225 line-name = "sd0_dev_sel";
228 sdhi0_emmc_pins: sd0emmc {
230 pins = "SD0_DATA0", "SD0_DATA1", "SD0_DATA2", "SD0_DATA3",
231 "SD0_DATA4", "SD0_DATA5", "SD0_DATA6", "SD0_DATA7";
232 power-source = <1800>;
236 pins = "SD0_CLK", "SD0_CMD";
237 power-source = <1800>;
242 power-source = <1800>;
248 pins = "SD0_DATA0", "SD0_DATA1", "SD0_DATA2", "SD0_DATA3";
249 power-source = <3300>;
253 pins = "SD0_CLK", "SD0_CMD";
254 power-source = <3300>;
258 pinmux = <RZG2L_PORT_PINMUX(47, 0, 2)>; /* SD0_CD */
262 sdhi0_pins_uhs: sd0_uhs {
264 pins = "SD0_DATA0", "SD0_DATA1", "SD0_DATA2", "SD0_DATA3";
265 power-source = <1800>;
269 pins = "SD0_CLK", "SD0_CMD";
270 power-source = <1800>;
274 pinmux = <RZG2L_PORT_PINMUX(47, 0, 2)>; /* SD0_CD */
280 pinctrl-0 = <&qspi0_pins>;
281 pinctrl-names = "default";
285 compatible = "micron,mt25qu512a", "jedec,spi-nor";
288 spi-max-frequency = <50000000>;
289 spi-rx-bus-width = <4>;
292 compatible = "fixed-partitions";
293 #address-cells = <1>;
297 reg = <0x00000000 0x2000000>;
301 reg = <0x2000000 0x2000000>;
309 pinctrl-0 = <&sdhi0_pins>;
310 pinctrl-1 = <&sdhi0_pins_uhs>;
311 pinctrl-names = "default", "state_uhs";
313 vmmc-supply = <®_3p3v>;
314 vqmmc-supply = <&vccq_sdhi0>;
324 pinctrl-0 = <&sdhi0_emmc_pins>;
325 pinctrl-1 = <&sdhi0_emmc_pins>;
326 pinctrl-names = "default", "state_uhs";
328 vmmc-supply = <®_3p3v>;
329 vqmmc-supply = <®_1p8v>;
333 fixed-emmc-driver-type = <1>;