linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 01/15] dt-bindings: pwm: allwinner,sun4i-a10: include generic pwm schema
@ 2022-02-14  8:15 Krzysztof Kozlowski
  2022-02-14  8:15 ` [PATCH 02/15] dt-bindings: pwm: imx: " Krzysztof Kozlowski
                   ` (14 more replies)
  0 siblings, 15 replies; 23+ messages in thread
From: Krzysztof Kozlowski @ 2022-02-14  8:15 UTC (permalink / raw)
  To: Thierry Reding, Uwe Kleine-König, Lee Jones, Rob Herring,
	Krzysztof Kozlowski, Maxime Ripard, Chen-Yu Tsai, Jernej Skrabec,
	Florian Fainelli, bcm-kernel-feedback-list, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	NXP Linux Team, Heiko Stuebner, Palmer Dabbelt, Paul Walmsley,
	Nobuhiro Iwamatsu, Philipp Zabel, Anson Huang,
	Vijayakannan Ayyathurai, Rahul Tanwar, Jeff LaBundy, Yash Shah,
	Sagar Kadam, Vignesh R, Yoshihiro Shimoda, Laurent Pinchart,
	linux-pwm, devicetree, linux-arm-kernel, linux-sunxi,
	linux-kernel, linux-rockchip, linux-riscv

Include generic pwm.yaml schema, which enforces PWM node naming and
brings pwm-cells requirement.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
---
 .../bindings/pwm/allwinner,sun4i-a10-pwm.yaml | 53 ++++++++++---------
 1 file changed, 28 insertions(+), 25 deletions(-)

diff --git a/Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml b/Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml
index 800d511502c4..e93e935564fb 100644
--- a/Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml
+++ b/Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml
@@ -52,33 +52,36 @@ properties:
   resets:
     maxItems: 1
 
-if:
-  properties:
-    compatible:
-      contains:
-        const: allwinner,sun50i-h6-pwm
-
-then:
-  properties:
-    clocks:
-      maxItems: 2
-
-    clock-names:
-      items:
-        - const: mod
-        - const: bus
-
-  required:
-    - clock-names
-    - resets
-
-else:
-  properties:
-    clocks:
-      maxItems: 1
+
+allOf:
+  - $ref: pwm.yaml#
+
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: allwinner,sun50i-h6-pwm
+
+    then:
+      properties:
+        clocks:
+          maxItems: 2
+
+        clock-names:
+          items:
+            - const: mod
+            - const: bus
+
+      required:
+        - clock-names
+        - resets
+
+    else:
+      properties:
+        clocks:
+          maxItems: 1
 
 required:
-  - "#pwm-cells"
   - compatible
   - reg
   - clocks
-- 
2.32.0


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

* [PATCH 02/15] dt-bindings: pwm: imx: include generic pwm schema
  2022-02-14  8:15 [PATCH 01/15] dt-bindings: pwm: allwinner,sun4i-a10: include generic pwm schema Krzysztof Kozlowski
@ 2022-02-14  8:15 ` Krzysztof Kozlowski
  2022-02-14  8:15 ` [PATCH 03/15] dt-bindings: pwm: intel,lgm: " Krzysztof Kozlowski
                   ` (13 subsequent siblings)
  14 siblings, 0 replies; 23+ messages in thread
From: Krzysztof Kozlowski @ 2022-02-14  8:15 UTC (permalink / raw)
  To: Thierry Reding, Uwe Kleine-König, Lee Jones, Rob Herring,
	Krzysztof Kozlowski, Maxime Ripard, Chen-Yu Tsai, Jernej Skrabec,
	Florian Fainelli, bcm-kernel-feedback-list, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	NXP Linux Team, Heiko Stuebner, Palmer Dabbelt, Paul Walmsley,
	Nobuhiro Iwamatsu, Philipp Zabel, Anson Huang,
	Vijayakannan Ayyathurai, Rahul Tanwar, Jeff LaBundy, Yash Shah,
	Sagar Kadam, Vignesh R, Yoshihiro Shimoda, Laurent Pinchart,
	linux-pwm, devicetree, linux-arm-kernel, linux-sunxi,
	linux-kernel, linux-rockchip, linux-riscv

Include generic pwm.yaml schema, which enforces PWM node naming and
brings pwm-cells requirement.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
---
 Documentation/devicetree/bindings/pwm/imx-pwm.yaml     | 4 +++-
 Documentation/devicetree/bindings/pwm/imx-tpm-pwm.yaml | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/pwm/imx-pwm.yaml b/Documentation/devicetree/bindings/pwm/imx-pwm.yaml
index 379d693889f6..b3da4e629341 100644
--- a/Documentation/devicetree/bindings/pwm/imx-pwm.yaml
+++ b/Documentation/devicetree/bindings/pwm/imx-pwm.yaml
@@ -9,6 +9,9 @@ title: Freescale i.MX PWM controller
 maintainers:
   - Philipp Zabel <p.zabel@pengutronix.de>
 
+allOf:
+  - $ref: pwm.yaml#
+
 properties:
   "#pwm-cells":
     description: |
@@ -59,7 +62,6 @@ properties:
     maxItems: 1
 
 required:
-  - "#pwm-cells"
   - compatible
   - reg
   - clocks
diff --git a/Documentation/devicetree/bindings/pwm/imx-tpm-pwm.yaml b/Documentation/devicetree/bindings/pwm/imx-tpm-pwm.yaml
index fe9ef42544f1..8bef9dfeba9a 100644
--- a/Documentation/devicetree/bindings/pwm/imx-tpm-pwm.yaml
+++ b/Documentation/devicetree/bindings/pwm/imx-tpm-pwm.yaml
@@ -13,6 +13,9 @@ description: |
   The TPM counter and period counter are shared between multiple
   channels, so all channels should use same period setting.
 
+allOf:
+  - $ref: pwm.yaml#
+
 properties:
   "#pwm-cells":
     const: 3
@@ -34,7 +37,6 @@ properties:
     maxItems: 1
 
 required:
-  - "#pwm-cells"
   - compatible
   - reg
   - clocks
-- 
2.32.0


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

* [PATCH 03/15] dt-bindings: pwm: intel,lgm: include generic pwm schema
  2022-02-14  8:15 [PATCH 01/15] dt-bindings: pwm: allwinner,sun4i-a10: include generic pwm schema Krzysztof Kozlowski
  2022-02-14  8:15 ` [PATCH 02/15] dt-bindings: pwm: imx: " Krzysztof Kozlowski
