Skip to contentSkip to conversation

arm64: dts: mediatek: mt7622: fix some validation errors

PATCH Superseded Rafał Miłecki 2 participants 9 messages Mar 1, 2024 – Mar 4, 2024

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover arm64: dts: mediatek: mt7622: fix some validation errors

From: Rafał Miłecki <[email protected]>

One more step in cleaning up DTS for "make dtbs_check".

Rafał Miłecki (4):
arm64: dts: mediatek: mt7622: fix clock controllers
arm64: dts: mediatek: mt7622: fix IR nodename
arm64: dts: mediatek: mt7622: fix ethernet controller "compatible"
arm64: dts: mediatek: mt7622: drop "reset-names" from thermal block

 arch/arm64/boot/dts/mediatek/mt7622.dtsi | 34 ++++++++++--------------
 1 file changed, 14 insertions(+), 20 deletions(-)
Signature · 1 line
2.35.3
#1 lore raw

PATCH 1/4 arm64: dts: mediatek: mt7622: fix clock controllers

From: Rafał Miłecki <[email protected]>

1. Drop unneeded "syscon"s (bindings were updated recently)
2. Use "clock-controller" in nodenames
3. Add missing "#clock-cells"

---
 arch/arm64/boot/dts/mediatek/mt7622.dtsi | 27 +++++++++++-------------
 1 file changed, 12 insertions(+), 15 deletions(-)
arch/arm64/boot/dts/mediatek/mt7622.dtsi +12 -15
index 3ee9266fa8e9..283fdf7d2d8b 100644
@@ -283,16 +283,14 @@ thermal_calibration: calib@198 {
 		};
 	};
 
-	apmixedsys: apmixedsys@10209000 {
-		compatible = "mediatek,mt7622-apmixedsys",
-			     "syscon";
+	apmixedsys: clock-controller@10209000 {
+		compatible = "mediatek,mt7622-apmixedsys";
 		reg = <0 0x10209000 0 0x1000>;
 		#clock-cells = <1>;
 	};
 
-	topckgen: topckgen@10210000 {
-		compatible = "mediatek,mt7622-topckgen",
-			     "syscon";
+	topckgen: clock-controller@10210000 {
+		compatible = "mediatek,mt7622-topckgen";
 		reg = <0 0x10210000 0 0x1000>;
 		#clock-cells = <1>;
 	};
@@ -734,9 +732,8 @@ wmac: wmac@18000000 {
 		power-domains = <&scpsys MT7622_POWER_DOMAIN_WB>;
 	};
 
-	ssusbsys: ssusbsys@1a000000 {
-		compatible = "mediatek,mt7622-ssusbsys",
-			     "syscon";
+	ssusbsys: clock-controller@1a000000 {
+		compatible = "mediatek,mt7622-ssusbsys";
 		reg = <0 0x1a000000 0 0x1000>;
 		#clock-cells = <1>;
 		#reset-cells = <1>;
@@ -793,9 +790,8 @@ u2port1: usb-phy@1a0c5000 {
 		};
 	};
 
-	pciesys: pciesys@1a100800 {
-		compatible = "mediatek,mt7622-pciesys",
-			     "syscon";
+	pciesys: clock-controller@1a100800 {
+		compatible = "mediatek,mt7622-pciesys";
 		reg = <0 0x1a100800 0 0x1000>;
 		#clock-cells = <1>;
 		#reset-cells = <1>;
@@ -921,12 +917,13 @@ sata_port: sata-phy@1a243000 {
 		};
 	};
 
-	hifsys: syscon@1af00000 {
-		compatible = "mediatek,mt7622-hifsys", "syscon";
+	hifsys: clock-controller@1af00000 {
+		compatible = "mediatek,mt7622-hifsys";
 		reg = <0 0x1af00000 0 0x70>;
+		#clock-cells = <1>;
 	};
 
-	ethsys: syscon@1b000000 {
+	ethsys: clock-controller@1b000000 {
 		compatible = "mediatek,mt7622-ethsys",
 			     "syscon";
 		reg = <0 0x1b000000 0 0x1000>;
Signature · 1 line
2.35.3
#3 lore raw

PATCH 2/4 arm64: dts: mediatek: mt7622: fix IR nodename

In reply to Rafał Miłecki

From: Rafał Miłecki <[email protected]>

Fix following validation error:
arch/arm64/boot/dts/mediatek/mt7622-rfb1.dtb: cir@10009000: $nodename:0: 'cir@10009000' does not match '^ir(-receiver)?(@[a-f0-9]+)?$'
from schema $id: http://devicetree.org/schemas/media/mediatek,mt7622-cir.yaml#

---
 arch/arm64/boot/dts/mediatek/mt7622.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/mediatek/mt7622.dtsi +1 -1
index 283fdf7d2d8b..7714775d1bd0 100644
@@ -252,7 +252,7 @@ scpsys: power-controller@10006000 {
 		clock-names = "hif_sel";
 	};
 
-	cir: cir@10009000 {
+	cir: ir@10009000 {
 		compatible = "mediatek,mt7622-cir";
 		reg = <0 0x10009000 0 0x1000>;
 		interrupts = <GIC_SPI 175 IRQ_TYPE_LEVEL_LOW>;
Signature · 1 line
2.35.3
#5 lore raw

PATCH 3/4 arm64: dts: mediatek: mt7622: fix ethernet controller "compatible"

In reply to Rafał Miłecki

From: Rafał Miłecki <[email protected]>

Fix following validation error:
arch/arm64/boot/dts/mediatek/mt7622-rfb1.dtb: ethernet@1b100000: compatible: ['mediatek,mt7622-eth', 'mediatek,mt2701-eth', 'syscon'] is too long
from schema $id: http://devicetree.org/schemas/net/mediatek,net.yaml#
(and other complains about wrong clocks).

---
 arch/arm64/boot/dts/mediatek/mt7622.dtsi | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
arch/arm64/boot/dts/mediatek/mt7622.dtsi +1 -3
index 7714775d1bd0..7da4ac273a15 100644
@@ -963,9 +963,7 @@ wed1: wed@1020b000 {
 	};
 
 	eth: ethernet@1b100000 {
-		compatible = "mediatek,mt7622-eth",
-			     "mediatek,mt2701-eth",
-			     "syscon";
+		compatible = "mediatek,mt7622-eth";
 		reg = <0 0x1b100000 0 0x20000>;
 		interrupts = <GIC_SPI 223 IRQ_TYPE_LEVEL_LOW>,
 			     <GIC_SPI 224 IRQ_TYPE_LEVEL_LOW>,
Signature · 1 line
2.35.3
#7 lore raw

PATCH 4/4 arm64: dts: mediatek: mt7622: drop "reset-names" from thermal block

In reply to Rafał Miłecki

From: Rafał Miłecki <[email protected]>

Binding doesn't specify "reset-names" property and Linux driver also doesn't use it.

Fix following validation error:
arch/arm64/boot/dts/mediatek/mt7622-rfb1.dtb: thermal@1100b000: Unevaluated properties are not allowed ('reset-names' was unexpected)
from schema $id: http://devicetree.org/schemas/thermal/mediatek,thermal.yaml#

---
 arch/arm64/boot/dts/mediatek/mt7622.dtsi | 1 -
 1 file changed, 1 deletion(-)
arch/arm64/boot/dts/mediatek/mt7622.dtsi +0 -1
index 7da4ac273a15..9d19dd8ee524 100644
@@ -513,7 +513,6 @@ thermal: thermal@1100b000 {
 			 <&pericfg CLK_PERI_AUXADC_PD>;
 		clock-names = "therm", "auxadc";
 		resets = <&pericfg MT7622_PERI_THERM_SW_RST>;
-		reset-names = "therm";
 		mediatek,auxadc = <&auxadc>;
 		mediatek,apmixedsys = <&apmixedsys>;
 		nvmem-cells = <&thermal_calibration>;
Signature · 1 line
2.35.3
#2 lore raw

Re: [PATCH 1/4] arm64: dts: mediatek: mt7622: fix clock controllers

In reply to Rafał Miłecki

Il 01/03/24 12:35, Rafał Miłecki ha scritto:

Quoted 7 lines

From: Rafał Miłecki <[email protected]>

1. Drop unneeded "syscon"s (bindings were updated recently)
2. Use "clock-controller" in nodenames
3. Add missing "#clock-cells"

Please add the appropriate Fixes tag and resend.

Thanks,
Angelo

#4 lore raw

Re: [PATCH 2/4] arm64: dts: mediatek: mt7622: fix IR nodename

In reply to Rafał Miłecki

Il 01/03/24 12:35, Rafał Miłecki ha scritto:

Quoted 7 lines

From: Rafał Miłecki <[email protected]>

Fix following validation error:
arch/arm64/boot/dts/mediatek/mt7622-rfb1.dtb: cir@10009000: $nodename:0: 'cir@10009000' does not match '^ir(-receiver)?(@[a-f0-9]+)?$'
from schema $id: http://devicetree.org/schemas/media/mediatek,mt7622-cir.yaml#

Is this an IR receiver, an IR transmitter or a xceiver?

While we're fixing that node name, we might as well increase readability of (and somewhat implicitly document) this.

... so, that might be...:

ir-receiver@xxxxx {
....

Cheers,
Angelo

Quoted 17 lines
---
  arch/arm64/boot/dts/mediatek/mt7622.dtsi | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/mediatek/mt7622.dtsi +1 -1
index 283fdf7d2d8b..7714775d1bd0 100644
@@ -252,7 +252,7 @@ scpsys: power-controller@10006000 {
  		clock-names = "hif_sel";
  	};
 
-	cir: cir@10009000 {
+	cir: ir@10009000 {
  		compatible = "mediatek,mt7622-cir";
  		reg = <0 0x10009000 0 0x1000>;
  		interrupts = <GIC_SPI 175 IRQ_TYPE_LEVEL_LOW>;
#6 lore raw

Re: [PATCH 3/4] arm64: dts: mediatek: mt7622: fix ethernet controller "compatible"

In reply to Rafał Miłecki

Il 01/03/24 12:35, Rafał Miłecki ha scritto:

Quoted 8 lines

From: Rafał Miłecki <[email protected]>

Fix following validation error:
arch/arm64/boot/dts/mediatek/mt7622-rfb1.dtb: ethernet@1b100000: compatible: ['mediatek,mt7622-eth', 'mediatek,mt2701-eth', 'syscon'] is too long
from schema $id: http://devicetree.org/schemas/net/mediatek,net.yaml#
(and other complains about wrong clocks).

Fixes tag?

Thanks,
Angelo

#8 lore raw

Re: [PATCH 4/4] arm64: dts: mediatek: mt7622: drop "reset-names" from thermal block

In reply to Rafał Miłecki

Il 01/03/24 12:35, Rafał Miłecki ha scritto:

Quoted 10 lines

From: Rafał Miłecki <[email protected]>

Binding doesn't specify "reset-names" property and Linux driver also doesn't use it.

Fix following validation error:
arch/arm64/boot/dts/mediatek/mt7622-rfb1.dtb: thermal@1100b000: Unevaluated properties are not allowed ('reset-names' was unexpected)
from schema $id: http://devicetree.org/schemas/thermal/mediatek,thermal.yaml#

Fixes tag missing

Quoted 16 lines
---
  arch/arm64/boot/dts/mediatek/mt7622.dtsi | 1 -
  1 file changed, 1 deletion(-)
arch/arm64/boot/dts/mediatek/mt7622.dtsi +0 -1
index 7da4ac273a15..9d19dd8ee524 100644
@@ -513,7 +513,6 @@ thermal: thermal@1100b000 {
  			 <&pericfg CLK_PERI_AUXADC_PD>;
  		clock-names = "therm", "auxadc";
  		resets = <&pericfg MT7622_PERI_THERM_SW_RST>;
-		reset-names = "therm";
  		mediatek,auxadc = <&auxadc>;
  		mediatek,apmixedsys = <&apmixedsys>;
  		nvmem-cells = <&thermal_calibration>;