// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) /* * Device Tree Source for the RZ/G2UL SMARC SOM common parts * * Copyright (C) 2022 Renesas Electronics Corp. */ #include #include #include / { aliases { ethernet0 = ð0; ethernet1 = ð1; }; chosen { bootargs = "ignore_loglevel rw root=/dev/nfs ip=on"; }; memory@48000000 { device_type = "memory"; /* first 128MB is reserved for secure area. */ reg = <0x0 0x48000000 0x0 0x38000000>; }; reg_1p8v: regulator-1p8v { compatible = "regulator-fixed"; regulator-name = "fixed-1.8V"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-boot-on; regulator-always-on; }; reg_3p3v: regulator-3p3v { compatible = "regulator-fixed"; regulator-name = "fixed-3.3V"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; regulator-boot-on; regulator-always-on; }; #if !(SW_SW0_DEV_SEL) vccq_sdhi0: regulator-vccq-sdhi0 { compatible = "regulator-gpio"; regulator-name = "SDHI0 VccQ"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <3300000>; states = <3300000 1>, <1800000 0>; regulator-boot-on; gpios = <&pinctrl RZG2L_GPIO(6, 2) GPIO_ACTIVE_HIGH>; regulator-always-on; }; #endif }; #if (SW_SW0_DEV_SEL) &adc { pinctrl-0 = <&adc_pins>; pinctrl-names = "default"; status = "okay"; }; #endif #if (!SW_ET0_EN_N) ð0 { pinctrl-0 = <ð0_pins>; pinctrl-names = "default"; phy-handle = <&phy0>; phy-mode = "rgmii-id"; status = "okay"; phy0: ethernet-phy@7 { compatible = "ethernet-phy-id0022.1640", "ethernet-phy-ieee802.3-c22"; reg = <7>; interrupt-parent = <&irqc>; interrupts = ; rxc-skew-psec = <2400>; txc-skew-psec = <2400>; rxdv-skew-psec = <0>; txen-skew-psec = <0>; rxd0-skew-psec = <0>; rxd1-skew-psec = <0>; rxd2-skew-psec = <0>; rxd3-skew-psec = <0>; txd0-skew-psec = <0>; txd1-skew-psec = <0>; txd2-skew-psec = <0>; txd3-skew-psec = <0>; }; }; #endif ð1 { pinctrl-0 = <ð1_pins>; pinctrl-names = "default"; phy-handle = <&phy1>; phy-mode = "rgmii-id"; status = "okay"; phy1: ethernet-phy@7 { compatible = "ethernet-phy-id0022.1640", "ethernet-phy-ieee802.3-c22"; reg = <7>; interrupt-parent = <&irqc>; interrupts = ; rxc-skew-psec = <2400>; txc-skew-psec = <2400>; rxdv-skew-psec = <0>; txen-skew-psec = <0>; rxd0-skew-psec = <0>; rxd1-skew-psec = <0>; rxd2-skew-psec = <0>; rxd3-skew-psec = <0>; txd0-skew-psec = <0>; txd1-skew-psec = <0>; txd2-skew-psec = <0>; txd3-skew-psec = <0>; }; }; &extal_clk { clock-frequency = <24000000>; }; &ostm1 { status = "okay"; }; &ostm2 { status = "okay"; }; &pinctrl { adc_pins: adc { pinmux = ; /* ADC_TRG */ }; eth0_pins: eth0 { txc { pinmux = ; /* ET0_TXC */ power-source = <1800>; output-enable; }; mux { pinmux = , /* ET0_LINKSTA */ , /* ET0_MDC */ , /* ET0_MDIO */ , /* ET0_TX_CTL */ , /* ET0_TXD0 */ , /* ET0_TXD1 */ , /* ET0_TXD2 */ , /* ET0_TXD3 */ , /* ET0_RXC */ , /* ET0_RX_CTL */ , /* ET0_RXD0 */ , /* ET0_RXD1 */ , /* ET0_RXD2 */ ; /* ET0_RXD3 */ power-source = <1800>; }; irq { pinmux = ; /* IRQ2 */ }; }; eth1_pins: eth1 { txc { pinmux = ; /* ET1_TXC */ power-source = <1800>; output-enable; }; mux { pinmux = , /* ET1_LINKSTA */ , /* ET1_MDC */ , /* ET1_MDIO */ , /* ET1_TX_CTL */ , /* ET1_TXD0 */ , /* ET1_TXD1 */ , /* ET1_TXD2 */ , /* ET1_TXD3 */ , /* ET1_RXC */ , /* ET1_RX_CTL */ , /* ET1_RXD0 */ , /* ET1_RXD1 */ , /* ET1_RXD2 */ ; /* ET1_RXD3 */ power-source = <1800>; }; irq { pinmux = ; /* IRQ7 */ }; }; sdhi0_emmc_pins: sd0emmc { sd0_emmc_data { pins = "SD0_DATA0", "SD0_DATA1", "SD0_DATA2", "SD0_DATA3", "SD0_DATA4", "SD0_DATA5", "SD0_DATA6", "SD0_DATA7"; power-source = <1800>; }; sd0_emmc_ctrl { pins = "SD0_CLK", "SD0_CMD"; power-source = <1800>; }; sd0_emmc_rst { pins = "SD0_RST#"; power-source = <1800>; }; }; sdhi0_pins: sd0 { sd0_data { pins = "SD0_DATA0", "SD0_DATA1", "SD0_DATA2", "SD0_DATA3"; power-source = <3300>; }; sd0_ctrl { pins = "SD0_CLK", "SD0_CMD"; power-source = <3300>; }; sd0_mux { pinmux = ; /* SD0_CD */ }; }; sdhi0_pins_uhs: sd0_uhs { sd0_data_uhs { pins = "SD0_DATA0", "SD0_DATA1", "SD0_DATA2", "SD0_DATA3"; power-source = <1800>; }; sd0_ctrl_uhs { pins = "SD0_CLK", "SD0_CMD"; power-source = <1800>; }; sd0_mux_uhs { pinmux = ; /* SD0_CD */ }; }; }; #if (SW_SW0_DEV_SEL) &sdhi0 { pinctrl-0 = <&sdhi0_emmc_pins>; pinctrl-1 = <&sdhi0_emmc_pins>; pinctrl-names = "default", "state_uhs"; vmmc-supply = <®_3p3v>; vqmmc-supply = <®_1p8v>; bus-width = <8>; mmc-hs200-1_8v; non-removable; fixed-emmc-driver-type = <1>; status = "okay"; }; #else &sdhi0 { pinctrl-0 = <&sdhi0_pins>; pinctrl-1 = <&sdhi0_pins_uhs>; pinctrl-names = "default", "state_uhs"; vmmc-supply = <®_3p3v>; vqmmc-supply = <&vccq_sdhi0>; bus-width = <4>; sd-uhs-sdr50; sd-uhs-sdr104; status = "okay"; }; #endif &wdt0 { status = "okay"; timeout-sec = <60>; };