Skip to contentSkip to conversation

dt-bindings: pwm: pwm-tiecap: Convert to json schema

PATCH In review Lokesh Vutla 2 participants 6 messages Jun 1, 2021 – Jun 21, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover dt-bindings: pwm: pwm-tiecap: Convert to json schema

This series:
- converts tiecap to DT schema format using json-schema
- Add new compatible for AM64 SoC.

Lokesh Vutla (2):
dt-bindings: pwm: pwm-tiecap: Convert to json schema
dt-bindings: pwm: pwm-tiecap: Add compatible string for AM64 SoC

 .../devicetree/bindings/pwm/pwm-tiecap.txt    | 51 ---------------
 .../devicetree/bindings/pwm/pwm-tiecap.yaml   | 64 +++++++++++++++++++
 2 files changed, 64 insertions(+), 51 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/pwm/pwm-tiecap.txt
 create mode 100644 Documentation/devicetree/bindings/pwm/pwm-tiecap.yaml
Signature · 1 line
2.31.1
#1 lore raw

PATCH 1/2 dt-bindings: pwm: pwm-tiecap: Convert to json schema

Convert the tiecap binding to DT schema format using json-schema. Along with this conversion the following changes are included:
- 'clock' and 'clock-names' properties are marked required as driver fails to probe without these properties
- Dropped ti,am33xx-ecap as it is no longer applicable.
- 'power-domains' property is introduced and marked as optional.

---
 .../devicetree/bindings/pwm/pwm-tiecap.txt    | 51 ---------------
 .../devicetree/bindings/pwm/pwm-tiecap.yaml   | 63 +++++++++++++++++++
 2 files changed, 63 insertions(+), 51 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/pwm/pwm-tiecap.txt
 create mode 100644 Documentation/devicetree/bindings/pwm/pwm-tiecap.yaml
Documentation/devicetree/bindings/pwm/pwm-tiecap.txt deleted +0 -51
deleted file mode 100644
index c7c4347a769a..000000000000
@@ -1,51 +0,0 @@
-TI SOC ECAP based APWM controller
-
-Required properties:
-- compatible: Must be "ti,<soc>-ecap".
-  for am33xx - compatible = "ti,am3352-ecap", "ti,am33xx-ecap";
-  for am4372 - compatible = "ti,am4372-ecap", "ti,am3352-ecap", "ti,am33xx-ecap";
-  for da850  - compatible = "ti,da850-ecap", "ti,am3352-ecap", "ti,am33xx-ecap";
-  for dra746 - compatible = "ti,dra746-ecap", "ti,am3352-ecap";
-  for 66ak2g - compatible = "ti,k2g-ecap", "ti,am3352-ecap";
-  for am654  - compatible = "ti,am654-ecap", "ti,am3352-ecap";
-- #pwm-cells: should be 3. See pwm.yaml in this directory for a description of
-  the cells format. The PWM channel index ranges from 0 to 4. The only third
-  cell flag supported by this binding is PWM_POLARITY_INVERTED.
-- reg: physical base address and size of the registers map.
-
-Optional properties:
-- clocks: Handle to the ECAP's functional clock.
-- clock-names: Must be set to "fck".
-
-Example:
-
-ecap0: ecap@48300100 { /* ECAP on am33xx */
-	compatible = "ti,am3352-ecap", "ti,am33xx-ecap";
-	#pwm-cells = <3>;
-	reg = <0x48300100 0x80>;
-	clocks = <&l4ls_gclk>;
-	clock-names = "fck";
-};
-
-ecap0: ecap@48300100 { /* ECAP on am4372 */
-	compatible = "ti,am4372-ecap", "ti,am3352-ecap", "ti,am33xx-ecap";
-	#pwm-cells = <3>;
-	reg = <0x48300100 0x80>;
-	ti,hwmods = "ecap0";
-	clocks = <&l4ls_gclk>;
-	clock-names = "fck";
-};
-
-ecap0: ecap@1f06000 { /* ECAP on da850 */
-	compatible = "ti,da850-ecap", "ti,am3352-ecap", "ti,am33xx-ecap";
-	#pwm-cells = <3>;
-	reg = <0x1f06000 0x80>;
-};
-
-ecap0: ecap@4843e100 {
-	compatible = "ti,dra746-ecap", "ti,am3352-ecap";
-	#pwm-cells = <3>;
-	reg = <0x4843e100 0x80>;
-	clocks = <&l4_root_clk_div>;
-	clock-names = "fck";
-};
Documentation/devicetree/bindings/pwm/pwm-tiecap.yaml new file +63 -0

63 lines not on this page · raw message

Signature · 1 line
2.31.1
maintainer Reviewed-by on v1 1/2
#2 lore raw
Quoted 7 lines · Lokesh Vutla

Convert the tiecap binding to DT schema format using json-schema. Along with this conversion the following changes are included:
- 'clock' and 'clock-names' properties are marked required as driver fails to probe without these properties
- Dropped ti,am33xx-ecap as it is no longer applicable.
- 'power-domains' property is introduced and marked as optional.

Quoted 8 lines
---
 .../devicetree/bindings/pwm/pwm-tiecap.txt    | 51 ---------------
 .../devicetree/bindings/pwm/pwm-tiecap.yaml   | 63 +++++++++++++++++++
 2 files changed, 63 insertions(+), 51 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/pwm/pwm-tiecap.txt
 create mode 100644 Documentation/devicetree/bindings/pwm/pwm-tiecap.yaml
#3 lore raw

PATCH 2/2 dt-bindings: pwm: pwm-tiecap: Add compatible string for AM64 SoC

In reply to Lokesh Vutla

Add compatible string for AM64 SoC in device tree binding. IP is compatible with ti,am3352-ecap, so adding the AM64 compatible under enum of one of the compatible list entry.

---
 Documentation/devicetree/bindings/pwm/pwm-tiecap.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/pwm/pwm-tiecap.yaml +1 -0
index 8717166dd05f..ed35b6cc48d5 100644
@@ -23,6 +23,7 @@ properties:
               - ti,dra746-ecap
               - ti,k2g-ecap
               - ti,am654-ecap
+              - ti,am64-ecap
           - const: ti,am3352-ecap
 
   reg:
Signature · 1 line
2.31.1
maintainer Reviewed-by on v1 2/2
#4 lore raw

Re: [PATCH 2/2] dt-bindings: pwm: pwm-tiecap: Add compatible string for AM64 SoC

Quoted 9 lines · Lokesh Vutla

Add compatible string for AM64 SoC in device tree binding. IP is compatible with ti,am3352-ecap, so adding the AM64 compatible under enum of one of the compatible list entry.

---
 Documentation/devicetree/bindings/pwm/pwm-tiecap.yaml | 1 +
 1 file changed, 1 insertion(+)
#5 lore raw
In reply to Lokesh Vutla

Hi Thierry,

Quoted 3 lines · Lokesh Vutla

This series:
- converts tiecap to DT schema format using json-schema
- Add new compatible for AM64 SoC.

If there are no objections, can we merge this series?

Thanks and regards,
Lokesh

Quoted 11 lines

Lokesh Vutla (2):
dt-bindings: pwm: pwm-tiecap: Convert to json schema
dt-bindings: pwm: pwm-tiecap: Add compatible string for AM64 SoC

 .../devicetree/bindings/pwm/pwm-tiecap.txt    | 51 ---------------
 .../devicetree/bindings/pwm/pwm-tiecap.yaml   | 64 +++++++++++++++++++
 2 files changed, 64 insertions(+), 51 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/pwm/pwm-tiecap.txt
 create mode 100644 Documentation/devicetree/bindings/pwm/pwm-tiecap.yaml