xref: /freebsd-src/sys/contrib/device-tree/src/arm64/renesas/rzg3s-smarc-som.dtsi (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
184943d6fSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
284943d6fSEmmanuel Vadot/*
384943d6fSEmmanuel Vadot * Device Tree Source for the R9A08G045S33 SMARC Carrier-II's SoM board.
484943d6fSEmmanuel Vadot *
584943d6fSEmmanuel Vadot * Copyright (C) 2023 Renesas Electronics Corp.
684943d6fSEmmanuel Vadot */
784943d6fSEmmanuel Vadot
884943d6fSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
984943d6fSEmmanuel Vadot#include <dt-bindings/pinctrl/rzg2l-pinctrl.h>
1084943d6fSEmmanuel Vadot
1184943d6fSEmmanuel Vadot/*
128d13bc63SEmmanuel Vadot * On-board switches' states:
138d13bc63SEmmanuel Vadot * @SW_OFF: switch's state is OFF
148d13bc63SEmmanuel Vadot * @SW_ON:  switch's state is ON
1584943d6fSEmmanuel Vadot */
168d13bc63SEmmanuel Vadot#define SW_OFF		0
178d13bc63SEmmanuel Vadot#define SW_ON		1
188d13bc63SEmmanuel Vadot
198d13bc63SEmmanuel Vadot/*
208d13bc63SEmmanuel Vadot * SW_CONFIG[x] switches' states:
218d13bc63SEmmanuel Vadot * @SW_CONFIG2:
228d13bc63SEmmanuel Vadot *	SW_OFF - SD0 is connected to eMMC
238d13bc63SEmmanuel Vadot *	SW_ON  - SD0 is connected to uSD0 card
248d13bc63SEmmanuel Vadot * @SW_CONFIG3:
258d13bc63SEmmanuel Vadot *	SW_OFF - SD2 is connected to SoC
268d13bc63SEmmanuel Vadot *	SW_ON  - SCIF1, SSI0, IRQ0, IRQ1 connected to SoC
278d13bc63SEmmanuel Vadot */
287d0873ebSEmmanuel Vadot#define SW_CONFIG2	SW_OFF
298d13bc63SEmmanuel Vadot#define SW_CONFIG3	SW_ON
3084943d6fSEmmanuel Vadot
3184943d6fSEmmanuel Vadot/ {
3284943d6fSEmmanuel Vadot	compatible = "renesas,rzg3s-smarcm", "renesas,r9a08g045s33", "renesas,r9a08g045";
3384943d6fSEmmanuel Vadot
3484943d6fSEmmanuel Vadot	aliases {
35*b2d2a78aSEmmanuel Vadot		i2c1 = &i2c1;
3684943d6fSEmmanuel Vadot		mmc0 = &sdhi0;
378d13bc63SEmmanuel Vadot#if SW_CONFIG3 == SW_OFF
388d13bc63SEmmanuel Vadot		mmc2 = &sdhi2;
398d13bc63SEmmanuel Vadot#else
407d0873ebSEmmanuel Vadot		ethernet0 = &eth0;
417d0873ebSEmmanuel Vadot		ethernet1 = &eth1;
428d13bc63SEmmanuel Vadot#endif
4384943d6fSEmmanuel Vadot	};
4484943d6fSEmmanuel Vadot
4584943d6fSEmmanuel Vadot	chosen {
4684943d6fSEmmanuel Vadot		bootargs = "ignore_loglevel";
4784943d6fSEmmanuel Vadot		stdout-path = "serial0:115200n8";
4884943d6fSEmmanuel Vadot	};
4984943d6fSEmmanuel Vadot
5084943d6fSEmmanuel Vadot	memory@48000000 {
5184943d6fSEmmanuel Vadot		device_type = "memory";
5284943d6fSEmmanuel Vadot		/* First 128MB is reserved for secure area. */
5384943d6fSEmmanuel Vadot		reg = <0x0 0x48000000 0x0 0x38000000>;
5484943d6fSEmmanuel Vadot	};
5584943d6fSEmmanuel Vadot
5684943d6fSEmmanuel Vadot	vcc_sdhi0: regulator0 {
5784943d6fSEmmanuel Vadot		compatible = "regulator-fixed";
5884943d6fSEmmanuel Vadot		regulator-name = "SDHI0 Vcc";
5984943d6fSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
6084943d6fSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
6184943d6fSEmmanuel Vadot		gpios = <&pinctrl RZG2L_GPIO(2, 1) GPIO_ACTIVE_HIGH>;
6284943d6fSEmmanuel Vadot		enable-active-high;
6384943d6fSEmmanuel Vadot	};
6484943d6fSEmmanuel Vadot
658d13bc63SEmmanuel Vadot#if SW_CONFIG2 == SW_ON
6684943d6fSEmmanuel Vadot	vccq_sdhi0: regulator1 {
6784943d6fSEmmanuel Vadot		compatible = "regulator-gpio";
6884943d6fSEmmanuel Vadot		regulator-name = "SDHI0 VccQ";
6984943d6fSEmmanuel Vadot		regulator-min-microvolt = <1800000>;
7084943d6fSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
7184943d6fSEmmanuel Vadot		gpios = <&pinctrl RZG2L_GPIO(2, 2) GPIO_ACTIVE_HIGH>;
7284943d6fSEmmanuel Vadot		gpios-states = <1>;
7384943d6fSEmmanuel Vadot		states = <3300000 1>, <1800000 0>;
7484943d6fSEmmanuel Vadot	};
7584943d6fSEmmanuel Vadot#else
7684943d6fSEmmanuel Vadot	reg_1p8v: regulator1 {
7784943d6fSEmmanuel Vadot		compatible = "regulator-fixed";
7884943d6fSEmmanuel Vadot		regulator-name = "fixed-1.8V";
7984943d6fSEmmanuel Vadot		regulator-min-microvolt = <1800000>;
8084943d6fSEmmanuel Vadot		regulator-max-microvolt = <1800000>;
8184943d6fSEmmanuel Vadot		regulator-boot-on;
8284943d6fSEmmanuel Vadot		regulator-always-on;
8384943d6fSEmmanuel Vadot	};
8484943d6fSEmmanuel Vadot#endif
858d13bc63SEmmanuel Vadot
868d13bc63SEmmanuel Vadot	vcc_sdhi2: regulator2 {
878d13bc63SEmmanuel Vadot		compatible = "regulator-fixed";
888d13bc63SEmmanuel Vadot		regulator-name = "SDHI2 Vcc";
898d13bc63SEmmanuel Vadot		regulator-min-microvolt = <3300000>;
908d13bc63SEmmanuel Vadot		regulator-max-microvolt = <3300000>;
918d13bc63SEmmanuel Vadot		gpios = <&pinctrl RZG2L_GPIO(8, 1) GPIO_ACTIVE_HIGH>;
928d13bc63SEmmanuel Vadot		enable-active-high;
9384943d6fSEmmanuel Vadot	};
948d13bc63SEmmanuel Vadot};
958d13bc63SEmmanuel Vadot
968d13bc63SEmmanuel Vadot#if SW_CONFIG3 == SW_ON
978d13bc63SEmmanuel Vadot&eth0 {
988d13bc63SEmmanuel Vadot	pinctrl-0 = <&eth0_pins>;
998d13bc63SEmmanuel Vadot	pinctrl-names = "default";
1008d13bc63SEmmanuel Vadot	phy-handle = <&phy0>;
1018d13bc63SEmmanuel Vadot	phy-mode = "rgmii-id";
1028d13bc63SEmmanuel Vadot	status = "okay";
1038d13bc63SEmmanuel Vadot
1048d13bc63SEmmanuel Vadot	phy0: ethernet-phy@7 {
1058d13bc63SEmmanuel Vadot		reg = <7>;
1068d13bc63SEmmanuel Vadot		interrupt-parent = <&pinctrl>;
1078d13bc63SEmmanuel Vadot		interrupts = <RZG2L_GPIO(12, 0) IRQ_TYPE_EDGE_FALLING>;
1088d13bc63SEmmanuel Vadot		rxc-skew-psec = <0>;
1098d13bc63SEmmanuel Vadot		txc-skew-psec = <0>;
1108d13bc63SEmmanuel Vadot		rxdv-skew-psec = <0>;
1118d13bc63SEmmanuel Vadot		txen-skew-psec = <0>;
1128d13bc63SEmmanuel Vadot		rxd0-skew-psec = <0>;
1138d13bc63SEmmanuel Vadot		rxd1-skew-psec = <0>;
1148d13bc63SEmmanuel Vadot		rxd2-skew-psec = <0>;
1158d13bc63SEmmanuel Vadot		rxd3-skew-psec = <0>;
1168d13bc63SEmmanuel Vadot		txd0-skew-psec = <0>;
1178d13bc63SEmmanuel Vadot		txd1-skew-psec = <0>;
1188d13bc63SEmmanuel Vadot		txd2-skew-psec = <0>;
1198d13bc63SEmmanuel Vadot		txd3-skew-psec = <0>;
1208d13bc63SEmmanuel Vadot	};
1218d13bc63SEmmanuel Vadot};
1228d13bc63SEmmanuel Vadot
1238d13bc63SEmmanuel Vadot&eth1 {
1248d13bc63SEmmanuel Vadot	pinctrl-0 = <&eth1_pins>;
1258d13bc63SEmmanuel Vadot	pinctrl-names = "default";
1268d13bc63SEmmanuel Vadot	phy-handle = <&phy1>;
1278d13bc63SEmmanuel Vadot	phy-mode = "rgmii-id";
1288d13bc63SEmmanuel Vadot	status = "okay";
1298d13bc63SEmmanuel Vadot
1308d13bc63SEmmanuel Vadot	phy1: ethernet-phy@7 {
1318d13bc63SEmmanuel Vadot		reg = <7>;
1328d13bc63SEmmanuel Vadot		interrupt-parent = <&pinctrl>;
1338d13bc63SEmmanuel Vadot		interrupts = <RZG2L_GPIO(12, 1) IRQ_TYPE_EDGE_FALLING>;
1348d13bc63SEmmanuel Vadot		rxc-skew-psec = <0>;
1358d13bc63SEmmanuel Vadot		txc-skew-psec = <0>;
1368d13bc63SEmmanuel Vadot		rxdv-skew-psec = <0>;
1378d13bc63SEmmanuel Vadot		txen-skew-psec = <0>;
1388d13bc63SEmmanuel Vadot		rxd0-skew-psec = <0>;
1398d13bc63SEmmanuel Vadot		rxd1-skew-psec = <0>;
1408d13bc63SEmmanuel Vadot		rxd2-skew-psec = <0>;
1418d13bc63SEmmanuel Vadot		rxd3-skew-psec = <0>;
1428d13bc63SEmmanuel Vadot		txd0-skew-psec = <0>;
1438d13bc63SEmmanuel Vadot		txd1-skew-psec = <0>;
1448d13bc63SEmmanuel Vadot		txd2-skew-psec = <0>;
1458d13bc63SEmmanuel Vadot		txd3-skew-psec = <0>;
1468d13bc63SEmmanuel Vadot	};
1478d13bc63SEmmanuel Vadot};
1488d13bc63SEmmanuel Vadot#endif
14984943d6fSEmmanuel Vadot
15084943d6fSEmmanuel Vadot&extal_clk {
15184943d6fSEmmanuel Vadot	clock-frequency = <24000000>;
15284943d6fSEmmanuel Vadot};
15384943d6fSEmmanuel Vadot
154*b2d2a78aSEmmanuel Vadot&i2c1 {
155*b2d2a78aSEmmanuel Vadot	status = "okay";
156*b2d2a78aSEmmanuel Vadot};
157*b2d2a78aSEmmanuel Vadot
1588d13bc63SEmmanuel Vadot#if SW_CONFIG2 == SW_ON
15984943d6fSEmmanuel Vadot/* SD0 slot */
16084943d6fSEmmanuel Vadot&sdhi0 {
16184943d6fSEmmanuel Vadot	pinctrl-0 = <&sdhi0_pins>;
16284943d6fSEmmanuel Vadot	pinctrl-1 = <&sdhi0_uhs_pins>;
16384943d6fSEmmanuel Vadot	pinctrl-names = "default", "state_uhs";
16484943d6fSEmmanuel Vadot	vmmc-supply = <&vcc_sdhi0>;
16584943d6fSEmmanuel Vadot	vqmmc-supply = <&vccq_sdhi0>;
16684943d6fSEmmanuel Vadot	bus-width = <4>;
16784943d6fSEmmanuel Vadot	sd-uhs-sdr50;
16884943d6fSEmmanuel Vadot	sd-uhs-sdr104;
16984943d6fSEmmanuel Vadot	max-frequency = <125000000>;
17084943d6fSEmmanuel Vadot	status = "okay";
17184943d6fSEmmanuel Vadot};
17284943d6fSEmmanuel Vadot#else
17384943d6fSEmmanuel Vadot/* eMMC */
17484943d6fSEmmanuel Vadot&sdhi0 {
17584943d6fSEmmanuel Vadot	pinctrl-0 = <&sdhi0_emmc_pins>;
17684943d6fSEmmanuel Vadot	pinctrl-1 = <&sdhi0_emmc_pins>;
17784943d6fSEmmanuel Vadot	pinctrl-names = "default", "state_uhs";
17884943d6fSEmmanuel Vadot	vmmc-supply = <&vcc_sdhi0>;
17984943d6fSEmmanuel Vadot	vqmmc-supply = <&reg_1p8v>;
18084943d6fSEmmanuel Vadot	bus-width = <8>;
18184943d6fSEmmanuel Vadot	mmc-hs200-1_8v;
18284943d6fSEmmanuel Vadot	non-removable;
18384943d6fSEmmanuel Vadot	fixed-emmc-driver-type = <1>;
18484943d6fSEmmanuel Vadot	max-frequency = <125000000>;
18584943d6fSEmmanuel Vadot	status = "okay";
18684943d6fSEmmanuel Vadot};
18784943d6fSEmmanuel Vadot#endif
18884943d6fSEmmanuel Vadot
1898d13bc63SEmmanuel Vadot#if SW_CONFIG3 == SW_OFF
1908d13bc63SEmmanuel Vadot&sdhi2 {
1918d13bc63SEmmanuel Vadot	pinctrl-0 = <&sdhi2_pins>;
1928d13bc63SEmmanuel Vadot	pinctrl-names = "default";
1938d13bc63SEmmanuel Vadot	vmmc-supply = <&vcc_sdhi2>;
1948d13bc63SEmmanuel Vadot	bus-width = <4>;
1958d13bc63SEmmanuel Vadot	max-frequency = <50000000>;
1968d13bc63SEmmanuel Vadot	status = "okay";
1978d13bc63SEmmanuel Vadot};
1988d13bc63SEmmanuel Vadot#endif
1998d13bc63SEmmanuel Vadot
20084943d6fSEmmanuel Vadot&pinctrl {
20101950c46SEmmanuel Vadot#if SW_CONFIG3 == SW_ON
2028d13bc63SEmmanuel Vadot	eth0-phy-irq-hog {
2038d13bc63SEmmanuel Vadot		gpio-hog;
2048d13bc63SEmmanuel Vadot		gpios = <RZG2L_GPIO(12, 0) GPIO_ACTIVE_LOW>;
2058d13bc63SEmmanuel Vadot		input;
2068d13bc63SEmmanuel Vadot		line-name = "eth0-phy-irq";
2078d13bc63SEmmanuel Vadot	};
20801950c46SEmmanuel Vadot#endif
2098d13bc63SEmmanuel Vadot
2108d13bc63SEmmanuel Vadot	eth0_pins: eth0 {
2118d13bc63SEmmanuel Vadot		txc {
2128d13bc63SEmmanuel Vadot			pinmux = <RZG2L_PORT_PINMUX(1, 0, 1)>;  /* ET0_TXC */
2138d13bc63SEmmanuel Vadot			power-source = <1800>;
2148d13bc63SEmmanuel Vadot			output-enable;
2158d13bc63SEmmanuel Vadot			input-enable;
2168d13bc63SEmmanuel Vadot			drive-strength-microamp = <5200>;
2178d13bc63SEmmanuel Vadot		};
2188d13bc63SEmmanuel Vadot
2198d13bc63SEmmanuel Vadot		tx_ctl {
2208d13bc63SEmmanuel Vadot			pinmux = <RZG2L_PORT_PINMUX(1, 1, 1)>;  /* ET0_TX_CTL */
2218d13bc63SEmmanuel Vadot			power-source = <1800>;
2228d13bc63SEmmanuel Vadot			output-enable;
2238d13bc63SEmmanuel Vadot			drive-strength-microamp = <5200>;
2248d13bc63SEmmanuel Vadot		};
2258d13bc63SEmmanuel Vadot
2268d13bc63SEmmanuel Vadot		mux {
2278d13bc63SEmmanuel Vadot			pinmux = <RZG2L_PORT_PINMUX(1, 2, 1)>,	/* ET0_TXD0 */
2288d13bc63SEmmanuel Vadot				 <RZG2L_PORT_PINMUX(1, 3, 1)>,	/* ET0_TXD1 */
2298d13bc63SEmmanuel Vadot				 <RZG2L_PORT_PINMUX(1, 4, 1)>,	/* ET0_TXD2 */
2308d13bc63SEmmanuel Vadot				 <RZG2L_PORT_PINMUX(2, 0, 1)>,	/* ET0_TXD3 */
2318d13bc63SEmmanuel Vadot				 <RZG2L_PORT_PINMUX(3, 0, 1)>,	/* ET0_RXC */
2328d13bc63SEmmanuel Vadot				 <RZG2L_PORT_PINMUX(3, 1, 1)>,	/* ET0_RX_CTL */
2338d13bc63SEmmanuel Vadot				 <RZG2L_PORT_PINMUX(3, 2, 1)>,	/* ET0_RXD0 */
2348d13bc63SEmmanuel Vadot				 <RZG2L_PORT_PINMUX(3, 3, 1)>,	/* ET0_RXD1 */
2358d13bc63SEmmanuel Vadot				 <RZG2L_PORT_PINMUX(4, 0, 1)>,	/* ET0_RXD2 */
2368d13bc63SEmmanuel Vadot				 <RZG2L_PORT_PINMUX(4, 1, 1)>,	/* ET0_RXD3 */
2378d13bc63SEmmanuel Vadot				 <RZG2L_PORT_PINMUX(4, 3, 1)>,	/* ET0_MDC */
2388d13bc63SEmmanuel Vadot				 <RZG2L_PORT_PINMUX(4, 4, 1)>,	/* ET0_MDIO */
2398d13bc63SEmmanuel Vadot				 <RZG2L_PORT_PINMUX(4, 5, 1)>;	/* ET0_LINKSTA */
2408d13bc63SEmmanuel Vadot			power-source = <1800>;
2418d13bc63SEmmanuel Vadot		};
2428d13bc63SEmmanuel Vadot	};
2438d13bc63SEmmanuel Vadot
24401950c46SEmmanuel Vadot#if SW_CONFIG3 == SW_ON
2458d13bc63SEmmanuel Vadot	eth1-phy-irq-hog {
2468d13bc63SEmmanuel Vadot		gpio-hog;
2478d13bc63SEmmanuel Vadot		gpios = <RZG2L_GPIO(12, 1) GPIO_ACTIVE_LOW>;
2488d13bc63SEmmanuel Vadot		input;
2498d13bc63SEmmanuel Vadot		line-name = "eth1-phy-irq";
2508d13bc63SEmmanuel Vadot	};
25101950c46SEmmanuel Vadot#endif
2528d13bc63SEmmanuel Vadot
2538d13bc63SEmmanuel Vadot	eth1_pins: eth1 {
2548d13bc63SEmmanuel Vadot		txc {
2558d13bc63SEmmanuel Vadot			pinmux = <RZG2L_PORT_PINMUX(7, 0, 1)>;	/* ET1_TXC */
2568d13bc63SEmmanuel Vadot			power-source = <1800>;
2578d13bc63SEmmanuel Vadot			output-enable;
2588d13bc63SEmmanuel Vadot			input-enable;
2598d13bc63SEmmanuel Vadot			drive-strength-microamp = <5200>;
2608d13bc63SEmmanuel Vadot		};
2618d13bc63SEmmanuel Vadot
2628d13bc63SEmmanuel Vadot		tx_ctl {
2638d13bc63SEmmanuel Vadot			pinmux = <RZG2L_PORT_PINMUX(7, 1, 1)>;	/* ET1_TX_CTL */
2648d13bc63SEmmanuel Vadot			power-source = <1800>;
2658d13bc63SEmmanuel Vadot			output-enable;
2668d13bc63SEmmanuel Vadot			drive-strength-microamp = <5200>;
2678d13bc63SEmmanuel Vadot		};
2688d13bc63SEmmanuel Vadot
2698d13bc63SEmmanuel Vadot		mux {
2708d13bc63SEmmanuel Vadot			pinmux = <RZG2L_PORT_PINMUX(7, 2, 1)>,	/* ET1_TXD0 */
2718d13bc63SEmmanuel Vadot				 <RZG2L_PORT_PINMUX(7, 3, 1)>,	/* ET1_TXD1 */
2728d13bc63SEmmanuel Vadot				 <RZG2L_PORT_PINMUX(7, 4, 1)>,	/* ET1_TXD2 */
2738d13bc63SEmmanuel Vadot				 <RZG2L_PORT_PINMUX(8, 0, 1)>,	/* ET1_TXD3 */
2748d13bc63SEmmanuel Vadot				 <RZG2L_PORT_PINMUX(8, 4, 1)>,	/* ET1_RXC */
2758d13bc63SEmmanuel Vadot				 <RZG2L_PORT_PINMUX(9, 0, 1)>,	/* ET1_RX_CTL */
2768d13bc63SEmmanuel Vadot				 <RZG2L_PORT_PINMUX(9, 1, 1)>,	/* ET1_RXD0 */
2778d13bc63SEmmanuel Vadot				 <RZG2L_PORT_PINMUX(9, 2, 1)>,	/* ET1_RXD1 */
2788d13bc63SEmmanuel Vadot				 <RZG2L_PORT_PINMUX(9, 3, 1)>,	/* ET1_RXD2 */
2798d13bc63SEmmanuel Vadot				 <RZG2L_PORT_PINMUX(10, 0, 1)>,	/* ET1_RXD3 */
2808d13bc63SEmmanuel Vadot				 <RZG2L_PORT_PINMUX(10, 2, 1)>,	/* ET1_MDC */
2818d13bc63SEmmanuel Vadot				 <RZG2L_PORT_PINMUX(10, 3, 1)>,	/* ET1_MDIO */
2828d13bc63SEmmanuel Vadot				 <RZG2L_PORT_PINMUX(10, 4, 1)>;	/* ET1_LINKSTA */
2838d13bc63SEmmanuel Vadot			power-source = <1800>;
2848d13bc63SEmmanuel Vadot		};
2858d13bc63SEmmanuel Vadot	};
2868d13bc63SEmmanuel Vadot
28784943d6fSEmmanuel Vadot	sdhi0_pins: sd0 {
28884943d6fSEmmanuel Vadot		data {
28984943d6fSEmmanuel Vadot			pins = "SD0_DATA0", "SD0_DATA1", "SD0_DATA2", "SD0_DATA3";
29084943d6fSEmmanuel Vadot			power-source = <3300>;
29184943d6fSEmmanuel Vadot		};
29284943d6fSEmmanuel Vadot
29384943d6fSEmmanuel Vadot		ctrl {
29484943d6fSEmmanuel Vadot			pins = "SD0_CLK", "SD0_CMD";
29584943d6fSEmmanuel Vadot			power-source = <3300>;
29684943d6fSEmmanuel Vadot		};
29784943d6fSEmmanuel Vadot
29884943d6fSEmmanuel Vadot		cd {
29984943d6fSEmmanuel Vadot			pinmux = <RZG2L_PORT_PINMUX(0, 0, 1)>; /* SD0_CD */
30084943d6fSEmmanuel Vadot		};
30184943d6fSEmmanuel Vadot	};
30284943d6fSEmmanuel Vadot
30384943d6fSEmmanuel Vadot	sdhi0_uhs_pins: sd0-uhs {
30484943d6fSEmmanuel Vadot		data {
30584943d6fSEmmanuel Vadot			pins = "SD0_DATA0", "SD0_DATA1", "SD0_DATA2", "SD0_DATA3";
30684943d6fSEmmanuel Vadot			power-source = <1800>;
30784943d6fSEmmanuel Vadot		};
30884943d6fSEmmanuel Vadot
30984943d6fSEmmanuel Vadot		ctrl {
31084943d6fSEmmanuel Vadot			pins = "SD0_CLK", "SD0_CMD";
31184943d6fSEmmanuel Vadot			power-source = <1800>;
31284943d6fSEmmanuel Vadot		};
31384943d6fSEmmanuel Vadot
31484943d6fSEmmanuel Vadot		cd {
31584943d6fSEmmanuel Vadot			pinmux = <RZG2L_PORT_PINMUX(0, 0, 1)>; /* SD0_CD */
31684943d6fSEmmanuel Vadot		};
31784943d6fSEmmanuel Vadot	};
31884943d6fSEmmanuel Vadot
31984943d6fSEmmanuel Vadot	sdhi0_emmc_pins: sd0-emmc {
32084943d6fSEmmanuel Vadot		pins = "SD0_DATA0", "SD0_DATA1", "SD0_DATA2", "SD0_DATA3",
32184943d6fSEmmanuel Vadot		       "SD0_DATA4", "SD0_DATA5", "SD0_DATA6", "SD0_DATA7",
32284943d6fSEmmanuel Vadot		       "SD0_CLK", "SD0_CMD", "SD0_RST#";
32384943d6fSEmmanuel Vadot		power-source = <1800>;
32484943d6fSEmmanuel Vadot	};
3258d13bc63SEmmanuel Vadot
3268d13bc63SEmmanuel Vadot	sdhi2_pins: sd2 {
3278d13bc63SEmmanuel Vadot		data {
3288d13bc63SEmmanuel Vadot			pins = "P11_2", "P11_3", "P12_0", "P12_1";
3298d13bc63SEmmanuel Vadot			input-enable;
3308d13bc63SEmmanuel Vadot		};
3318d13bc63SEmmanuel Vadot
3328d13bc63SEmmanuel Vadot		ctrl {
3338d13bc63SEmmanuel Vadot			pins = "P11_1";
3348d13bc63SEmmanuel Vadot			input-enable;
3358d13bc63SEmmanuel Vadot		};
3368d13bc63SEmmanuel Vadot
3378d13bc63SEmmanuel Vadot		mux {
3388d13bc63SEmmanuel Vadot			pinmux = <RZG2L_PORT_PINMUX(11, 0, 8)>, /* SD2_CLK */
3398d13bc63SEmmanuel Vadot				 <RZG2L_PORT_PINMUX(11, 1, 8)>, /* SD2_CMD */
3408d13bc63SEmmanuel Vadot				 <RZG2L_PORT_PINMUX(11, 2, 8)>, /* SD2_DATA0 */
3418d13bc63SEmmanuel Vadot				 <RZG2L_PORT_PINMUX(11, 3, 8)>, /* SD2_DATA1 */
3428d13bc63SEmmanuel Vadot				 <RZG2L_PORT_PINMUX(12, 0, 8)>, /* SD2_DATA2 */
3438d13bc63SEmmanuel Vadot				 <RZG2L_PORT_PINMUX(12, 1, 8)>, /* SD2_DATA3 */
3448d13bc63SEmmanuel Vadot				 <RZG2L_PORT_PINMUX(14, 1, 7)>; /* SD2_CD# */
3458d13bc63SEmmanuel Vadot		};
3468d13bc63SEmmanuel Vadot	};
34784943d6fSEmmanuel Vadot};
34801950c46SEmmanuel Vadot
34901950c46SEmmanuel Vadot&wdt0 {
35001950c46SEmmanuel Vadot	timeout-sec = <60>;
35101950c46SEmmanuel Vadot	status = "okay";
35201950c46SEmmanuel Vadot};
353