linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] mt8188: Fix missing reset DT property
@ 2025-05-16 14:12 Julien Massot
  2025-05-16 14:12 ` [PATCH v2 1/2] dt-bindings: clock: mediatek: Add #reset-cells property for MT8188 Julien Massot
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Julien Massot @ 2025-05-16 14:12 UTC (permalink / raw)
  To: kernel, Michael Turquette, Stephen Boyd, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
	AngeloGioacchino Del Regno, Garmin Chang, Friday Yang
  Cc: Conor Dooley, linux-clk, devicetree, linux-kernel,
	linux-arm-kernel, linux-mediatek, Julien Massot

Hi all,

This patch series addresses some issues found in the MediaTek MT8188 device tree
and its corresponding bindings:

The #reset-cells property was missing in the MT8188 clock controller binding and
device tree nodes. This causes DT validation errors.

Patch 1 updates the binding to declare #reset-cells as a valid property.
Patch 2 adds #reset-cells to all affected nodes in mt8188.dtsi.

To: kernel@collabora.com
To: Michael Turquette <mturquette@baylibre.com>
To: Stephen Boyd <sboyd@kernel.org>
To: Rob Herring <robh@kernel.org>
To: Krzysztof Kozlowski <krzk+dt@kernel.org>
To: Conor Dooley <conor+dt@kernel.org>
To: Matthias Brugger <matthias.bgg@gmail.com>
To: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
To: Garmin Chang <garmin.chang@mediatek.com>
To: Friday Yang <friday.yang@mediatek.com>
Cc: Conor Dooley <conor.dooley@microchip.com>
Cc: linux-clk@vger.kernel.org
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-mediatek@lists.infradead.org

Signed-off-by: Julien Massot <julien.massot@collabora.com>
---
Changes in v2:
- Change the wording for patch 1/2
- Drop the fix tag on patch 2/2
- Drop the former 3/3 patch in favour of another solution:
https://lore.kernel.org/all/20240911104327.123602-1-angelogioacchino.delregno@collabora.com
- Link to v1: https://lore.kernel.org/r/20250515-dtb-check-mt8188-v1-0-cda383cbeb4f@collabora.com

---
Julien Massot (2):
      dt-bindings: clock: mediatek: Add #reset-cells property for MT8188
      arm64: dts: mediatek: mt8188: Add missing #reset-cells property

 .../devicetree/bindings/clock/mediatek,mt8188-clock.yaml       |  3 +++
 arch/arm64/boot/dts/mediatek/mt8188.dtsi                       | 10 ++++++++++
 2 files changed, 13 insertions(+)
---
base-commit: bdd609656ff5573db9ba1d26496a528bdd297cf2
change-id: 20250515-dtb-check-mt8188-5af50d5d5c93

Best regards,
-- 
Julien Massot <julien.massot@collabora.com>



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

* [PATCH v2 1/2] dt-bindings: clock: mediatek: Add #reset-cells property for MT8188
  2025-05-16 14:12 [PATCH v2 0/2] mt8188: Fix missing reset DT property Julien Massot
@ 2025-05-16 14:12 ` Julien Massot
  2025-05-19 15:13   ` Conor Dooley
                     ` (2 more replies)
  2025-05-16 14:12 ` [PATCH v2 2/2] arm64: dts: mediatek: mt8188: Add missing #reset-cells property Julien Massot
  2025-05-20 10:17 ` (subset) [PATCH v2 0/2] mt8188: Fix missing reset DT property AngeloGioacchino Del Regno
  2 siblings, 3 replies; 7+ messages in thread
From: Julien Massot @ 2025-05-16 14:12 UTC (permalink / raw)
  To: kernel, Michael Turquette, Stephen Boyd, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
	AngeloGioacchino Del Regno, Garmin Chang, Friday Yang
  Cc: Conor Dooley, linux-clk, devicetree, linux-kernel,
	linux-arm-kernel, linux-mediatek, Julien Massot

The '#reset-cells' property is permitted for some of the MT8188
clock controllers, but not listed as a valid property.

Fixes: 9a5cd59640ac ("dt-bindings: clock: mediatek: Add SMI LARBs reset for MT8188")
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Julien Massot <julien.massot@collabora.com>
---
 Documentation/devicetree/bindings/clock/mediatek,mt8188-clock.yaml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Documentation/devicetree/bindings/clock/mediatek,mt8188-clock.yaml b/Documentation/devicetree/bindings/clock/mediatek,mt8188-clock.yaml
index 2985c8c717d72888dd49f1f6249a9e2594d8a38d..5403242545ab12a7736ed4fbac26008aa955c724 100644
--- a/Documentation/devicetree/bindings/clock/mediatek,mt8188-clock.yaml
+++ b/Documentation/devicetree/bindings/clock/mediatek,mt8188-clock.yaml
@@ -52,6 +52,9 @@ properties:
   '#clock-cells':
     const: 1
 
+  '#reset-cells':
+    const: 1
+
 required:
   - compatible
   - reg

-- 
2.49.0



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

* [PATCH v2 2/2] arm64: dts: mediatek: mt8188: Add missing #reset-cells property
  2025-05-16 14:12 [PATCH v2 0/2] mt8188: Fix missing reset DT property Julien Massot
  2025-05-16 14:12 ` [PATCH v2 1/2] dt-bindings: clock: mediatek: Add #reset-cells property for MT8188 Julien Massot
@ 2025-05-16 14:12 ` Julien Massot
  2025-05-20 10:17 ` (subset) [PATCH v2 0/2] mt8188: Fix missing reset DT property AngeloGioacchino Del Regno
  2 siblings, 0 replies; 7+ messages in thread
From: Julien Massot @ 2025-05-16 14:12 UTC (permalink / raw)
  To: kernel, Michael Turquette, Stephen Boyd, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
	AngeloGioacchino Del Regno, Garmin Chang, Friday Yang
  Cc: Conor Dooley, linux-clk, devicetree, linux-kernel,
	linux-arm-kernel, linux-mediatek, Julien Massot

The binding now require the '#reset-cells' property but the
devicetree has not been updated which trigger dtb-check errors.

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Julien Massot <julien.massot@collabora.com>
---
 arch/arm64/boot/dts/mediatek/mt8188.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arch/arm64/boot/dts/mediatek/mt8188.dtsi b/arch/arm64/boot/dts/mediatek/mt8188.dtsi
index 296090fbaf4953db8075f72073509b731dc41e51..dec6ce3e94e92c8e1e2c3680cb3584394d9058bd 100644
--- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi
@@ -2647,36 +2647,42 @@ imgsys1_dip_top: clock-controller@15110000 {
 			compatible = "mediatek,mt8188-imgsys1-dip-top";
 			reg = <0 0x15110000 0 0x1000>;
 			#clock-cells = <1>;
+			#reset-cells = <1>;
 		};
 
 		imgsys1_dip_nr: clock-controller@15130000 {
 			compatible = "mediatek,mt8188-imgsys1-dip-nr";
 			reg = <0 0x15130000 0 0x1000>;
 			#clock-cells = <1>;
+			#reset-cells = <1>;
 		};
 
 		imgsys_wpe1: clock-controller@15220000 {
 			compatible = "mediatek,mt8188-imgsys-wpe1";
 			reg = <0 0x15220000 0 0x1000>;
 			#clock-cells = <1>;
+			#reset-cells = <1>;
 		};
 
 		ipesys: clock-controller@15330000 {
 			compatible = "mediatek,mt8188-ipesys";
 			reg = <0 0x15330000 0 0x1000>;
 			#clock-cells = <1>;
+			#reset-cells = <1>;
 		};
 
 		imgsys_wpe2: clock-controller@15520000 {
 			compatible = "mediatek,mt8188-imgsys-wpe2";
 			reg = <0 0x15520000 0 0x1000>;
 			#clock-cells = <1>;
+			#reset-cells = <1>;
 		};
 
 		imgsys_wpe3: clock-controller@15620000 {
 			compatible = "mediatek,mt8188-imgsys-wpe3";
 			reg = <0 0x15620000 0 0x1000>;
 			#clock-cells = <1>;
+			#reset-cells = <1>;
 		};
 
 		camsys: clock-controller@16000000 {
@@ -2689,24 +2695,28 @@ camsys_rawa: clock-controller@1604f000 {
 			compatible = "mediatek,mt8188-camsys-rawa";
 			reg = <0 0x1604f000 0 0x1000>;
 			#clock-cells = <1>;
+			#reset-cells = <1>;
 		};
 
 		camsys_yuva: clock-controller@1606f000 {
 			compatible = "mediatek,mt8188-camsys-yuva";
 			reg = <0 0x1606f000 0 0x1000>;
 			#clock-cells = <1>;
+			#reset-cells = <1>;
 		};
 
 		camsys_rawb: clock-controller@1608f000 {
 			compatible = "mediatek,mt8188-camsys-rawb";
 			reg = <0 0x1608f000 0 0x1000>;
 			#clock-cells = <1>;
+			#reset-cells = <1>;
 		};
 
 		camsys_yuvb: clock-controller@160af000 {
 			compatible = "mediatek,mt8188-camsys-yuvb";
 			reg = <0 0x160af000 0 0x1000>;
 			#clock-cells = <1>;
+			#reset-cells = <1>;
 		};
 
 		ccusys: clock-controller@17200000 {

-- 
2.49.0



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

* Re: [PATCH v2 1/2] dt-bindings: clock: mediatek: Add #reset-cells property for MT8188
  2025-05-16 14:12 ` [PATCH v2 1/2] dt-bindings: clock: mediatek: Add #reset-cells property for MT8188 Julien Massot
