Skip to contentSkip to conversation

arm64: dts: mediatek: mt7986: Add SoC compatible

PATCH Superseded [email protected] 3 participants 3 messages Nov 11, 2022 – Nov 14, 2022

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: mediatek: mt7986: Add SoC compatible

From: Matthias Brugger <[email protected]>

Missing SoC compatible in the board file causes dt bindings check.

---
 arch/arm64/boot/dts/mediatek/mt7986a-rfb.dts | 2 +-
 arch/arm64/boot/dts/mediatek/mt7986a.dtsi    | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/mediatek/mt7986a-rfb.dts +1 -1
index afe37b702eef9..0e3b603159477 100644
@@ -9,7 +9,7 @@
 
 / {
 	model = "MediaTek MT7986a RFB";
-	compatible = "mediatek,mt7986a-rfb";
+	compatible = "mediatek,mt7986a-rfb", "mediatek,mt7986a";
 
 	aliases {
 		serial0 = &uart0;
arch/arm64/boot/dts/mediatek/mt7986a.dtsi +2 -0
index 72e0d9722e07a..1191ecf345a7d 100644
@@ -14,6 +14,8 @@ / {
 	#address-cells = <2>;
 	#size-cells = <2>;
 
+	compatible = "mediatek,mt7986a";
+
 	clk40m: oscillator@0 {
 		compatible = "fixed-clock";
 		clock-frequency = <40000000>;
Signature · 1 line
2.38.0
#1 lore raw

Il 11/11/22 12:36, [email protected] ha scritto:

Quoted 28 lines

From: Matthias Brugger <[email protected]>

Missing SoC compatible in the board file causes dt bindings check.

---
  arch/arm64/boot/dts/mediatek/mt7986a-rfb.dts | 2 +-
  arch/arm64/boot/dts/mediatek/mt7986a.dtsi    | 2 ++
  2 files changed, 3 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/mediatek/mt7986a-rfb.dts +1 -1
index afe37b702eef9..0e3b603159477 100644
@@ -9,7 +9,7 @@
 
  / {
  	model = "MediaTek MT7986a RFB";
-	compatible = "mediatek,mt7986a-rfb";
+	compatible = "mediatek,mt7986a-rfb", "mediatek,mt7986a";
 
  	aliases {
  		serial0 = &uart0;
arch/arm64/boot/dts/mediatek/mt7986a.dtsi +0 -0
index 72e0d9722e07a..1191ecf345a7d 100644

arch/arm64/boot/dts/mediatek/mt7986a.dtsi / { · line 18

Quoted 5 lines
arch/arm64/boot/dts/mediatek/mt7986a.dtsi +2 -0
@@ -14,6 +14,8 @@ / {
  	#address-cells = <2>;
  	#size-cells = <2>;
 
+	compatible = "mediatek,mt7986a";
+

It's DTS that shall declare the machine compatible and it's expected that they all declare their own, so please drop this one.

Also, while at it, the same should happen with mt7986b-rfb.dts: can you fix that one too?

	compatible = "mediatek,mt7986b-rfb", "mediatek,mt7986b";

Cheers,
Angelo

#2 lore raw
Quoted 26 lines · AngeloGioacchino Del Regno

Il 11/11/22 12:36, [email protected] ha scritto:

Quoted 25 lines

From: Matthias Brugger <[email protected]>

Missing SoC compatible in the board file causes dt bindings check.

---
  arch/arm64/boot/dts/mediatek/mt7986a-rfb.dts | 2 +- arch/arm64/boot/dts/mediatek/mt7986a.dtsi    | 2 ++

  2 files changed, 3 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/mediatek/mt7986a-rfb.dts +1 -1
index afe37b702eef9..0e3b603159477 100644
@@ -9,7 +9,7 @@
   / {
       model = "MediaTek MT7986a RFB";
-    compatible = "mediatek,mt7986a-rfb";
+    compatible = "mediatek,mt7986a-rfb", "mediatek,mt7986a";
       aliases {
           serial0 = &uart0;
arch/arm64/boot/dts/mediatek/mt7986a.dtsi +0 -0
index 72e0d9722e07a..1191ecf345a7d 100644
Quoted 8 lines

arch/arm64/boot/dts/mediatek/mt7986a.dtsi / { · line 17

Quoted 5 lines
arch/arm64/boot/dts/mediatek/mt7986a.dtsi +2 -0
@@ -14,6 +14,8 @@ / {
       #address-cells = <2>;
       #size-cells = <2>;
+    compatible = "mediatek,mt7986a";
+

It's DTS that shall declare the machine compatible and it's expected that they all declare their own, so please drop this one.

SoC compatible should have a the compatible for it's SoC. But for style reasons it should be the first of the block, I'll fix that.

Quoted 5 lines

Also, while at it, the same should happen with mt7986b-rfb.dts: can you fix that one too?

    compatible = "mediatek,mt7986b-rfb", "mediatek,mt7986b";

Will do.

Thanks,
Matthias

Quoted 5 lines

Cheers,
Angelo