]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: allwinner: a100: perf1: Add eMMC and MMC node
authorYangtao Li <frank@allwinnertech.com>
Thu, 31 Oct 2024 07:02:23 +0000 (04:02 -0300)
committerChen-Yu Tsai <wens@csie.org>
Sun, 10 Nov 2024 09:23:57 +0000 (17:23 +0800)
A100 perf1 hava MicroSD slot and on-board eMMC module, add support for them.

Signed-off-by: Yangtao Li <frank@allwinnertech.com>
Signed-off-by: Cody Eksal <masterr3c0rd@epochal.quest>
Link: https://patch.msgid.link/20241031070232.1793078-11-masterr3c0rd@epochal.quest
[wens@csie.org: cherry-picked out of series and GPIO header inclusion added]
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
arch/arm64/boot/dts/allwinner/sun50i-a100-allwinner-perf1.dts

index f5c5c1464482cbb5384b407bc717bfdaf60be7aa..a387bccdcefd859e73ebf934761c1d14f4fb64b5 100644 (file)
@@ -7,6 +7,8 @@
 
 #include "sun50i-a100.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+
 /{
        model = "Allwinner A100 Perf1";
        compatible = "allwinner,a100-perf1", "allwinner,sun50i-a100";
        };
 };
 
+&mmc0 {
+       vmmc-supply = <&reg_dcdc1>;
+       cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
+       bus-width = <4>;
+       status = "okay";
+};
+
+&mmc2 {
+       vmmc-supply = <&reg_dcdc1>;
+       vqmmc-supply = <&reg_aldo1>;
+       cap-mmc-hw-reset;
+       non-removable;
+       bus-width = <8>;
+       status = "okay";
+};
+
 &pio {
        vcc-pb-supply = <&reg_dcdc1>;
        vcc-pc-supply = <&reg_eldo1>;