@ 2022-02-14  8:15 ` Krzysztof Kozlowski
  2022-02-14  8:15 ` [PATCH 04/15] dt-bindings: pwm: iqs620a: " Krzysztof Kozlowski
                   ` (12 subsequent siblings)
  14 siblings, 0 replies; 23+ messages in thread
From: Krzysztof Kozlowski @ 2022-02-14  8:15 UTC (permalink / raw)
  To: Thierry Reding, Uwe Kleine-König, Lee Jones, Rob Herring,
	Krzysztof Kozlowski, Maxime Ripard, Chen-Yu Tsai, Jernej Skrabec,
	Florian Fainelli, bcm-kernel-feedback-list, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	NXP Linux Team, Heiko Stuebner, Palmer Dabbelt, Paul Walmsley,
	Nobuhiro Iwamatsu, Philipp Zabel, Anson Huang,
	Vijayakannan Ayyathurai, Rahul Tanwar, Jeff LaBundy, Yash Shah,
	Sagar Kadam, Vignesh R, Yoshihiro Shimoda, Laurent Pinchart,
	linux-pwm, devicetree, linux-arm-kernel, linux-sunxi,
	linux-kernel, linux-rockchip, linux-riscv

Include generic pwm.yaml schema, which enforces PWM node naming and
brings pwm-cells requirement.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
---
 Documentation/devicetree/bindings/pwm/intel,lgm-pwm.yaml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Documentation/devicetree/bindings/pwm/intel,lgm-pwm.yaml b/Documentation/devicetree/bindings/pwm/intel,lgm-pwm.yaml
index 11a606536169..59d7c4d864c1 100644
--- a/Documentation/devicetree/bindings/pwm/intel,lgm-pwm.yaml
+++ b/Documentation/devicetree/bindings/pwm/intel,lgm-pwm.yaml
@@ -9,6 +9,9 @@ title: LGM SoC PWM fan controller
 maintainers:
   - Rahul Tanwar <rtanwar@maxlinear.com>
 
+allOf:
+  - $ref: pwm.yaml#
+
 properties:
   compatible:
     const: intel,lgm-pwm
-- 
2.32.0


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

* [PATCH 04/15] dt-bindings: pwm: iqs620a: include generic pwm schema
  2022-02-14  8:15 [PATCH 01/15] dt-bindings: pwm: allwinner,sun4i-a10: include generic pwm schema Krzysztof Kozlowski
  2022-02-14  8:15 ` [PATCH 02/15] dt-bindings: pwm: imx: " Krzysztof Kozlowski
  2022-02-14  8:15 ` [PATCH 03/15] dt-bindings: pwm: intel,lgm: " Krzysztof Kozlowski
@ 2022-02-14  8:15 ` Krzysztof Kozlowski
  2022-02-14  8:15 ` [PATCH 05/15] dt-bindings: pwm: mxs: " Krzysztof Kozlowski
                   ` (11 subsequent siblings)
  14 siblings, 0 replies; 23+ messages in thread
From: Krzysztof Kozlowski @ 2022-02-14  8:15 UTC (permalink / raw)
  To: Thierry Reding, Uwe Kleine-König, Lee Jones, Rob Herring,
	Krzysztof Kozlowski, Maxime Ripard, Chen-Yu Tsai, Jernej Skrabec,
	Florian Fainelli, bcm-kernel-feedback-list, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	NXP Linux Team, Heiko Stuebner, Palmer Dabbelt, Paul Walmsley,
	Nobuhiro Iwamatsu, Philipp Zabel, Anson Huang,
	Vijayakannan Ayyathurai, Rahul Tanwar, Jeff LaBundy, Yash Shah,
	Sagar Kadam, Vignesh R, Yoshihiro Shimoda, Laurent Pinchart,
	linux-pwm, devicetree, linux-arm-kernel, linux-sunxi,
	linux-kernel, linux-rockchip, linux-riscv

Include generic pwm.yaml schema, which enforces PWM node naming and
brings pwm-cells requirement.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
---
 Documentation/devicetree/bindings/pwm/iqs620a-pwm.yaml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/pwm/iqs620a-pwm.yaml b/Documentation/devicetree/bindings/pwm/iqs620a-pwm.yaml
index 1d7c27be50da..0a46af240d83 100644
--- a/Documentation/devicetree/bindings/pwm/iqs620a-pwm.yaml
+++ b/Documentation/devicetree/bindings/pwm/iqs620a-pwm.yaml
@@ -15,6 +15,9 @@ description: |
   Documentation/devicetree/bindings/mfd/iqs62x.yaml for further details as
   well as an example.
 
+allOf:
+  - $ref: pwm.yaml#
+
 properties:
   compatible:
     enum:
@@ -25,7 +28,6 @@ properties:
 
 required:
   - compatible
-  - "#pwm-cells"
 
 additionalProperties: false
 
-- 
2.32.0


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

* [PATCH 05/15] dt-bindings: pwm: mxs: include generic pwm schema
  2022-02-14  8:15 [PATCH 01/15] dt-bindings: pwm: allwinner,sun4i-a10: include generic pwm schema Krzysztof Kozlowski
                   ` (2 preceding siblings ...)
  2022-02-14  8:15 ` [PATCH 04/15] dt-bindings: pwm: iqs620a: " Krzysztof Kozlowski
@ 2022-02-14  8:15 ` Krzysztof Kozlowski
  2022-02-14  8:15 ` [PATCH 06/15] dt-bindings: pwm: rockchip: " Krzysztof Kozlowski
                   ` (10 subsequent siblings)
  14 siblings, 0 replies; 23+ messages in thread
From: Krzysztof Kozlowski @ 2022-02-14  8:15 UTC (permalink / raw)
  To: Thierry Reding, Uwe Kleine-König, Lee Jones, Rob Herring,
	Krzysztof Kozlowski, Maxime Ripard, Chen-Yu Tsai, Jernej Skrabec,
	Florian Fainelli, bcm-kernel-feedback-list, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	NXP Linux Team, Heiko Stuebner, Palmer Dabbelt, Paul Walmsley,
	Nobuhiro Iwamatsu, Philipp Zabel, Anson Huang,
	Vijayakannan Ayyathurai, Rahul Tanwar, Jeff LaBundy, Yash Shah,
	Sagar Kadam, Vignesh R, Yoshihiro Shimoda, Laurent Pinchart,
	linux-pwm, devicetree, linux-arm-kernel, linux-sunxi,
	linux-kernel, linux-rockchip, linux-riscv

Include generic pwm.yaml schema, which enforces PWM node naming and
brings pwm-cells requirement.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
---
 Documentation/devicetree/bindings/pwm/mxs-pwm.yaml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/pwm/mxs-pwm.yaml b/Documentation/devicetree/bindings/pwm/mxs-pwm.yaml
index 8740e076061e..a34cbc13f691 100644
--- a/Documentation/devicetree/bindings/pwm/mxs-pwm.yaml
+++ b/Documentation/devicetree/bindings/pwm/mxs-pwm.yaml
@@ -10,6 +10,9 @@ maintainers:
   - Shawn Guo <shawnguo@kernel.org>
   - Anson Huang <anson.huang@nxp.com>
 
+allOf:
+  - $ref: pwm.yaml#
+
 properties:
   compatible:
     enum:
@@ -28,7 +31,6 @@ properties:
 required:
   - compatible
   - reg
-  - "#pwm-cells"
   - fsl,pwm-number
 
 additionalProperties: false
-- 
2.32.0


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

* [PATCH 06/15] dt-bindings: pwm: rockchip: include generic pwm schema
  2022-02-14  8:15 [PATCH 01/15] dt-bindings: pwm: allwinner,sun4i-a10: include generic pwm schema Krzysztof Kozlowski
                   ` (3 preceding siblings ...)
  2022-02-14  8:15 ` [PATCH 05/15] dt-bindings: pwm: mxs: " Krzysztof Kozlowski
@ 2022-02-14  8:15 ` Krzysztof Kozlowski
  2022-02-14 10:58   ` Heiko Stübner
  2022-02-14  8:15 ` [PATCH 07/15] dt-bindings: pwm: sifive: " Krzysztof Kozlowski
                   ` (9 subsequent siblings)
  14 siblings, 1 reply; 23+ messages in thread
From: Krzysztof Kozlowski @ 2022-02-14  8:15 UTC (permalink / raw)
  To: Thierry Reding, Uwe Kleine-König, Lee Jones, Rob Herring,
	Krzysztof Kozlowski, Maxime Ripard, Chen-Yu Tsai, Jernej Skrabec,
	Florian Fainelli, bcm-kernel-feedback-list, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	NXP Linux Team, Heiko Stuebner, Palmer Dabbelt, Paul Walmsley,
	Nobuhiro Iwamatsu, Philipp Zabel, Anson Huang,
	Vijayakannan Ayyathurai, Rahul Tanwar, Jeff LaBundy, Yash Shah,
	Sagar Kadam, Vignesh R, Yoshihiro Shimoda, Laurent Pinchart,
	linux-pwm, devicetree, linux-arm-kernel, linux-sunxi,
	linux-kernel, linux-rockchip, linux-riscv

Include generic pwm.yaml schema, which enforces PWM node naming and
brings pwm-cells requirement.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
---
 .../devicetree/bindings/pwm/pwm-rockchip.yaml | 74 ++++++++++---------
 1 file changed, 38 insertions(+), 36 deletions(-)

diff --git a/Documentation/devicetree/bindings/pwm/pwm-rockchip.yaml b/Documentation/devicetree/bindings/pwm/pwm-rockchip.yaml
index 81a54a4e8e3e..a336ff9364a9 100644
--- a/Documentation/devicetree/bindings/pwm/pwm-rockchip.yaml
+++ b/Documentation/devicetree/bindings/pwm/pwm-rockchip.yaml
@@ -51,42 +51,44 @@ properties:
 required:
   - compatible
   - reg
-  - "#pwm-cells"
-
-if:
-  properties:
-    compatible:
-      contains:
-        enum:
-          - rockchip,rk3328-pwm
-          - rockchip,rv1108-pwm
-
-then:
-  properties:
-    clocks:
-      items:
-        - description: Used to derive the functional clock for the device.
-        - description: Used as the APB bus clock.
-
-    clock-names:
-      items:
-        - const: pwm
-        - const: pclk
-
-  required:
-    - clocks
-    - clock-names
-
-else:
-  properties:
-    clocks:
-      maxItems: 1
-      description:
-        Used both to derive the functional clock
-        for the device and as the bus clock.
-
-  required:
-    - clocks
+
+allOf:
+  - $ref: pwm.yaml#
+
+  - if:
+      properties:
+        compatible:
+          contains:
+            enum:
+              - rockchip,rk3328-pwm
+              - rockchip,rv1108-pwm
+
+    then:
+      properties:
+        clocks:
+          items:
+            - description: Used to derive the functional clock for the device.
+            - description: Used as the APB bus clock.
+
+        clock-names:
+          items:
+            - const: pwm
+            - const: pclk
+
+      required:
+        - clocks
+        - clock-names
+
+    else:
+      properties:
+        clocks:
+          maxItems: 1
+          description:
+            Used both to derive the functional clock
+            for the device and as the bus clock.
+
+      required:
+        - clocks
 
 additionalProperties: false
 
-- 
2.32.0


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

* [PATCH 07/15] dt-bindings: pwm: sifive: include generic pwm schema
  2022-02-14  8:15 [PATCH 01/15] dt-bindings: pwm: allwinner,sun4i-a10: include generic pwm schema Krzysztof Kozlowski
                   ` (4 preceding siblings ...)
  2022-02-14  8:15 ` [PATCH 06/15] dt-bindings: pwm: rockchip: " Krzysztof Kozlowski
@ 2022-02-14  8:15 ` Krzysztof Kozlowski
  2022-03-11  3:14   ` Palmer Dabbelt
  2022-02-14  8:15 ` [PATCH 08/15] dt-bindings: pwm: renesas,pwm: " Krzysztof Kozlowski
                   ` (8 subsequent siblings)
  14 siblings, 1 reply; 23+ messages in thread
From: Krzysztof Kozlowski @ 2022-02-14  8:15 UTC (permalink / raw)
  To: Thierry Reding, Uwe Kleine-König, Lee Jones, Rob Herring,
	Krzysztof Kozlowski, Maxime Ripard, Chen-Yu Tsai, Jernej Skrabec,
	Florian Fainelli, bcm-kernel-feedback-list, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	NXP Linux Team, Heiko Stuebner, Palmer Dabbelt, Paul Walmsley,
	Nobuhiro Iwamatsu, Philipp Zabel, Anson Huang,
	Vijayakannan Ayyathurai, Rahul Tanwar, Jeff LaBundy, Yash Shah,
	Sagar Kadam, Vignesh R, Yoshihiro Shimoda, Laurent Pinchart,
	linux-pwm, devicetree, linux-arm-kernel, linux-sunxi,
	linux-kernel, linux-rockchip, linux-riscv

Include generic pwm.yaml schema, which enforces PWM node naming and
brings pwm-cells requirement.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
---
 Documentation/devicetree/bindings/pwm/pwm-sifive.yaml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/pwm/pwm-sifive.yaml b/Documentation/devicetree/bindings/pwm/pwm-sifive.yaml
index 84e66913d042..676b2160bada 100644
--- a/Documentation/devicetree/bindings/pwm/pwm-sifive.yaml
+++ b/Documentation/devicetree/bindings/pwm/pwm-sifive.yaml
@@ -22,6 +22,9 @@ description:
 
   https://github.com/sifive/sifive-blocks/tree/master/src/main/scala/devices/pwm
 
+allOf:
+  - $ref: pwm.yaml#
+
 properties:
   compatible:
     items:
@@ -55,7 +58,6 @@ required:
   - compatible
   - reg
   - clocks
-  - "#pwm-cells"
   - interrupts
 
 additionalProperties: false
-- 
2.32.0


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

* [PATCH 08/15] dt-bindings: pwm: renesas,pwm: include generic pwm schema
  2022-02-14  8:15 [PATCH 01/15] dt-bindings: pwm: allwinner,sun4i-a10: include generic pwm schema Krzysztof Kozlowski
                   ` (5 preceding siblings ...)
  2022-02-14  8:15 ` [PATCH 07/15] dt-bindings: pwm: sifive: " Krzysztof Kozlowski
@ 2022-02-14  8:15 ` Krzysztof Kozlowski
  2022-02-14  8:15 ` [PATCH 09/15] dt-bindings: pwm: toshiba,visconti: " Krzysztof Kozlowski
                   ` (7 subsequent siblings)
  14 siblings, 0 replies; 23+ messages in thread
From: Krzysztof Kozlowski @ 2022-02-14  8:15 UTC (permalink / raw)
  To: Thierry Reding, Uwe Kleine-König, Lee Jones, Rob Herring,
	Krzysztof Kozlowski, Maxime Ripard, Chen-Yu Tsai, Jernej Skrabec,
	Florian Fainelli, bcm-kernel-feedback-list, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	NXP Linux Team, Heiko Stuebner, Palmer Dabbelt, Paul Walmsley,
	Nobuhiro Iwamatsu, Philipp Zabel, Anson Huang,
	Vijayakannan Ayyathurai, Rahul Tanwar, Jeff LaBundy, Yash Shah,
	Sagar Kadam, Vignesh R, Yoshihiro Shimoda, Laurent Pinchart,
	linux-pwm, devicetree, linux-arm-kernel, linux-sunxi,
	linux-kernel, linux-rockchip, linux-riscv

Include generic pwm.yaml schema, which enforces PWM node naming and
brings pwm-cells requirement.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
---
 .../bindings/pwm/renesas,pwm-rcar.yaml        | 26 ++++++++++---------
 1 file changed, 14 insertions(+), 12 deletions(-)

diff --git a/Documentation/devicetree/bindings/pwm/renesas,pwm-rcar.yaml b/Documentation/devicetree/bindings/pwm/renesas,pwm-rcar.yaml
index 7ea1070b4b3a..1c94acbc2b4a 100644
--- a/Documentation/devicetree/bindings/pwm/renesas,pwm-rcar.yaml
+++ b/Documentation/devicetree/bindings/pwm/renesas,pwm-rcar.yaml
@@ -59,21 +59,23 @@ properties:
 required:
   - compatible
   - reg
-  - '#pwm-cells'
   - clocks
   - power-domains
 
-if:
-  not:
-    properties:
-      compatible:
-        contains:
-          enum:
-            - renesas,pwm-r8a7778
-            - renesas,pwm-r8a7779
-then:
-  required:
-    - resets
+allOf:
+  - $ref: pwm.yaml#
+
+  - if:
+      not:
+        properties:
+          compatible:
+            contains:
+              enum:
+                - renesas,pwm-r8a7778
+                - renesas,pwm-r8a7779
+    then:
+      required:
+        - resets
 
 additionalProperties: false
 
