dt-bindings: mfd: Convert stpmic1 bindings to json-schema
Subsystems (6)
PATCH v5 1/1 dt-bindings: mfd: Convert stpmic1 bindings to json-schema
Convert stpmic1 bindings to json-schema.
---
version 5:
- move $ref regulator.yaml under a patternProperties
- move remain fixed strings under properties field
version 4:
- move on uppder node $ref: ../regulator/regulator.yaml
- move fixed strings under properties field
- remove unneeded () in patternProperties
- keep ldo3 separate from other ldo properties
Note:
- 'st,mask-reset' property stay in each subnode, I don't find the syntax to avoid dupliquate it.
- ldo6-supply and all possible *-supply are describe by this regular
expression: ^(buck[1-4]|ldo[1-6]|boost|pwr_sw[1-2])-supply$":
version 3:
- put $ref under allOf keyword
- for each regulator node add the list of supported regulator properties
.../devicetree/bindings/input/st,stpmic1-onkey.txt | 28 -- .../devicetree/bindings/mfd/st,stpmic1.txt | 61 ---- .../devicetree/bindings/mfd/st,stpmic1.yaml | 339 +++++++++++++++++++++ .../bindings/regulator/st,stpmic1-regulator.txt | 64 ---- .../bindings/watchdog/st,stpmic1-wdt.txt | 11 - 5 files changed, 339 insertions(+), 164 deletions(-) delete mode 100644 Documentation/devicetree/bindings/input/st,stpmic1-onkey.txt delete mode 100644 Documentation/devicetree/bindings/mfd/st,stpmic1.txt create mode 100644 Documentation/devicetree/bindings/mfd/st,stpmic1.yaml delete mode 100644 Documentation/devicetree/bindings/regulator/st,stpmic1-regulator.txt delete mode 100644 Documentation/devicetree/bindings/watchdog/st,stpmic1-wdt.txt
Documentation/devicetree/bindings/input/st,stpmic1-onkey.txt deleted +0 -28
@@ -1,28 +0,0 @@ -STMicroelectronics STPMIC1 Onkey - -Required properties: - -- compatible = "st,stpmic1-onkey"; -- interrupts: interrupt line to use -- interrupt-names = "onkey-falling", "onkey-rising" - onkey-falling: happens when onkey is pressed; IT_PONKEY_F of pmic - onkey-rising: happens when onkey is released; IT_PONKEY_R of pmic - -Optional properties: - -- st,onkey-clear-cc-flag: onkey is able power on after an - over-current shutdown event. -- st,onkey-pu-inactive: onkey pull up is not active -- power-off-time-sec: Duration in seconds which the key should be kept - pressed for device to power off automatically (from 1 to 16 seconds). - see See Documentation/devicetree/bindings/input/input.yaml - -Example: - -onkey { - compatible = "st,stpmic1-onkey"; - interrupt-parent = <&pmic>; - interrupts = <IT_PONKEY_F 0>,<IT_PONKEY_R 1>; - interrupt-names = "onkey-falling", "onkey-rising"; - power-off-time-sec = <10>; -};
Documentation/devicetree/bindings/mfd/st,stpmic1.txt deleted +0 -61
61 lines not on this page · raw message
Documentation/devicetree/bindings/mfd/st,stpmic1.yaml new file +339 -0
339 lines not on this page · raw message
Documentation/devicetree/bindings/regulator/st,stpmic1-regulator.txt deleted +0 -64
64 lines not on this page · raw message
Documentation/devicetree/bindings/watchdog/st,stpmic1-wdt.txt deleted +0 -11
@@ -1,11 +0,0 @@ -STMicroelectronics STPMIC1 Watchdog - -Required properties: - -- compatible : should be "st,stpmic1-wdt" - -Example: - -watchdog { - compatible = "st,stpmic1-wdt"; -};
Signature · 1 line
2.15.0
Quoted 23 lines · Benjamin Gaignard
Convert stpmic1 bindings to json-schema.
Signed-off-by Benjamin Gaignard <[email protected]>---
version 5:
- move $refregulator.yamlunder a patternProperties
- move remain fixed strings under properties fieldversion 4:
- move on uppder node $ref:../regulator/regulator.yaml
- move fixed strings under properties field
- remove unneeded () in patternProperties
- keep ldo3 separate from other ldo properties
Note:
- 'st,mask-reset' property stay in each subnode, I don't find the syntax to avoid dupliquate it.
- ldo6-supply and all possible *-supply are describe by this regular
expression: ^(buck[1-4]|ldo[1-6]|boost|pwr_sw[1-2])-supply$":version 3:
- put $ref under allOf keyword
- for each regulator node add the list of supported regulator properties
Quoted 12 lines
.../devicetree/bindings/input/st,stpmic1-onkey.txt | 28 -- .../devicetree/bindings/mfd/st,stpmic1.txt | 61 ---- .../devicetree/bindings/mfd/st,stpmic1.yaml | 339 +++++++++++++++++++++ .../bindings/regulator/st,stpmic1-regulator.txt | 64 ---- .../bindings/watchdog/st,stpmic1-wdt.txt | 11 - 5 files changed, 339 insertions(+), 164 deletions(-) delete mode 100644 Documentation/devicetree/bindings/input/st,stpmic1-onkey.txt delete mode 100644 Documentation/devicetree/bindings/mfd/st,stpmic1.txt create mode 100644 Documentation/devicetree/bindings/mfd/st,stpmic1.yaml delete mode 100644 Documentation/devicetree/bindings/regulator/st,stpmic1-regulator.txt delete mode 100644 Documentation/devicetree/bindings/watchdog/st,stpmic1-wdt.txt
Quoted 37 lines · Rob Herring
Quoted 23 lines · Benjamin Gaignard
Convert stpmic1 bindings to json-schema.
Signed-off-by Benjamin Gaignard <[email protected]>---
version 5:
- move $refregulator.yamlunder a patternProperties
- move remain fixed strings under properties fieldversion 4:
- move on uppder node $ref:../regulator/regulator.yaml
- move fixed strings under properties field
- remove unneeded () in patternProperties
- keep ldo3 separate from other ldo properties
Note:
- 'st,mask-reset' property stay in each subnode, I don't find the syntax to avoid dupliquate it.
- ldo6-supply and all possible *-supply are describe by this regular
expression: ^(buck[1-4]|ldo[1-6]|boost|pwr_sw[1-2])-supply$":version 3:
- put $ref under allOf keyword
- for each regulator node add the list of supported regulator propertiesQuoted 12 lines
.../devicetree/bindings/input/st,stpmic1-onkey.txt | 28 -- .../devicetree/bindings/mfd/st,stpmic1.txt | 61 ---- .../devicetree/bindings/mfd/st,stpmic1.yaml | 339 +++++++++++++++++++++ .../bindings/regulator/st,stpmic1-regulator.txt | 64 ---- .../bindings/watchdog/st,stpmic1-wdt.txt | 11 - 5 files changed, 339 insertions(+), 164 deletions(-) delete mode 100644 Documentation/devicetree/bindings/input/st,stpmic1-onkey.txt delete mode 100644 Documentation/devicetree/bindings/mfd/st,stpmic1.txt create mode 100644 Documentation/devicetree/bindings/mfd/st,stpmic1.yaml delete mode 100644 Documentation/devicetree/bindings/regulator/st,stpmic1-regulator.txt delete mode 100644 Documentation/devicetree/bindings/watchdog/st,stpmic1-wdt.txt
Quoted 1 line
Reviewed-by Rob Herring <[email protected]>
Can you take this please Rob?
It would save an IB and PR.
Signature · 4 lines
Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Rob Herring
maintainerQuoted 40 lines · Lee Jones
Quoted 37 lines · Rob Herring
Quoted 35 lines · Benjamin Gaignard
Convert stpmic1 bindings to json-schema.
Signed-off-by Benjamin Gaignard <[email protected]>---
version 5:
- move $refregulator.yamlunder a patternProperties
- move remain fixed strings under properties fieldversion 4:
- move on uppder node $ref:../regulator/regulator.yaml
- move fixed strings under properties field
- remove unneeded () in patternProperties
- keep ldo3 separate from other ldo properties
Note:
- 'st,mask-reset' property stay in each subnode, I don't find the syntax to avoid dupliquate it.
- ldo6-supply and all possible *-supply are describe by this regular
expression: ^(buck[1-4]|ldo[1-6]|boost|pwr_sw[1-2])-supply$":version 3:
- put $ref under allOf keyword
- for each regulator node add the list of supported regulator properties.../devicetree/bindings/input/st,stpmic1-onkey.txt | 28 -- .../devicetree/bindings/mfd/st,stpmic1.txt | 61 ---- .../devicetree/bindings/mfd/st,stpmic1.yaml | 339 +++++++++++++++++++++ .../bindings/regulator/st,stpmic1-regulator.txt | 64 ---- .../bindings/watchdog/st,stpmic1-wdt.txt | 11 - 5 files changed, 339 insertions(+), 164 deletions(-) delete mode 100644 Documentation/devicetree/bindings/input/st,stpmic1-onkey.txt delete mode 100644 Documentation/devicetree/bindings/mfd/st,stpmic1.txt create mode 100644 Documentation/devicetree/bindings/mfd/st,stpmic1.yaml delete mode 100644 Documentation/devicetree/bindings/regulator/st,stpmic1-regulator.txt delete mode 100644 Documentation/devicetree/bindings/watchdog/st,stpmic1-wdt.txt
Quoted 3 lines
Quoted 1 line
Reviewed-by Rob Herring <[email protected]>Can you take this please Rob?
Yes, done.
Rob