dt-bindings: pwm: convert lpc1850-sct-pwm.txt to yaml format
Subsystems (3)
Frank Li
maintainerPATCH 1/1 dt-bindings: pwm: convert lpc1850-sct-pwm.txt to yaml format
Convert lpc1850-sct-pwm.txt to yaml format.
Additional changes:
- add ref pwm.yaml.
- add resets property to match existed dts.
Signed-off-by Frank Li <[email protected]>
--- .../bindings/pwm/lpc1850-sct-pwm.txt | 20 -------- .../bindings/pwm/nxp,lpc1850-sct-pwm.yaml | 51 +++++++++++++++++++ 2 files changed, 51 insertions(+), 20 deletions(-) delete mode 100644 Documentation/devicetree/bindings/pwm/lpc1850-sct-pwm.txt create mode 100644 Documentation/devicetree/bindings/pwm/nxp,lpc1850-sct-pwm.yaml
Documentation/devicetree/bindings/pwm/lpc1850-sct-pwm.txt deleted +0 -20
@@ -1,20 +0,0 @@ -* NXP LPC18xx State Configurable Timer - Pulse Width Modulator driver - -Required properties: - - compatible: Should be "nxp,lpc1850-sct-pwm" - - reg: Should contain physical base address and length of pwm registers. - - clocks: Must contain an entry for each entry in clock-names. - See ../clock/clock-bindings.txt for details. - - clock-names: Must include the following entries. - - pwm: PWM operating clock. - - #pwm-cells: Should be 3. See pwm.yaml in this directory for the description - of the cells format. - -Example: - pwm: pwm@40000000 { - compatible = "nxp,lpc1850-sct-pwm"; - reg = <0x40000000 0x1000>; - clocks =<&ccu1 CLK_CPU_SCT>; - clock-names = "pwm"; - #pwm-cells = <3>; - };
Documentation/devicetree/bindings/pwm/nxp,lpc1850-sct-pwm.yaml new file +51 -0
51 lines not on this page · raw message
Signature · 1 line
2.34.1
Quoted 6 lines · Frank Li
Convert lpc1850-sct-pwm.txt to yaml format.
Additional changes:
- add refpwm.yaml.
- add resets property to match existed dts.
Quoted 8 lines
Signed-off-by Frank Li <[email protected]>--- .../bindings/pwm/lpc1850-sct-pwm.txt | 20 -------- .../bindings/pwm/nxp,lpc1850-sct-pwm.yaml | 51 +++++++++++++++++++ 2 files changed, 51 insertions(+), 20 deletions(-) delete mode 100644 Documentation/devicetree/bindings/pwm/lpc1850-sct-pwm.txt create mode 100644 Documentation/devicetree/bindings/pwm/nxp,lpc1850-sct-pwm.yaml
Reviewed-by Rob Herring (Arm) <[email protected]>
Uwe Kleine-König
maintainerHello Frank,
Quoted 6 lines · Frank Li
Documentation/devicetree/bindings/pwm/nxp,lpc1850-sct-pwm.yaml new file +6
-0+properties: + compatible: + const: nxp,lpc1850-sct-pwm + + reg: + maxItems: 1
Documentation/devicetree/bindings/pwm/nxp,lpc1850-sct-pwm.yaml line 27
Quoted 10 lines
Documentation/devicetree/bindings/pwm/nxp,lpc1850-sct-pwm.yaml new file +10
-0+ + clocks: + maxItems: 1 + + clock-names: + items: + - const: pwm + + resets: + maxItems: 1
Please add:
'#pwm-cells':
const: 3
Otherwise looks fine.
Best regards
Uwe
Vladimir Zapolskiy
Reviewed-byQuoted 22 lines · Uwe Kleine-König
Hello Frank,
Quoted 6 lines · Frank Li
Documentation/devicetree/bindings/pwm/nxp,lpc1850-sct-pwm.yaml new file +6
-0+properties: + compatible: + const: nxp,lpc1850-sct-pwm + + reg: + maxItems: 1Documentation/devicetree/bindings/pwm/nxp,lpc1850-sct-pwm.yaml line 27
Quoted 10 lines
Documentation/devicetree/bindings/pwm/nxp,lpc1850-sct-pwm.yaml new file +10
-0+ + clocks: + maxItems: 1 + + clock-names: + items: + - const: pwm + + resets: + maxItems: 1Please add:
Quoted 5 lines
'#pwm-cells': const: 3Otherwise looks fine.
With the requested change applied, please add
Reviewed-by Vladimir Zapolskiy <[email protected]>
--
Best wishes,
Vladimir