-- 
2.32.0


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

* [PATCH 09/15] dt-bindings: pwm: toshiba,visconti: include generic pwm schema
  2022-02-14  8:15 [PATCH 01/15] dt-bindings: pwm: allwinner,sun4i-a10: include generic pwm schema Krzysztof Kozlowski
                   ` (6 preceding siblings ...)
  2022-02-14  8:15 ` [PATCH 08/15] dt-bindings: pwm: renesas,pwm: " Krzysztof Kozlowski
@ 2022-02-14  8:15 ` Krzysztof Kozlowski
  2022-02-14 12:42   ` nobuhiro1.iwamatsu
  2022-02-14  8:16 ` [PATCH 10/15] dt-bindings: pwm: brcm,bcm7038: do not require pwm-cells Krzysztof Kozlowski
                   ` (6 subsequent siblings)
  14 siblings, 1 reply; 23+ messages in thread
From: Krzysztof Kozlowski @ 2022-02-14  8:15 UTC (permalink / raw)
  To: Thierry Reding, Uwe Kleine-König, Lee Jones, Rob Herring,
	Krzysztof Kozlowski, Maxime Ripard, Chen-Yu Tsai, Jernej Skrabec,
	Florian Fainelli, bcm-kernel-feedback-list, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	NXP Linux Team, Heiko Stuebner, Palmer Dabbelt, Paul Walmsley,
	Nobuhiro Iwamatsu, Philipp Zabel, Anson Huang,
	Vijayakannan Ayyathurai, Rahul Tanwar, Jeff LaBundy, Yash Shah,
	Sagar Kadam, Vignesh R, Yoshihiro Shimoda, Laurent Pinchart,
	linux-pwm, devicetree, linux-arm-kernel, linux-sunxi,
	linux-kernel, linux-rockchip, linux-riscv

Include generic pwm.yaml schema, which enforces PWM node naming and
brings pwm-cells requirement.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
---
 .../devicetree/bindings/pwm/toshiba,pwm-visconti.yaml         | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/pwm/toshiba,pwm-visconti.yaml b/Documentation/devicetree/bindings/pwm/toshiba,pwm-visconti.yaml
index d350f5edfb67..46622661e5fb 100644
--- a/Documentation/devicetree/bindings/pwm/toshiba,pwm-visconti.yaml
+++ b/Documentation/devicetree/bindings/pwm/toshiba,pwm-visconti.yaml
@@ -9,6 +9,9 @@ title: Toshiba Visconti PWM Controller
 maintainers:
   - Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
 
+allOf:
+  - $ref: pwm.yaml#
+
 properties:
   compatible:
     items:
@@ -23,7 +26,6 @@ properties:
 required:
   - compatible
   - reg
-  - '#pwm-cells'
 
 additionalProperties: false
 
-- 
2.32.0


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

* [PATCH 10/15] dt-bindings: pwm: brcm,bcm7038: do not require pwm-cells
  2022-02-14  8:15 [PATCH 01/15] dt-bindings: pwm: allwinner,sun4i-a10: include generic pwm schema Krzysztof Kozlowski
                   ` (7 preceding siblings ...)
  2022-02-14  8:15 ` [PATCH 09/15] dt-bindings: pwm: toshiba,visconti: " Krzysztof Kozlowski
@ 2022-02-14  8:16 ` Krzysztof Kozlowski
  2022-02-14 17:19   ` Florian Fainelli
  2022-02-14  8:16 ` [PATCH 11/15] dt-bindings: pwm: intel,keembay: " Krzysztof Kozlowski
                   ` (5 subsequent siblings)
  14 siblings, 1 reply; 23+ messages in thread
From: Krzysztof Kozlowski @ 2022-02-14  8:16 UTC (permalink / raw)
  To: Thierry Reding, Uwe Kleine-König, Lee Jones, Rob Herring,
	Krzysztof Kozlowski, Maxime Ripard, Chen-Yu Tsai, Jernej Skrabec,
	Florian Fainelli, bcm-kernel-feedback-list, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	NXP Linux Team, Heiko Stuebner, Palmer Dabbelt, Paul Walmsley,
	Nobuhiro Iwamatsu, Philipp Zabel, Anson Huang,
	Vijayakannan Ayyathurai, Rahul Tanwar, Jeff LaBundy, Yash Shah,
	Sagar Kadam, Vignesh R, Yoshihiro Shimoda, Laurent Pinchart,
	linux-pwm, devicetree, linux-arm-kernel, linux-sunxi,
	linux-kernel, linux-rockchip, linux-riscv

pwm-cells are already required by pwm.yaml schema.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
---
 Documentation/devicetree/bindings/pwm/brcm,bcm7038-pwm.yaml | 1 -
 1 file changed, 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/pwm/brcm,bcm7038-pwm.yaml b/Documentation/devicetree/bindings/pwm/brcm,bcm7038-pwm.yaml
index 4080e098f746..119de3d7f9dd 100644
--- a/Documentation/devicetree/bindings/pwm/brcm,bcm7038-pwm.yaml
+++ b/Documentation/devicetree/bindings/pwm/brcm,bcm7038-pwm.yaml
@@ -28,7 +28,6 @@ properties:
 required:
   - compatible
   - reg
-  - "#pwm-cells"
   - clocks
 
 additionalProperties: false
-- 
2.32.0


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

* [PATCH 11/15] dt-bindings: pwm: intel,keembay: do not require pwm-cells
  2022-02-14  8:15 [PATCH 01/15] dt-bindings: pwm: allwinner,sun4i-a10: include generic pwm schema Krzysztof Kozlowski
                   ` (8 preceding siblings ...)
  2022-02-14  8:16 ` [PATCH 10/15] dt-bindings: pwm: brcm,bcm7038: do not require pwm-cells Krzysztof Kozlowski
@ 2022-02-14  8:16 ` Krzysztof Kozlowski
  2022-02-14 17:54   ` Ayyathurai, Vijayakannan
  2022-02-14 18:28   ` [PATCH 11/15] dt-bindings: pwm: intel, keembay: " Uwe Kleine-König
  2022-02-14  8:16 ` [PATCH 12/15] dt-bindings: pwm: samsung: " Krzysztof Kozlowski
                   ` (4 subsequent siblings)
  14 siblings, 2 replies; 23+ messages in thread
From: Krzysztof Kozlowski @ 2022-02-14  8:16 UTC (permalink / raw)
  To: Thierry Reding, Uwe Kleine-König, Lee Jones, Rob Herring,
	Krzysztof Kozlowski, Maxime Ripard, Chen-Yu Tsai, Jernej Skrabec,
	Florian Fainelli, bcm-kernel-feedback-list, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	NXP Linux Team, Heiko Stuebner, Palmer Dabbelt, Paul Walmsley,
	Nobuhiro Iwamatsu, Philipp Zabel, Anson Huang,
	Vijayakannan Ayyathurai, Rahul Tanwar, Jeff LaBundy, Yash Shah,
	Sagar Kadam, Vignesh R, Yoshihiro Shimoda, Laurent Pinchart,
	linux-pwm, devicetree, linux-arm-kernel, linux-sunxi,
	linux-kernel, linux-rockchip, linux-riscv

pwm-cells are already required by pwm.yaml schema.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
---
 Documentation/devicetree/bindings/pwm/intel,keembay-pwm.yaml | 1 -
 1 file changed, 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/pwm/intel,keembay-pwm.yaml b/Documentation/devicetree/bindings/pwm/intel,keembay-pwm.yaml
index ff6880a02ce6..ec9f6bab798c 100644
--- a/Documentation/devicetree/bindings/pwm/intel,keembay-pwm.yaml
+++ b/Documentation/devicetree/bindings/pwm/intel,keembay-pwm.yaml
@@ -31,7 +31,6 @@ required:
   - compatible
   - reg
   - clocks
-  - '#pwm-cells'
 
 additionalProperties: false
 
-- 
2.32.0


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

* [PATCH 12/15] dt-bindings: pwm: samsung: do not require pwm-cells
  2022-02-14  8:15 [PATCH 01/15] dt-bindings: pwm: allwinner,sun4i-a10: include generic pwm schema Krzysztof Kozlowski
                   ` (9 preceding siblings ...)
  2022-02-14  8:16 ` [PATCH 11/15] dt-bindings: pwm: intel,keembay: " Krzysztof Kozlowski
@ 2022-02-14  8:16 ` Krzysztof Kozlowski
  2022-02-14  8:16 ` [PATCH 13/15] dt-bindings: pwm: tiecap: " Krzysztof Kozlowski
                   ` (3 subsequent siblings)
  14 siblings, 0 replies; 23+ messages in thread
From: Krzysztof Kozlowski @ 2022-02-14  8:16 UTC (permalink / raw)
  To: Thierry Reding, Uwe Kleine-König, Lee Jones, Rob Herring,
	Krzysztof Kozlowski, Maxime Ripard, Chen-Yu Tsai, Jernej Skrabec,
	Florian Fainelli, bcm-kernel-feedback-list, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	NXP Linux Team, Heiko Stuebner, Palmer Dabbelt, Paul Walmsley,
	Nobuhiro Iwamatsu, Philipp Zabel, Anson Huang,
	Vijayakannan Ayyathurai, Rahul Tanwar, Jeff LaBundy, Yash Shah,
	Sagar Kadam, Vignesh R, Yoshihiro Shimoda, Laurent Pinchart,
	linux-pwm, devicetree, linux-arm-kernel, linux-sunxi,
	linux-kernel, linux-rockchip, linux-riscv

pwm-cells are already required by pwm.yaml schema.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
---
 Documentation/devicetree/bindings/pwm/pwm-samsung.yaml | 1 -
 1 file changed, 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/pwm/pwm-samsung.yaml b/Documentation/devicetree/bindings/pwm/pwm-samsung.yaml
index 188679cb8b8c..fe603fb1b2cc 100644
--- a/Documentation/devicetree/bindings/pwm/pwm-samsung.yaml
+++ b/Documentation/devicetree/bindings/pwm/pwm-samsung.yaml
@@ -86,7 +86,6 @@ required:
   - clocks
   - clock-names
   - compatible
-  - "#pwm-cells"
   - reg
 
 additionalProperties: false
-- 
2.32.0


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

* [PATCH 13/15] dt-bindings: pwm: tiecap: do not require pwm-cells
  2022-02-14  8:15 [PATCH 01/15] dt-bindings: pwm: allwinner,sun4i-a10: include generic pwm schema Krzysztof Kozlowski
                   ` (10 preceding siblings ...)
  2022-02-14  8:16 ` [PATCH 12/15] dt-bindings: pwm: samsung: " Krzysztof Kozlowski
@ 2022-02-14  8:16 ` Krzysztof Kozlowski
  2022-02-14  8:16 ` [PATCH 14/15] dt-bindings: pwm: tiehrpwm: " Krzysztof Kozlowski
                   ` (2 subsequent siblings)
  14 siblings, 0 replies; 23+ messages in thread
From: Krzysztof Kozlowski @ 2022-02-14  8:16 UTC (permalink / raw)
  To: Thierry Reding, Uwe Kleine-König, Lee Jones, Rob Herring,
	Krzysztof Kozlowski, Maxime Ripard, Chen-Yu Tsai, Jernej Skrabec,
	Florian Fainelli, bcm-kernel-feedback-list, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	NXP Linux Team, Heiko Stuebner, Palmer Dabbelt, Paul Walmsley,
	Nobuhiro Iwamatsu, Philipp Zabel, Anson Huang,
	Vijayakannan Ayyathurai, Rahul Tanwar, Jeff LaBundy, Yash Shah,
	Sagar Kadam, Vignesh R, Yoshihiro Shimoda, Laurent Pinchart,
	linux-pwm, devicetree, linux-arm-kernel, linux-sunxi,
	linux-kernel, linux-rockchip, linux-riscv

pwm-cells are already required by pwm.yaml schema.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
---
 Documentation/devicetree/bindings/pwm/pwm-tiecap.yaml | 1 -
 1 file changed, 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/pwm/pwm-tiecap.yaml b/Documentation/devicetree/bindings/pwm/pwm-tiecap.yaml
index ed35b6cc48d5..3840ae709bc6 100644
--- a/Documentation/devicetree/bindings/pwm/pwm-tiecap.yaml
+++ b/Documentation/devicetree/bindings/pwm/pwm-tiecap.yaml
@@ -47,7 +47,6 @@ properties:
 required:
   - compatible
   - reg
-  - "#pwm-cells"
   - clocks
   - clock-names
 
-- 
2.32.0


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

* [PATCH 14/15] dt-bindings: pwm: tiehrpwm: do not require pwm-cells
  2022-02-14  8:15 [PATCH 01/15] dt-bindings: pwm: allwinner,sun4i-a10: include generic pwm schema Krzysztof Kozlowski
                   ` (11 preceding siblings ...)
  2022-02-14  8:16 ` [PATCH 13/15] dt-bindings: pwm: tiecap: " Krzysztof Kozlowski
@ 2022-02-14  8:16 ` Krzysztof Kozlowski
  2022-02-14  8:16 ` [PATCH 15/15] dt-bindings: pwm: renesas,tpu: " Krzysztof Kozlowski
  2022-02-14 17:13 ` [PATCH 01/15] dt-bindings: pwm: allwinner,sun4i-a10: include generic pwm schema Jernej Škrabec
  14 siblings, 0 replies; 23+ messages in thread
From: Krzysztof Kozlowski @ 2022-02-14  8:16 UTC (permalink / raw)
  To: Thierry Reding, Uwe Kleine-König, Lee Jones, Rob Herring,
	Krzysztof Kozlowski, Maxime Ripard, Chen-Yu Tsai, Jernej Skrabec,
	Florian Fainelli, bcm-kernel-feedback-list, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	NXP Linux Team, Heiko Stuebner, Palmer Dabbelt, Paul Walmsley,
	Nobuhiro Iwamatsu, Philipp Zabel, Anson Huang,
	Vijayakannan Ayyathurai, Rahul Tanwar, Jeff LaBundy, Yash Shah,
	Sagar Kadam, Vignesh R, Yoshihiro Shimoda, Laurent Pinchart,
	linux-pwm, devicetree, linux-arm-kernel, linux-sunxi,
	linux-kernel, linux-rockchip, linux-riscv

pwm-cells are already required by pwm.yaml schema.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
---
 Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.yaml | 1 -
 1 file changed, 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.yaml b/Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.yaml
index ee312cb210e6..70a8f766212e 100644
--- a/Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.yaml
+++ b/Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.yaml
@@ -48,7 +48,6 @@ properties:
 required:
   - compatible
   - reg
-  - "#pwm-cells"
   - clocks
   - clock-names
 
-- 
2.32.0


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

* [PATCH 15/15] dt-bindings: pwm: renesas,tpu: do not require pwm-cells
  2022-02-14  8:15 [PATCH 01/15] dt-bindings: pwm: allwinner,sun4i-a10: include generic pwm schema Krzysztof Kozlowski
                   ` (12 preceding siblings ...)
  2022-02-14  8:16 ` [PATCH 14/15] dt-bindings: pwm: tiehrpwm: " Krzysztof Kozlowski
@ 2022-02-14  8:16 ` Krzysztof Kozlowski
  2022-02-14 17:13 ` [PATCH 01/15] dt-bindings: pwm: allwinner,sun4i-a10: include generic pwm schema Jernej Škrabec
  14 siblings, 0 replies; 23+ messages in thread
