dt-bindings: pwm: Convert TI PWM Subsystem to DT schema
Subsystems (2)
PATCH v3 1/1 dt-bindings: pwm: Convert TI PWM Subsystem to DT schema
Convert the Texas Instruments SoC PWM Subsystem bindings to DT schema.
During the conversion, the following updates were made:
- 'counter' node was added to the allowed child nodes list to resolve dtbs_check warnings. Some eqep nodes use 'counter' instead of 'eqep'.
---
Changes in v3:
- Completed the single example by adding the required 'clocks', 'clock-names' and 'interrupts' properties to the ECAP, EQEP and EHRPWM child nodes, so the example passes a full dt_binding_check.
Changes in v2:
- Renamed the file to ti,am33xx-pwmss.yaml to match the base compatible.
- Required a 'compatible' property in the child nodes.
- Reduced the binding to a single example and included the PWM child nodes (ECAP, EQEP, EHRPWM) in it.
Link to v2: https://lore.kernel.org/all/[email protected]/
Link to v1: https://lore.kernel.org/all/[email protected]/
.../devicetree/bindings/pwm/pwm-tipwmss.txt | 58 ------------- .../bindings/pwm/ti,am33xx-pwmss.yaml | 82 +++++++++++++++++++ 2 files changed, 82 insertions(+), 58 deletions(-) delete mode 100644 Documentation/devicetree/bindings/pwm/pwm-tipwmss.txt create mode 100644 Documentation/devicetree/bindings/pwm/ti,am33xx-pwmss.yaml
Documentation/devicetree/bindings/pwm/pwm-tipwmss.txt deleted +0 -58
@@ -1,58 +0,0 @@ -TI SOC based PWM Subsystem - -Required properties: -- compatible: Must be "ti,<soc>-pwmss". - for am33xx - compatible = "ti,am33xx-pwmss"; - for am4372 - compatible = "ti,am4372-pwmss","ti,am33xx-pwmss"; - for dra746 - compatible = "ti,dra746-pwmss", "ti,am33xx-pwmss" - -- reg: physical base address and size of the registers map. -- address-cells: Specify the number of u32 entries needed in child nodes. - Should set to 1. -- size-cells: specify number of u32 entries needed to specify child nodes size - in reg property. Should set to 1. -- ranges: describes the address mapping of a memory-mapped bus. Should set to - physical address map of child's base address, physical address within - parent's address space and length of the address map. For am33xx, - 3 set of child register maps present, ECAP register space, EQEP - register space, EHRPWM register space. - -Also child nodes should also populated under PWMSS DT node. - -Example: -epwmss0: epwmss@48300000 { /* PWMSS for am33xx */ - compatible = "ti,am33xx-pwmss"; - reg = <0x48300000 0x10>; - ti,hwmods = "epwmss0"; - #address-cells = <1>; - #size-cells = <1>; - ranges = <0x48300100 0x48300100 0x80 /* ECAP */ - 0x48300180 0x48300180 0x80 /* EQEP */ - 0x48300200 0x48300200 0x80>; /* EHRPWM */ - - /* child nodes go here */ -}; - -epwmss0: epwmss@48300000 { /* PWMSS for am4372 */ - compatible = "ti,am4372-pwmss","ti,am33xx-pwmss" - reg = <0x48300000 0x10>; - ti,hwmods = "epwmss0"; - #address-cells = <1>; - #size-cells = <1>; - ranges = <0x48300100 0x48300100 0x80 /* ECAP */ - 0x48300180 0x48300180 0x80 /* EQEP */ - 0x48300200 0x48300200 0x80>; /* EHRPWM */ - - /* child nodes go here */ -}; - -epwmss0: epwmss@4843e000 { /* PWMSS for DRA7xx */ - compatible = "ti,dra746-pwmss", "ti,am33xx-pwmss"; - reg = <0x4843e000 0x30>; - ti,hwmods = "epwmss0"; - #address-cells = <1>; - #size-cells = <1>; - ranges; - - /* child nodes go here */ -};
Documentation/devicetree/bindings/pwm/ti,am33xx-pwmss.yaml new file +82 -0
82 lines not on this page · raw message
Signature · 1 line
2.43.0
Quoted 21 lines · Eduard Bostina
Convert the Texas Instruments SoC PWM Subsystem bindings to DT schema.
During the conversion, the following updates were made:
- 'counter' node was added to the allowed child nodes list to resolvedtbs_checkwarnings. Some eqep nodes use 'counter' instead of 'eqep'.Signed-off-by Eduard Bostina <[email protected]>---
Changes in v3:
- Completed the single example by adding the required 'clocks', 'clock-names' and 'interrupts' properties to the ECAP, EQEP and EHRPWM child nodes, so the example passes a fulldt_binding_check.Changes in v2:
- Renamed the file to ti,am33xx-pwmss.yaml to match the base compatible.
- Required a 'compatible' property in the child nodes.
- Reduced the binding to a single example and included the PWM child nodes (ECAP, EQEP, EHRPWM) in it.
Quoted 9 lines
Link to v2: https://lore.kernel.org/all/[email protected]/
Link to v1: https://lore.kernel.org/all/[email protected]/.../devicetree/bindings/pwm/pwm-tipwmss.txt | 58 ------------- .../bindings/pwm/ti,am33xx-pwmss.yaml | 82 +++++++++++++++++++ 2 files changed, 82 insertions(+), 58 deletions(-) delete mode 100644 Documentation/devicetree/bindings/pwm/pwm-tipwmss.txt create mode 100644 Documentation/devicetree/bindings/pwm/ti,am33xx-pwmss.yaml
Uwe Kleine-König
maintainerHello,
Quoted 15 lines · Eduard Bostina
Convert the Texas Instruments SoC PWM Subsystem bindings to DT schema.
During the conversion, the following updates were made:
- 'counter' node was added to the allowed child nodes list to resolvedtbs_checkwarnings. Some eqep nodes use 'counter' instead of 'eqep'.Signed-off-by Eduard Bostina <[email protected]>---
Changes in v3:
- Completed the single example by adding the required 'clocks', 'clock-names' and 'interrupts' properties to the ECAP, EQEP and EHRPWM child nodes, so the example passes a fulldt_binding_check.
Quoted 8 lines
Changes in v2:
- Renamed the file to ti,am33xx-pwmss.yaml to match the base compatible.
- Required a 'compatible' property in the child nodes.
- Reduced the binding to a single example and included the PWM child nodes (ECAP, EQEP, EHRPWM) in it.Link to v2: https://lore.kernel.org/all/[email protected]/
Link to v1: https://lore.kernel.org/all/[email protected]/
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/ukleinek/linux.git pwm/for-next
as 7.4-rc1 material.
Thanks for your contribution
Uwe