ARM: dts: aspeed: ast2600evb: Add dts file for A1 and A0
authorSteven Lee <steven_lee@aspeedtech.com>
Mon, 24 May 2021 07:32:55 +0000 (15:32 +0800)
committerJoel Stanley <joel@jms.id.au>
Tue, 25 May 2021 07:40:07 +0000 (17:10 +0930)
aspeed-ast2600-evb.dts was modified for supporting A2 evb.

Since A1/A0 evbs don't have GPIO regulators and SD clock frequency
(SCU210) is different to A2 as well. Adding a new dts that removes new
nodes created in aspeed-ast2600-evb.dts is necessary.

Signed-off-by: Steven Lee <steven_lee@aspeedtech.com>
Acked-by: Andrew Jeffery <andrew@aj.id.au>
Link: https://lore.kernel.org/r/20210524073308.9328-4-steven_lee@aspeedtech.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
arch/arm/boot/dts/Makefile
arch/arm/boot/dts/aspeed-ast2600-evb-a1.dts [new file with mode: 0644]

index f8f09c5..f28a8df 100644 (file)
@@ -1415,6 +1415,7 @@ dtb-$(CONFIG_ARCH_MSTARV7) += \
        mstar-mercury5-ssc8336n-midrived08.dtb
 dtb-$(CONFIG_ARCH_ASPEED) += \
        aspeed-ast2500-evb.dtb \
+       aspeed-ast2600-evb-a1.dtb \
        aspeed-ast2600-evb.dtb \
        aspeed-bmc-amd-ethanolx.dtb \
        aspeed-bmc-ampere-mtjade.dtb \
diff --git a/arch/arm/boot/dts/aspeed-ast2600-evb-a1.dts b/arch/arm/boot/dts/aspeed-ast2600-evb-a1.dts
new file mode 100644 (file)
index 0000000..dd71480
--- /dev/null
@@ -0,0 +1,15 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+// Copyright 2021 IBM Corp.
+
+#include "aspeed-ast2600-evb.dts"
+
+/ {
+       model = "AST2600 A1 EVB";
+
+       /delete-node/regulator-vcc-sdhci0;
+       /delete-node/regulator-vcc-sdhci1;
+       /delete-node/regulator-vccq-sdhci0;
+       /delete-node/regulator-vccq-sdhci1;
+};
+
+/delete-node/ &sdc;