From: Krzysztof Kozlowski @ 2022-02-14  8:16 UTC (permalink / raw)
  To: Thierry Reding, Uwe Kleine-König, Lee Jones, Rob Herring,
	Krzysztof Kozlowski, Maxime Ripard, Chen-Yu Tsai, Jernej Skrabec,
	Florian Fainelli, bcm-kernel-feedback-list, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	NXP Linux Team, Heiko Stuebner, Palmer Dabbelt, Paul Walmsley,
	Nobuhiro Iwamatsu, Philipp Zabel, Anson Huang,
	Vijayakannan Ayyathurai, Rahul Tanwar, Jeff LaBundy, Yash Shah,
	Sagar Kadam, Vignesh R, Yoshihiro Shimoda, Laurent Pinchart,
	linux-pwm, devicetree, linux-arm-kernel, linux-sunxi,
	linux-kernel, linux-rockchip, linux-riscv

pwm-cells are already required by pwm.yaml schema.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
---
 Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.yaml | 1 -
 1 file changed, 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.yaml b/Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.yaml
index 1f5c6384182e..c6b2ab56b7fe 100644
--- a/Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.yaml
+++ b/Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.yaml
@@ -68,7 +68,6 @@ properties:
 required:
   - compatible
   - reg
-  - '#pwm-cells'
   - clocks
   - power-domains
 
-- 
2.32.0


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

* Re: [PATCH 06/15] dt-bindings: pwm: rockchip: include generic pwm schema
  2022-02-14  8:15 ` [PATCH 06/15] dt-bindings: pwm: rockchip: " Krzysztof Kozlowski
@ 2022-02-14 10:58   ` Heiko Stübner
  0 siblings, 0 replies; 23+ messages in thread
From: Heiko Stübner @ 2022-02-14 10:58 UTC (permalink / raw)
  To: Thierry Reding, Uwe Kleine-König, Lee Jones, Rob Herring,
	Krzysztof Kozlowski, Maxime Ripard, Chen-Yu Tsai, Jernej Skrabec,
	Florian Fainelli, bcm-kernel-feedback-list, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	NXP Linux Team, Palmer Dabbelt, Paul Walmsley, Nobuhiro Iwamatsu,
	Philipp Zabel, Anson Huang, Vijayakannan Ayyathurai,
	Rahul Tanwar, Jeff LaBundy, Yash Shah, Sagar Kadam, Vignesh R,
	Yoshihiro Shimoda, Laurent Pinchart, linux-pwm, devicetree,
	linux-arm-kernel, linux-sunxi, linux-kernel, linux-rockchip,
	linux-riscv, Krzysztof Kozlowski

Am Montag, 14. Februar 2022, 09:15:56 CET schrieb Krzysztof Kozlowski:
> Include generic pwm.yaml schema, which enforces PWM node naming and
> brings pwm-cells requirement.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>

Reviewed-by: Heiko Stuebner <heiko@sntech.de>

> ---
>  .../devicetree/bindings/pwm/pwm-rockchip.yaml | 74 ++++++++++---------
>  1 file changed, 38 insertions(+), 36 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/pwm/pwm-rockchip.yaml b/Documentation/devicetree/bindings/pwm/pwm-rockchip.yaml
> index 81a54a4e8e3e..a336ff9364a9 100644
> --- a/Documentation/devicetree/bindings/pwm/pwm-rockchip.yaml
> +++ b/Documentation/devicetree/bindings/pwm/pwm-rockchip.yaml
> @@ -51,42 +51,44 @@ properties:
>  required:
>    - compatible
>    - reg
> -  - "#pwm-cells"
> -
> -if:
> -  properties:
> -    compatible:
> -      contains:
> -        enum:
> -          - rockchip,rk3328-pwm
> -          - rockchip,rv1108-pwm
> -
> -then:
> -  properties:
> -    clocks:
> -      items:
> -        - description: Used to derive the functional clock for the device.
> -        - description: Used as the APB bus clock.
> -
> -    clock-names:
> -      items:
> -        - const: pwm
> -        - const: pclk
> -
> -  required:
> -    - clocks
> -    - clock-names
> -
> -else:
> -  properties:
> -    clocks:
> -      maxItems: 1
> -      description:
> -        Used both to derive the functional clock
> -        for the device and as the bus clock.
> -
> -  required:
> -    - clocks
> +
> +allOf:
> +  - $ref: pwm.yaml#
> +
> +  - if:
> +      properties:
> +        compatible:
> +          contains:
> +            enum:
> +              - rockchip,rk3328-pwm
> +              - rockchip,rv1108-pwm
> +
> +    then:
> +      properties:
> +        clocks:
> +          items:
> +            - description: Used to derive the functional clock for the device.
> +            - description: Used as the APB bus clock.
> +
> +        clock-names:
> +          items:
> +            - const: pwm
> +            - const: pclk
> +
> +      required:
> +        - clocks
> +        - clock-names
> +
> +    else:
> +      properties:
> +        clocks:
> +          maxItems: 1
> +          description:
> +            Used both to derive the functional clock
> +            for the device and as the bus clock.
> +
> +      required:
> +        - clocks
>  
>  additionalProperties: false
>  
> 





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

* RE: [PATCH 09/15] dt-bindings: pwm: toshiba,visconti: include generic pwm schema
  2022-02-14  8:15 ` [PATCH 09/15] dt-bindings: pwm: toshiba,visconti: " Krzysztof Kozlowski
@ 2022-02-14 12:42   ` nobuhiro1.iwamatsu
  0 siblings, 0 replies; 23+ messages in thread
From: nobuhiro1.iwamatsu @ 2022-02-14 12:42 UTC (permalink / raw)
  To: krzysztof.kozlowski, thierry.reding, u.kleine-koenig, lee.jones,
	robh+dt, mripard, wens, jernej.skrabec, f.fainelli,
	bcm-kernel-feedback-list, shawnguo, s.hauer, kernel, festevam,
	linux-imx, heiko, palmer, paul.walmsley, p.zabel, anson.huang,
	vijayakannan.ayyathurai, rtanwar, jeff, yash.shah, sagar.kadam,
	vigneshr, yoshihiro.shimoda.uh, laurent.pinchart+renesas,
	linux-pwm, devicetree, linux-arm-kernel, linux-sunxi,
	linux-kernel, linux-rockchip, linux-riscv

> -----Original Message-----
> From: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
> Sent: Monday, February 14, 2022 5:16 PM
> To: Thierry Reding <thierry.reding@gmail.com>; Uwe Kleine-König
> <u.kleine-koenig@pengutronix.de>; Lee Jones <lee.jones@linaro.org>; Rob
> Herring <robh+dt@kernel.org>; Krzysztof Kozlowski
> <krzysztof.kozlowski@canonical.com>; Maxime Ripard
> <mripard@kernel.org>; Chen-Yu Tsai <wens@csie.org>; Jernej Skrabec
> <jernej.skrabec@gmail.com>; Florian Fainelli <f.fainelli@gmail.com>;
> bcm-kernel-feedback-list@broadcom.com; Shawn Guo
> <shawnguo@kernel.org>; Sascha Hauer <s.hauer@pengutronix.de>;
> Pengutronix Kernel Team <kernel@pengutronix.de>; Fabio Estevam
> <festevam@gmail.com>; NXP Linux Team <linux-imx@nxp.com>; Heiko
> Stuebner <heiko@sntech.de>; Palmer Dabbelt <palmer@dabbelt.com>; Paul
> Walmsley <paul.walmsley@sifive.com>; iwamatsu nobuhiro(岩松 信洋 □S
> WC◯ACT) <nobuhiro1.iwamatsu@toshiba.co.jp>; Philipp Zabel
> <p.zabel@pengutronix.de>; Anson Huang <anson.huang@nxp.com>;
> Vijayakannan Ayyathurai <vijayakannan.ayyathurai@intel.com>; Rahul Tanwar
> <rtanwar@maxlinear.com>; Jeff LaBundy <jeff@labundy.com>; Yash Shah
> <yash.shah@sifive.com>; Sagar Kadam <sagar.kadam@sifive.com>; Vignesh
> R <vigneshr@ti.com>; Yoshihiro Shimoda
> <yoshihiro.shimoda.uh@renesas.com>; Laurent Pinchart
> <laurent.pinchart+renesas@ideasonboard.com>; linux-pwm@vger.kernel.org;
> devicetree@vger.kernel.org; linux-arm-kernel@lists.infradead.org;
> linux-sunxi@lists.linux.dev; linux-kernel@vger.kernel.org;
> linux-rockchip@lists.infradead.org; linux-riscv@lists.infradead.org
> Subject: [PATCH 09/15] dt-bindings: pwm: toshiba,visconti: include generic
> pwm schema
> 
> Include generic pwm.yaml schema, which enforces PWM node naming and
> brings pwm-cells requirement.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>