@ 2025-05-19 15:13   ` Conor Dooley
  2025-05-20 10:19   ` AngeloGioacchino Del Regno
  2025-06-21 22:02   ` Stephen Boyd
  2 siblings, 0 replies; 7+ messages in thread
From: Conor Dooley @ 2025-05-19 15:13 UTC (permalink / raw)
  To: Julien Massot
  Cc: kernel, Michael Turquette, Stephen Boyd, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
	AngeloGioacchino Del Regno, Garmin Chang, Friday Yang,
	Conor Dooley, linux-clk, devicetree, linux-kernel,
	linux-arm-kernel, linux-mediatek

[-- Attachment #1: Type: text/plain, Size: 483 bytes --]

On Fri, May 16, 2025 at 04:12:13PM +0200, Julien Massot wrote:
> The '#reset-cells' property is permitted for some of the MT8188
> clock controllers, but not listed as a valid property.
> 
> Fixes: 9a5cd59640ac ("dt-bindings: clock: mediatek: Add SMI LARBs reset for MT8188")
> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
> Signed-off-by: Julien Massot <julien.massot@collabora.com>

Acked-by: Conor Dooley <conor.dooley@microchip.com>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

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

* Re: (subset) [PATCH v2 0/2] mt8188: Fix missing reset DT property
  2025-05-16 14:12 [PATCH v2 0/2] mt8188: Fix missing reset DT property Julien Massot
  2025-05-16 14:12 ` [PATCH v2 1/2] dt-bindings: clock: mediatek: Add #reset-cells property for MT8188 Julien Massot
  2025-05-16 14:12 ` [PATCH v2 2/2] arm64: dts: mediatek: mt8188: Add missing #reset-cells property Julien Massot
@ 2025-05-20 10:17 ` AngeloGioacchino Del Regno
  2 siblings, 0 replies; 7+ messages in thread
From: AngeloGioacchino Del Regno @ 2025-05-20 10:17 UTC (permalink / raw)
  To: kernel, Michael Turquette, Stephen Boyd, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Matthias Brugger, Garmin Chang,
	Friday Yang, Julien Massot
  Cc: Conor Dooley, linux-clk, devicetree, linux-kernel,
	linux-arm-kernel, linux-mediatek

On Fri, 16 May 2025 16:12:12 +0200, Julien Massot wrote:
> This patch series addresses some issues found in the MediaTek MT8188 device tree
> and its corresponding bindings:
> 
> The #reset-cells property was missing in the MT8188 clock controller binding and
> device tree nodes. This causes DT validation errors.
> 
> Patch 1 updates the binding to declare #reset-cells as a valid property.
> Patch 2 adds #reset-cells to all affected nodes in mt8188.dtsi.
> 
> [...]

Applied to v6.15-next/dts64, thanks!

[2/2] arm64: dts: mediatek: mt8188: Add missing #reset-cells property
      commit: fb77e7878bea92e7329b262e728eb6b4ac2d8768

Cheers,
Angelo




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

* Re: [PATCH v2 1/2] dt-bindings: clock: mediatek: Add #reset-cells property for MT8188
  2025-05-16 14:12 ` [PATCH v2 1/2] dt-bindings: clock: mediatek: Add #reset-cells property for MT8188 Julien Massot
  2025-05-19 15:13   ` Conor Dooley
@ 2025-05-20 10:19   ` AngeloGioacchino Del Regno
  2025-06-21 22:02   ` Stephen Boyd
  2 siblings, 0 replies; 7+ messages in thread
From: AngeloGioacchino Del Regno @ 2025-05-20 10:19 UTC (permalink / raw)
  To: Julien Massot, kernel, Michael Turquette, Stephen Boyd,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
	Garmin Chang, Friday Yang
  Cc: Conor Dooley, linux-clk, devicetree, linux-kernel,
	linux-arm-kernel, linux-mediatek

Il 16/05/25 16:12, Julien Massot ha scritto:
> The '#reset-cells' property is permitted for some of the MT8188
> clock controllers, but not listed as a valid property.
> 
> Fixes: 9a5cd59640ac ("dt-bindings: clock: mediatek: Add SMI LARBs reset for MT8188")
> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
> Signed-off-by: Julien Massot <julien.massot@collabora.com>

Stephen, please don't forget to pick this one, so that we resolve all those
warnings :-)

Thanks!
Angelo

> ---
>   Documentation/devicetree/bindings/clock/mediatek,mt8188-clock.yaml | 3 +++
>   1 file changed, 3 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/clock/mediatek,mt8188-clock.yaml b/Documentation/devicetree/bindings/clock/mediatek,mt8188-clock.yaml
> index 2985c8c717d72888dd49f1f6249a9e2594d8a38d..5403242545ab12a7736ed4fbac26008aa955c724 100644
> --- a/Documentation/devicetree/bindings/clock/mediatek,mt8188-clock.yaml
> +++ b/Documentation/devicetree/bindings/clock/mediatek,mt8188-clock.yaml
> @@ -52,6 +52,9 @@ properties:
>     '#clock-cells':
>       const: 1
>   
> +  '#reset-cells':
> +    const: 1
> +
>   required:
>     - compatible
>     - reg
> 




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

* Re: [PATCH v2 1/2] dt-bindings: clock: mediatek: Add #reset-cells property for MT8188
  2025-05-16 14:12 ` [PATCH v2 1/2] dt-bindings: clock: mediatek: Add #reset-cells property for MT8188 Julien Massot
  2025-05-19 15:13   ` Conor Dooley
  2025-05-20 10:19   ` AngeloGioacchino Del Regno
@ 2025-06-21 22:02   ` Stephen Boyd
  2 siblings, 0 replies; 7+ messages in thread
From: Stephen Boyd @ 2025-06-21 22:02 UTC (permalink / raw)
  To: AngeloGioacchino Del Regno, Conor Dooley, Friday Yang,
	Garmin Chang, Julien Massot, Krzysztof Kozlowski,
	Matthias Brugger, Michael Turquette, Rob Herring, kernel
  Cc: Conor Dooley, linux-clk, devicetree, linux-kernel,
	linux-arm-kernel, linux-mediatek, Julien Massot

Quoting Julien Massot (2025-05-16 07:12:13)
> The '#reset-cells' property is permitted for some of the MT8188
> clock controllers, but not listed as a valid property.
> 
> Fixes: 9a5cd59640ac ("dt-bindings: clock: mediatek: Add SMI LARBs reset for MT8188")
> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
> Signed-off-by: Julien Massot <julien.massot@collabora.com>
> ---

Applied to clk-fixes


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

end of thread, other threads:[~2025-06-21 22:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-16 14:12 [PATCH v2 0/2] mt8188: Fix missing reset DT property Julien Massot
2025-05-16 14:12 ` [PATCH v2 1/2] dt-bindings: clock: mediatek: Add #reset-cells property for MT8188 Julien Massot
2025-05-19 15:13   ` Conor Dooley
2025-05-20 10:19   ` AngeloGioacchino Del Regno
2025-06-21 22:02   ` Stephen Boyd
2025-05-16 14:12 ` [PATCH v2 2/2] arm64: dts: mediatek: mt8188: Add missing #reset-cells property Julien Massot
2025-05-20 10:17 ` (subset) [PATCH v2 0/2] mt8188: Fix missing reset DT property 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;
as well as URLs for NNTP newsgroup(s).