1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 * Device Tree Source for the RZ/G2LC 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>
17 bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
21 device_type = "memory";
22 /* first 128MB is reserved for secure area. */
23 reg = <0x0 0x48000000 0x0 0x38000000>;
26 reg_1p8v: regulator-1p8v {
27 compatible = "regulator-fixed";
28 regulator-name = "fixed-1.8V";
29 regulator-min-microvolt = <1800000>;
30 regulator-max-microvolt = <1800000>;
35 reg_3p3v: regulator-3p3v {
36 compatible = "regulator-fixed";
37 regulator-name = "fixed-3.3V";
38 regulator-min-microvolt = <3300000>;
39 regulator-max-microvolt = <3300000>;
44 reg_1p1v: regulator-vdd-core {
45 compatible = "regulator-fixed";
46 regulator-name = "fixed-1.1V";
47 regulator-min-microvolt = <1100000>;
48 regulator-max-microvolt = <1100000>;
53 vccq_sdhi0: regulator-vccq-sdhi0 {
54 compatible = "regulator-gpio";
56 regulator-name = "SDHI0 VccQ";
57 regulator-min-microvolt = <1800000>;
58 regulator-max-microvolt = <3300000>;
59 states = <3300000 1>, <1800000 0>;
61 gpios = <&pinctrl RZG2L_GPIO(39, 0) GPIO_ACTIVE_HIGH>;
67 pinctrl-0 = <ð0_pins>;
68 pinctrl-names = "default";
70 phy-mode = "rgmii-id";
73 phy0: ethernet-phy@7 {
74 compatible = "ethernet-phy-id0022.1640",
75 "ethernet-phy-ieee802.3-c22";
77 rxc-skew-psec = <2400>;
78 txc-skew-psec = <2400>;
93 clock-frequency = <24000000>;
97 mali-supply = <®_1p1v>;
110 pinmux = <RZG2L_PORT_PINMUX(28, 1, 1)>, /* ET0_LINKSTA */
111 <RZG2L_PORT_PINMUX(27, 1, 1)>, /* ET0_MDC */
112 <RZG2L_PORT_PINMUX(28, 0, 1)>, /* ET0_MDIO */
113 <RZG2L_PORT_PINMUX(20, 0, 1)>, /* ET0_TXC */
114 <RZG2L_PORT_PINMUX(20, 1, 1)>, /* ET0_TX_CTL */
115 <RZG2L_PORT_PINMUX(20, 2, 1)>, /* ET0_TXD0 */
116 <RZG2L_PORT_PINMUX(21, 0, 1)>, /* ET0_TXD1 */
117 <RZG2L_PORT_PINMUX(21, 1, 1)>, /* ET0_TXD2 */
118 <RZG2L_PORT_PINMUX(22, 0, 1)>, /* ET0_TXD3 */
119 <RZG2L_PORT_PINMUX(24, 0, 1)>, /* ET0_RXC */
120 <RZG2L_PORT_PINMUX(24, 1, 1)>, /* ET0_RX_CTL */
121 <RZG2L_PORT_PINMUX(25, 0, 1)>, /* ET0_RXD0 */
122 <RZG2L_PORT_PINMUX(25, 1, 1)>, /* ET0_RXD1 */
123 <RZG2L_PORT_PINMUX(26, 0, 1)>, /* ET0_RXD2 */
124 <RZG2L_PORT_PINMUX(26, 1, 1)>; /* ET0_RXD3 */
127 gpio-sd0-pwr-en-hog {
129 gpios = <RZG2L_GPIO(18, 1) GPIO_ACTIVE_HIGH>;
131 line-name = "gpio_sd0_pwr_en";
136 pins = "QSPI0_IO0", "QSPI0_IO1", "QSPI0_IO2", "QSPI0_IO3";
137 power-source = <1800>;
141 pins = "QSPI0_SPCLK", "QSPI0_SSL", "QSPI_RESET#";
142 power-source = <1800>;
147 * SD0 device selection is XOR between GPIO_SD0_DEV_SEL and SW1[2]
148 * The below switch logic can be used to select the device between
149 * eMMC and microSD, after setting GPIO_SD0_DEV_SEL to high in DT.
150 * SW1[2] should be at OFF position to enable 64 GB eMMC
151 * SW1[2] should be at position ON to enable uSD card CN3
153 gpio-sd0-dev-sel-hog {
155 gpios = <RZG2L_GPIO(40, 2) GPIO_ACTIVE_HIGH>;
157 line-name = "gpio_sd0_dev_sel";
160 sdhi0_emmc_pins: sd0emmc {
162 pins = "SD0_DATA0", "SD0_DATA1", "SD0_DATA2", "SD0_DATA3",
163 "SD0_DATA4", "SD0_DATA5", "SD0_DATA6", "SD0_DATA7";
164 power-source = <1800>;
168 pins = "SD0_CLK", "SD0_CMD";
169 power-source = <1800>;
174 power-source = <1800>;
180 pins = "SD0_DATA0", "SD0_DATA1", "SD0_DATA2", "SD0_DATA3";
181 power-source = <3300>;
185 pins = "SD0_CLK", "SD0_CMD";
186 power-source = <3300>;
190 pinmux = <RZG2L_PORT_PINMUX(18, 0, 1)>; /* SD0_CD */
194 sdhi0_pins_uhs: sd0_uhs {
196 pins = "SD0_DATA0", "SD0_DATA1", "SD0_DATA2", "SD0_DATA3";
197 power-source = <1800>;
201 pins = "SD0_CLK", "SD0_CMD";
202 power-source = <1800>;
206 pinmux = <RZG2L_PORT_PINMUX(18, 0, 1)>; /* SD0_CD */
212 pinctrl-0 = <&qspi0_pins>;
213 pinctrl-names = "default";
217 compatible = "micron,mt25qu512a", "jedec,spi-nor";
220 spi-max-frequency = <50000000>;
221 spi-rx-bus-width = <4>;
224 compatible = "fixed-partitions";
225 #address-cells = <1>;
229 reg = <0x00000000 0x2000000>;
233 reg = <0x2000000 0x2000000>;
239 #if (!SW_SD0_DEV_SEL)
241 pinctrl-0 = <&sdhi0_pins>;
242 pinctrl-1 = <&sdhi0_pins_uhs>;
243 pinctrl-names = "default", "state_uhs";
245 vmmc-supply = <®_3p3v>;
246 vqmmc-supply = <&vccq_sdhi0>;
256 pinctrl-0 = <&sdhi0_emmc_pins>;
257 pinctrl-1 = <&sdhi0_emmc_pins>;
258 pinctrl-names = "default", "state_uhs";
260 vmmc-supply = <®_3p3v>;
261 vqmmc-supply = <®_1p8v>;
265 fixed-emmc-driver-type = <1>;