Reviewed-by: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>

Best regards,
  Nobuhiro


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

* Re: [PATCH 01/15] dt-bindings: pwm: allwinner,sun4i-a10: include generic pwm schema
  2022-02-14  8:15 [PATCH 01/15] dt-bindings: pwm: allwinner,sun4i-a10: include generic pwm schema Krzysztof Kozlowski
                   ` (13 preceding siblings ...)
  2022-02-14  8:16 ` [PATCH 15/15] dt-bindings: pwm: renesas,tpu: " Krzysztof Kozlowski
@ 2022-02-14 17:13 ` Jernej Škrabec
  14 siblings, 0 replies; 23+ messages in thread
From: Jernej Škrabec @ 2022-02-14 17:13 UTC (permalink / raw)
  To: Thierry Reding, Uwe Kleine-König, Lee Jones, Rob Herring,
	Krzysztof Kozlowski, Maxime Ripard, Chen-Yu Tsai,
	Florian Fainelli, bcm-kernel-feedback-list, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	NXP Linux Team, Heiko Stuebner, Palmer Dabbelt, Paul Walmsley,
	Nobuhiro Iwamatsu, Philipp Zabel, Anson Huang,
	Vijayakannan Ayyathurai, Rahul Tanwar, Jeff LaBundy, Yash Shah,
	Sagar Kadam, Vignesh R, Yoshihiro Shimoda, Laurent Pinchart,
	linux-pwm, devicetree, linux-arm-kernel, linux-sunxi,
	linux-kernel, linux-rockchip, linux-riscv

Dne ponedeljek, 14. februar 2022 ob 09:15:51 CET je Krzysztof Kozlowski 
napisal(a):
> Include generic pwm.yaml schema, which enforces PWM node naming and
> brings pwm-cells requirement.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>

Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>

Best regards,
Jernej

> ---
>  .../bindings/pwm/allwinner,sun4i-a10-pwm.yaml | 53 ++++++++++---------
>  1 file changed, 28 insertions(+), 25 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-
pwm.yaml b/Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml
> index 800d511502c4..e93e935564fb 100644
> --- a/Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml
> +++ b/Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml
> @@ -52,33 +52,36 @@ properties:
>    resets:
>      maxItems: 1
>  
> -if:
> -  properties:
> -    compatible:
> -      contains:
> -        const: allwinner,sun50i-h6-pwm
> -
> -then:
> -  properties:
> -    clocks:
> -      maxItems: 2
> -
> -    clock-names:
> -      items:
> -        - const: mod
> -        - const: bus
> -
> -  required:
> -    - clock-names
> -    - resets
> -
> -else:
> -  properties:
> -    clocks:
> -      maxItems: 1
> +
> +allOf:
> +  - $ref: pwm.yaml#
> +
> +  - if:
> +      properties:
> +        compatible:
> +          contains:
> +            const: allwinner,sun50i-h6-pwm
> +
> +    then:
> +      properties:
> +        clocks:
> +          maxItems: 2
> +
> +        clock-names:
> +          items:
> +            - const: mod
> +            - const: bus
> +
> +      required:
> +        - clock-names
> +        - resets
> +
> +    else:
> +      properties:
> +        clocks:
> +          maxItems: 1
>  
>  required:
> -  - "#pwm-cells"
>    - compatible
>    - reg
>    - clocks
> -- 
> 2.32.0
> 
> 



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

* Re: [PATCH 10/15] dt-bindings: pwm: brcm,bcm7038: do not require pwm-cells
  2022-02-14  8:16 ` [PATCH 10/15] dt-bindings: pwm: brcm,bcm7038: do not require pwm-cells Krzysztof Kozlowski
@ 2022-02-14 17:19   ` Florian Fainelli
  0 siblings, 0 replies; 23+ messages in thread
From: Florian Fainelli @ 2022-02-14 17:19 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Thierry Reding, Uwe Kleine-König,
	Lee Jones, Rob Herring, Maxime Ripard, Chen-Yu Tsai,
	Jernej Skrabec, Florian Fainelli, bcm-kernel-feedback-list,
	Shawn Guo, Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	NXP Linux Team, Heiko Stuebner, Palmer Dabbelt, Paul Walmsley,
	Nobuhiro Iwamatsu, Philipp Zabel, Anson Huang,
	Vijayakannan Ayyathurai, Rahul Tanwar, Jeff LaBundy, Yash Shah,
	Sagar Kadam, Vignesh R, Yoshihiro Shimoda, Laurent Pinchart,
	linux-pwm, devicetree, linux-arm-kernel, linux-sunxi,
	linux-kernel, linux-rockchip, linux-riscv

On 2/14/22 12:16 AM, Krzysztof Kozlowski wrote:
> pwm-cells are already required by pwm.yaml schema.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>

Acked-by: Florian Fainelli <f.fainelli@gmail.com>
-- 
Florian

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

* RE: [PATCH 11/15] dt-bindings: pwm: intel,keembay: do not require pwm-cells
  2022-02-14  8:16 ` [PATCH 11/15] dt-bindings: pwm: intel,keembay: " Krzysztof Kozlowski
@ 2022-02-14 17:54   ` Ayyathurai, Vijayakannan
  2022-02-14 18:28   ` [PATCH 11/15] dt-bindings: pwm: intel, keembay: " Uwe Kleine-König
  1 sibling, 0 replies; 23+ messages in thread
From: Ayyathurai, Vijayakannan @ 2022-02-14 17:54 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Thierry Reding, Uwe Kleine-König,
	Lee Jones, Rob Herring, Maxime Ripard, Chen-Yu Tsai,
	Jernej Skrabec, Florian Fainelli, bcm-kernel-feedback-list,
	Shawn Guo, Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	NXP Linux Team, Heiko Stuebner, Palmer Dabbelt, Paul Walmsley,
	Nobuhiro Iwamatsu, Philipp Zabel, Anson Huang, Rahul Tanwar,
	Jeff LaBundy, Yash Shah, Sagar Kadam, Vignesh R,
	Yoshihiro Shimoda, Laurent Pinchart, linux-pwm, devicetree,
	linux-arm-kernel, linux-sunxi, linux-kernel, linux-rockchip,
	linux-riscv

Hi,

>
>pwm-cells are already required by pwm.yaml schema.
>
>Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>

Acked-by: Vijayakannan Ayyathurai <vijayakannan.ayyathurai@intel.com>

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

* Re: [PATCH 11/15] dt-bindings: pwm: intel, keembay: do not require pwm-cells
  2022-02-14  8:16 ` [PATCH 11/15] dt-bindings: pwm: intel,keembay: " Krzysztof Kozlowski
  2022-02-14 17:54   ` Ayyathurai, Vijayakannan
@ 2022-02-14 18:28   ` Uwe Kleine-König
  2022-02-14 21:03     ` Krzysztof Kozlowski
  1 sibling, 1 reply; 23+ messages in thread
From: Uwe Kleine-König @ 2022-02-14 18:28 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Thierry Reding, Lee Jones, Rob Herring, Maxime Ripard,
	Chen-Yu Tsai, Jernej Skrabec, Florian Fainelli,
	bcm-kernel-feedback-list, Shawn Guo, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, NXP Linux Team,
	Heiko Stuebner, Palmer Dabbelt, Paul Walmsley, Nobuhiro Iwamatsu,
	Philipp Zabel, Anson Huang, Vijayakannan Ayyathurai,
	Rahul Tanwar, Jeff LaBundy, Yash Shah, Sagar Kadam, Vignesh R,
	Yoshihiro Shimoda, Laurent Pinchart, linux-pwm, devicetree,
	linux-arm-kernel, linux-sunxi, linux-kernel, linux-rockchip,
	linux-riscv

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

Hello Krzysztof,

when I read the subject line I thought the patch intention to be wrong.
Maybe make that:

	dt-bindings: intel,keembay-pwm: Don't require #pwm-cells twice

?

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |

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

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

* Re: [PATCH 11/15] dt-bindings: pwm: intel, keembay: do not require pwm-cells
  2022-02-14 18:28   ` [PATCH 11/15] dt-bindings: pwm: intel, keembay: " Uwe Kleine-König
@ 2022-02-14 21:03     ` Krzysztof Kozlowski
  0 siblings, 0 replies; 23+ messages in thread
From: Krzysztof Kozlowski @ 2022-02-14 21:03 UTC (permalink / raw)
  To: Uwe Kleine-König
  Cc: Thierry Reding, Lee Jones, Rob Herring, Maxime Ripard,
	Chen-Yu Tsai, Jernej Skrabec, Florian Fainelli,
	bcm-kernel-feedback-list, Shawn Guo, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, NXP Linux Team,
	Heiko Stuebner, Palmer Dabbelt, Paul Walmsley, Nobuhiro Iwamatsu,
	Philipp Zabel, Anson Huang, Vijayakannan Ayyathurai,
	Rahul Tanwar, Jeff LaBundy, Yash Shah, Sagar Kadam, Vignesh R,
	Yoshihiro Shimoda, Laurent Pinchart, linux-pwm, devicetree,
	linux-arm-kernel, linux-sunxi, linux-kernel, linux-rockchip,
	linux-riscv

On 14/02/2022 19:28, Uwe Kleine-König wrote:
> Hello Krzysztof,
> 
> when I read the subject line I thought the patch intention to be wrong.
> Maybe make that:
> 
> 	dt-bindings: intel,keembay-pwm: Don't require #pwm-cells twice
> 
> ?

Ah, yes, this sounds better. I'll send a v2.


Best regards,
Krzysztof

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

* Re: [PATCH 07/15] dt-bindings: pwm: sifive: include generic pwm schema
  2022-02-14  8:15 ` [PATCH 07/15] dt-bindings: pwm: sifive: " Krzysztof Kozlowski
@ 2022-03-11  3:14   ` Palmer Dabbelt
  0 siblings, 0 replies; 23+ messages in thread
From: Palmer Dabbelt @ 2022-03-11  3:14 UTC (permalink / raw)
  To: krzysztof.kozlowski
  Cc: thierry.reding, u.kleine-koenig, lee.jones, robh+dt,
	krzysztof.kozlowski, mripard, wens, jernej.skrabec, f.fainelli,
	bcm-kernel-feedback-list, shawnguo, s.hauer, kernel, festevam,
	linux-imx, heiko, Paul Walmsley, nobuhiro1.iwamatsu, p.zabel,
	anson.huang, vijayakannan.ayyathurai, rtanwar, jeff, yash.shah,
	sagar.kadam, vigneshr, yoshihiro.shimoda.uh,
	laurent.pinchart+renesas, linux-pwm, devicetree,
	linux-arm-kernel, linux-sunxi, linux-kernel, linux-rockchip,
	linux-riscv

On Mon, 14 Feb 2022 00:15:57 PST (-0800), krzysztof.kozlowski@canonical.com wrote:
> Include generic pwm.yaml schema, which enforces PWM node naming and
> brings pwm-cells requirement.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
> ---
>  Documentation/devicetree/bindings/pwm/pwm-sifive.yaml | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/pwm/pwm-sifive.yaml b/Documentation/devicetree/bindings/pwm/pwm-sifive.yaml
> index 84e66913d042..676b2160bada 100644
> --- a/Documentation/devicetree/bindings/pwm/pwm-sifive.yaml
> +++ b/Documentation/devicetree/bindings/pwm/pwm-sifive.yaml
> @@ -22,6 +22,9 @@ description:
>
>    https://github.com/sifive/sifive-blocks/tree/master/src/main/scala/devices/pwm
>
> +allOf:
> +  - $ref: pwm.yaml#
> +
>  properties:
>    compatible:
>      items:
> @@ -55,7 +58,6 @@ required:
>    - compatible
>    - reg
>    - clocks
> -  - "#pwm-cells"
>    - interrupts
>
>  additionalProperties: false

Acked-by: Palmer Dabbelt <palmer@rivosinc.com>

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

end of thread, other threads:[~2022-03-11  3:14 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-14  8:15 [PATCH 01/15] dt-bindings: pwm: allwinner,sun4i-a10: include generic pwm schema Krzysztof Kozlowski
2022-02-14  8:15 ` [PATCH 02/15] dt-bindings: pwm: imx: " Krzysztof Kozlowski
2022-02-14  8:15 ` [PATCH 03/15] dt-bindings: pwm: intel,lgm: " Krzysztof Kozlowski
2022-02-14  8:15 ` [PATCH 04/15] dt-bindings: pwm: iqs620a: " Krzysztof Kozlowski
2022-02-14  8:15 ` [PATCH 05/15] dt-bindings: pwm: mxs: " Krzysztof Kozlowski
2022-02-14  8:15 ` [PATCH 06/15] dt-bindings: pwm: rockchip: " Krzysztof Kozlowski
2022-02-14 10:58   ` Heiko Stübner
2022-02-14  8:15 ` [PATCH 07/15] dt-bindings: pwm: sifive: " Krzysztof Kozlowski
2022-03-11  3:14   ` Palmer Dabbelt
2022-02-14  8:15 ` [PATCH 08/15] dt-bindings: pwm: renesas,pwm: " Krzysztof Kozlowski
2022-02-14  8:15 ` [PATCH 09/15] dt-bindings: pwm: toshiba,visconti: " Krzysztof Kozlowski
2022-02-14 12:42   ` nobuhiro1.iwamatsu
2022-02-14  8:16 ` [PATCH 10/15] dt-bindings: pwm: brcm,bcm7038: do not require pwm-cells Krzysztof Kozlowski
2022-02-14 17:19   ` Florian Fainelli
2022-02-14  8:16 ` [PATCH 11/15] dt-bindings: pwm: intel,keembay: " Krzysztof Kozlowski
2022-02-14 17:54   ` Ayyathurai, Vijayakannan
2022-02-14 18:28   ` [PATCH 11/15] dt-bindings: pwm: intel, keembay: " Uwe Kleine-König
2022-02-14 21:03     ` Krzysztof Kozlowski
2022-02-14  8:16 ` [PATCH 12/15] dt-bindings: pwm: samsung: " Krzysztof Kozlowski
2022-02-14  8:16 ` [PATCH 13/15] dt-bindings: pwm: tiecap: " Krzysztof Kozlowski
2022-02-14  8:16 ` [PATCH 14/15] dt-bindings: pwm: tiehrpwm: " Krzysztof Kozlowski
2022-02-14  8:16 ` [PATCH 15/15] dt-bindings: pwm: renesas,tpu: " Krzysztof Kozlowski
2022-02-14 17:13 ` [PATCH 01/15] dt-bindings: pwm: allwinner,sun4i-a10: include generic pwm schema Jernej Škrabec

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).