All of lore.kernel.org
 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
  0 siblings, 0 replies; 92+ 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] 92+ messages in thread

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

Thread overview: 92+ 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 01/15] dt-bindings: pwm: allwinner, sun4i-a10: " Krzysztof Kozlowski
2022-02-14  8:15 ` Krzysztof Kozlowski
2022-02-14  8:15 ` 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   ` Krzysztof Kozlowski
2022-02-14  8:15   ` Krzysztof Kozlowski
2022-02-14  8:15 ` [PATCH 03/15] dt-bindings: pwm: intel,lgm: " 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   ` Krzysztof Kozlowski
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   ` Krzysztof Kozlowski
2022-02-14  8:15   ` Krzysztof Kozlowski
2022-02-14  8:15 ` [PATCH 05/15] dt-bindings: pwm: mxs: " Krzysztof Kozlowski
2022-02-14  8:15   ` Krzysztof Kozlowski
2022-02-14  8:15   ` Krzysztof Kozlowski
2022-02-14  8:15   ` Krzysztof Kozlowski
2022-02-14  8:15 ` [PATCH 06/15] dt-bindings: pwm: rockchip: " Krzysztof Kozlowski
2022-02-14  8:15   ` Krzysztof Kozlowski
2022-02-14  8:15   ` Krzysztof Kozlowski
2022-02-14  8:15   ` Krzysztof Kozlowski
2022-02-14 10:58   ` Heiko Stübner
2022-02-14 10:58     ` Heiko Stübner
2022-02-14 10:58     ` Heiko Stübner
2022-02-14 10:58     ` Heiko Stübner
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   ` Krzysztof Kozlowski
2022-02-14  8:15   ` Krzysztof Kozlowski
2022-03-11  3:14   ` Palmer Dabbelt
2022-03-11  3:14     ` Palmer Dabbelt
2022-03-11  3:14     ` Palmer Dabbelt
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 08/15] dt-bindings: pwm: renesas, pwm: " Krzysztof Kozlowski
2022-02-14  8:15   ` Krzysztof Kozlowski
2022-02-14  8:15   ` Krzysztof Kozlowski
2022-02-14  8:15 ` [PATCH 09/15] dt-bindings: pwm: toshiba,visconti: " Krzysztof Kozlowski
2022-02-14  8:15   ` [PATCH 09/15] dt-bindings: pwm: toshiba, visconti: " Krzysztof Kozlowski
2022-02-14  8:15   ` Krzysztof Kozlowski
2022-02-14  8:15   ` Krzysztof Kozlowski
2022-02-14 12:42   ` nobuhiro1.iwamatsu
2022-02-14 12:42     ` nobuhiro1.iwamatsu
2022-02-14 12:42     ` [PATCH 09/15] dt-bindings: pwm: toshiba,visconti: " nobuhiro1.iwamatsu
2022-02-14 12:42     ` [PATCH 09/15] dt-bindings: pwm: toshiba, visconti: " 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  8:16   ` [PATCH 10/15] dt-bindings: pwm: brcm, bcm7038: " Krzysztof Kozlowski
2022-02-14  8:16   ` Krzysztof Kozlowski
2022-02-14  8:16   ` Krzysztof Kozlowski
2022-02-14 17:19   ` [PATCH 10/15] dt-bindings: pwm: brcm,bcm7038: " Florian Fainelli
2022-02-14 17:19     ` Florian Fainelli
2022-02-14 17:19     ` Florian Fainelli
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  8:16   ` [PATCH 11/15] dt-bindings: pwm: intel, keembay: " Krzysztof Kozlowski
2022-02-14  8:16   ` Krzysztof Kozlowski
2022-02-14  8:16   ` Krzysztof Kozlowski
2022-02-14 17:54   ` [PATCH 11/15] dt-bindings: pwm: intel,keembay: " Ayyathurai, Vijayakannan
2022-02-14 17:54     ` Ayyathurai, Vijayakannan
2022-02-14 17:54     ` Ayyathurai, Vijayakannan
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 18:28     ` Uwe Kleine-König
2022-02-14 18:28     ` Uwe Kleine-König
2022-02-14 18:28     ` Uwe Kleine-König
2022-02-14 21:03     ` Krzysztof Kozlowski
2022-02-14 21:03       ` Krzysztof Kozlowski
2022-02-14 21:03       ` Krzysztof Kozlowski
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   ` Krzysztof Kozlowski
2022-02-14  8:16   ` Krzysztof Kozlowski
2022-02-14  8:16   ` Krzysztof Kozlowski
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   ` Krzysztof Kozlowski
2022-02-14  8:16   ` Krzysztof Kozlowski
2022-02-14  8:16 ` [PATCH 14/15] dt-bindings: pwm: tiehrpwm: " Krzysztof Kozlowski
2022-02-14  8:16   ` Krzysztof Kozlowski
2022-02-14  8:16   ` 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  8:16   ` [PATCH 15/15] dt-bindings: pwm: renesas, tpu: " Krzysztof Kozlowski
2022-02-14  8:16   ` 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
2022-02-14 17:13   ` [PATCH 01/15] dt-bindings: pwm: allwinner, sun4i-a10: " Jernej Škrabec
2022-02-14 17:13   ` Jernej Škrabec
2022-02-14 17:13   ` Jernej Škrabec

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.