[linux-sunxi] Re: [PATCH v3 30/30] ARM: sun8i: a83t: full range OPP tables and CPUfreq

2018-09-06 Thread Quentin Schulz
Hi Maxime, Philipp, On Thu, Sep 06, 2018 at 01:42:41PM +0200, Maxime Ripard wrote: > On Thu, Sep 06, 2018 at 01:39:43PM +0200, Philipp Rossak wrote: > > On 06.09.2018 09:24, Quentin Schulz wrote: > > > Hi Philipp, > > > > > > On Thu, Aug 30, 2018 at 05

[linux-sunxi] Re: [PATCH v3 30/30] ARM: sun8i: a83t: full range OPP tables and CPUfreq

2018-09-06 Thread Quentin Schulz
Hi Philipp, On Thu, Aug 30, 2018 at 05:45:18PM +0200, Philipp Rossak wrote: > Since we have now thermal trotteling enabeled we can now add the full > range of the OPP table. > That's not the reason why they were not added. Please see commit 2db639d8c1663d7543c9ab5323383d94c8a76c63[1].

[linux-sunxi] Re: [PATCH v5 3/6] power: supply: axp20x_battery: use data struct for variant specific code

2018-03-09 Thread Quentin Schulz
Hi Sebastian, On Fri, Mar 09, 2018 at 05:08:25PM +0100, Sebastian Reichel wrote: > Hi Quentin, > > On Wed, Feb 28, 2018 at 11:35:58AM +0100, Quentin Schulz wrote: > > We used to use IDs to select a function or a feature depending on the > > variant. It's easier to mainta

[linux-sunxi] [PATCH 2/3] ARM: dts: sun8i: a711: set regulator for each cluster of CPUs

2018-02-28 Thread Quentin Schulz
The Allwinner A83T is a SoC with two clusters of 4 A7 which have a different clock and regulator. Set the CPU regulator. Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com> --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 9 + 1 file changed, 9 insertions(+) diff --git

[linux-sunxi] [PATCH 3/3] ARM: dts: sun8i: a83t: add stable OPP tables and CPUfreq

2018-02-28 Thread Quentin Schulz
on a per-board basis though. Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com> --- arch/arm/boot/dts/sun8i-a83t.dtsi | 118 +++- 1 file changed, 118 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi index 0

[linux-sunxi] [PATCH 1/3] ARM: dts: sun8i: a83t: add cpu0 and cpu100 labels

2018-02-28 Thread Quentin Schulz
The Allwinner A83T is a SoC with two clusters of 4 A7, each cluster having its own regulator and clock. The regulators are board-specific, thus we need labels for cpu0 and cpu100 so that we can use references to these nodes from the board header file. Signed-off-by: Quentin Schulz <quentin.

[linux-sunxi] [PATCH 0/3] add CPUs OPPs to sun8i a83t

2018-02-28 Thread Quentin Schulz
down). It seems[1] impossible to reach those frequencies with none or passive cooling, so better leave them out by default. It's still possible to add those OPPs on a per-board basis though. [1] http://linux-sunxi.org/User:Tkaiser#First_steps_with_Banana_Pi_M3 Thanks, Quentin Quentin Schulz (3

[linux-sunxi] [PATCH v5 6/6] mfd: axp20x: add battery power supply cell for AXP813

2018-02-28 Thread Quentin Schulz
As axp20x-battery-power-supply now supports AXP813, add a cell for it. Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com> Acked-for-MFD-by: Lee Jones <lee.jo...@linaro.org> Reviewed-by: Chen-Yu Tsai <w...@csie.org> --- drivers/mfd/axp20x.c | 3 +++ 1 file changed, 3 i

[linux-sunxi] [PATCH v5 0/6] add support for AXP813 ADC and battery power supply

2018-02-28 Thread Quentin Schulz
ad of ID for variant specific code in battery driver, - add DT binding for ADC driver, - make mfd probe the ADC driver via DT as well so that its IIO channels can be consumed by other drivers via DT mapping, Thanks, Quentin Quentin Schulz (6): mfd: axp20x: make AXP209/22x cells probe th

[linux-sunxi] [PATCH v5 5/6] power: supply: axp20x_battery: add support for AXP813

2018-02-28 Thread Quentin Schulz
by the PMIC is valid. Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com> Reviewed-by: Chen-Yu Tsai <w...@csie.org> --- drivers/power/supply/axp20x_battery.c | 42 - 1 file changed, 42 insertions(+) diff --git a/drivers/power/supply/axp20x_battery.

[linux-sunxi] [PATCH v5 3/6] power: supply: axp20x_battery: use data struct for variant specific code

2018-02-28 Thread Quentin Schulz
-off-by: Quentin Schulz <quentin.sch...@bootlin.com> Reviewed-by: Chen-Yu Tsai <w...@csie.org> --- drivers/power/supply/axp20x_battery.c | 100 +-- 1 file changed, 66 insertions(+), 34 deletions(-) diff --git a/drivers/power/supply/axp20x_battery.c b/drivers/

[linux-sunxi] [PATCH v5 4/6] dt-bindings: power: supply: axp20x: add AXP813 battery DT binding

2018-02-28 Thread Quentin Schulz
The AXP813 can have a battery as power supply, so let's add it to the list of compatibles. Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com> Reviewed-by: Rob Herring <r...@kernel.org> Acked-by: Chen-Yu Tsai <w...@csie.org> --- Documentation/devicetree/bin

[linux-sunxi] [PATCH v5 1/6] mfd: axp20x: make AXP209/22x cells probe their ADC via DT

2018-02-28 Thread Quentin Schulz
This makes AXP209 and AXP22x ADCs probe first via DT and then by fallback via platform. Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com> Acked-for-MFD-by: Lee Jones <lee.jo...@linaro.org> Acked-by: Chen-Yu Tsai <w...@csie.org> --- drivers/mfd/axp20x.c | 5 -

[linux-sunxi] [PATCH v5 2/6] mfd: axp20x: probe axp20x_adc driver for AXP813

2018-02-28 Thread Quentin Schulz
This makes the axp20x_adc driver probe with platform device id "axp813-adc". Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com> Acked-for-MFD-by: Lee Jones <lee.jo...@linaro.org> Acked-by: Chen-Yu Tsai <w...@csie.org> --- drivers/mfd/axp20x.c | 5 - 1 file

[linux-sunxi] [PATCH v4 09/13] mfd: axp20x: add battery power supply cell for AXP813

2018-02-19 Thread Quentin Schulz
As axp20x-battery-power-supply now supports AXP813, add a cell for it. Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com> Acked-for-MFD-by: Lee Jones <lee.jo...@linaro.org> Reviewed-by: Chen-Yu Tsai <w...@csie.org> --- drivers/mfd/axp20x.c | 3 +++ 1 file changed, 3 i

[linux-sunxi] [PATCH v4 06/13] power: supply: axp20x_battery: use data struct for variant specific code

2018-02-19 Thread Quentin Schulz
-off-by: Quentin Schulz <quentin.sch...@bootlin.com> Reviewed-by: Chen-Yu Tsai <w...@csie.org> --- drivers/power/supply/axp20x_battery.c | 100 +-- 1 file changed, 66 insertions(+), 34 deletions(-) diff --git a/drivers/power/supply/axp20x_battery.c b/drivers/

[linux-sunxi] [PATCH v4 00/13] add support for AXP813 ADC and battery power supply

2018-02-19 Thread Quentin Schulz
in battery driver, - add DT binding for ADC driver, - make mfd probe the ADC driver via DT as well so that its IIO channels can be consumed by other drivers via DT mapping, Thanks, Quentin Quentin Schulz (13): ARM: dtsi: axp209: add node for ADC ARM: dtsi: axp22x: add node for ADC mfd:

[linux-sunxi] [PATCH v4 03/13] mfd: axp20x: make AXP209/22x cells probe their ADC via DT

2018-02-19 Thread Quentin Schulz
This makes AXP209 and AXP22x ADCs probe first via DT and then by fallback via platform. Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com> Acked-for-MFD-by: Lee Jones <lee.jo...@linaro.org> Acked-by: Chen-Yu Tsai <w...@csie.org> --- drivers/mfd/axp20x.c | 5 -

[linux-sunxi] [PATCH v4 08/13] power: supply: axp20x_battery: add support for AXP813

2018-02-19 Thread Quentin Schulz
by the PMIC is valid. Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com> Reviewed-by: Chen-Yu Tsai <w...@csie.org> --- drivers/power/supply/axp20x_battery.c | 42 - 1 file changed, 42 insertions(+) diff --git a/drivers/power/supply/axp20x_battery.

[linux-sunxi] [PATCH v4 13/13] iio: adc: axp20x_adc: remove !! in favor of ternary condition

2018-02-19 Thread Quentin Schulz
!!'s behaviour isn't that obvious and sparse complained about it, so let's replace it with a ternary condition. Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com> --- drivers/iio/adc/axp20x_adc.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/i

[linux-sunxi] [PATCH v4 12/13] ARM: dtsi: axp81x: remove IP name from DT node name

2018-02-19 Thread Quentin Schulz
The DT node should be named after its functionality and not after the IP it's defining. Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com> Acked-by: Chen-Yu Tsai <w...@csie.org> --- arch/arm/boot/dts/axp81x.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --gi

[linux-sunxi] [PATCH v4 01/13] ARM: dtsi: axp209: add node for ADC

2018-02-19 Thread Quentin Schulz
This adds a DT node for the ADC of the PMIC so that there can be consumers of its IIO channels declaring their consumptions via DT. Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com> Acked-by: Chen-Yu Tsai <w...@csie.org> --- arch/arm/boot/dts/axp209.dtsi | 5 + 1 fil

[linux-sunxi] [PATCH v4 11/13] ARM: dtsi: sun8i: a711: enable battery power supply subnode

2018-02-19 Thread Quentin Schulz
The TBS A711 has an AXP813 PMIC and a soldered battery, thus, we enable the battery power supply subnode in its Device Tree. Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com> Acked-by: Chen-Yu Tsai <w...@csie.org> --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 4 1 fil

[linux-sunxi] [PATCH v4 05/13] mfd: axp20x: probe axp20x_adc driver for AXP813

