* [PATCH 1/3] arm64: dts: mediatek: mt7986: drop invalid properties from ethsys
@ 2024-02-13 5:37 Rafał Miłecki
2024-02-13 5:37 ` [PATCH 2/3] arm64: dts: mediatek: mt7986: drop "#reset-cells" from Ethernet controller Rafał Miłecki
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Rafał Miłecki @ 2024-02-13 5:37 UTC (permalink / raw)
To: Matthias Brugger, AngeloGioacchino Del Regno, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: devicetree, Sam Shih, Daniel Golle, linux-kernel, linux-mediatek,
Rafał Miłecki, Lorenzo Bianconi, David S . Miller,
linux-arm-kernel
From: Rafał Miłecki <rafal@milecki.pl>
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 <sam.shih@mediatek.com>
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
---
arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 2 --
1 file changed, 2 deletions(-)
diff --git a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
index b3f416b9a7a4..228e02954e85 100644
--- a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
@@ -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>;
};
--
2.35.3
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/3] arm64: dts: mediatek: mt7986: drop "#reset-cells" from Ethernet controller
2024-02-13 5:37 [PATCH 1/3] arm64: dts: mediatek: mt7986: drop invalid properties from ethsys Rafał Miłecki
@ 2024-02-13 5:37 ` Rafał Miłecki
2024-02-13 9:11 ` AngeloGioacchino Del Regno
2024-02-13 5:37 ` [PATCH 3/3] arm64: dts: mediatek: mt7986: drop invalid thermal block clock Rafał Miłecki
` (2 subsequent siblings)
3 siblings, 1 reply; 7+ messages in thread
From: Rafał Miłecki @ 2024-02-13 5:37 UTC (permalink / raw)
To: Matthias Brugger, AngeloGioacchino Del Regno, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: devicetree, Sam Shih, Daniel Golle, linux-kernel, linux-mediatek,
Rafał Miłecki, Lorenzo Bianconi, David S . Miller,
linux-arm-kernel
From: Rafał Miłecki <rafal@milecki.pl>
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 <lorenzo@kernel.org>
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
---
arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
index 228e02954e85..f3a2a89fada4 100644
--- a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
@@ -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 = <ðsys>;
--
2.35.3
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 3/3] arm64: dts: mediatek: mt7986: drop invalid thermal block clock
2024-02-13 5:37 [PATCH 1/3] arm64: dts: mediatek: mt7986: drop invalid properties from ethsys Rafał Miłecki
2024-02-13 5:37 ` [PATCH 2/3] arm64: dts: mediatek: mt7986: drop "#reset-cells" from Ethernet controller Rafał Miłecki
@ 2024-02-13 5:37 ` Rafał Miłecki
2024-02-13 9:11 ` AngeloGioacchino Del Regno
2024-02-13 9:11 ` [PATCH 1/3] arm64: dts: mediatek: mt7986: drop invalid properties from ethsys AngeloGioacchino Del Regno
2024-04-05 8:02 ` AngeloGioacchino Del Regno
3 siblings, 1 reply; 7+ messages in thread
From: Rafał Miłecki @ 2024-02-13 5:37 UTC (permalink / raw)
To: Matthias Brugger, AngeloGioacchino Del Regno, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: devicetree, Sam Shih, Daniel Golle, linux-kernel, linux-mediatek,
Rafał Miłecki, Lorenzo Bianconi, David S . Miller,
linux-arm-kernel
From: Rafał Miłecki <rafal@milecki.pl>
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 <daniel@makrotopia.org>
Link: https://lore.kernel.org/linux-devicetree/17d143aa-576e-4d67-a0ea-b79f3518b81c@collabora.com/
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
---
arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
index f3a2a89fada4..559990dcd1d1 100644
--- a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
@@ -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>;
--
2.35.3
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 3/3] arm64: dts: mediatek: mt7986: drop invalid thermal block clock
2024-02-13 5:37 ` [PATCH 3/3] arm64: dts: mediatek: mt7986: drop invalid thermal block clock Rafał Miłecki
@ 2024-02-13 9:11 ` AngeloGioacchino Del Regno
0 siblings, 0 replies; 7+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-02-13 9:11 UTC (permalink / raw)
To: Rafał Miłecki, Matthias Brugger, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: devicetree, Sam Shih, Daniel Golle, linux-kernel, linux-mediatek,
Rafał Miłecki, Lorenzo Bianconi, David S . Miller,
linux-arm-kernel
Il 13/02/24 06:37, Rafał Miłecki ha scritto:
> From: Rafał Miłecki <rafal@milecki.pl>
>
> 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 <daniel@makrotopia.org>
> Link: https://lore.kernel.org/linux-devicetree/17d143aa-576e-4d67-a0ea-b79f3518b81c@collabora.com/
> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/3] arm64: dts: mediatek: mt7986: drop "#reset-cells" from Ethernet controller
2024-02-13 5:37 ` [PATCH 2/3] arm64: dts: mediatek: mt7986: drop "#reset-cells" from Ethernet controller Rafał Miłecki
@ 2024-02-13 9:11 ` AngeloGioacchino Del Regno
0 siblings, 0 replies; 7+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-02-13 9:11 UTC (permalink / raw)
To: Rafał Miłecki, Matthias Brugger, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: devicetree, Sam Shih, Daniel Golle, linux-kernel, linux-mediatek,
Rafał Miłecki, Lorenzo Bianconi, David S . Miller,
linux-arm-kernel
Il 13/02/24 06:37, Rafał Miłecki ha scritto:
> From: Rafał Miłecki <rafal@milecki.pl>
>
> 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 <lorenzo@kernel.org>
> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/3] arm64: dts: mediatek: mt7986: drop invalid properties from ethsys
2024-02-13 5:37 [PATCH 1/3] arm64: dts: mediatek: mt7986: drop invalid properties from ethsys Rafał Miłecki
2024-02-13 5:37 ` [PATCH 2/3] arm64: dts: mediatek: mt7986: drop "#reset-cells" from Ethernet controller Rafał Miłecki
2024-02-13 5:37 ` [PATCH 3/3] arm64: dts: mediatek: mt7986: drop invalid thermal block clock Rafał Miłecki
@ 2024-02-13 9:11 ` AngeloGioacchino Del Regno
2024-04-05 8:02 ` AngeloGioacchino Del Regno
3 siblings, 0 replies; 7+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-02-13 9:11 UTC (permalink / raw)
To: Rafał Miłecki, Matthias Brugger, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: devicetree, Sam Shih, Daniel Golle, linux-kernel, linux-mediatek,
Rafał Miłecki, Lorenzo Bianconi, David S . Miller,
linux-arm-kernel
Il 13/02/24 06:37, Rafał Miłecki ha scritto:
> From: Rafał Miłecki <rafal@milecki.pl>
>
> 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 <sam.shih@mediatek.com>
> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/3] arm64: dts: mediatek: mt7986: drop invalid properties from ethsys
2024-02-13 5:37 [PATCH 1/3] arm64: dts: mediatek: mt7986: drop invalid properties from ethsys Rafał Miłecki
` (2 preceding siblings ...)
2024-02-13 9:11 ` [PATCH 1/3] arm64: dts: mediatek: mt7986: drop invalid properties from ethsys AngeloGioacchino Del Regno
@ 2024-04-05 8:02 ` AngeloGioacchino Del Regno
3 siblings, 0 replies; 7+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-04-05 8:02 UTC (permalink / raw)
To: Matthias Brugger, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Rafał Miłecki
Cc: devicetree, Sam Shih, Daniel Golle, linux-kernel, linux-mediatek,
Rafał Miłecki, Lorenzo Bianconi, David S . Miller,
linux-arm-kernel, AngeloGioacchino Del Regno
On Tue, 13 Feb 2024 06:37:37 +0100, Rafał Miłecki wrote:
> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2024-04-05 8:02 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-13 5:37 [PATCH 1/3] arm64: dts: mediatek: mt7986: drop invalid properties from ethsys Rafał Miłecki
2024-02-13 5:37 ` [PATCH 2/3] arm64: dts: mediatek: mt7986: drop "#reset-cells" from Ethernet controller Rafał Miłecki
2024-02-13 9:11 ` AngeloGioacchino Del Regno
2024-02-13 5:37 ` [PATCH 3/3] arm64: dts: mediatek: mt7986: drop invalid thermal block clock Rafał Miłecki
2024-02-13 9:11 ` AngeloGioacchino Del Regno
2024-02-13 9:11 ` [PATCH 1/3] arm64: dts: mediatek: mt7986: drop invalid properties from ethsys AngeloGioacchino Del Regno
2024-04-05 8:02 ` AngeloGioacchino Del Regno
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox