[linux-sunxi] Re: [RESEND PATCH v4 2/9] iio: adc: add support for X-Powers AXP20X and AXP22X PMICs ADCs

2017-03-24 Thread Quentin Schulz
r the various subsystems though, > like regulators, power supplies, extcon, etc.. > But I suppose that's cleaner, and fits the original intent of the syntax. > Hum. I don't really understand what you are saying.. Am I supposed to modify something or, is it okay and we're waiting for Lee t

Re: [linux-sunxi] Backlight problems on A23 Q8 Tablet

2017-03-19 Thread Quentin Schulz
.com>. > For more options, visit https://groups.google.com/d/optout. -- Quentin Schulz, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To un

[linux-sunxi] [PATCH v4 00/18] add support for AXP20X and AXP22X power supply drivers

2017-03-15 Thread Quentin Schulz
O channels, now grouped by same part of the PMIC (e.g. voltage and current of the battery have the same index in different IIO types), - Added structures for specific data instead of matching on IDs, - Switched from DT IIO channels mapping to iio_map structures IIO channels mapping, Quentin Quen

[linux-sunxi] [PATCH v4 12/18] mfd: axp20x: add CHRG_CTRL1/2/3 to writeable regs for AXP20X/AXP22X

2017-03-15 Thread Quentin Schulz
registers to the list of writeable registers for AXP20X and AXP22X PMICs. 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.org> Acked-for-MFD-by: Lee Jones <lee.jo..

[linux-sunxi] [PATCH v4 05/18] mfd: axp20x: add ADC cells for AXP20X and AXP22X PMICs

2017-03-15 Thread Quentin Schulz
This adds the AXP20X/AXP22x ADCs driver to the mfd cells of the AXP209, AXP221 and AXP223 MFD. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> Acked-by: Maxime Ripard <maxime.rip...@free-electrons.com> Acked-for-MFD-by: Lee Jones <lee.jo...@linaro.org> Acked-b

[linux-sunxi] [PATCH v4 09/18] ARM: dts: sun8i: sina33: enable ACIN power supply subnode

2017-03-15 Thread Quentin Schulz
The Sinlinx SinA33 has an AXP223 PMIC and an ACIN connector, thus, we enable the ACIN power supply in its Device Tree. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> Acked-by: Chen-Yu Tsai <w...@csie.org> Acked-by: Maxime Ripard <maxime.rip...@free-electrons.com

[linux-sunxi] [PATCH v4 13/18] power: supply: add battery driver for AXP20X and AXP22X PMICs

2017-03-15 Thread Quentin Schulz
max and min limits, current voltage and battery capacity (in Ah). This battery driver uses the AXP20X/AXP22X ADC driver as PMIC data provider. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> Acked-by: Jonathan Cameron <ji...@kernel.org> Acked-by: Maxime Ripard

[linux-sunxi] [PATCH v4 07/18] ARM: dtsi: axp209: add AC power supply subnode

2017-03-15 Thread Quentin Schulz
The X-Powers AXP20X PMIC exposes the status of AC power supply, the current current and voltage supplied to the board by the AC power supply. This adds the AC power supply subnode for AXP20X PMIC. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> Acked-by: Chen-Yu T

[linux-sunxi] [PATCH v4 03/18] mfd: axp20x: correct name of temperature data ADC registers

2017-03-15 Thread Quentin Schulz
The registers 0x56 and 0x57 of AXP22X PMIC store the value of the internal temperature of the PMIC. This patch modifies the name of these registers from AXP22X_PMIC_ADC_H/L to AXP22X_PMIC_TEMP_H/L so their purpose is clearer. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.

[linux-sunxi] [PATCH v4 06/18] mfd: axp20x: add AC power supply cells for AXP22X PMICs

2017-03-15 Thread Quentin Schulz
The X-Powers AXP20X and AXP22X PMICs expose the status of AC power supply. This adds the AC power supply driver to the MFD cells of the AXP22X PMICs. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> Acked-by: Maxime Ripard <maxime.rip...@free-electrons.com> Acked-b

[linux-sunxi] [PATCH v4 08/18] ARM: dtsi: axp22x: add AC power supply subnode

2017-03-15 Thread Quentin Schulz
The X-Powers AXP22X PMIC exposes the status of AC power supply. This adds the AC power supply subnode for the AXP22X PMIC. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> Acked-by: Chen-Yu Tsai <w...@csie.org> Acked-by: Maxime Ripard <maxime.rip...@free-electro

[linux-sunxi] [PATCH v4 15/18] ARM: dtsi: axp209: add battery power supply subnode

2017-03-15 Thread Quentin Schulz
supply subnode for AXP20X PMIC. 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.org> --- v2: - changed DT node name from battery_power_supply to battery-power-sup

[linux-sunxi] [RESEND PATCH v4 9/9] mfd: axp20x: add CHRG_CTRL1/2/3 to writeable regs for AXP20X/AXP22X

2017-03-20 Thread Quentin Schulz
registers to the list of writeable registers for AXP20X and AXP22X PMICs. 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.org> Acked-for-MFD-by: Lee Jones <lee.jo..

[linux-sunxi] [RESEND PATCH v4 5/9] ARM: dtsi: axp209: add AC power supply subnode

2017-03-20 Thread Quentin Schulz
The X-Powers AXP20X PMIC exposes the status of AC power supply, the current current and voltage supplied to the board by the AC power supply. This adds the AC power supply subnode for AXP20X PMIC. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> Acked-by: Chen-Yu T

[linux-sunxi] [RESEND PATCH v4 4/9] mfd: axp20x: add AC power supply cells for AXP22X PMICs

2017-03-20 Thread Quentin Schulz
The X-Powers AXP20X and AXP22X PMICs expose the status of AC power supply. This adds the AC power supply driver to the MFD cells of the AXP22X PMICs. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> Acked-by: Maxime Ripard <maxime.rip...@free-electrons.com> Acked-B

[linux-sunxi] [RESEND PATCH v4 6/9] ARM: dtsi: axp22x: add AC power supply subnode

2017-03-20 Thread Quentin Schulz
The X-Powers AXP22X PMIC exposes the status of AC power supply. This adds the AC power supply subnode for the AXP22X PMIC. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> Acked-by: Chen-Yu Tsai <w...@csie.org> Acked-by: Maxime Ripard <maxime.rip...@free-electro

[linux-sunxi] [RESEND PATCH v4 2/9] iio: adc: add support for X-Powers AXP20X and AXP22X PMICs ADCs

2017-03-20 Thread Quentin Schulz
c_adc.o obj-$(CONFIG_BERLIN2_ADC) += berlin2-adc.o diff --git a/drivers/iio/adc/axp20x_adc.c b/drivers/iio/adc/axp20x_adc.c new file mode 100644 index 000..11e1771 --- /dev/null +++ b/drivers/iio/adc/axp20x_adc.c @@ -0,0 +1,617 @@ +/* ADC driver for AXP20X and AXP22X PMICs + * + * Copyrigh

[linux-sunxi] [PATCH v4 04/18] iio: adc: add support for X-Powers AXP20X and AXP22X PMICs ADCs

2017-03-15 Thread Quentin Schulz
c_adc.o obj-$(CONFIG_BERLIN2_ADC) += berlin2-adc.o diff --git a/drivers/iio/adc/axp20x_adc.c b/drivers/iio/adc/axp20x_adc.c new file mode 100644 index 000..11e1771 --- /dev/null +++ b/drivers/iio/adc/axp20x_adc.c @@ -0,0 +1,617 @@ +/* ADC driver for AXP20X and AXP22X PMICs + * + * Copyrigh

[linux-sunxi] [PATCH v4 14/18] mfd: axp20x: add MFD cells for AXP20X and AXP22X battery driver

2017-03-15 Thread Quentin Schulz
The X-Powers AXP20X and AXP22X PMICs can have a battery as power supply. This patch adds the AXP20X/AXP22X battery driver to the MFD cells of the AXP209, AXP221 and AXP223 MFD. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> Acked-for-MFD-by: Lee Jones <lee.jo...@l

[linux-sunxi] [PATCH v4 10/18] ARM: sun5i: chip: enable ACIN power supply subnode

2017-03-15 Thread Quentin Schulz
The NextThing Co. CHIP has an AXP209 PMIC and can be power-supplied by ACIN via the CHG-IN pin. This enables the ACIN power supply subnode in the DT. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> Acked-by: Chen-Yu Tsai <w...@csie.org> Acked-by: Maxime Ripard

[linux-sunxi] [PATCH v4 02/18] power: supply: power_supply_core: add constant-charge-current optional property

2017-03-15 Thread Quentin Schulz
This adds the constant-charge-current property to the list of optional properties for the battery. The constant charge current is critical for batteries as they can't handle all charge currents. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- v4: - switch from co

[linux-sunxi] [PATCH v4 11/18] dt-bindings: power: supply: add AXP20X/AXP22X battery DT binding

2017-03-15 Thread Quentin Schulz
capacity (in percentage), voltage max and min limits, current voltage and battery capacity (in Ah). Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> Acked-by: Chen-Yu Tsai <w...@csie.org> Acked-by: Maxime Ripard <maxime.rip...@free-electrons.com> --- v4: - added

[linux-sunxi] [PATCH v4 17/18] ARM: dts: sun8i: sina33: enable battery power supply subnode

2017-03-15 Thread Quentin Schulz
The Sinlinx SinA33 has an AXP223 PMIC and a battery connector, thus, we enable the battery power supply subnode in its Device Tree. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> Acked-by: Maxime Ripard <maxime.rip...@free-electrons.com> Acked-by: Chen-Yu Tsai &l

[linux-sunxi] [PATCH v4 16/18] ARM: dtsi: axp22x: add battery power supply subnode

2017-03-15 Thread Quentin Schulz
subnode for AXP22X PMIC. 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.org> --- v2: - changed DT node name from battery_power_supply to battery-power-supply, - r

[linux-sunxi] Re: [PATCH v4 11/18] dt-bindings: power: supply: add AXP20X/AXP22X battery DT binding

2017-03-15 Thread Quentin Schulz
Hi, On 15/03/2017 23:28, Sebastian Reichel wrote: > Hi, > > On Wed, Mar 15, 2017 at 11:55:30AM +0100, Quentin Schulz wrote: >> The X-Powers AXP20X and AXP22X PMICs can have a battery as power supply. >> >> This patch adds the DT binding documentation for the battery

[linux-sunxi] [PATCH] ARM: sun8i: a33: remove highest OPP to fix CPU crashes

2017-03-20 Thread Quentin Schulz
xperienced) CPU crashes. Remove the OPP which requires overvolting the CPU until all boards have a cpu-supply property. Fixes: 03749eb88e635ad67818827adde8e5eea7b64571 ("ARM: dts: sun8i: add opp-v2 table for A33") Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --

[linux-sunxi] Re: [PATCH v4 00/18] add support for AXP20X and AXP22X power supply drivers

2017-03-20 Thread Quentin Schulz
Hi Sebastian and Liam, On 15/03/2017 23:46, Sebastian Reichel wrote: > On Wed, Mar 15, 2017 at 02:18:56PM +0100, Quentin Schulz wrote: >> Hi Lee, >> >> On 15/03/2017 13:14, Lee Jones wrote: >>> On Wed, 15 Mar 2017, Quentin Schulz wrote: >>> >>>>

[linux-sunxi] [PATCH v5 3/7] mfd: axp20x: add MFD cells for AXP20X and AXP22X battery driver

2017-04-05 Thread Quentin Schulz
The X-Powers AXP20X and AXP22X PMICs can have a battery as power supply. This patch adds the AXP20X/AXP22X battery driver to the MFD cells of the AXP209, AXP221 and AXP223 MFD. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> Acked-for-MFD-by: Lee Jones <lee.jo...@l

[linux-sunxi] [PATCH v5 7/7] ARM: sun5i: chip: enable battery power supply subnode

2017-04-05 Thread Quentin Schulz
The NextThing Co. CHIP has an AXP209 PMIC with battery connector. This enables the battery power supply subnode. 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.org>

[linux-sunxi] [PATCH v5 5/7] ARM: dtsi: axp22x: add battery power supply subnode

2017-04-05 Thread Quentin Schulz
subnode for AXP22X PMIC. 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.org> --- v2: - changed DT node name from battery_power_supply to battery-power-supply, - r

[linux-sunxi] [PATCH v5 6/7] ARM: dts: sun8i: sina33: enable battery power supply subnode

2017-04-05 Thread Quentin Schulz
The Sinlinx SinA33 has an AXP223 PMIC and a battery connector, thus, we enable the battery power supply subnode in its Device Tree. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> Acked-by: Maxime Ripard <maxime.rip...@free-electrons.com> Acked-by: Chen-Yu Tsai &l

[linux-sunxi] [PATCH v5 4/7] ARM: dtsi: axp209: add battery power supply subnode

2017-04-05 Thread Quentin Schulz
supply subnode for AXP20X PMIC. 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.org> --- v2: - changed DT node name from battery_power_supply to battery-power-sup

[linux-sunxi] [PATCH v5 2/7] power: supply: add battery driver for AXP20X and AXP22X PMICs

2017-04-05 Thread Quentin Schulz
max and min limits, current voltage and battery capacity (in Ah). This battery driver uses the AXP20X/AXP22X ADC driver as PMIC data provider. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> Acked-by: Jonathan Cameron <ji...@kernel.org> Acked-by: Maxime Ripard

[linux-sunxi] [PATCH v5 1/7] dt-bindings: power: supply: add AXP20X/AXP22X battery DT binding

2017-04-05 Thread Quentin Schulz
capacity (in percentage), voltage max and min limits, current voltage and battery capacity (in Ah). Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> Acked-by: Chen-Yu Tsai <w...@csie.org> Acked-by: Maxime Ripard <maxime.rip...@free-electrons.com> --- v5: - r

[linux-sunxi] [PATCH v5 0/7] add support for AXP20X and AXP22X battery power supply driver

2017-04-05 Thread Quentin Schulz
ls mapping, Quentin Quentin Schulz (7): dt-bindings: power: supply: add AXP20X/AXP22X battery DT binding power: supply: add battery driver for AXP20X and AXP22X PMICs mfd: axp20x: add MFD cells for AXP20X and AXP22X battery driver ARM: dtsi: axp209: add battery power supply subnode ARM: dt

[linux-sunxi] [PATCH v4 2/8] dt-bindings: input: touschcreen: remove sun4i documentation

2017-04-05 Thread Quentin Schulz
This patch removes the sun4i touchscreen controller binding documentation since it has been merged with the sun4i GPADC binding documentation. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> Acked-by: Rob Herring <r...@kernel.org> Acked-by: Dmitry Torokhov &

[linux-sunxi] [PATCH v4 6/8] ARM: sun8i: a33: add CPU thermal throttling

2017-04-05 Thread Quentin Schulz
This adds CPU thermal throttling for the Allwinner A33. It uses the thermal sensor present in the SoC's GPADC. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- v3: - switched to new phandle because of modified DT node name for the GPADC (named THS), - g

[linux-sunxi] [PATCH v4 5/8] ARM: sun8i: a33: add thermal sensor

2017-04-05 Thread Quentin Schulz
This adds the DT node for the thermal sensor present in the Allwinner A33 GPADC. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- v3: - switched compatible to allwinner,sun8i-a33-ths, - renamed DT node name and label to ths to better match datasheet's name, ar

[linux-sunxi] [PATCH v4 8/8] ARM: sun8i: sina33: add highest OPP of CPUs

2017-04-05 Thread Quentin Schulz
table of the Sinlinx SinA33. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- added in v3 arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dts | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dts b/arch/arm/bo

[linux-sunxi] [PATCH v4 4/8] iio: adc: sun4i-gpadc-iio: add support for A33 thermal sensor

2017-04-05 Thread Quentin Schulz
supported SoCs and almost the same bits, for the same purpose (thermal sensor). The thermal sensor behaves exactly the same (except the presence of interrupts or not) on the different SoCs. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> Acked-by: Lee Jones <lee.jo...@l

[linux-sunxi] [PATCH v4 0/8] add thermal throttling to Allwinner A33 SoC

2017-04-05 Thread Quentin Schulz
s ADC" Thanks, Quentin Maxime Ripard (1): ARM: sun8i: a33: Add devfreq-based GPU cooling Quentin Schulz (7): dt-bindings: mfd: add A33 GPADC binding dt-bindings: input: touschcreen: remove sun4i documentation iio: adc: sun4i-gpadc-iio: move code used in MFD probing to new function

[linux-sunxi] [PATCH v4 7/8] ARM: sun8i: a33: Add devfreq-based GPU cooling

2017-04-05 Thread Quentin Schulz
From: Maxime Ripard <maxime.rip...@free-electrons.com> This adds GPU thermal throttling for the Allwinner A33. Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- v3: - got rid of cooling-min

[linux-sunxi] [PATCH v4 1/8] dt-bindings: mfd: add A33 GPADC binding

2017-04-05 Thread Quentin Schulz
This patch adds documentation for the A33 GPADC binding. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> Acked-by: Rob Herring <r...@kernel.org> --- v4: - correct patch title, v3: - fixed missing allwinner in front of compatible, - updated compatible to all

[linux-sunxi] [PATCH v4 3/8] iio: adc: sun4i-gpadc-iio: move code used in MFD probing to new function

2017-04-05 Thread Quentin Schulz
that will require to create a DT binding for this IP, we can avoid using an MFD, thus we need two separate functions: one for probing via MFD and one for probing without MFD. This split the code specific to MFD probing in a function separated from the driver probe function. Signed-off-by: Quentin

[linux-sunxi] Re: [PATCH v3 00/11] add thermal throttling to Allwinner A33 SoC

2017-04-05 Thread Quentin Schulz
Hi Lee, On 04/04/2017 10:31, Lee Jones wrote: > On Tue, 21 Mar 2017, Quentin Schulz wrote: > >> The Allwinner SoCs all have an ADC that can also act as a touchscreen >> controller and a thermal sensor. The first four channels can be used >> either for the ADC or the t

[linux-sunxi] [RESEND PATCH v4] iio: adc: add support for X-Powers AXP20X and AXP22X PMICs ADCs

2017-04-04 Thread Quentin Schulz
/iio/adc/axp20x_adc.c @@ -0,0 +1,617 @@ +/* ADC driver for AXP20X and AXP22X PMICs + * + * Copyright (c) 2016 Free Electrons NextThing Co. + * Quentin Schulz <quentin.sch...@free-electrons.com> + * + * This program is free software; you can redistribute it and/or modify it under + * the terms o

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

2017-04-02 Thread Quentin Schulz
> } > > diff --git a/include/linux/mfd/sun4i-gpadc.h b/include/linux/mfd/sun4i-gpadc.h > index d31d962bb7d8..36046a0d91f3 100644 > --- a/include/linux/mfd/sun4i-gpadc.h > +++ b/include/linux/mfd/sun4i-gpadc.h > @@ -39,9 +39,13 @@ > #define SUN6I_GPADC_CTRL1_ADC_CHAN_MASK

[linux-sunxi] Re: [RFC PATCH v2 4/4] ARM: sun8i: h3: add support for the thermal sensor in H3

2017-04-02 Thread Quentin Schulz
+ > + thermal-zones { > + cpu_thermal { > + /* milliseconds */ > + polling-delay-passive = <250>; > + polling-delay = <1000>; > + thermal-sensors = <>; > + }; Would it

[linux-sunxi] Re: [RESEND PATCH v4] iio: adc: add support for X-Powers AXP20X and AXP22X PMICs ADCs

2017-04-10 Thread Quentin Schulz
Hi Lee, Just to make sure you didn't miss that patch (can't find it in for-mfd-next and for-mfd-next-next). Thanks, Quentin On 04/04/2017 08:34, Quentin Schulz wrote: > The X-Powers AXP20X and AXP22X PMICs have multiple ADCs. They expose the > battery voltage, battery charge and dis

[linux-sunxi] Re: [RESEND PATCH v4] iio: adc: add support for X-Powers AXP20X and AXP22X PMICs ADCs

2017-04-11 Thread Quentin Schulz
Hi Lee, On 10/04/2017 16:54, Lee Jones wrote: > On Mon, 10 Apr 2017, Quentin Schulz wrote: > >> Hi Lee, >> >> Just to make sure you didn't miss that patch (can't find it in >> for-mfd-next and for-mfd-next-next). > > It has not been missed, but is yet to be

[linux-sunxi] [PATCH v2 02/11] ARM: sun8i: a33: add all operating points

2017-03-10 Thread Quentin Schulz
This adds all operating points allowed for the A33 as defined by fex files available at: https://github.com/linux-sunxi/sunxi-boards/tree/master/sys_config/a33 Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- added in v2 arch/arm/boot/dts/sun8i-a33.dts

[linux-sunxi] [PATCH v2 04/11] ARM: dts: sun8i: olinuxino: add cpu-supply

2017-03-10 Thread Quentin Schulz
This adds the cpu-supply DT property to the cpu0 DT node needed by the board to adapt the regulator voltage depending on the currently use OPP. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- arch/arm/boot/dts/sun8i-a33-olinuxino.dts | 4 1 file changed, 4 inse

[linux-sunxi] [PATCH v2 06/11] Documentation: DT: bindings: input: touschcreen: remove sun4i documentation

2017-03-10 Thread Quentin Schulz
This patch removes the sun4i touchscreen controller binding documentation since it has been merged with the sun4i GPADC binding documentation. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- added in v2 .../bindings/input/touchscreen/sun4i.txt

[linux-sunxi] [PATCH v2 03/11] ARM: dts: sun8i: sina33: add cpu-supply

2017-03-10 Thread Quentin Schulz
This adds the cpu-supply DT property to the cpu0 DT node needed by the board to adapt the regulator voltage depending on the currently used OPP. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dts | 4 1 file chan

[linux-sunxi] [PATCH v2 08/11] iio: adc: sun4i-gpadc-iio: add support for A33 thermal sensor

2017-03-10 Thread Quentin Schulz
the temperature value. The MFD used by the A10, A13 and A31, was created to avoid breaking the DT binding, but since the nodes for the ADC weren't there for the A33, it is not needed. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- v2: - removed added comments in K

[linux-sunxi] [PATCH v2 05/11] Documentation: DT: bindings: mfd: add A33 GPADC binding

2017-03-10 Thread Quentin Schulz
This patch adds documentation for the A33 GPADC binding. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- added in v2 .../devicetree/bindings/mfd/sun4i-gpadc.txt| 59 ++ 1 file changed, 59 insertions(+) create mode 100644 Documen

[linux-sunxi] [PATCH v2 00/11] add thermal throttling to Allwinner A33 SoC

2017-03-10 Thread Quentin Schulz
! This series of patch is based on this[1] series of patch. [1] https://lkml.org/lkml/2016/12/13/298 : "[PATCH v9] add support for Allwinner SoCs ADC" Thanks, Quentin Maxime Ripard (1): ARM: sun8i: a33: Add devfreq-based GPU cooling Quentin Schulz (10): ARM: sun8i: a33: add operating

[linux-sunxi] [PATCH v2 07/11] iio: adc: sun4i-gpadc-iio: move code used in MFD probing to new function

2017-03-10 Thread Quentin Schulz
This moves code used in MFD probing to a new sun4i_gpadc_probe_mfd function. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- added in v2 drivers/iio/adc/sun4i-gpadc-iio.c | 78 ++- 1 file changed, 45 insertions(+), 33 deletions(-)

[linux-sunxi] [PATCH v2 09/11] ARM: dtsi: sun8i: a33: add thermal sensor

2017-03-10 Thread Quentin Schulz
This adds the DT node for the thermal sensor present in the Allwinner A33 GPADC. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- arch/arm/boot/dts/sun8i-a33.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a33.dtsi b/ar

[linux-sunxi] [PATCH v2 10/11] ARM: dtsi: sun8i: a33: add CPU thermal throttling

2017-03-10 Thread Quentin Schulz
This adds CPU thermal throttling for the Allwinner A33. It uses the thermal sensor present in the SoC's GPADC. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- v2: - updated cooling-max-level to reflect newly added OPPs, arch/arm/boot/dts/sun8i-a33.dts

[linux-sunxi] [PATCH v2 01/11] ARM: sun8i: a33: add operating-points-v2 property to all nodes

2017-03-10 Thread Quentin Schulz
The OPP are declared as shared but no operating points are declared for cpu1, 2 and 3. Thus, the following error happens during the boot: cpu cpu1: dev_pm_opp_of_get_sharing_cpus: Couldn't find tcpu_dev node. This patch applies the operating points to each cpu of the A33. Signed-off-by: Quentin

[linux-sunxi] Re: [PATCH v2 07/11] iio: adc: sun4i-gpadc-iio: move code used in MFD probing to new function

2017-03-11 Thread Quentin Schulz
Hi Icenowy, On 10/03/2017 20:36, Icenowy Zheng wrote: > > > 10.03.2017, 18:56, "Quentin Schulz" <quentin.sch...@free-electrons.com>: >> This moves code used in MFD probing to a new sun4i_gpadc_probe_mfd >> function. >> >> Signed-off-by:

[linux-sunxi] Re: [PATCH v2 08/11] iio: adc: sun4i-gpadc-iio: add support for A33 thermal sensor

2017-03-14 Thread Quentin Schulz
Hi Jonathan, On 14/03/2017 06:18, Icenowy Zheng wrote: > > > 14.03.2017, 05:08, "Jonathan Cameron" <ji...@kernel.org>: >> On 10/03/17 10:39, Quentin Schulz wrote: >>> This adds support for the Allwinner A33 thermal sensor. >>> >>> U

Re: [linux-sunxi] Re: sun4i-ts hwmon broken with linux 4.10

2017-03-08 Thread Quentin Schulz
Hi Michael, On 08/03/2017 09:31, Michael Weiser wrote: > Hi Quentin, > > On Wed, Mar 08, 2017 at 08:43:12AM +0100, Quentin Schulz wrote: > >> First of all, you should have sent this mail to the linux-arm-kernel > [...] >> CONFIG_MFD_SUN4I_GPADC enabled seems

[linux-sunxi] Re: [PATCH v3 00/11] add thermal throttling to Allwinner A33 SoC

2017-04-05 Thread Quentin Schulz
Hi Lee, On 05/04/2017 11:57, Lee Jones wrote: > On Wed, 05 Apr 2017, Quentin Schulz wrote: >> On 04/04/2017 10:31, Lee Jones wrote: >>> On Tue, 21 Mar 2017, Quentin Schulz wrote: >>>> v3: >>>> - fixed compatible name in DT and in documentat

[linux-sunxi] [PATCH v3 07/11] iio: adc: sun4i-gpadc-iio: add support for A33 thermal sensor

2017-03-21 Thread Quentin Schulz
supported SoCs and almost the same bits, for the same purpose (thermal sensor). The thermal sensor behaves exactly the same (except the presence of interrupts or not) on the different SoCs. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> Acked-by: Lee Jones <lee.jo...@l

[linux-sunxi] [PATCH v3 11/11] ARM: sun8i: sina33: add highest OPP of CPUs

2017-03-21 Thread Quentin Schulz
table of the Sinlinx SinA33. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- added in v3 arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dts | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dts b/arch/arm/bo

[linux-sunxi] [PATCH v3 01/11] ARM: sun8i: a33: add operating-points-v2 property to all nodes

2017-03-21 Thread Quentin Schulz
The OPP are declared as shared but no operating points are declared for cpu1, 2 and 3. Thus, the following error happens during the boot: cpu cpu1: dev_pm_opp_of_get_sharing_cpus: Couldn't find tcpu_dev node. This patch applies the operating points to each cpu of the A33. Signed-off-by: Quentin

[linux-sunxi] [PATCH v3 10/11] ARM: sun8i: a33: Add devfreq-based GPU cooling

2017-03-21 Thread Quentin Schulz
From: Maxime Ripard <maxime.rip...@free-electrons.com> This adds GPU thermal throttling for the Allwinner A33. Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- v3: - got rid of cooling-min

[linux-sunxi] [PATCH v3 05/11] Documentation: DT: bindings: input: touschcreen: remove sun4i documentation

2017-03-21 Thread Quentin Schulz
This patch removes the sun4i touchscreen controller binding documentation since it has been merged with the sun4i GPADC binding documentation. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> Acked-by: Rob Herring <r...@kernel.org> --- added in v2 .../bi

[linux-sunxi] [PATCH v3 03/11] ARM: dts: sun8i: sina33: add cpu-supply

2017-03-21 Thread Quentin Schulz
This adds the cpu-supply DT property to the cpu0 DT node needed by the board to adapt the regulator voltage depending on the currently used OPP. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dts | 4 1 file chan

[linux-sunxi] [PATCH v3 02/11] ARM: sun8i: a33: add all operating points

2017-03-21 Thread Quentin Schulz
boards defining the CPU regulator, we cannot have these two frequencies as it would cause the CPU to try to run a higher frequency without "overvolting" which is very likely to crash the CPU. Therefore, these two frequencies must be enabled on a per-board basis. Signed-off-by: Quen

[linux-sunxi] [PATCH v3 00/11] add thermal throttling to Allwinner A33 SoC

2017-03-21 Thread Quentin Schulz
(1): ARM: sun8i: a33: Add devfreq-based GPU cooling Quentin Schulz (10): ARM: sun8i: a33: add operating-points-v2 property to all nodes ARM: sun8i: a33: add all operating points ARM: dts: sun8i: sina33: add cpu-supply Documentation: DT: bindings: mfd: add A33 GPADC binding Documentation: DT

[linux-sunxi] [PATCH v6 2/6] power: supply: add battery driver for AXP20X and AXP22X PMICs

2017-04-18 Thread Quentin Schulz
max and min limits, current voltage and battery capacity (in Ah). This battery driver uses the AXP20X/AXP22X ADC driver as PMIC data provider. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> Acked-by: Jonathan Cameron <ji...@kernel.org> Acked-by: Maxime Ripard

[linux-sunxi] [PATCH v6 6/6] ARM: sun5i: chip: enable battery power supply subnode

2017-04-18 Thread Quentin Schulz
The NextThing Co. CHIP has an AXP209 PMIC with battery connector. This enables the battery power supply subnode. 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.org>

[linux-sunxi] [PATCH v6 0/6] add support for AXP20X and AXP22X battery power supply driver

2017-04-18 Thread Quentin Schulz
tched from DT IIO channels mapping to iio_map structures IIO channels mapping, Quentin Quentin Schulz (6): dt-bindings: power: supply: add AXP20X/AXP22X battery DT binding power: supply: add battery driver for AXP20X and AXP22X PMICs ARM: dtsi: axp209: add battery power supply subnode

[linux-sunxi] [PATCH v6 5/6] ARM: dts: sun8i: sina33: enable battery power supply subnode

2017-04-18 Thread Quentin Schulz
The Sinlinx SinA33 has an AXP223 PMIC and a battery connector, thus, we enable the battery power supply subnode in its Device Tree. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> Acked-by: Maxime Ripard <maxime.rip...@free-electrons.com> Acked-by: Chen-Yu Tsai &l

[linux-sunxi] [PATCH v6 4/6] ARM: dtsi: axp22x: add battery power supply subnode

2017-04-18 Thread Quentin Schulz
subnode for AXP22X PMIC. 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.org> --- v2: - changed DT node name from battery_power_supply to battery-power-supply, - r

[linux-sunxi] [PATCH v6 1/6] dt-bindings: power: supply: add AXP20X/AXP22X battery DT binding

2017-04-18 Thread Quentin Schulz
capacity (in percentage), voltage max and min limits, current voltage and battery capacity (in Ah). Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> Acked-by: Chen-Yu Tsai <w...@csie.org> Acked-by: Maxime Ripard <maxime.rip...@free-electrons.com> --- v6:

[linux-sunxi] [PATCH v6 3/6] ARM: dtsi: axp209: add battery power supply subnode

2017-04-18 Thread Quentin Schulz
supply subnode for AXP20X PMIC. 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.org> --- v2: - changed DT node name from battery_power_supply to battery-power-sup

[linux-sunxi] [PATCH] iio: adc: sun4i-gpadc-iio: fix parent device being used in devm function

2017-05-15 Thread Quentin Schulz
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> Reported-by: Corentin Labbe <clabbe.montj...@gmail.com> --- drivers/iio/adc/sun4i-gpadc-iio.c | 31 ++- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/drivers/iio/adc/sun4i-gpadc-ii

[linux-sunxi] Re: [PATCH] iio: adc: sun4i-gpadc-iio: fix parent device being used in devm function

2017-05-15 Thread Quentin Schulz
Hi Maxime, On 15/05/2017 11:11, Maxime Ripard wrote: > On Mon, May 15, 2017 at 09:39:02AM +0200, Quentin Schulz wrote: >> For the sake of DT binding stability, this IIO driver is a child of an >> MFD driver for Allwinner A10, A13 and A31 because there already exists a >> D

[linux-sunxi] [PATCH 1/4] power: supply: axp20x_battery: add support for DT battery

2017-05-11 Thread Quentin Schulz
. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- drivers/power/supply/axp20x_battery.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/power/supply/axp20x_battery.c b/drivers/power/supply/axp20x_battery.c index 5d29b2eab8fc..66f530541735

[linux-sunxi] [PATCH 3/4] power: supply: power_supply_core: add constant-charge-current optional property

2017-05-11 Thread Quentin Schulz
This adds the constant-charge-current property to the list of optional properties for the battery. The constant charge current is critical for batteries as they can't handle all charge currents. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- drivers/power/

[linux-sunxi] [PATCH 4/4] power: supply: axp20x_battery: add DT support for battery max constant charge current

2017-05-11 Thread Quentin Schulz
this might damage the battery. The reason for letting the user change the maximum constant charge current is for letting users change the battery and thus, let them adjust the maximum constant charge current according to what the battery can support. Signed-off-by: Quentin Schulz <quentin.sch...@f

[linux-sunxi] [PATCH 0/4] set battery info on AXP20X and AXP22X from DT

2017-05-11 Thread Quentin Schulz
would like to switch the battery attached to their board, so they can set an appropriate constant current charge and take advantage of higher constant current charge. Quentin Quentin Schulz (4): power: supply: axp20x_battery: add support for DT battery dt-bindings: power: battery: add constant

[linux-sunxi] [PATCH 2/4] dt-bindings: power: battery: add constant-charge-current-max-microamp property

2017-05-11 Thread Quentin Schulz
This adds the constant-charge-current-max-microamp property to the list of optional properties of the battery. The constant charge current is critical for batteries as they can't handle all charge currents. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- Documen

[linux-sunxi] [PATCH v2] iio: adc: sun4i-gpadc-iio: fix parent device being used in devm function

2017-05-18 Thread Quentin Schulz
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> Reported-by: Corentin Labbe <clabbe.montj...@gmail.com> --- v2: - save struct device used to register in thermal framework in sun4i_gpadc_iio, - use this struct device to unregister from thermal framework instead of doi

[linux-sunxi] Re: [PATCH 1/4] power: supply: axp20x_battery: add support for DT battery

2017-05-16 Thread Quentin Schulz
Hi Chen-Yu, On 16/05/2017 07:18, Chen-Yu Tsai wrote: > On Thu, May 11, 2017 at 9:42 PM, Quentin Schulz > <quentin.sch...@free-electrons.com> wrote: >> This adds support in X-Powers AXP20X and AXP22X battery driver for a >> fixed battery in DT. >> >> It wil

[linux-sunxi] Re: [PATCH v4 4/6] iio: adc: sun4i-gpadc-iio: add support for H3 thermal sensor

2017-09-16 Thread Quentin Schulz
utdown your board? The H3 apparently supports IRQs, why do you not support them for the temperature? They might be broken as it is on A33 but then it might be a good idea to write it down in a comment in the driver (and not adding the unused registers in the header file) or at least in the commit

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

2017-10-04 Thread Quentin Schulz
Hi Chen-Yu, Linus, On 03/10/2017 17:08, Chen-Yu Tsai wrote: > On Tue, Oct 3, 2017 at 10:47 PM, Maxime Ripard > <maxime.rip...@free-electrons.com> wrote: >> Hi Linus, >> >> On Tue, Oct 03, 2017 at 09:27:17AM +, Linus Walleij wrote: >>> On Mon,

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

2017-09-26 Thread Quentin Schulz
Hi Maxime, On 26/09/2017 15:00, Maxime Ripard wrote: > On Tue, Sep 26, 2017 at 12:17:12PM +0000, Quentin Schulz wrote: >> +static const struct axp20x_desc_pin axp209_pins[] = { >> +AXP20X_PIN(AXP20X_PINCTRL_PIN(0, "GPIO0"), >> +

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

2017-09-26 Thread Quentin Schulz
Hi Maxime, On 26/09/2017 14:55, Maxime Ripard wrote: > On Tue, Sep 26, 2017 at 12:17:11PM +0000, Quentin Schulz wrote: >> To prepare the driver for the upcoming pinctrl features, move the GPIO >> driver AXP209 from GPIO to pinctrl subsystem. >> >> Signed-off-by:

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

2017-09-26 Thread Quentin Schulz
On 26/09/2017 15:27, Maxime Ripard wrote: > On Tue, Sep 26, 2017 at 01:08:21PM +0000, Quentin Schulz wrote: >> Hi Maxime, >> >> On 26/09/2017 15:00, Maxime Ripard wrote: >>> On Tue, Sep 26, 2017 at 12:17:12PM +, Quentin Schulz wrote: >>>> +stati

[linux-sunxi] [PATCH v2 09/10] ARM: dts: sun8i: a711: include axp813 dtsi

2017-09-26 Thread Quentin Schulz
This board has an AXP813 PMIC so let's include its dtsi. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts b/arch/arm/boot/dts/sun8

[linux-sunxi] [PATCH v2 03/10] pinctrl: axp209: use drv_data of pinctrl_pin_desc to store pin reg

2017-09-26 Thread Quentin Schulz
Instead of using a function to retrieve each pin's correct control register, use drv_data within pinctrl_pin_desc to store the ctrl reg. Remove axp20x_gpio_get_reg and replace every occurrence by a get from drv_data. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- d

[linux-sunxi] [PATCH v2 04/10] pinctrl: axp209: rename everything from gpio to pctl

2017-09-26 Thread Quentin Schulz
. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- drivers/pinctrl/pinctrl-axp209.c | 198 1 file changed, 99 insertions(+), 99 deletions(-) diff --git a/drivers/pinctrl/pinctrl-axp209.c b/drivers/pinctrl/pinctrl-axp209.c index 4bbcba2..4

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

2017-09-26 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 v2 01/10] pinctrl: move gpio-axp209 to pinctrl

2017-09-26 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> --- Documentation/devicetree/bindings/gpio/gpio-axp209.txt | 30 +- Documentation/devicetree/bi

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

2017-09-26 Thread Quentin Schulz
to follow the modifications, - reorder of some patches, - register all pins within the same range instead of a range per pin, Thanks, Quentin Maxime Ripard (1): ARM: dts: add dtsi for AXP813 PMIC Quentin Schulz (9): pinctrl: move gpio-axp209 to pinctrl pinctrl: axp209: add pinctr

  1   2   3   >