// 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 / { chosen { bootargs = "ignore_loglevel"; }; memory@48000000 { device_type = "memory"; /* first 128MB is reserved for secure area. */ reg = <0x0 0x48000000 0x0 0x38000000>; }; reg_1p8v: regulator0 { compatible = "regulator-fixed"; regulator-name = "fixed-1.8V"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-boot-on; regulator-always-on; }; reg_3p3v: regulator1 { 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 }; &extal_clk { clock-frequency = <24000000>; }; &pinctrl { 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