2018-02-19 Thread Quentin Schulz
This makes the axp20x_adc driver probe with platform device id "axp813-adc". Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com> Acked-for-MFD-by: Lee Jones <lee.jo...@linaro.org> Acked-by: Chen-Yu Tsai <w...@csie.org> --- drivers/mfd/axp20x.c | 5 - 1 file

[linux-sunxi] [PATCH v4 10/13] ARM: dtsi: axp81x: add battery power supply subnode

2018-02-19 Thread Quentin Schulz
supply subnode for AXP81X PMIC. Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com> Acked-by: Chen-Yu Tsai <w...@csie.org> --- arch/arm/boot/dts/axp81x.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/axp81x.dtsi b/arch/arm/boot/dts/axp81x.dtsi i

[linux-sunxi] [PATCH v4 04/13] ARM: dtsi: axp81x: add node for ADC

2018-02-19 Thread Quentin Schulz
This adds a DT node for the ADC of the PMIC so that there can be consumers of its IIO channels declaring their consumptions via DT. Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com> Acked-by: Chen-Yu Tsai <w...@csie.org> --- arch/arm/boot/dts/axp81x.dtsi | 5 + 1 fil

[linux-sunxi] [PATCH v4 02/13] ARM: dtsi: axp22x: add node for ADC

2018-02-19 Thread Quentin Schulz
This adds a DT node for the ADC of the PMIC so that there can be consumers of its IIO channels declaring their consumptions via DT. Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com> Acked-by: Chen-Yu Tsai <w...@csie.org> --- arch/arm/boot/dts/axp22x.dtsi | 5 + 1 fil

[linux-sunxi] [PATCH v4 07/13] dt-bindings: power: supply: axp20x: add AXP813 battery DT binding

2018-02-19 Thread Quentin Schulz
The AXP813 can have a battery as power supply, so let's add it to the list of compatibles. Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com> Reviewed-by: Rob Herring <r...@kernel.org> Acked-by: Chen-Yu Tsai <w...@csie.org> --- Documentation/devicetree/bin

[linux-sunxi] Re: [PATCH v2 09/16] iio: adc: sun4i-gpadc-iio: add support for H3 thermal sensor

2018-01-31 Thread Quentin Schulz
Hi Philipp, On Mon, Jan 29, 2018 at 12:29:12AM +0100, Philipp Rossak wrote: > This patch adds support for the H3 ths sensor. > > The H3 supports interrupts. The interrupt is configured to update the > the sensor values every second. The calibration data is writen at the > begin of the init

[linux-sunxi] Re: [PATCH v2 08/16] iio: adc: sun4i-gpadc-iio: rework: add interrupt support

2018-01-31 Thread Quentin Schulz
Hi Philipp, On Mon, Jan 29, 2018 at 12:29:11AM +0100, Philipp Rossak wrote: > This patch rewors the driver to support interrupts for the thermal part > of the sensor. > > This is only available for the newer sensor (currently H3 and A83T). > The interrupt will be trigerd on data available and

[linux-sunxi] Re: [PATCH v2 06/16] iio: adc: sun4i-gpadc-iio: rework: support multiple sensors

2018-01-31 Thread Quentin Schulz
Hi Philipp, On Mon, Jan 29, 2018 at 12:29:09AM +0100, Philipp Rossak wrote: > For adding newer sensor some basic rework of the code is necessary. > > This patch reworks the driver to be able to handle more than one > thermal sensor. Newer SoC like the A80 have 4 thermal sensors. > Because of

[linux-sunxi] Re: [PATCH v2 04/16] iio: adc: sun4i-gpadc-iio: rework: sampling start/end code readout reg

