devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] arm64: dts: mediatek: mt7986: drop "#clock-cells" from PWM
@ 2024-01-01 18:20 Rafał Miłecki
  2024-01-01 18:20 ` [PATCH 2/2] arm64: dts: mediatek: mt7986: add "#reset-cells" to infracfg Rafał Miłecki
  2024-01-22 17:19 ` [PATCH 1/2] arm64: dts: mediatek: mt7986: drop "#clock-cells" from PWM Matthias Brugger
  0 siblings, 2 replies; 3+ messages in thread
From: Rafał Miłecki @ 2024-01-01 18:20 UTC (permalink / raw)
  To: Matthias Brugger, AngeloGioacchino Del Regno
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Frank Wunderlich,
	Daniel Golle, Sam Shih, devicetree, linux-arm-kernel,
	linux-mediatek, Rafał Miłecki

From: Rafał Miłecki <rafal@milecki.pl>

PWM is not a clock provider and its binding doesn't specify
"#clock-cells" property.

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

Fixes: eabb04df46c6 ("arm64: dts: mt7986: add PWM")
Cc: Daniel Golle <daniel@makrotopia.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 6caac6ebede4..8a64d1027c46 100644
--- a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
@@ -196,7 +196,6 @@ pio: pinctrl@1001f000 {
 		pwm: pwm@10048000 {
 			compatible = "mediatek,mt7986-pwm";
 			reg = <0 0x10048000 0 0x1000>;
-			#clock-cells = <1>;
 			#pwm-cells = <2>;
 			interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>;
 			clocks = <&topckgen CLK_TOP_PWM_SEL>,
-- 
2.35.3


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] arm64: dts: mediatek: mt7986: add "#reset-cells" to infracfg
  2024-01-01 18:20 [PATCH 1/2] arm64: dts: mediatek: mt7986: drop "#clock-cells" from PWM Rafał Miłecki
@ 2024-01-01 18:20 ` Rafał Miłecki
  2024-01-22 17:19 ` [PATCH 1/2] arm64: dts: mediatek: mt7986: drop "#clock-cells" from PWM Matthias Brugger
  1 sibling, 0 replies; 3+ messages in thread
From: Rafał Miłecki @ 2024-01-01 18:20 UTC (permalink / raw)
  To: Matthias Brugger, AngeloGioacchino Del Regno
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Frank Wunderlich,
	Daniel Golle, Sam Shih, devicetree, linux-arm-kernel,
	linux-mediatek, Rafał Miłecki

From: Rafał Miłecki <rafal@milecki.pl>

MT7986's Infrastructure System Configuration Controller includes reset
controller. It can reset blocks as specified in the
include/dt-bindings/reset/mt7986-resets.h . Add #reset-cells so it can
be referenced properly.

This fixes:
arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dtb: infracfg@10001000: '#reset-cells' is a required property
        from schema $id: http://devicetree.org/schemas/arm/mediatek/mediatek,infracfg.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 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
index 8a64d1027c46..b3f416b9a7a4 100644
--- a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
@@ -144,6 +144,7 @@ infracfg: infracfg@10001000 {
 			compatible = "mediatek,mt7986-infracfg", "syscon";
 			reg = <0 0x10001000 0 0x1000>;
 			#clock-cells = <1>;
+			#reset-cells = <1>;
 		};
 
 		wed_pcie: wed-pcie@10003000 {
-- 
2.35.3


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] arm64: dts: mediatek: mt7986: drop "#clock-cells" from PWM
  2024-01-01 18:20 [PATCH 1/2] arm64: dts: mediatek: mt7986: drop "#clock-cells" from PWM Rafał Miłecki
  2024-01-01 18:20 ` [PATCH 2/2] arm64: dts: mediatek: mt7986: add "#reset-cells" to infracfg Rafał Miłecki
@ 2024-01-22 17:19 ` Matthias Brugger
  1 sibling, 0 replies; 3+ messages in thread
From: Matthias Brugger @ 2024-01-22 17:19 UTC (permalink / raw)
  To: Rafał Miłecki, AngeloGioacchino Del Regno
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Frank Wunderlich,
	Daniel Golle, Sam Shih, devicetree, linux-arm-kernel,
	linux-mediatek, Rafał Miłecki



On 01/01/2024 19:20, Rafał Miłecki wrote:
> From: Rafał Miłecki <rafal@milecki.pl>
> 
> PWM is not a clock provider and its binding doesn't specify
> "#clock-cells" property.
> 
> This fixes:
> arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dtb: pwm@10048000: '#clock-cells' does not match any of the regexes: 'pinctrl-[0-9]+'
>          from schema $id: http://devicetree.org/schemas/pwm/mediatek,mt2712-pwm.yaml#
> 
> Fixes: eabb04df46c6 ("arm64: dts: mt7986: add PWM")
> Cc: Daniel Golle <daniel@makrotopia.org>
> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>

Both patches applied, thanks!


> ---
>   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 6caac6ebede4..8a64d1027c46 100644
> --- a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
> @@ -196,7 +196,6 @@ pio: pinctrl@1001f000 {
>   		pwm: pwm@10048000 {
>   			compatible = "mediatek,mt7986-pwm";
>   			reg = <0 0x10048000 0 0x1000>;
> -			#clock-cells = <1>;
>   			#pwm-cells = <2>;
>   			interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>;
>   			clocks = <&topckgen CLK_TOP_PWM_SEL>,

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-01-22 17:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-01 18:20 [PATCH 1/2] arm64: dts: mediatek: mt7986: drop "#clock-cells" from PWM Rafał Miłecki
2024-01-01 18:20 ` [PATCH 2/2] arm64: dts: mediatek: mt7986: add "#reset-cells" to infracfg Rafał Miłecki
2024-01-22 17:19 ` [PATCH 1/2] arm64: dts: mediatek: mt7986: drop "#clock-cells" from PWM Matthias Brugger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).