* [PATCH v10 0/2] mfd: axp20x: Add DT binding documentation
@ 2015-02-20 11:19 Chen-Yu Tsai
2015-02-20 11:19 ` [PATCH v10 1/2] mfd: AXP20x: Add bindings documentation Chen-Yu Tsai
2015-02-20 11:19 ` [PATCH v10 2/2] dt-bindings: add vendor-prefix for X-Powers Chen-Yu Tsai
0 siblings, 2 replies; 8+ messages in thread
From: Chen-Yu Tsai @ 2015-02-20 11:19 UTC (permalink / raw)
To: Samuel Ortiz, Lee Jones, Mark Brown, Liam Girdwood, Maxime Ripard,
Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala
Cc: Chen-Yu Tsai, linux-kernel, linux-arm-kernel, devicetree
Hi everyone,
This is v10 of the axp20x series. v10 reverts back to the DT bindings
from v8. This is the binding currently supported by the kernel drivers
since 3.18. Mark Brown raised concern on the needless changes to
active regulator bindings in v9.
Maxime, I dropped your Acked-by because of all the changes I've made.
Please have a look again.
Mark (Brown), please take a look at the regulator bits in the second
patch. If it looks good, could you give your Acked-by?
I hope we can get this series merged so we can move on to adding
AXP221 support.
Regards,
ChenYu
Changes since v9:
- Revert to bindings in v8
- Dropped new patches in v9
- x-powers,dcdc-workmode default changed to "current hardware setting",
matching the regulator driver.
- Reorganized regulator related properties into separate section.
This should make it easier to read and also update for newer PMICs.
- Regulator nodes should only be listed if they are to be managed by
the OS.
Carlo Caione (2):
mfd: AXP20x: Add bindings documentation
dt-bindings: add vendor-prefix for X-Powers
Documentation/devicetree/bindings/mfd/axp20x.txt | 96 ++++++++++++++++++++++
.../devicetree/bindings/vendor-prefixes.txt | 1 +
2 files changed, 97 insertions(+)
create mode 100644 Documentation/devicetree/bindings/mfd/axp20x.txt
--
2.1.4
^ permalink raw reply [flat|nested] 8+ messages in thread* [PATCH v10 1/2] mfd: AXP20x: Add bindings documentation 2015-02-20 11:19 [PATCH v10 0/2] mfd: axp20x: Add DT binding documentation Chen-Yu Tsai @ 2015-02-20 11:19 ` Chen-Yu Tsai 2015-03-06 16:48 ` Chen-Yu Tsai ` (2 more replies) 2015-02-20 11:19 ` [PATCH v10 2/2] dt-bindings: add vendor-prefix for X-Powers Chen-Yu Tsai 1 sibling, 3 replies; 8+ messages in thread From: Chen-Yu Tsai @ 2015-02-20 11:19 UTC (permalink / raw) To: Samuel Ortiz, Lee Jones, Mark Brown, Liam Girdwood, Maxime Ripard, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala Cc: Carlo Caione, linux-kernel, linux-arm-kernel, devicetree, Chen-Yu Tsai From: Carlo Caione <carlo@caione.org> Bindings documentation for the AXP20x driver. In this file also sub-nodes are documented. Signed-off-by: Carlo Caione <carlo@caione.org> [wens@csie.org: clarify interrupt source for the axp PMIC] [wens@csie.org: explain dcdc-workmode in detail and trim lines to 80 chars] [wens@csie.org: make regulator supplies optional if using unregulated input] [wens@csie.org: use cubieboard2 regulator nodes as example] [wens@csie.org: x-powers,dcdc-workmode default changed to 'current hardware setting'] [wens@csie.org: reorganized regulator related properties into separate section.] Signed-off-by: Chen-Yu Tsai <wens@csie.org> --- Documentation/devicetree/bindings/mfd/axp20x.txt | 96 ++++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/axp20x.txt diff --git a/Documentation/devicetree/bindings/mfd/axp20x.txt b/Documentation/devicetree/bindings/mfd/axp20x.txt new file mode 100644 index 000000000000..98685f291a72 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/axp20x.txt @@ -0,0 +1,96 @@ +AXP202/AXP209 device tree bindings + +The axp20x family current members : +axp202 (X-Powers) +axp209 (X-Powers) + +Required properties: +- compatible: "x-powers,axp202" or "x-powers,axp209" +- reg: The I2C slave address for the AXP chip +- interrupt-parent: The parent interrupt controller +- interrupts: SoC NMI / GPIO interrupt connected to the PMIC's IRQ pin +- interrupt-controller: axp20x has its own internal IRQs +- #interrupt-cells: Should be set to 1 + +Optional properties: +- x-powers,dcdc-freq: defines the work frequency of DC-DC in KHz + (range: 750-1875). Default: 1.5MHz +- <input>-supply: a phandle to the regulator supply node. May be omitted if + inputs are unregulated, such as using the IPSOUT output + from the PMIC. + +- regulators: A node that houses a sub-node for each regulator. Regulators + not used but preferred to be managed by the OS should be + listed as well. + See Documentation/devicetree/bindings/regulator/regulator.txt + for more information on standard regulator bindings. + +Optional properties for DCDC regulators: +- x-powers,dcdc-workmode: 1 for PWM mode, 0 for AUTO (PWM/PFM) mode + Default: Current hardware setting + The DCDC regulators work in a mixed PWM/PFM mode, + using PFM under light loads and switching to PWM + for heavier loads. Forcing PWM mode trades efficiency + under light loads for lower output noise. This + probably makes sense for HiFi audio related + applications that aren't battery constrained. + + +AXP202/AXP209 regulators, type, and corresponding input supply names: + +Regulator Type Supply Name Notes +--------- ---- ----------- ----- +DCDC2 : DC-DC buck : vin2-supply +DCDC3 : DC-DC buck : vin3-supply +LDO1 : LDO : acin-supply : always on +LDO2 : LDO : ldo24in-supply : shared supply +LDO3 : LDO : ldo3in-supply +LDO4 : LDO : ldo24in-supply : shared supply +LDO5 : LDO : ldo5in-supply + +Example: + +axp209: pmic@34 { + compatible = "x-powers,axp209"; + reg = <0x34>; + interrupt-parent = <&nmi_intc>; + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; + interrupt-controller; + #interrupt-cells = <1>; + + regulators { + x-powers,dcdc-freq = <1500>; + + vdd_cpu: dcdc2 { + regulator-always-on; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1450000>; + regulator-name = "vdd-cpu"; + }; + + vdd_int_dll: dcdc3 { + regulator-always-on; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1400000>; + regulator-name = "vdd-int-dll"; + }; + + vdd_rtc: ldo1 { + regulator-always-on; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1400000>; + regulator-name = "vdd-rtc"; + }; + + avcc: ldo2 { + regulator-always-on; + regulator-min-microvolt = <2700000>; + regulator-max-microvolt = <3300000>; + regulator-name = "avcc"; + }; + + ldo3 { + /* unused but preferred to be managed by OS */ + }; + }; +}; -- 2.1.4 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH v10 1/2] mfd: AXP20x: Add bindings documentation 2015-02-20 11:19 ` [PATCH v10 1/2] mfd: AXP20x: Add bindings documentation Chen-Yu Tsai @ 2015-03-06 16:48 ` Chen-Yu Tsai 2015-03-09 9:29 ` Lee Jones 2015-03-25 18:33 ` Maxime Ripard 2015-03-26 8:26 ` Lee Jones 2 siblings, 1 reply; 8+ messages in thread From: Chen-Yu Tsai @ 2015-03-06 16:48 UTC (permalink / raw) To: Lee Jones, Maxime Ripard, Mark Brown Cc: Samuel Ortiz, Liam Girdwood, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, Carlo Caione, linux-kernel, linux-arm-kernel, devicetree, Chen-Yu Tsai On Fri, Feb 20, 2015 at 7:19 PM, Chen-Yu Tsai <wens@csie.org> wrote: > From: Carlo Caione <carlo@caione.org> > > Bindings documentation for the AXP20x driver. In this file also > sub-nodes are documented. > > Signed-off-by: Carlo Caione <carlo@caione.org> > [wens@csie.org: clarify interrupt source for the axp PMIC] > [wens@csie.org: explain dcdc-workmode in detail and trim lines to 80 chars] > [wens@csie.org: make regulator supplies optional if using unregulated input] > [wens@csie.org: use cubieboard2 regulator nodes as example] > [wens@csie.org: x-powers,dcdc-workmode default changed to 'current hardware > setting'] > [wens@csie.org: reorganized regulator related properties into separate > section.] > Signed-off-by: Chen-Yu Tsai <wens@csie.org> Ping? ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v10 1/2] mfd: AXP20x: Add bindings documentation 2015-03-06 16:48 ` Chen-Yu Tsai @ 2015-03-09 9:29 ` Lee Jones 0 siblings, 0 replies; 8+ messages in thread From: Lee Jones @ 2015-03-09 9:29 UTC (permalink / raw) To: Chen-Yu Tsai Cc: Maxime Ripard, Mark Brown, Samuel Ortiz, Liam Girdwood, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, Carlo Caione, linux-kernel, linux-arm-kernel, devicetree On Sat, 07 Mar 2015, Chen-Yu Tsai wrote: > On Fri, Feb 20, 2015 at 7:19 PM, Chen-Yu Tsai <wens@csie.org> wrote: > > From: Carlo Caione <carlo@caione.org> > > > > Bindings documentation for the AXP20x driver. In this file also > > sub-nodes are documented. > > > > Signed-off-by: Carlo Caione <carlo@caione.org> > > [wens@csie.org: clarify interrupt source for the axp PMIC] > > [wens@csie.org: explain dcdc-workmode in detail and trim lines to 80 chars] > > [wens@csie.org: make regulator supplies optional if using unregulated input] > > [wens@csie.org: use cubieboard2 regulator nodes as example] > > [wens@csie.org: x-powers,dcdc-workmode default changed to 'current hardware > > setting'] > > [wens@csie.org: reorganized regulator related properties into separate > > section.] > > Signed-off-by: Chen-Yu Tsai <wens@csie.org> > > Ping? Don't do that. It won't speed up the review. If you think your set has been fogotten about (this one has not) resend with s/PATCH/RESEND/ in the subject line. -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v10 1/2] mfd: AXP20x: Add bindings documentation 2015-02-20 11:19 ` [PATCH v10 1/2] mfd: AXP20x: Add bindings documentation Chen-Yu Tsai 2015-03-06 16:48 ` Chen-Yu Tsai @ 2015-03-25 18:33 ` Maxime Ripard 2015-03-26 8:26 ` Lee Jones 2 siblings, 0 replies; 8+ messages in thread From: Maxime Ripard @ 2015-03-25 18:33 UTC (permalink / raw) To: Chen-Yu Tsai Cc: Samuel Ortiz, Lee Jones, Mark Brown, Liam Girdwood, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, Carlo Caione, linux-kernel, linux-arm-kernel, devicetree [-- Attachment #1: Type: text/plain, Size: 994 bytes --] On Fri, Feb 20, 2015 at 07:19:27PM +0800, Chen-Yu Tsai wrote: > From: Carlo Caione <carlo@caione.org> > > Bindings documentation for the AXP20x driver. In this file also > sub-nodes are documented. > > Signed-off-by: Carlo Caione <carlo@caione.org> > [wens@csie.org: clarify interrupt source for the axp PMIC] > [wens@csie.org: explain dcdc-workmode in detail and trim lines to 80 chars] > [wens@csie.org: make regulator supplies optional if using unregulated input] > [wens@csie.org: use cubieboard2 regulator nodes as example] > [wens@csie.org: x-powers,dcdc-workmode default changed to 'current hardware > setting'] > [wens@csie.org: reorganized regulator related properties into separate > section.] > Signed-off-by: Chen-Yu Tsai <wens@csie.org> Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com> Thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v10 1/2] mfd: AXP20x: Add bindings documentation 2015-02-20 11:19 ` [PATCH v10 1/2] mfd: AXP20x: Add bindings documentation Chen-Yu Tsai 2015-03-06 16:48 ` Chen-Yu Tsai 2015-03-25 18:33 ` Maxime Ripard @ 2015-03-26 8:26 ` Lee Jones 2 siblings, 0 replies; 8+ messages in thread From: Lee Jones @ 2015-03-26 8:26 UTC (permalink / raw) To: Chen-Yu Tsai Cc: Samuel Ortiz, Mark Brown, Liam Girdwood, Maxime Ripard, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, Carlo Caione, linux-kernel, linux-arm-kernel, devicetree On Fri, 20 Feb 2015, Chen-Yu Tsai wrote: > From: Carlo Caione <carlo@caione.org> > > Bindings documentation for the AXP20x driver. In this file also > sub-nodes are documented. > > Signed-off-by: Carlo Caione <carlo@caione.org> > [wens@csie.org: clarify interrupt source for the axp PMIC] > [wens@csie.org: explain dcdc-workmode in detail and trim lines to 80 chars] > [wens@csie.org: make regulator supplies optional if using unregulated input] > [wens@csie.org: use cubieboard2 regulator nodes as example] > [wens@csie.org: x-powers,dcdc-workmode default changed to 'current hardware > setting'] > [wens@csie.org: reorganized regulator related properties into separate > section.] > Signed-off-by: Chen-Yu Tsai <wens@csie.org> > --- > Documentation/devicetree/bindings/mfd/axp20x.txt | 96 ++++++++++++++++++++++++ > 1 file changed, 96 insertions(+) > create mode 100644 Documentation/devicetree/bindings/mfd/axp20x.txt Applied, thanks. > diff --git a/Documentation/devicetree/bindings/mfd/axp20x.txt b/Documentation/devicetree/bindings/mfd/axp20x.txt > new file mode 100644 > index 000000000000..98685f291a72 > --- /dev/null > +++ b/Documentation/devicetree/bindings/mfd/axp20x.txt > @@ -0,0 +1,96 @@ > +AXP202/AXP209 device tree bindings > + > +The axp20x family current members : > +axp202 (X-Powers) > +axp209 (X-Powers) > + > +Required properties: > +- compatible: "x-powers,axp202" or "x-powers,axp209" > +- reg: The I2C slave address for the AXP chip > +- interrupt-parent: The parent interrupt controller > +- interrupts: SoC NMI / GPIO interrupt connected to the PMIC's IRQ pin > +- interrupt-controller: axp20x has its own internal IRQs > +- #interrupt-cells: Should be set to 1 > + > +Optional properties: > +- x-powers,dcdc-freq: defines the work frequency of DC-DC in KHz > + (range: 750-1875). Default: 1.5MHz > +- <input>-supply: a phandle to the regulator supply node. May be omitted if > + inputs are unregulated, such as using the IPSOUT output > + from the PMIC. > + > +- regulators: A node that houses a sub-node for each regulator. Regulators > + not used but preferred to be managed by the OS should be > + listed as well. > + See Documentation/devicetree/bindings/regulator/regulator.txt > + for more information on standard regulator bindings. > + > +Optional properties for DCDC regulators: > +- x-powers,dcdc-workmode: 1 for PWM mode, 0 for AUTO (PWM/PFM) mode > + Default: Current hardware setting > + The DCDC regulators work in a mixed PWM/PFM mode, > + using PFM under light loads and switching to PWM > + for heavier loads. Forcing PWM mode trades efficiency > + under light loads for lower output noise. This > + probably makes sense for HiFi audio related > + applications that aren't battery constrained. > + > + > +AXP202/AXP209 regulators, type, and corresponding input supply names: > + > +Regulator Type Supply Name Notes > +--------- ---- ----------- ----- > +DCDC2 : DC-DC buck : vin2-supply > +DCDC3 : DC-DC buck : vin3-supply > +LDO1 : LDO : acin-supply : always on > +LDO2 : LDO : ldo24in-supply : shared supply > +LDO3 : LDO : ldo3in-supply > +LDO4 : LDO : ldo24in-supply : shared supply > +LDO5 : LDO : ldo5in-supply > + > +Example: > + > +axp209: pmic@34 { > + compatible = "x-powers,axp209"; > + reg = <0x34>; > + interrupt-parent = <&nmi_intc>; > + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; > + interrupt-controller; > + #interrupt-cells = <1>; > + > + regulators { > + x-powers,dcdc-freq = <1500>; > + > + vdd_cpu: dcdc2 { > + regulator-always-on; > + regulator-min-microvolt = <1000000>; > + regulator-max-microvolt = <1450000>; > + regulator-name = "vdd-cpu"; > + }; > + > + vdd_int_dll: dcdc3 { > + regulator-always-on; > + regulator-min-microvolt = <1000000>; > + regulator-max-microvolt = <1400000>; > + regulator-name = "vdd-int-dll"; > + }; > + > + vdd_rtc: ldo1 { > + regulator-always-on; > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <1400000>; > + regulator-name = "vdd-rtc"; > + }; > + > + avcc: ldo2 { > + regulator-always-on; > + regulator-min-microvolt = <2700000>; > + regulator-max-microvolt = <3300000>; > + regulator-name = "avcc"; > + }; > + > + ldo3 { > + /* unused but preferred to be managed by OS */ > + }; > + }; > +}; -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v10 2/2] dt-bindings: add vendor-prefix for X-Powers 2015-02-20 11:19 [PATCH v10 0/2] mfd: axp20x: Add DT binding documentation Chen-Yu Tsai 2015-02-20 11:19 ` [PATCH v10 1/2] mfd: AXP20x: Add bindings documentation Chen-Yu Tsai @ 2015-02-20 11:19 ` Chen-Yu Tsai 2015-03-26 8:26 ` Lee Jones 1 sibling, 1 reply; 8+ messages in thread From: Chen-Yu Tsai @ 2015-02-20 11:19 UTC (permalink / raw) To: Samuel Ortiz, Lee Jones, Mark Brown, Liam Girdwood, Maxime Ripard, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala Cc: Carlo Caione, linux-kernel, linux-arm-kernel, devicetree, Chen-Yu Tsai From: Carlo Caione <carlo@caione.org> Signed-off-by: Carlo Caione <carlo@caione.org> Signed-off-by: Chen-Yu Tsai <wens@csie.org> Acked-by: Lee Jones <lee.jones@linaro.org> --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index 96a17541391e..04d63ce07364 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.txt +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt @@ -175,6 +175,7 @@ voipac Voipac Technologies s.r.o. winbond Winbond Electronics corp. wlf Wolfson Microelectronics wm Wondermedia Technologies, Inc. +x-powers X-Powers xes Extreme Engineering Solutions (X-ES) xillybus Xillybus Ltd. xlnx Xilinx -- 2.1.4 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH v10 2/2] dt-bindings: add vendor-prefix for X-Powers 2015-02-20 11:19 ` [PATCH v10 2/2] dt-bindings: add vendor-prefix for X-Powers Chen-Yu Tsai @ 2015-03-26 8:26 ` Lee Jones 0 siblings, 0 replies; 8+ messages in thread From: Lee Jones @ 2015-03-26 8:26 UTC (permalink / raw) To: Chen-Yu Tsai Cc: Samuel Ortiz, Mark Brown, Liam Girdwood, Maxime Ripard, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, Carlo Caione, linux-kernel, linux-arm-kernel, devicetree On Fri, 20 Feb 2015, Chen-Yu Tsai wrote: > From: Carlo Caione <carlo@caione.org> > > Signed-off-by: Carlo Caione <carlo@caione.org> > Signed-off-by: Chen-Yu Tsai <wens@csie.org> > Acked-by: Lee Jones <lee.jones@linaro.org> > --- > Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + > 1 file changed, 1 insertion(+) Applied, thanks. > diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt > index 96a17541391e..04d63ce07364 100644 > --- a/Documentation/devicetree/bindings/vendor-prefixes.txt > +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt > @@ -175,6 +175,7 @@ voipac Voipac Technologies s.r.o. > winbond Winbond Electronics corp. > wlf Wolfson Microelectronics > wm Wondermedia Technologies, Inc. > +x-powers X-Powers > xes Extreme Engineering Solutions (X-ES) > xillybus Xillybus Ltd. > xlnx Xilinx -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2015-03-26 8:26 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-02-20 11:19 [PATCH v10 0/2] mfd: axp20x: Add DT binding documentation Chen-Yu Tsai 2015-02-20 11:19 ` [PATCH v10 1/2] mfd: AXP20x: Add bindings documentation Chen-Yu Tsai 2015-03-06 16:48 ` Chen-Yu Tsai 2015-03-09 9:29 ` Lee Jones 2015-03-25 18:33 ` Maxime Ripard 2015-03-26 8:26 ` Lee Jones 2015-02-20 11:19 ` [PATCH v10 2/2] dt-bindings: add vendor-prefix for X-Powers Chen-Yu Tsai 2015-03-26 8:26 ` Lee Jones
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox