regulator/mfd: dt-bindings: maxim,max77802: convert to dtschema
Subsystems (5)
v2 cover regulator/mfd: dt-bindings: maxim,max77802: convert to dtschema
Hi,
Changes since v1
================
1. MFD: Use absolute path to schemas.
2. Regulator: skip properties.
Dependencies
============
1. DTS patch: nothing depends on it, sending here so Rob's automatic checker won't complain about DTS.
I will take it via Samsung SoC tree.
2. Final MFD patch depends on regulator, so the two last patches could go via Rob's, Mark's or Lee's trees.
Best regards,
Krzysztof
Krzysztof Kozlowski (3):
regulator: dt-bindings: maxim,max77802: convert to dtschema
dt-bindings: mfd: maxim,max77802: convert to dtschema
dt-bindings: leds: common: fix unit address in max77693 example
.../devicetree/bindings/leds/common.yaml | 9 +- .../devicetree/bindings/mfd/max77802.txt | 25 --- .../bindings/mfd/maxim,max77802.yaml | 194 ++++++++++++++++++ .../bindings/regulator/max77802.txt | 111 ---------- .../bindings/regulator/maxim,max77802.yaml | 97 +++++++++ MAINTAINERS | 2 +- 6 files changed, 299 insertions(+), 139 deletions(-) delete mode 100644 Documentation/devicetree/bindings/mfd/max77802.txt create mode 100644 Documentation/devicetree/bindings/mfd/maxim,max77802.yaml delete mode 100644 Documentation/devicetree/bindings/regulator/max77802.txt create mode 100644 Documentation/devicetree/bindings/regulator/maxim,max77802.yaml
Signature · 1 line
2.32.0
PATCH v2 1/3 regulator: dt-bindings: maxim,max77802: convert to dtschema
Convert the regulators of Maxim MAX77802 PMIC to DT schema format.
--- .../bindings/regulator/max77802.txt | 111 ------------------ .../bindings/regulator/maxim,max77802.yaml | 97 +++++++++++++++ 2 files changed, 97 insertions(+), 111 deletions(-) delete mode 100644 Documentation/devicetree/bindings/regulator/max77802.txt create mode 100644 Documentation/devicetree/bindings/regulator/maxim,max77802.yaml
Documentation/devicetree/bindings/regulator/max77802.txt deleted +0 -111
@@ -1,111 +0,0 @@ -Binding for Maxim MAX77802 regulators - -This is a part of device tree bindings of MAX77802 multi-function device. -More information can be found in bindings/mfd/max77802.txt file. - -The MAX77802 PMIC has 10 high-efficiency Buck and 32 Low-dropout (LDO) -regulators that can be controlled over I2C. - -Following properties should be present in main device node of the MFD chip. - -Optional properties: -- inb1-supply: The input supply for BUCK1 -- inb2-supply: The input supply for BUCK2 -- inb3-supply: The input supply for BUCK3 -- inb4-supply: The input supply for BUCK4 -- inb5-supply: The input supply for BUCK5 -- inb6-supply: The input supply for BUCK6 -- inb7-supply: The input supply for BUCK7 -- inb8-supply: The input supply for BUCK8 -- inb9-supply: The input supply for BUCK9 -- inb10-supply: The input supply for BUCK10 -- inl1-supply: The input supply for LDO8 and LDO15 -- inl2-supply: The input supply for LDO17, LDO27, LDO30 and LDO35 -- inl3-supply: The input supply for LDO3, LDO5, LDO6 and LDO7 -- inl4-supply: The input supply for LDO10, LDO11, LDO13 and LDO14 -- inl5-supply: The input supply for LDO9 and LDO19 -- inl6-supply: The input supply for LDO4, LDO21, LDO24 and LDO33 -- inl7-supply: The input supply for LDO18, LDO20, LDO28 and LDO29 -- inl9-supply: The input supply for LDO12, LDO23, LDO25, LDO26, LDO32 and LDO34 -- inl10-supply: The input supply for LDO1 and LDO2 - -Optional nodes: -- regulators : The regulators of max77802 have to be instantiated - under subnode named "regulators" using the following format. - - regulator-name { - standard regulator constraints.... - }; - refer Documentation/devicetree/bindings/regulator/regulator.txt - -The regulator node name should be initialized with a string to get matched -with their hardware counterparts as follow. The valid names are: - - -LDOn : for LDOs, where n can lie in ranges 1-15, 17-21, 23-30 - and 32-35. - example: LDO1, LDO2, LDO35. - -BUCKn : for BUCKs, where n can lie in range 1 to 10. - example: BUCK1, BUCK5, BUCK10. - -The max77802 regulator supports two different operating modes: Normal and Low -Power Mode. Some regulators support the modes to be changed at startup or by -the consumers during normal operation while others only support to change the -mode during system suspend. The standard regulator suspend states binding can -be used to configure the regulator operating mode. - -The regulators that support the standard "regulator-initial-mode" property, -changing their mode during normal operation are: LDOs 1, 3, 20 and 21. - -The possible values for "regulator-initial-mode" and "regulator-mode" are: - 1: Normal regulator voltage output mode. - 3: Low Power which reduces the quiescent current down to only 1uA - -The valid modes list is defined in the dt-bindings/regulator/maxim,max77802.h -header and can be included by device tree source files. - -The standard "regulator-mode" property can only be used for regulators that -support changing their mode to Low Power Mode during suspend. These regulators -are: BUCKs 2-4 and LDOs 1-35. Also, it only takes effect if the regulator has -been enabled for the given suspend state using "regulator-on-in-suspend" and -has not been disabled for that state using "regulator-off-in-suspend". - -Example: - - max77802@9 { - compatible = "maxim,max77802"; - interrupt-parent = <&wakeup_eint>; - interrupts = <26 0>; - reg = <0x09>; - #address-cells = <1>; - #size-cells = <0>; - - inb1-supply = <&parent_reg>; - - regulators { - ldo1_reg: LDO1 { - regulator-name = "vdd_1v0"; - regulator-min-microvolt = <1000000>; - regulator-max-microvolt = <1000000>; - regulator-always-on; - regulator-initial-mode = <MAX77802_OPMODE_LP>; - }; - - ldo11_reg: LDO11 { - regulator-name = "vdd_ldo11"; - regulator-min-microvolt = <1900000>; - regulator-max-microvolt = <1900000>; - regulator-always-on; - regulator-state-mem { - regulator-on-in-suspend; - regulator-mode = <MAX77802_OPMODE_LP>; - }; - }; - - buck1_reg: BUCK1 { - regulator-name = "vdd_mif"; - regulator-min-microvolt = <950000>; - regulator-max-microvolt = <1300000>; - regulator-always-on; - regulator-boot-on; - }; - };
Documentation/devicetree/bindings/regulator/maxim,max77802.yaml new file +97 -0
97 lines not on this page · raw message
Signature · 1 line
2.32.0
Re: [PATCH v2 1/3] regulator: dt-bindings: maxim,max77802: convert to dtschema
Quoted 10 lines · Krzysztof Kozlowski
Convert the regulators of Maxim MAX77802 PMIC to DT schema format.
Signed-off-by Krzysztof Kozlowski <[email protected]>--- .../bindings/regulator/max77802.txt | 111 ------------------ .../bindings/regulator/maxim,max77802.yaml | 97 +++++++++++++++ 2 files changed, 97 insertions(+), 111 deletions(-) delete mode 100644 Documentation/devicetree/bindings/regulator/max77802.txt create mode 100644 Documentation/devicetree/bindings/regulator/maxim,max77802.yaml
Re: [PATCH v2 1/3] regulator: dt-bindings: maxim,max77802: convert to dtschema
In reply to Krzysztof KozlowskiQuoted 1 line · Krzysztof Kozlowski
Convert the regulators of Maxim MAX77802 PMIC to DT schema format.
Lee Jones
AppliedRe: [PATCH v2 1/3] regulator: dt-bindings: maxim,max77802: convert to dtschema
In reply to Krzysztof KozlowskiQuoted 9 lines · Krzysztof Kozlowski
Convert the regulators of Maxim MAX77802 PMIC to DT schema format.
Signed-off-by Krzysztof Kozlowski <[email protected]>--- .../bindings/regulator/max77802.txt | 111 ------------------ .../bindings/regulator/maxim,max77802.yaml | 97 +++++++++++++++ 2 files changed, 97 insertions(+), 111 deletions(-) delete mode 100644 Documentation/devicetree/bindings/regulator/max77802.txt create mode 100644 Documentation/devicetree/bindings/regulator/maxim,max77802.yaml
Applied, thanks.
Signature · 4 lines
Lee Jones [李琼斯] Principal Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog
PATCH v2 2/3 dt-bindings: mfd: maxim,max77802: convert to dtschema
In reply to Krzysztof KozlowskiConvert the MFD part of Maxim MAX77802 PMIC to DT schema format. The example DTS was copied from existing DTS (exynos5800-peach-pi.dts), so keep the license as GPL-2.0-only.
--- .../devicetree/bindings/mfd/max77802.txt | 25 --- .../bindings/mfd/maxim,max77802.yaml | 194 ++++++++++++++++++ MAINTAINERS | 2 +- 3 files changed, 195 insertions(+), 26 deletions(-) delete mode 100644 Documentation/devicetree/bindings/mfd/max77802.txt create mode 100644 Documentation/devicetree/bindings/mfd/maxim,max77802.yaml
Documentation/devicetree/bindings/mfd/max77802.txt deleted +0 -25
@@ -1,25 +0,0 @@ -Maxim MAX77802 multi-function device - -The Maxim MAX77802 is a Power Management IC (PMIC) that contains 10 high -efficiency Buck regulators, 32 Low-DropOut (LDO) regulators used to power -up application processors and peripherals, a 2-channel 32kHz clock outputs, -a Real-Time-Clock (RTC) and a I2C interface to program the individual -regulators, clocks outputs and the RTC. - -Bindings for the built-in 32k clock generator block and -regulators are defined in ../clk/maxim,max77802.txt and -../regulator/max77802.txt respectively. - -Required properties: -- compatible : Must be "maxim,max77802" -- reg : Specifies the I2C slave address of PMIC block. -- interrupts : I2C device IRQ line connected to the main SoC. - -Example: - - max77802: pmic@9 { - compatible = "maxim,max77802"; - interrupt-parent = <&intc>; - interrupts = <26 IRQ_TYPE_NONE>; - reg = <0x09>; - };
Documentation/devicetree/bindings/mfd/maxim,max77802.yaml new file +194 -0
194 lines not on this page · raw message
MAINTAINERS +1 -1
@@ -11666,7 +11666,7 @@ MAXIM MAX77802 PMIC REGULATOR DEVICE DRIVER M: Javier Martinez Canillas <[email protected]> L: [email protected] S: Supported -F: Documentation/devicetree/bindings/*/*max77802.txt +F: Documentation/devicetree/bindings/*/*max77802.yaml F: drivers/regulator/max77802-regulator.c F: include/dt-bindings/*/*max77802.h
Signature · 1 line
2.32.0
Lee Jones
AppliedRe: [PATCH v2 2/3] dt-bindings: mfd: maxim,max77802: convert to dtschema
Quoted 6 lines · Krzysztof Kozlowski
Convert the MFD part of Maxim MAX77802 PMIC to DT schema format. The example DTS was copied from existing DTS (
exynos5800-peach-pi.dts), so keep the license as GPL-2.0-only.Signed-off-by Krzysztof Kozlowski <[email protected]>Reviewed-by Rob Herring <[email protected]>
Quoted 7 lines
--- .../devicetree/bindings/mfd/max77802.txt | 25 --- .../bindings/mfd/maxim,max77802.yaml | 194 ++++++++++++++++++ MAINTAINERS | 2 +- 3 files changed, 195 insertions(+), 26 deletions(-) delete mode 100644 Documentation/devicetree/bindings/mfd/max77802.txt create mode 100644 Documentation/devicetree/bindings/mfd/maxim,max77802.yaml
Applied, thanks.
Signature · 4 lines
Lee Jones [李琼斯] Principal Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog
PATCH v2 3/3 dt-bindings: leds: common: fix unit address in max77693 example
In reply to Krzysztof KozlowskiThe max77693 LED device node should not take an unit address, because it is instantiated from a max77693 I2C parent device node. This also splits all examples to separate DTS examples because they are actually independent.
--- Documentation/devicetree/bindings/leds/common.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/leds/common.yaml +7 -2
@@ -185,9 +185,11 @@ examples: }; }; - led-controller@0 { + - | + #include <dt-bindings/leds/common.h> + + led-controller { compatible = "maxim,max77693-led"; - reg = <0 0x100>; led { function = LED_FUNCTION_FLASH;
@@ -199,6 +201,9 @@ examples: }; }; + - | + #include <dt-bindings/leds/common.h> + i2c { #address-cells = <1>; #size-cells = <0>;
Signature · 1 line
2.32.0
Re: [PATCH v2 3/3] dt-bindings: leds: common: fix unit address in max77693 example
Quoted 10 lines · Krzysztof Kozlowski
The max77693 LED device node should not take an unit address, because it is instantiated from a max77693 I2C parent device node. This also splits all examples to separate DTS examples because they are actually independent.
Signed-off-by Krzysztof Kozlowski <[email protected]>--- Documentation/devicetree/bindings/leds/common.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
Re: [PATCH v2 3/3] dt-bindings: leds: common: fix unit address in max77693 example
In reply to Krzysztof KozlowskiQuoted 10 lines · Krzysztof Kozlowski
The max77693 LED device node should not take an unit address, because it is instantiated from a max77693 I2C parent device node. This also splits all examples to separate DTS examples because they are actually independent.
Signed-off-by Krzysztof Kozlowski <[email protected]>--- Documentation/devicetree/bindings/leds/common.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
This should be part of my max77693 patchset:
https://lore.kernel.org/lkml/[email protected]/
Nothing actually depends on this patch. It just fixes a warning which will be brought to eyes with mentioned max77693 patchset.
Pavel, feel free to take it separately via leds tree. Other way is to take it with other max77693 patches (probably via MFD tree).
Best regards,
Krzysztof
Re: [PATCH v2 3/3] dt-bindings: leds: common: fix unit address in max77693 example
Hi!
Quoted 11 lines
Quoted 10 lines
The max77693 LED device node should not take an unit address, because it is instantiated from a max77693 I2C parent device node. This also splits all examples to separate DTS examples because they are actually independent.
Signed-off-by Krzysztof Kozlowski <[email protected]>--- Documentation/devicetree/bindings/leds/common.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
Quoted 8 lines
This should be part of my max77693 patchset:
https://lore.kernel.org/lkml/[email protected]/Nothing actually depends on this patch. It just fixes a warning which will be brought to eyes with mentioned max77693 patchset.
Pavel, feel free to take it separately via leds tree. Other way is to take it with other max77693 patches (probably via MFD tree).
Ok, let me take it separately. Applied, thanks.
Best regards,
Pavel
Signature · 1 line
http://www.livejournal.com/~pavelmachek
Hello Krzysztof,
Quoted 17 lines · Krzysztof Kozlowski
Hi,
Changes since v1
================
1. MFD: Use absolute path to schemas.
2. Regulator: skip properties.Dependencies
============
1. DTS patch: nothing depends on it, sending here so Rob's automatic checker won't complain about DTS.
I will take it via Samsung SoC tree.2. Final MFD patch depends on regulator, so the two last patches could go via Rob's, Mark's or Lee's trees.
Quoted 8 lines
Best regards,
KrzysztofKrzysztof Kozlowski (3):
regulator: dt-bindings: maxim,max77802: convert to dtschema
dt-bindings: mfd: maxim,max77802: convert to dtschema
dt-bindings: leds: common: fix unit address in max77693 example
For the three patches:
Best regards,
Javier
Quoted 7 lines · Krzysztof Kozlowski
Hi,
Changes since v1
================
1. MFD: Use absolute path to schemas.
2. Regulator: skip properties.
Quoted 9 lines
Dependencies
============
1. DTS patch: nothing depends on it, sending here so Rob's automatic checker won't complain about DTS.
I will take it via Samsung SoC tree.2. Final MFD patch depends on regulator, so the two last patches could go via Rob's, Mark's or Lee's trees.
Dear Lee,
This patchset was reviewed and there are no outstanding issues. Could you pick up entire set via MFD tree?
Best regards,
Krzysztof
Quoted 14 lines · Krzysztof Kozlowski
Quoted 13 lines · Krzysztof Kozlowski
Hi,
Changes since v1
================
1. MFD: Use absolute path to schemas.
2. Regulator: skip properties.Dependencies
============
1. DTS patch: nothing depends on it, sending here so Rob's automatic checker won't complain about DTS.
I will take it via Samsung SoC tree.
Quoted 8 lines
Quoted 3 lines
2. Final MFD patch depends on regulator, so the two last patches could go via Rob's, Mark's or Lee's trees.
Dear Lee,
This patchset was reviewed and there are no outstanding issues. Could you pick up entire set via MFD tree?
Nothing from LED or Regulator?
Signature · 4 lines
Lee Jones [李琼斯] Principal Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog
Hi!
Quoted 6 lines
Quoted 4 lines
Dear Lee,
This patchset was reviewed and there are no outstanding issues. Could you pick up entire set via MFD tree?
Nothing from LED or Regulator?
I took 3/3 separately, as suggested.
Best regards,
Pavel
Signature · 1 line
http://www.livejournal.com/~pavelmachek
Quoted 11 lines · Pavel Machek
Hi!
Quoted 6 lines
Quoted 4 lines
Dear Lee,
This patchset was reviewed and there are no outstanding issues. Could you pick up entire set via MFD tree?
Nothing from LED or Regulator?
I took 3/3 separately, as suggested.
Thanks!
Best regards,
Krzysztof
Quoted 20 lines · Lee Jones
Quoted 18 lines · Krzysztof Kozlowski
Quoted 16 lines · Krzysztof Kozlowski
Hi,
Changes since v1
================
1. MFD: Use absolute path to schemas.
2. Regulator: skip properties.Dependencies
============
1. DTS patch: nothing depends on it, sending here so Rob's automatic checker won't complain about DTS.
I will take it via Samsung SoC tree.2. Final MFD patch depends on regulator, so the two last patches could go via Rob's, Mark's or Lee's trees.
Quoted 7 lines
Quoted 4 lines
Dear Lee,
This patchset was reviewed and there are no outstanding issues. Could you pick up entire set via MFD tree?
Nothing from LED or Regulator?
I will send a v3 of this with all acks and a minor change.
Best regards,
Krzysztof
Quoted 6 lines · Krzysztof Kozlowski
Hi,
Changes since v1
================
1. MFD: Use absolute path to schemas.
2. Regulator: skip properties.
Ah, this is v2.
Un-applying this and heading to apply v3 instead.
Quoted 29 lines
Dependencies
============
1. DTS patch: nothing depends on it, sending here so Rob's automatic checker won't complain about DTS.
I will take it via Samsung SoC tree.2. Final MFD patch depends on regulator, so the two last patches could go via Rob's, Mark's or Lee's trees.
Best regards,
KrzysztofKrzysztof Kozlowski (3):
regulator: dt-bindings: maxim,max77802: convert to dtschema
dt-bindings: mfd: maxim,max77802: convert to dtschema
dt-bindings: leds: common: fix unit address in max77693 example.../devicetree/bindings/leds/common.yaml | 9 +- .../devicetree/bindings/mfd/max77802.txt | 25 --- .../bindings/mfd/maxim,max77802.yaml | 194 ++++++++++++++++++ .../bindings/regulator/max77802.txt | 111 ---------- .../bindings/regulator/maxim,max77802.yaml | 97 +++++++++ MAINTAINERS | 2 +- 6 files changed, 299 insertions(+), 139 deletions(-) delete mode 100644 Documentation/devicetree/bindings/mfd/max77802.txt create mode 100644 Documentation/devicetree/bindings/mfd/maxim,max77802.yaml delete mode 100644 Documentation/devicetree/bindings/regulator/max77802.txt create mode 100644 Documentation/devicetree/bindings/regulator/maxim,max77802.yaml
Signature · 4 lines
Lee Jones [李琼斯] Principal Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog