Skip to contentSkip to conversation

arm64: dts: mediatek: mt7986: drop invalid properties from ethsys

PATCH Applied Rafał Miłecki 2 participants 7 messages Feb 13, 2024 – Apr 5, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/3 arm64: dts: mediatek: mt7986: drop invalid properties from ethsys

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

Mediatek ethsys controller / syscon binding doesn't allow any subnodes so "#address-cells" and "#size-cells" are redundant (actually:
disallowed).

This fixes:
arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dtb: syscon@15000000: '#address-cells', '#size-cells' do not match any of the regexes: 'pinctrl-[0-9]+'
from schema $id: http://devicetree.org/schemas/clock/mediatek,ethsys.yaml#

Fixes 1f9986b258c2 ("arm64: dts: mediatek: add clock support for mt7986a")
Cc Sam Shih <[email protected]>
---
 arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 2 --
 1 file changed, 2 deletions(-)
arch/arm64/boot/dts/mediatek/mt7986a.dtsi +0 -2
index b3f416b9a7a4..228e02954e85 100644
@@ -492,8 +492,6 @@ ethsys: syscon@15000000 {
 			 compatible = "mediatek,mt7986-ethsys",
 				      "syscon";
 			 reg = <0 0x15000000 0 0x1000>;
-			 #address-cells = <1>;
-			 #size-cells = <1>;
 			 #clock-cells = <1>;
 			 #reset-cells = <1>;
 		};
Signature · 1 line
2.35.3
#1 lore raw

PATCH 2/3 arm64: dts: mediatek: mt7986: drop "#reset-cells" from Ethernet controller

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

Ethernet block doesn't include or act as a reset controller. Documentation also doesn't document "#reset-cells" for it.

This fixes:
arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dtb: ethernet@15100000: Unevaluated properties are not allowed ('#reset-cells' was unexpected)
from schema $id: http://devicetree.org/schemas/net/mediatek,net.yaml#

Fixes 082ff36bd5c0 ("arm64: dts: mediatek: mt7986: introduce ethernet nodes")
Cc Lorenzo Bianconi <[email protected]>
---
 arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 1 -
 1 file changed, 1 deletion(-)
