arm64: dts: amlogic: Add EMMC for T7 khadas VIM4
Subsystems (2)
PATCH 7/7 arm64: dts: amlogic: Add EMMC for T7 khadas VIM4
Add EMMC support for Amlogic T7 Khadas VIM4 device dts.
Signed-off-by Ronald Claveau <[email protected]>
--- .../amlogic/amlogic-t7-a311d2-khadas-vim4.dts | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+)
arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts +62 -0
@@ -15,6 +15,10 @@ aliases { serial0 = &uart_a; }; + chosen { + stdout-path = "serial0:921600n8"; + }; + memory@0 { device_type = "memory"; reg = <0x0 0x0 0x2 0x0>; /* 8 GB */
@@ -45,6 +49,42 @@ xtal: xtal-clk { #clock-cells = <0>; }; + dc_in: regulator-dc-in { + compatible = "regulator-fixed"; + regulator-name = "DC_IN"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + }; + + vsys_3v3: regulator-vsys-3v3 { + compatible = "regulator-fixed"; + regulator-name = "VSYS_3V3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <&dc_in>; + regulator-always-on; + }; + + vcc_3v3: regulator-vcc-3v3 { + compatible = "regulator-fixed"; + regulator-name = "VCC_3V3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <&vsys_3v3>; + regulator-always-on; + /* FIXME: actually controlled by VDDCPU_B_EN */ + }; + + emmc_1v8: regulator-emmc-1v8 { + compatible = "regulator-fixed"; + regulator-name = "EMMC_AO1V8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + vin-supply = <&vcc_3v3>; + regulator-always-on; + }; + }; &uart_a {
@@ -52,3 +92,25 @@ &uart_a { clocks = <&xtal>, <&xtal>, <&xtal>; clock-names = "xtal", "pclk", "baud"; }; + +/* eMMC */ +&sd_emmc_c { + status = "okay"; + pinctrl-0 = <&emmc_ctrl_pins>, <&emmc_data_8b_pins>, <&emmc_ds_pins>; + pinctrl-1 = <&emmc_clk_gate_pins>; + pinctrl-names = "default", "clk-gate"; + + bus-width = <8>; + cap-mmc-highspeed; + mmc-ddr-1_8v; + mmc-hs200-1_8v; + mmc-hs400-1_8v; + max-frequency = <200000000>; + disable-wp; + non-removable; + + power-domains = <&pwrc PWRC_T7_EMMC_ID>; + + vmmc-supply = <&vcc_3v3>; + vqmmc-supply = <&emmc_1v8>; +};
Signature · 1 line
2.49.0