Skip to contentSkip to conversation

platform: generic: allwinner: Support the D1s as well

PATCH Applied Indrek Kruusa 2 participants 2 messages Sep 21 – Oct 27 Arm/Allwinner sunXi SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 platform: generic: allwinner: Support the D1s as well

The Allwinner D1s SoC is a stripped-down version of the D1 and D1s boards use "allwinner,sun20i-d1s" as their root compatible string instead of "allwinner,sun20i-d1". So, currently the sun20i override is not selected on them.

Add the D1s compatible to the match table.

Tested on the MangoPi MQ board with the Allwinner F133-A (D1s) SoC.

---
 platform/generic/allwinner/sun20i-d1.c | 1 +
 1 file changed, 1 insertion(+)
platform/generic/allwinner/sun20i-d1.c +1 -0
index 4ea90158..aeec078e 100644
@@ -229,6 +229,7 @@ static int sun20i_d1_platform_init(const void *fdt, int nodeoff,
 
 static const struct fdt_match sun20i_d1_match[] = {
 	{ .compatible = "allwinner,sun20i-d1" },
+	{ .compatible = "allwinner,sun20i-d1s" },
 	{ },
 };
 
Signature · 7 lines
2.43.0


-- 
opensbi mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/opensbi
Reviewed-by on v1 1/1 Applied
#1 lore raw
Quoted 11 lines · Indrek Kruusa

The Allwinner D1s SoC is a stripped-down version of the D1 and D1s boards use "allwinner,sun20i-d1s" as their root compatible string instead of "allwinner,sun20i-d1". So, currently the sun20i override is not selected on them.

Add the D1s compatible to the match table.

Tested on the MangoPi MQ board with the Allwinner F133-A (D1s) SoC.

LGTM.

Applied this patch to the riscv/opensbi repo.

Thanks,
Anup

Quoted 24 lines
---
 platform/generic/allwinner/sun20i-d1.c | 1 +
 1 file changed, 1 insertion(+)
platform/generic/allwinner/sun20i-d1.c +1 -1
index 4ea90158..aeec078e 100644
@@ -229,6 +229,7 @@ static int sun20i_d1_platform_init(const void *fdt, int nodeoff,
 
 static const struct fdt_match sun20i_d1_match[] = {
        { .compatible = "allwinner,sun20i-d1" },
+       { .compatible = "allwinner,sun20i-d1s" },
        { },
 };
 
--

2.43.0

--
opensbi mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/opensbi

Signature · 3 lines
opensbi mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/opensbi