arch/arm64/boot/dts/mediatek/mt7986a.dtsi +0 -1
index 228e02954e85..f3a2a89fada4 100644
@@ -554,7 +554,6 @@ eth: ethernet@15100000 {
 					  <&topckgen CLK_TOP_SGM_325M_SEL>;
 			assigned-clock-parents = <&apmixedsys CLK_APMIXED_NET2PLL>,
 						 <&apmixedsys CLK_APMIXED_SGMPLL>;
-			#reset-cells = <1>;
 			#address-cells = <1>;
 			#size-cells = <0>;
 			mediatek,ethsys = <&ethsys>;
Signature · 1 line
2.35.3
maintainer Reviewed-by on v1 2/3
#2 lore raw

Re: [PATCH 2/3] arm64: dts: mediatek: mt7986: drop "#reset-cells" from Ethernet controller

Il 13/02/24 06:37, Rafał Miłecki ha scritto:

Quoted 5 lines

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

Ethernet block doesn't include or act as a reset controller. Documentation also doesn't document "#reset-cells" for it.

Quoted 7 lines

This fixes:
arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dtb: ethernet@15100000: Unevaluated properties are not allowed ('#reset-cells' was unexpected)
from schema $id: http://devicetree.org/schemas/net/mediatek,net.yaml#

Fixes 082ff36bd5c0 ("arm64: dts: mediatek: mt7986: introduce ethernet nodes")
Cc Lorenzo Bianconi <[email protected]>
#3 lore raw

PATCH 3/3 arm64: dts: mediatek: mt7986: drop invalid thermal block clock

In reply to Rafał Miłecki

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

Thermal block uses only two clocks. Its binding doesn't document or allow "adc_32k". Also Linux driver doesn't support it.

It has been additionally verified by Angelo by his detailed research on MT7981 / MT7986 clocks (thanks!).

This fixes:
arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dtb: thermal@1100c800: clocks: [[4, 27], [4, 44], [4, 45]] is too long
from schema $id: http://devicetree.org/schemas/thermal/mediatek,thermal.yaml#
arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dtb: thermal@1100c800: clock-names: ['therm', 'auxadc', 'adc_32k'] is too long
from schema $id: http://devicetree.org/schemas/thermal/mediatek,thermal.yaml#

Fixes 0a9615d58d04 ("arm64: dts: mt7986: add thermal and efuse")
Cc Daniel Golle <[email protected]>
---
 arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
arch/arm64/boot/dts/mediatek/mt7986a.dtsi +2 -3
index f3a2a89fada4..559990dcd1d1 100644
@@ -332,9 +332,8 @@ thermal: thermal@1100c800 {
 			reg = <0 0x1100c800 0 0x800>;
 			interrupts = <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>;
 			clocks = <&infracfg CLK_INFRA_THERM_CK>,
-				 <&infracfg CLK_INFRA_ADC_26M_CK>,
-				 <&infracfg CLK_INFRA_ADC_FRC_CK>;
-			clock-names = "therm", "auxadc", "adc_32k";
+				 <&infracfg CLK_INFRA_ADC_26M_CK>;
+			clock-names = "therm", "auxadc";
 			nvmem-cells = <&thermal_calibration>;
 			nvmem-cell-names = "calibration-data";
 			#thermal-sensor-cells = <1>;
Signature · 1 line
2.35.3
maintainer Reviewed-by on v1 3/3
#4 lore raw

Re: [PATCH 3/3] arm64: dts: mediatek: mt7986: drop invalid thermal block clock

Il 13/02/24 06:37, Rafał Miłecki ha scritto:

Quoted 14 lines

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

Thermal block uses only two clocks. Its binding doesn't document or allow "adc_32k". Also Linux driver doesn't support it.

It has been additionally verified by Angelo by his detailed research on MT7981 / MT7986 clocks (thanks!).

This fixes:
arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dtb: thermal@1100c800: clocks: [[4, 27], [4, 44], [4, 45]] is too long
from schema $id: http://devicetree.org/schemas/thermal/mediatek,thermal.yaml#
arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dtb: thermal@1100c800: clock-names: ['therm', 'auxadc', 'adc_32k'] is too long
from schema $id: http://devicetree.org/schemas/thermal/mediatek,thermal.yaml#

Quoted 4 lines
Fixes 0a9615d58d04 ("arm64: dts: mt7986: add thermal and efuse")
Cc Daniel Golle <[email protected]>
maintainer Reviewed-by on v1 1/3
#5 lore raw
In reply to Rafał Miłecki

Il 13/02/24 06:37, Rafał Miłecki ha scritto:

Quoted 6 lines

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

Mediatek ethsys controller / syscon binding doesn't allow any subnodes so "#address-cells" and "#size-cells" are redundant (actually:
disallowed).

Quoted 7 lines

This fixes:
arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dtb: syscon@15000000: '#address-cells', '#size-cells' do not match any of the regexes: 'pinctrl-[0-9]+'
from schema $id: http://devicetree.org/schemas/clock/mediatek,ethsys.yaml#

Fixes 1f9986b258c2 ("arm64: dts: mediatek: add clock support for mt7986a")
Cc Sam Shih <[email protected]>
maintainer Applied
#6 lore raw
In reply to Rafał Miłecki
Quoted 9 lines · Rafał Miłecki

Mediatek ethsys controller / syscon binding doesn't allow any subnodes so "#address-cells" and "#size-cells" are redundant (actually:
disallowed).

This fixes:
arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dtb: syscon@15000000: '#address-cells', '#size-cells' do not match any of the regexes: 'pinctrl-[0-9]+'
from schema $id: http://devicetree.org/schemas/clock/mediatek,ethsys.yaml#

[...]

Applied to v6.9-fixes/dts64, thanks!

[1/3] arm64: dts: mediatek: mt7986: drop invalid properties from ethsys

      commit: 3b449bfd2ff6c5d3ceecfcb18528ff8e1b4ac2fd
[2/3] arm64: dts: mediatek: mt7986: drop "#reset-cells" from Ethernet controller
      commit: 9bd88afc94c3570289a0f1c696578b3e1f4e3169
[3/3] arm64: dts: mediatek: mt7986: drop invalid thermal block clock
      commit: 970f8b01bd7719a22e577ba6c78e27f9ccf22783

Cheers,
Angelo