regulator: dt-bindings: microchip,mcp16502: convert to YAML
Subsystems (3)
Andrei Simion
maintainerPATCH v2 1/1 regulator: dt-bindings: microchip,mcp16502: convert to YAML
Convert devicetree binding mcp16502-regulator.txt to YAML format.
---
Changes v1 -> v2:
- reverse subject prefixes
- line break after file "description:"
- drop description for reg
- drop regulator-name
- add regulator-initial-mode
- unevaluatedProperties just after $ref: regulator.yaml#
- additionalProperties just before "required"
- node names generic in example
- use 4 spaces for example indentation
--- .../bindings/regulator/mcp16502-regulator.txt | 144 -------------- .../regulator/microchip,mcp16502.yaml | 182 ++++++++++++++++++ 2 files changed, 182 insertions(+), 144 deletions(-) delete mode 100644 Documentation/devicetree/bindings/regulator/mcp16502-regulator.txt create mode 100644 Documentation/devicetree/bindings/regulator/microchip,mcp16502.yaml
Documentation/devicetree/bindings/regulator/mcp16502-regulator.txt deleted +0 -144
@@ -1,144 +0,0 @@ -MCP16502 PMIC - -Required properties: -- compatible: "microchip,mcp16502" -- reg: I2C slave address -- lpm-gpios: GPIO for LPM pin. Note that this GPIO *must* remain high during - suspend-to-ram, keeping the PMIC into HIBERNATE mode; this - property is optional; -- regulators: A node that houses a sub-node for each regulator within - the device. Each sub-node is identified using the node's - name. The content of each sub-node is defined by the - standard binding for regulators; see regulator.txt. - -Regulators of MCP16502 PMIC: -1) VDD_IO - Buck (1.2 - 3.7 V) -2) VDD_DDR - Buck (0.6 - 1.85 V) -3) VDD_CORE - Buck (0.6 - 1.85 V) -4) VDD_OTHER - BUCK (0.6 - 1.85 V) -5) LDO1 - LDO (1.2 - 3.7 V) -6) LDO2 - LDO (1.2 - 3.7 V) - -Regulator modes: -2 - FPWM: higher precision, higher consumption -4 - AutoPFM: lower precision, lower consumption - -Each regulator is defined using the standard binding for regulators. - -Example: - -mcp16502@5b { - compatible = "microchip,mcp16502"; - reg = <0x5b>; - status = "okay"; - lpm-gpios = <&pioBU 7 GPIO_ACTIVE_HIGH>; - - regulators { - VDD_IO { - regulator-name = "VDD_IO"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <3700000>; - regulator-initial-mode = <2>; - regulator-allowed-modes = <2>, <4>; - regulator-always-on; - - regulator-state-standby { - regulator-on-in-suspend; - regulator-mode = <4>; - }; - - regulator-state-mem { - regulator-off-in-suspend; - regulator-mode = <4>; - }; - }; - - VDD_DDR { - regulator-name = "VDD_DDR"; - regulator-min-microvolt = <600000>; - regulator-max-microvolt = <1850000>; - regulator-initial-mode = <2>; - regulator-allowed-modes = <2>, <4>; - regulator-always-on; - - regulator-state-standby { - regulator-on-in-suspend; - regulator-mode = <4>; - }; - - regulator-state-mem { - regulator-on-in-suspend; - regulator-mode = <4>; - }; - }; - - VDD_CORE { - regulator-name = "VDD_CORE"; - regulator-min-microvolt = <600000>; - regulator-max-microvolt = <1850000>; - regulator-initial-mode = <2>; - regulator-allowed-modes = <2>, <4>; - regulator-always-on; - - regulator-state-standby { - regulator-on-in-suspend; - regulator-mode = <4>; - }; - - regulator-state-mem { - regulator-off-in-suspend; - regulator-mode = <4>; - }; - }; - - VDD_OTHER { - regulator-name = "VDD_OTHER"; - regulator-min-microvolt = <600000>; - regulator-max-microvolt = <1850000>; - regulator-initial-mode = <2>; - regulator-allowed-modes = <2>, <4>; - regulator-always-on; - - regulator-state-standby { - regulator-on-in-suspend; - regulator-mode = <4>; - }; - - regulator-state-mem { - regulator-off-in-suspend; - regulator-mode = <4>; - }; - }; - - LDO1 { - regulator-name = "LDO1"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <3700000>; - regulator-always-on; - - regulator-state-standby { - regulator-on-in-suspend; - }; - - regulator-state-mem { - regulator-off-in-suspend; - }; - }; - - LDO2 { - regulator-name = "LDO2"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <3700000>; - regulator-always-on; - - regulator-state-standby { - regulator-on-in-suspend; - }; - - regulator-state-mem { - regulator-off-in-suspend; - }; - }; - - }; -};
Documentation/devicetree/bindings/regulator/microchip,mcp16502.yaml new file +182 -0
182 lines not on this page · raw message
Signature · 1 line
2.34.1
Quoted 3 lines · Andrei Simion
Convert devicetree binding mcp16502-regulator.txt to YAML format.
Signed-off-by Andrei Simion <[email protected]>
Thank you for your patch. There is something to discuss/improve.
Quoted 14 lines
---
Changes v1 -> v2:
- reverse subject prefixes
- line break after file "description:"
- drop description for reg
- drop regulator-name
- add regulator-initial-mode
- unevaluatedProperties just after $ref: regulator.yaml#
- additionalProperties just before "required"
- node names generic in example
- use 4 spaces for example indentationDocumentation/devicetree/bindings/regulator/microchip,mcp16502.yaml new file +1
-0+
Documentation/devicetree/bindings/regulator/microchip,mcp16502.yaml line 36
Quoted 10 lines
Documentation/devicetree/bindings/regulator/microchip,mcp16502.yaml new file +10
-0+ reg: + maxItems: 1 + + regulators: + type: object + description: List of regulators and its properties. + A node that houses a sub-node for each regulator within + the device. Each sub-node is identified using the node's + name. The content of each sub-node is defined by the + standard binding for regulators;
This is a friendly reminder during the review process.
It seems my or other reviewer's previous comments were not fully addressed. Maybe the feedback got lost between the quotes, maybe you just forgot to apply it. Please go back to the previous discussion and either implement all requested changes or keep discussing them.
Also: you can keep just one line of description. Rest is redundant.
Best regards,
Krzysztof
[email protected]
maintainerQuoted 24 lines · Krzysztof Kozlowski
[You don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
Quoted 3 lines · Andrei Simion
Convert devicetree binding mcp16502-regulator.txt to YAML format.
Signed-off-by Andrei Simion <[email protected]>Thank you for your patch. There is something to discuss/improve.
Quoted 11 lines
---
Changes v1 -> v2:
- reverse subject prefixes
- line break after file "description:"
- drop description for reg
- drop regulator-name
- add regulator-initial-mode
- unevaluatedProperties just after $ref: regulator.yaml#
- additionalProperties just before "required"
- node names generic in example
- use 4 spaces for example indentation
Quoted 6 lines
Documentation/devicetree/bindings/regulator/microchip,mcp16502.yaml line 31
Quoted 6 lines
Documentation/devicetree/bindings/regulator/microchip,mcp16502.yaml new file +6
-0+ + reg: + maxItems: 1 + + regulators: + type: object
additionalProperties: false -> forgot this line. That is my missing to hit all the points in the previous review. Let me know If that is all.
Quoted 5 lines
Documentation/devicetree/bindings/regulator/microchip,mcp16502.yaml
Quoted 5 lines
Documentation/devicetree/bindings/regulator/microchip,mcp16502.yaml new file +5
-0+ description: List of regulators and its properties. + A node that houses a sub-node for each regulator within + the device. Each sub-node is identified using the node's + name. The content of each sub-node is defined by the + standard binding for regulators;>
Quoted 8 lines
This is a friendly reminder during the review process.
It seems my or other reviewer's previous comments were not fully addressed. Maybe the feedback got lost between the quotes, maybe you just forgot to apply it. Please go back to the previous discussion and either implement all requested changes or keep discussing them.
Quoted 1 line
Also: you can keep just one line of description. Rest is redundant.
Yes, I will change in v3 .
Quoted 3 lines
Quoted 1 line
Best regards,
Krzysztof
Thank you for review and best regards,
Andrei Simion
Quoted 10 lines · On 30/01/2024 16:22, [email protected] wrote:
Quoted 7 lines · Krzysztof Kozlowski
Documentation/devicetree/bindings/regulator/microchip,mcp16502.yaml line 31
Quoted 7 lines
Documentation/devicetree/bindings/regulator/microchip,mcp16502.yaml new file +6
-0+ + reg: + maxItems: 1 + + regulators: + type: objectadditionalProperties: false -> forgot this line. That is my missing to hit all the points in the previous review. Let me know If that is all.
I think this should be it, thanks.
Best regards,
Krzysztof