2018-01-31 Thread Quentin Schulz
et; > int temp_scale; > @@ -56,6 +65,9 @@ struct gpadc_data { > unsigned inttp_adc_select; > unsigned int(*adc_chan_select)(unsigned int chan); > unsigned intadc_chan_mask; > + unsigned inttemp_data; Does not really have anything

[linux-sunxi] Re: [PATCH v2 01/16] dt-bindings: update the Allwinner GPADC device tree binding for H3 & A83T

2018-01-31 Thread Quentin Schulz
Hi Philipp, On Mon, Jan 29, 2018 at 12:29:04AM +0100, Philipp Rossak wrote: > Allwinner H3 features a thermal sensor like the one in A33, but has its > register re-arranged, the clock divider moved to CCU (originally the > clock divider is in ADC) and added a pair of bus clock and reset. > >

[linux-sunxi] Re: [PATCH v3 07/16] iio: adc: axp20x_adc: add support for AXP813 ADC

2018-01-22 Thread Quentin Schulz
Hi Jonathan, On Sun, Jan 21, 2018 at 12:26:55PM +, Jonathan Cameron wrote: > On Mon, 15 Jan 2018 11:33:41 +0100 > Quentin Schulz <quentin.sch...@free-electrons.com> wrote: > > > The X-Powers AXP813 PMIC is really close to what is already done for > > AXP20X/AXP

[linux-sunxi] [PATCH v3 07/16] iio: adc: axp20x_adc: add support for AXP813 ADC

2018-01-15 Thread Quentin Schulz
for AXP20X/AXP22X. GPIO0 can be used as an ADC (measuring Volts) unlike for AXP22X. The scales to apply to the different inputs are unlike the ones from AXP20X and AXP22X. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> Acked-by: Jonathan Cameron <jonathan.came...@h

[linux-sunxi] [PATCH v3 05/16] ARM: dtsi: axp22x: add node for ADC

2018-01-15 Thread Quentin Schulz
This adds a DT node for the ADC of the PMIC so that there can be consumers of its IIO channels declaring their consumptions via DT. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- arch/arm/boot/dts/axp22x.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git

[linux-sunxi] [PATCH v3 13/16] mfd: axp20x: add battery power supply cell for AXP813

2018-01-15 Thread Quentin Schulz
As axp20x-battery-power-supply now supports AXP813, add a cell for it. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> Acked-for-MFD-by: Lee Jones <lee.jo...@linaro.org> --- drivers/mfd/axp20x.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mf

[linux-sunxi] [PATCH v3 15/16] ARM: dtsi: sun8i: a711: enable battery power supply subnode

2018-01-15 Thread Quentin Schulz
The TBS A711 has an AXP813 PMIC and a soldered battery, thus, we enable the battery power supply subnode in its Device Tree. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 4 1 file changed, 4 insertions(+) diff

[linux-sunxi] [PATCH v3 08/16] ARM: dtsi: axp81x: add node for ADC

2018-01-15 Thread Quentin Schulz
This adds a DT node for the ADC of the PMIC so that there can be consumers of its IIO channels declaring their consumptions via DT. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- arch/arm/boot/dts/axp81x.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git

[linux-sunxi] [PATCH v3 00/16] add support for AXP813 ADC and battery power supply

2018-01-15 Thread Quentin Schulz
oduce data structure instead of ID for variant specific code in battery driver, - add DT binding for ADC driver, - make mfd probe the ADC driver via DT as well so that its IIO channels can be consumed by other drivers via DT mapping, Thanks, Quentin Quentin Schulz (16): iio: adc: axp20x_adc:

[linux-sunxi] [PATCH v3 02/16] dt-bindings: iio: adc: add binding for X-Powers AXP PMICs ADC

2018-01-15 Thread Quentin Schulz
X-Powers PMICs have several ADC channels that can be used for different purposes, e.g. PMIC internal temperature, battery voltage or AC current. This is the documentation for AXP209, AXP221/223 and AXP813 ADC bindings. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> Re

[linux-sunxi] [PATCH v3 14/16] ARM: dtsi: axp81x: add battery power supply subnode

2018-01-15 Thread Quentin Schulz
supply subnode for AXP81X PMIC. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- arch/arm/boot/dts/axp81x.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/axp81x.dtsi b/arch/arm/boot/dts/axp81x.dtsi index 6b5e7bc..1b05c7f 100644 --- a/ar

[linux-sunxi] [PATCH v3 10/16] power: supply: axp20x_battery: use data structure instead of ID for

2018-01-15 Thread Quentin Schulz
the code to use it. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- drivers/power/supply/axp20x_battery.c | 100 +-- 1 file changed, 66 insertions(+), 34 deletions(-) diff --git a/drivers/power/supply/axp20x_battery.c b/drivers/power/

[linux-sunxi] [PATCH v3 11/16] dt-bindings: power: supply: axp20x: add AXP813 battery DT binding

2018-01-15 Thread Quentin Schulz
The AXP813 can have a battery as power supply, so let's add it to the list of compatibles. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> Reviewed-by: Rob Herring <r...@kernel.org> --- Documentation/devicetree/bindings/power/supply/axp20x_battery.txt | 8 +++

[linux-sunxi] [PATCH v3 06/16] mfd: axp20x: make AXP209/22x cells probe their ADC via DT

2018-01-15 Thread Quentin Schulz
This makes AXP209 and AXP22x ADCs probe first via DT and then by fallback via platform. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- drivers/mfd/axp20x.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/ax

[linux-sunxi] [PATCH v3 09/16] mfd: axp20x: probe axp20x_adc driver for AXP813

2018-01-15 Thread Quentin Schulz
This makes the axp20x_adc driver probe with platform device id "axp813-adc". Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- drivers/mfd/axp20x.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/axp20x.c b/drivers/mf

[linux-sunxi] [PATCH v3 04/16] ARM: dtsi: axp209: add node for ADC

2018-01-15 Thread Quentin Schulz
This adds a DT node for the ADC of the PMIC so that there can be consumers of its IIO channels declaring their consumptions via DT. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- arch/arm/boot/dts/axp209.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git

[linux-sunxi] [PATCH v3 12/16] power: supply: axp20x_battery: add support for AXP813

2018-01-15 Thread Quentin Schulz
by the PMIC is valid. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- drivers/power/supply/axp20x_battery.c | 42 - 1 file changed, 42 insertions(+) diff --git a/drivers/power/supply/axp20x_battery.c b/drivers/power/supply/axp20x_battery.c

[linux-sunxi] [PATCH v3 16/16] ARM: dtsi: axp81x: remove IP name from DT node name

2018-01-15 Thread Quentin Schulz
The DT node should be named after its functionality and not after the IP it's defining. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- arch/arm/boot/dts/axp81x.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/axp81x.dtsi b/ar

[linux-sunxi] [PATCH v3 01/16] iio: adc: axp20x_adc: put ADC rate setting in a per-variant function

2018-01-15 Thread Quentin Schulz
To prepare for a new comer that set a different register with different values, move rate setting in a function that is specific to each AXP variant. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- drivers/iio/adc/axp20x_adc.c | 18 +++--- 1 file chang

[linux-sunxi] [PATCH v3 03/16] iio: adc: axp20x_adc: make it possible to probe from DT

2018-01-15 Thread Quentin Schulz
with old DTs. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- drivers/iio/adc/axp20x_adc.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/drivers/iio/adc/axp20x_adc.c b/drivers/iio/adc/axp20x_adc.c index 3fc1b06..3968053

[linux-sunxi] [PATCH v2 03/16] iio: adc: axp20x_adc: make it possible to probe from DT

2018-01-09 Thread Quentin Schulz
with old DTs. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- drivers/iio/adc/axp20x_adc.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/drivers/iio/adc/axp20x_adc.c b/drivers/iio/adc/axp20x_adc.c index 3fc1b06..f8c4c62

[linux-sunxi] [PATCH v2 01/16] iio: adc: axp20x_adc: put ADC rate setting in a per-variant function

2018-01-09 Thread Quentin Schulz
To prepare for a new comer that set a different register with different values, move rate setting in a function that is specific to each AXP variant. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- drivers/iio/adc/axp20x_adc.c | 18 +++--- 1 file chang

[linux-sunxi] [PATCH v2 07/16] dt-bindings: iio: adc: axp20x_adc: add AXP813 variant

2018-01-09 Thread Quentin Schulz
AXP813 is now supported so add documentation for this compatible. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- Documentation/devicetree/bindings/iio/adc/axp20x_adc.txt | 9 +- 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindin

[linux-sunxi] [PATCH v2 12/16] dt-bindings: power: supply: axp20x: add AXP813 battery DT binding

2018-01-09 Thread Quentin Schulz
The AXP813 can have a battery as power supply, so let's add it to the list of compatibles. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- Documentation/devicetree/bindings/power/supply/axp20x_battery.txt | 8 +++ 1 file changed, 4 insertions(+), 4 deletions(-)

[linux-sunxi] [PATCH v2 08/16] iio: adc: axp20x_adc: add support for AXP813 ADC

2018-01-09 Thread Quentin Schulz
for AXP20X/AXP22X. GPIO0 can be used as an ADC (measuring Volts) unlike for AXP22X. The scales to apply to the different inputs are unlike the ones from AXP20X and AXP22X. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- drivers/iio/adc/axp20x_adc.c

[linux-sunxi] [PATCH v2 04/16] ARM: dtsi: axp209: add node for ADC

2018-01-09 Thread Quentin Schulz
This adds a DT node for the ADC of the PMIC so that there can be consumers of its IIO channels declaring their consumptions via DT. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- arch/arm/boot/dts/axp209.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git

[linux-sunxi] [PATCH v2 16/16] ARM: dtsi: sun8i: a711: enable battery power supply subnode

2018-01-09 Thread Quentin Schulz
The TBS A711 has an AXP813 PMIC and a soldered battery, thus, we enable the battery power supply subnode in its Device Tree. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 4 1 file changed, 4 insertions(+) diff

[linux-sunxi] [PATCH v2 14/16] mfd: axp20x: add battery power supply cell for AXP813

2018-01-09 Thread Quentin Schulz
As axp20x-battery-power-supply now supports AXP813, add a cell for it. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- drivers/mfd/axp20x.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index d112414..1175091

[linux-sunxi] [PATCH v2 11/16] power: supply: axp20x_battery: use data structure instead of ID for

2018-01-09 Thread Quentin Schulz
the code to use it. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- drivers/power/supply/axp20x_battery.c | 100 +-- 1 file changed, 66 insertions(+), 34 deletions(-) diff --git a/drivers/power/supply/axp20x_battery.c b/drivers/power/

[linux-sunxi] [PATCH v2 10/16] mfd: axp20x: probe axp20x_adc driver for AXP813

2018-01-09 Thread Quentin Schulz
This makes the axp20x_adc driver probe with platform device id "axp813-adc". Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- drivers/mfd/axp20x.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/axp20x.c b/drivers/mf

[linux-sunxi] [PATCH v2 00/16] add support for AXP813 ADC and battery power supply

2018-01-09 Thread Quentin Schulz
so that its IIO channels can be consumed by other drivers via DT mapping, Thanks, Quentin Quentin Schulz (16): iio: adc: axp20x_adc: put ADC rate setting in a per-variant function dt-bindings: iio: adc: add binding for X-Powers AXP PMICs ADC iio: adc: axp20x_adc: make it possible to probe

[linux-sunxi] [PATCH v2 05/16] ARM: dtsi: axp22x: add node for ADC

2018-01-09 Thread Quentin Schulz
This adds a DT node for the ADC of the PMIC so that there can be consumers of its IIO channels declaring their consumptions via DT. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- arch/arm/boot/dts/axp22x.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git

[linux-sunxi] [PATCH v2 09/16] ARM: dtsi: axp81x: add node for ADC

2018-01-09 Thread Quentin Schulz
This adds a DT node for the ADC of the PMIC so that there can be consumers of its IIO channels declaring their consumptions via DT. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- arch/arm/boot/dts/axp81x.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git

[linux-sunxi] [PATCH v2 15/16] ARM: dtsi: axp81x: add battery power supply subnode

2018-01-09 Thread Quentin Schulz
supply subnode for AXP81X PMIC. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- arch/arm/boot/dts/axp81x.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/axp81x.dtsi b/arch/arm/boot/dts/axp81x.dtsi index dd25bfe..5fb396e 100644 --- a/ar

[linux-sunxi] [PATCH v2 06/16] mfd: axp20x: make AXP209/22x cells probe their ADC via DT

2018-01-09 Thread Quentin Schulz
This makes AXP209 and AXP22x ADCs probe first via DT and then by fallback via platform. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- drivers/mfd/axp20x.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/ax

[linux-sunxi] [PATCH v2 13/16] power: supply: axp20x_battery: add support for AXP813

2018-01-09 Thread Quentin Schulz
by the PMIC is valid. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- drivers/power/supply/axp20x_battery.c | 42 - 1 file changed, 42 insertions(+) diff --git a/drivers/power/supply/axp20x_battery.c b/drivers/power/supply/axp20x_battery.c

[linux-sunxi] [PATCH v2 02/16] dt-bindings: iio: adc: add binding for X-Powers AXP PMICs ADC

2018-01-09 Thread Quentin Schulz
X-Powers PMICs have several ADC channels that can be used for different purposes, e.g. PMIC internal temperature, battery voltage or AC current. This is the documentation for AXP209, AXP221/223 ADC bindings. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- Documen

[linux-sunxi] [PATCH] pinctrl: axp209: add missing Kconfig dependencies

2017-12-14 Thread Quentin Schulz
This fixes some compilation issues. GENERIC_PINCONF and OF at least for pinconf_generic_dt_*, PINMUX at least for pinmux_ops and GPIOLIB for at least gpio_chip. Fixes: 23f75d7dfa92 ("pinctrl: axp209: add pinctrl features") Reported-by: Randy Dunlab <rdun...@infradead.org> Signed

[linux-sunxi] Re: [U-Boot] [PATCH v3 3/5] docs: Document verified-boot for sunxi a64

2017-12-13 Thread Quentin Schulz
ff133cc0156828d48c8efb96987fa45f885761d22a25dc1 > + Verifying Hash Integrity ... sha256+ OK > + Booting using the fdt blob at 0x40710f24 > + Uncompressing Kernel Image ... OK > + Loading Device Tree to 49ffa000, end 49fff347 ... OK > + > +Starting kernel ... > +---

[linux-sunxi] [PATCH] pinctrl: axp209: dereference pointer after it's been set

2017-12-13 Thread Quentin Schulz
pport for AXP813 GPIOs") Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> Reported-by: Mylène Josserand <mylene.josser...@free-electrons.com> --- drivers/pinctrl/pinctrl-axp209.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/pinc

[linux-sunxi] Re: [PATCH 5/8] power: supply: axp20x_battery: add support for AXP813

2017-12-11 Thread Quentin Schulz
Hi Jonathan, On 10/12/2017 17:49, Jonathan Cameron wrote: > On Mon, 4 Dec 2017 15:12:51 +0100 > Quentin Schulz <quentin.sch...@free-electrons.com> wrote: > >> The X-Powers AXP813 PMIC has got some slight differences from >> AXP20X/AXP22X PMICs: >> - the max

[linux-sunxi] Re: [PATCH v5 8/9] pinctrl: axp209: add support for AXP813 GPIOs

2017-12-08 Thread Quentin Schulz
Hi all, There is a bug below. On 05/12/2017 15:46, Quentin Schulz wrote: > The AXP813 has only two GPIOs. GPIO0 can either be used as a GPIO, an > LDO regulator or an ADC. GPIO1 can be used either as a GPIO or an LDO > regulator. > > Moreover, the status bit of the GPIOs whe

[linux-sunxi] Re: [PATCH 3/8] mfd: axp20x: probe axp20x_adc driver for AXP813

2017-12-07 Thread Quentin Schulz
Hi Chen-Yu, On 07/12/2017 09:54, Chen-Yu Tsai wrote: > On Thu, Dec 7, 2017 at 4:51 PM, Quentin Schulz > <quentin.sch...@free-electrons.com> wrote: >> Hi Maxime, >> >> On 05/12/2017 09:08, Maxime Ripard wrote: >>> On Mon, Dec 04, 2017 at 03:12:49PM +0100

[linux-sunxi] Re: [PATCH 3/8] mfd: axp20x: probe axp20x_adc driver for AXP813

2017-12-07 Thread Quentin Schulz
Hi Maxime, On 05/12/2017 09:08, Maxime Ripard wrote: > On Mon, Dec 04, 2017 at 03:12:49PM +0100, Quentin Schulz wrote: >> This makes the axp20x_adc driver probe with platform device id >> "axp813-adc". >> >> Signed-off-by: Quentin Schulz <quentin.sch...@fr

[linux-sunxi] Re: [PATCH v5 00/11] add pinmuxing support for pins in AXP209 and AXP813 PMICs

2017-12-05 Thread Quentin Schulz
Hi all, Copy pasting of the cover letter done wrong, there are only 9 patches in this patch series unlike what's specified in the title of the cover letter for this patch series. Sorry for the noise. Quentin On 05/12/2017 15:46, Quentin Schulz wrote: > The AXP209 and AXP813 PMICs have seve

[linux-sunxi] [PATCH v5 3/9] pinctrl: axp209: add pinctrl features

2017-12-05 Thread Quentin Schulz
The X-Powers AXP209 has 3 GPIOs. GPIO0/1 can each act either as a GPIO, an ADC or a LDO regulator. GPIO2 can only act as a GPIO. This adds the pinctrl features to the driver so GPIO0/1 can be used as ADC or LDO regulator. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>

[linux-sunxi] [PATCH v5 00/11] add pinmuxing support for pins in AXP209 and AXP813 PMICs

2017-12-05 Thread Quentin Schulz
thin the same range instead of a range per pin, Thanks, Quentin Quentin Schulz (9): gpio: axp209: switch unsigned variables to unsigned int pinctrl: move gpio-axp209 to pinctrl pinctrl: axp209: add pinctrl features dt-bindings: gpio: gpio-axp209: add pinctrl features pinctrl: axp209: rena

[linux-sunxi] [PATCH v5 7/9] pinctrl: axp209: add programmable ADC muxing value

2017-12-05 Thread Quentin Schulz
To prepare for patches that will add support for a new PMIC that has a different GPIO adc muxing value, add an adc_mux within axp20x_pctl structure and use it. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> Acked-by: Maxime Ripard <maxime.rip...@free-electrons.com>

[linux-sunxi] [PATCH v5 8/9] pinctrl: axp209: add support for AXP813 GPIOs

2017-12-05 Thread Quentin Schulz
The AXP813 has only two GPIOs. GPIO0 can either be used as a GPIO, an LDO regulator or an ADC. GPIO1 can be used either as a GPIO or an LDO regulator. Moreover, the status bit of the GPIOs when in input mode is not offset by 4 unlike the AXP209. Signed-off-by: Quentin Schulz <quentin.sch...@f

[linux-sunxi] [PATCH v5 4/9] dt-bindings: gpio: gpio-axp209: add pinctrl features

2017-12-05 Thread Quentin Schulz
The X-Powers AXP209 has 3 GPIOs. GPIO0/1 can each act either as a GPIO, an ADC or a LDO regulator. GPIO2 can only act as a GPIO. This adds the pinctrl features to the driver so GPIO0/1 can be used as ADC or LDO regulator. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>

[linux-sunxi] [PATCH v5 1/9] gpio: axp209: switch unsigned variables to unsigned int

2017-12-05 Thread Quentin Schulz
Checkpatch complains with the following message: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' Let's make it happy by switching over to unsigned int. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- drivers/gpio/gpio-axp209.c | 13 +++-- 1 file chan

[linux-sunxi] [PATCH v5 6/9] pinctrl: axp209: add programmable gpio_status_offset

2017-12-05 Thread Quentin Schulz
To prepare for patches that will add support for a new PMIC that has a different GPIO input status register, add a gpio_status_offset within axp20x_pctl structure and use it. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> Acked-by: Maxime Ripard <maxime.ri

[linux-sunxi] [PATCH v5 9/9] mfd: axp20x: add pinctrl cell for AXP813

2017-12-05 Thread Quentin Schulz
As GPIO/pinctrl driver now supports AXP813, add a cell for it. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> Acked-by: Maxime Ripard <maxime.rip...@free-electrons.com> Acked-by: Linus Walleij <linus.wall...@linaro.org> Acked-for-MFD-by: Lee Jones <

[linux-sunxi] [PATCH v5 5/9] pinctrl: axp209: rename everything from gpio to pctl

2017-12-05 Thread Quentin Schulz
. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> Acked-by: Maxime Ripard <maxime.rip...@free-electrons.com> --- drivers/pinctrl/pinctrl-axp209.c | 176 +++ 1 file changed, 88 insertions(+), 88 deletions(-) diff --git a/drivers/pin

[linux-sunxi] [PATCH v5 2/9] pinctrl: move gpio-axp209 to pinctrl

2017-12-05 Thread Quentin Schulz
To prepare the driver for the upcoming pinctrl features, move the GPIO driver AXP209 from GPIO to pinctrl subsystem. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> Acked-by: Maxime Ripard <maxime.rip...@free-electrons.com> Acked-by: Chen-Yu Tsai <w...@csie.or

[linux-sunxi] [PATCH 6/8] mfd: axp20x: add battery power supply cell for AXP813

2017-12-04 Thread Quentin Schulz
As axp20x-battery-power-supply now supports AXP813, add a cell for it. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- drivers/mfd/axp20x.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index 42e54d1..7566358

[linux-sunxi] [PATCH 1/8] iio: adc: axp20x_adc: put ADC rate setting in a per-variant function

2017-12-04 Thread Quentin Schulz
To prepare for a new comer that set a different register with different values, move rate setting in a function that is specific to each AXP variant. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- drivers/iio/adc/axp20x_adc.c | 17 ++--- 1 file chang

[linux-sunxi] [PATCH 8/8] ARM: dtsi: sun8i: a711: enable battery power supply subnode

2017-12-04 Thread Quentin Schulz
The TBS A711 has an AXP813 PMIC and a soldered battery, thus, we enable the battery power supply subnode in its Device Tree. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 4 1 file changed, 4 insertions(+) diff

[linux-sunxi] [PATCH 7/8] ARM: dtsi: axp81x: add battery power supply subnode

2017-12-04 Thread Quentin Schulz
supply subnode for AXP81X PMIC. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- arch/arm/boot/dts/axp81x.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/axp81x.dtsi b/arch/arm/boot/dts/axp81x.dtsi index 73b761f..f7401c3 100644 --- a/ar

[linux-sunxi] [PATCH 2/8] iio: adc: axp20x_adc: add support for AXP813 ADC

2017-12-04 Thread Quentin Schulz
for AXP20X/AXP22X. GPIO0 can be used as an ADC (measuring Volts) unlike for AXP22X. The scales to apply to the different inputs are unlike the ones from AXP20X and AXP22X. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- drivers/iio/adc/axp20x_adc.c

[linux-sunxi] [PATCH 3/8] mfd: axp20x: probe axp20x_adc driver for AXP813

2017-12-04 Thread Quentin Schulz
This makes the axp20x_adc driver probe with platform device id "axp813-adc". Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- drivers/mfd/axp20x.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x

[linux-sunxi] [PATCH 4/8] dt-bindings: power: supply: axp20x: add AXP813 battery DT binding

2017-12-04 Thread Quentin Schulz
The AXP813 can have a battery as power supply, so let's add it to the list of compatibles. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- Documentation/devicetree/bindings/power/supply/axp20x_battery.txt | 8 +++ 1 file changed, 4 insertions(+), 4 deletions(-)

[linux-sunxi] [PATCH 5/8] power: supply: axp20x_battery: add support for AXP813

2017-12-04 Thread Quentin Schulz
by the PMIC is valid. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- drivers/power/supply/axp20x_battery.c | 44 +++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/drivers/power/supply/axp20x_battery.c b/drivers/power/

[linux-sunxi] [PATCH 0/8] add support for AXP813 ADC and battery power supply

2017-12-04 Thread Quentin Schulz
driver, add the battery power supply node in axp81x node and enable it for the TBS A711 since it has a soldered battery. Q: The BananaPi M3 has two solder balls for battery, should the battery power supply node be enabled for this board as well? Thanks, Quentin Quentin Schulz (8): iio: adc

[linux-sunxi] Re: [PATCH v4 02/10] pinctrl: axp209: add pinctrl features

2017-12-04 Thread Quentin Schulz
Hi Maxime, On 01/12/2017 16:57, Maxime Ripard wrote: > On Fri, Dec 01, 2017 at 02:44:43PM +0100, Quentin Schulz wrote: >> +static void axp20x_gpio_set(struct gpio_chip *chip, unsigned offset, >> +int value) >> +{ > > checkpatch output: >

[linux-sunxi] [PATCH v4 10/10] ARM: dtsi: axp81x: set pinmux for GPIO0/1 when used as LDOs

2017-12-01 Thread Quentin Schulz
On AXP813/818, GPIO0 and GPIO1 can be used as LDO as (respectively) ldo_io0 and ldo_io1. Let's add the pinctrl properties to the said regulators. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- arch/arm/boot/dts/axp81x.dtsi | 14 ++ 1 file chang

[linux-sunxi] [PATCH v4 00/10] add pinmuxing support for pins in AXP209 and AXP813 PMICs

2017-12-01 Thread Quentin Schulz
order of some patches, - register all pins within the same range instead of a range per pin, Thanks, Quentin Quentin Schulz (10): pinctrl: move gpio-axp209 to pinctrl pinctrl: axp209: add pinctrl features dt-bindings: gpio: gpio-axp209: add pinctrl features pinctrl: axp209: rename ev

[linux-sunxi] [PATCH v4 01/10] pinctrl: move gpio-axp209 to pinctrl

2017-12-01 Thread Quentin Schulz
To prepare the driver for the upcoming pinctrl features, move the GPIO driver AXP209 from GPIO to pinctrl subsystem. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> Acked-by: Maxime Ripard <maxime.rip...@free-electrons.com> Acked-by: Chen-Yu Tsai <w...@csie.or

[linux-sunxi] [PATCH v4 07/10] pinctrl: axp209: add support for AXP813 GPIOs

2017-12-01 Thread Quentin Schulz
The AXP813 has only two GPIOs. GPIO0 can either be used as a GPIO, an LDO regulator or an ADC. GPIO1 can be used either as a GPIO or an LDO regulator. Moreover, the status bit of the GPIOs when in input mode is not offset by 4 unlike the AXP209. Signed-off-by: Quentin Schulz <quentin.sch...@f

  1   2   3   >