Skip to contentSkip to conversation

dt-bindings: pwm: brcm,kona-pwm: convert to YAML

PATCH Applied Stanislav Jakubek 4 participants 4 messages Jun 18, 2023 – Jul 28, 2023

Subsystems (3)

v3 of 4 Applied Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 dt-bindings: pwm: brcm,kona-pwm: convert to YAML

Convert Broadcom Kona family PWM controller bindings to DT schema.

Change during conversion:
- add used, but previously undocumented brcm,bcm11351-pwm compatible

---
Changes in V3:
- change "" include in example to <>
- rebase on next-20230616
- collect Krzysztof's R-b

Changes in V2:
- mention the new compatible in the commit message (Krzysztof)

 .../devicetree/bindings/pwm/brcm,kona-pwm.txt | 21 --------
 .../bindings/pwm/brcm,kona-pwm.yaml           | 51 +++++++++++++++++++
 2 files changed, 51 insertions(+), 21 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/pwm/brcm,kona-pwm.txt
 create mode 100644 Documentation/devicetree/bindings/pwm/brcm,kona-pwm.yaml
Documentation/devicetree/bindings/pwm/brcm,kona-pwm.txt deleted +0 -21
deleted file mode 100644
index c42eecfc81ed..000000000000
@@ -1,21 +0,0 @@
-Broadcom Kona PWM controller device tree bindings
-
-This controller has 6 channels.
-
-Required Properties :
-- compatible: should contain "brcm,kona-pwm"
-- reg: physical base address and length of the controller's registers
-- clocks: phandle + clock specifier pair for the external clock
-- #pwm-cells: Should be 3. See pwm.yaml in this directory for a
-  description of the cells format.
-
-Refer to clocks/clock-bindings.txt for generic clock consumer properties.
-
-Example:
-
-pwm: pwm@3e01a000 {
-	compatible = "brcm,bcm11351-pwm", "brcm,kona-pwm";
-	reg = <0x3e01a000 0xc4>;
-	clocks = <&pwm_clk>;
-	#pwm-cells = <3>;
-};
Documentation/devicetree/bindings/pwm/brcm,kona-pwm.yaml new file +51 -0

51 lines not on this page · raw message

Signature · 1 line
2.25.1
Acked-by on v3 1/1
#1 lore raw

Hello,

Documentation/devicetree/bindings/pwm/brcm,kona-pwm.yaml line 23

Quoted 6 lines · Stanislav Jakubek
Documentation/devicetree/bindings/pwm/brcm,kona-pwm.yaml new file +6 -0
+properties:
+  compatible:
+    items:
+      - enum:
+          - brcm,bcm11351-pwm
+      - const: brcm,kona-pwm

This is not the simplest way to express the currently supported combination. I assume that's done this way in the expectation that the set of SoCs with a compatible PWM will grow?

Well, fine for me:

Thanks!
Uwe

Signature · 2 lines
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |
maintainer
#2 lore raw
Quoted 10 lines · Uwe Kleine-König

Hello,

Documentation/devicetree/bindings/pwm/brcm,kona-pwm.yaml line 23

Quoted 6 lines · Stanislav Jakubek
Documentation/devicetree/bindings/pwm/brcm,kona-pwm.yaml new file +6 -0
+properties:
+  compatible:
+    items:
+      - enum:
+          - brcm,bcm11351-pwm
+      - const: brcm,kona-pwm
Quoted 3 lines

This is not the simplest way to express the currently supported combination. I assume that's done this way in the expectation that the set of SoCs with a compatible PWM will grow?

The platform being completely defunct, I doubt it every will.

Signature · 1 line
Florian
#3 lore raw
In reply to Stanislav Jakubek
Quoted 6 lines · Stanislav Jakubek

Convert Broadcom Kona family PWM controller bindings to DT schema.

Change during conversion:
- add used, but previously undocumented brcm,bcm11351-pwm compatible

Applied, thanks!

[1/1] dt-bindings: pwm: brcm,kona-pwm: convert to YAML

      commit: 8b9d91d23c18423d4e4bda735f20b669fb28115f

Best regards,

Signature · 1 line
Thierry Reding <[email protected]>