Skip to content

Commit 1099b3b

Browse files
numbqqsuperna9999
authored andcommitted
arm64: dts: amlogic: meson-s4-s905y4-khadas-vim1s: enable eMMC storage
Enable the on-board eMMC storage for Khadas VIM1S. The VIM1S features a 16GB eMMC 5.1 module. This patch adds the necessary regulators and the eMMC controller node. Signed-off-by: Nick Xie <nick@khadas.com> Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Link: https://patch.msgid.link/20260116023611.2033078-1-nick@khadas.com Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
1 parent 44e3f86 commit 1099b3b

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

arch/arm64/boot/dts/amlogic/meson-s4-s905y4-khadas-vim1s.dts

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@
3838
};
3939
};
4040

41+
emmc_pwrseq: emmc-pwrseq {
42+
compatible = "mmc-pwrseq-emmc";
43+
reset-gpios = <&gpio GPIOB_9 GPIO_ACTIVE_LOW>;
44+
};
45+
4146
sdio_32k: sdio-32k {
4247
compatible = "pwm-clock";
4348
#clock-cells = <0>;
@@ -80,6 +85,24 @@
8085
3300000 0>;
8186
};
8287

88+
vddao_3v3: regulator-vddao-3v3 {
89+
compatible = "regulator-fixed";
90+
regulator-name = "VDDAO_3V3";
91+
regulator-min-microvolt = <3300000>;
92+
regulator-max-microvolt = <3300000>;
93+
vin-supply = <&main_5v>;
94+
regulator-always-on;
95+
};
96+
97+
vddio_ao1v8: regulator-vddio-ao1v8 {
98+
compatible = "regulator-fixed";
99+
regulator-name = "VDDIO_AO1V8";
100+
regulator-min-microvolt = <1800000>;
101+
regulator-max-microvolt = <1800000>;
102+
vin-supply = <&vddao_3v3>;
103+
regulator-always-on;
104+
};
105+
83106
/* SY8120B1ABC DC/DC Regulator. */
84107
vddcpu: regulator-vddcpu {
85108
compatible = "pwm-regulator";
@@ -136,6 +159,25 @@
136159
};
137160
};
138161

162+
&emmc {
163+
status = "okay";
164+
pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>;
165+
pinctrl-1 = <&emmc_clk_gate_pins>;
166+
pinctrl-names = "default", "clk-gate";
167+
168+
bus-width = <8>;
169+
cap-mmc-highspeed;
170+
mmc-ddr-1_8v;
171+
mmc-hs200-1_8v;
172+
max-frequency = <200000000>;
173+
non-removable;
174+
disable-wp;
175+
176+
mmc-pwrseq = <&emmc_pwrseq>;
177+
vmmc-supply = <&vddao_3v3>;
178+
vqmmc-supply = <&vddio_ao1v8>;
179+
};
180+
139181
&ethmac {
140182
status = "okay";
141183
phy-handle = <&internal_ephy>;

0 commit comments

Comments
 (0)