[GIT PULL firmware] microchip: add firmware for VSC8574 and VSC8584 Ethernet PHYs

2018-12-06 Thread Quentin Schulz
(2018-12-06 11:02:51 +0100) Quentin Schulz (1): microchip: add firmware for VSC8574 and VSC8584 Ethernet PHYs LICENCE.microchip| 40 WHENCE

Re: [PATCH v6 8/8] mfd: axp20x: Add supported cells for AXP803

2018-12-08 Thread Quentin Schulz
Hi Lee, On Fri, Dec 07, 2018 at 07:22:37PM +, Lee Jones wrote: > On Fri, 07 Dec 2018, Vasily Khoruzhick wrote: > > > On Fri, Dec 7, 2018 at 8:40 AM Lee Jones wrote: > > > > > My OCD-dar is going crazy. > > > > > > Why haven't you used the same alignment as is already there? > > > > > > If

[PATCH net-next v3 04/11] net: mscc: ocelot: move the HSIO header to include/soc

2018-09-14 Thread Quentin Schulz
Since HSIO address space can be used by different drivers (PLL, SerDes muxing, temperature sensor), let's move it somewhere it can be included by all drivers. Acked-by: Alexandre Belloni Signed-off-by: Quentin Schulz --- drivers/net/ethernet/mscc/ocelot.h | 1 +- drivers/net/ethernet

[PATCH net-next 5/5] net: phy: mscc: remove unneeded temporary variable

2018-09-14 Thread Quentin Schulz
Here, the rc variable is either used only for the condition right after the assignment or right before being used as the return value of the function it's being used in. So let's remove this unneeded temporary variable whenever possible. Signed-off-by: Quentin Schulz --- drivers/net/phy/mscc.c

[PATCH net-next 4/5] net: phy: mscc: shorten `x != 0` condition to `x`

2018-09-14 Thread Quentin Schulz
`if (x != 0)` is basically a more verbose version of `if (x)` so let's use the latter so it's consistent throughout the whole driver. Signed-off-by: Quentin Schulz --- drivers/net/phy/mscc.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git

[PATCH] ARM: sun8i: Add Parrot Board DTS

2016-06-13 Thread Quentin Schulz
, an audio/microphone jack, a camera CSI port, 2 sets of 22 GPIOs and an accelerometer. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/sun8i-r16-parrot.dts | 333 + 2

[PATCH] ARM: sun8i: Add Parrot Board DTS

2016-06-13 Thread Quentin Schulz
ede or the micro USB port would not be powered. Quentin Schulz (1): ARM: sun8i: Add Parrot Board DTS arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/sun8i-r16-parrot.dts | 333 + 2 files changed, 334 insertions(+) create mode 100644 arch/ar

Re: [PATCH] ARM: sun8i: Add Parrot Board DTS

2016-06-14 Thread Quentin Schulz
Hi, On 13/06/2016 15:04, Chen-Yu Tsai wrote: > Hi, > > On Mon, Jun 13, 2016 at 6:15 PM, Quentin Schulz > <quentin.sch...@free-electrons.com> wrote: >> The Parrot Board is an evaluation board with an Allwinner R16 (assumed >> to be close to an Allwinner A33), 4GB o

[PATCH] phy: phy-sun4i-usb: Add log when probing

2016-06-13 Thread Quentin Schulz
When phy-sun4i-usb's probing fails, it does not print the reason in kernel log, forcing the developer to edit this driver to add info logs. This commit makes the kernel print the reason of phy-sun4i-usb's probing failure or a success message. Signed-off-by: Quentin Schulz <quentin.sch...@f

[PATCH] phy: phy-sun4i-usb: Fix optional gpios failing probe

2016-06-13 Thread Quentin Schulz
fail, preventing the driver from probing properly, while the vbus and id gpios are optional. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- drivers/phy/phy-sun4i-usb.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/phy/phy-sun4i-u

[PATCH v2] ARM: sun8i: Add Parrot Board DTS

2016-06-22 Thread Quentin Schulz
, an audio/microphone jack, a camera CSI port, 2 sets of 22 GPIOs and an accelerometer. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- Patch dependencies: - regulator: axp20x: Add support for the (external) drivebus regulator - ARM: dts: axp22x.dtsi: Add reg_drivebu

[PATCH v3] ARM: sun8i: Add Parrot Board DTS

2016-06-24 Thread Quentin Schulz
, an audio/microphone jack, a camera CSI port, 2 sets of 22 GPIOs and an accelerometer. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> Acked-by: Chen-Yu Tsai <w...@csie.org> --- Patch dependency: - phy-sun4i-usb: Add workaround for missing Vbus det interrupts on A31

[PATCH 0/3] add support for Allwinner SoCs ADC

2016-06-28 Thread Quentin Schulz
channel is found. Currently when no iio channel is found, the probing of iio-hwmon fails. This is problematic when iio-hwmon probes before the iio driver could register iio channels to share. Quentin Schulz (3): mfd: add support for Allwinner SoCs ADC iio: adc: add support for Allwinner SoCs ADC

[PATCH 2/3] iio: adc: add support for Allwinner SoCs ADC

2016-06-28 Thread Quentin Schulz
the Device Tree. This driver probes on three different platform_device_id to take into account slight differences between Allwinner SoCs ADCs. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- drivers/iio/adc/Kconfig | 12 ++ drivers/iio/adc/Makefile

[PATCH 3/3] hwmon: iio_hwmon: defer probe when no channel is found

2016-06-28 Thread Quentin Schulz
of iio_hwmon if such error is returned by iio_channel_get_all in order to let a chance to iio drivers to expose channels in iio_map_list. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- drivers/hwmon/iio_hwmon.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-)

[PATCH 1/3] mfd: add support for Allwinner SoCs ADC

2016-06-28 Thread Quentin Schulz
The Allwinner SoCs all have an ADC that can also act as a touchscreen controller and a thermal sensor. For now, only the ADC and the thermal sensor drivers are probed by the MFD, the touchscreen controller support will be added later. Signed-off-by: Quentin Schulz <quentin.sch...@f

[PATCH v3 1/4] hwmon: iio_hwmon: delay probing with late_initcall

2016-07-26 Thread Quentin Schulz
() as their init. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- v3: - use late_initcall instead of deferring probe, drivers/hwmon/iio_hwmon.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/drivers/hwmon/iio_hwmon.c b/drivers

[PATCH v3 0/4] add support for Allwinner SoCs ADC

2016-07-26 Thread Quentin Schulz
it is not absolutely necessary to have labels yet in iio_hwmon. Quentin Schulz (4): hwmon: iio_hwmon: delay probing with late_initcall mfd: add support for Allwinner SoCs ADC mfd: mfd-core: reattach mfd of_node to cells without of_compatible iio: adc: add support for Allwinner SoCs ADC drivers/hwmon

[PATCH v3 4/4] iio: adc: add support for Allwinner SoCs ADC

2016-07-26 Thread Quentin Schulz
the Device Tree. This registers the driver in the thermal framework. This driver probes on three different platform_device_id to take into account slight differences (registers bit and temperature computation) between Allwinner SoCs ADCs. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.

[PATCH v3 2/4] mfd: add support for Allwinner SoCs ADC

2016-07-26 Thread Quentin Schulz
The Allwinner SoCs all have an ADC that can also act as a touchscreen controller and a thermal sensor. For now, only the ADC and the thermal sensor drivers are probed by the MFD, the touchscreen controller support will be added later. Signed-off-by: Quentin Schulz <quentin.sch...@f

Re: [PATCH v3 1/4] hwmon: iio_hwmon: delay probing with late_initcall

2016-07-26 Thread Quentin Schulz
Hi, On 26/07/2016 09:48, Thomas Petazzoni wrote: > Hello, > > On Tue, 26 Jul 2016 09:43:44 +0200, Quentin Schulz wrote: > >> -module_platform_driver(iio_hwmon_driver); >> +static struct platform_driver * const drivers[] = { >> +_hwmon_driver, >

[PATCH v3 3/4] mfd: mfd-core: reattach mfd of_node to cells without of_compatible

2016-07-26 Thread Quentin Schulz
no of_compatible. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- We need this modification to register the thermal sensor in the thermal framework. Added in v3. drivers/mfd/mfd-core.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/m

Re: [PATCH v3 1/4] hwmon: iio_hwmon: delay probing with late_initcall

2016-07-26 Thread Quentin Schulz
On 26/07/2016 11:05, Alexander Stein wrote: > On Tuesday 26 July 2016 10:24:48, Quentin Schulz wrote: >> On 26/07/2016 10:21, Alexander Stein wrote: >>> On Tuesday 26 July 2016 09:43:44, Quentin Schulz wrote: >>>> iio_channel_get_all returns -ENODEV when

[PATCH] hwmon: iio_hwmon: fix memory leak in name attribute

2016-07-26 Thread Quentin Schulz
The "name" variable's memory is now freed when the device is destructed thanks to devm function. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> Reported-by: Guenter Roeck <li...@roeck-us.net> --- drivers/hwmon/iio_hwmon.c | 24 --

Re: [PATCH v3 1/4] hwmon: iio_hwmon: delay probing with late_initcall

2016-07-26 Thread Quentin Schulz
On 26/07/2016 10:21, Alexander Stein wrote: > On Tuesday 26 July 2016 09:43:44, Quentin Schulz wrote: >> iio_channel_get_all returns -ENODEV when it cannot find either phandles and >> properties in the Device Tree or channels whose consumer_dev_name matches >> iio_

Re: [PATCH v3 1/4] hwmon: iio_hwmon: delay probing with late_initcall

2016-07-26 Thread Quentin Schulz
On 26/07/2016 12:00, Alexander Stein wrote: > On Tuesday 26 July 2016 11:33:59, Quentin Schulz wrote: >> On 26/07/2016 11:05, Alexander Stein wrote: >>> On Tuesday 26 July 2016 10:24:48, Quentin Schulz wrote: >>>> On 26/07/2016 10:21, Alexander Stein wrote: >>

Re: [PATCH v3 4/4] iio: adc: add support for Allwinner SoCs ADC

2016-08-04 Thread Quentin Schulz
On 04/08/2016 11:56, Russell King - ARM Linux wrote: > On Tue, Jul 26, 2016 at 09:43:47AM +0200, Quentin Schulz wrote: >> +static int sunxi_gpadc_adc_read(struct iio_dev *indio_dev, int channel, >> +int *val) >> +{ >> +struct sunxi

Re: [PATCH v3 4/4] iio: adc: add support for Allwinner SoCs ADC

2016-08-04 Thread Quentin Schulz
Hi Maxime, On 29/07/2016 09:12, Maxime Ripard wrote: > On Tue, Jul 26, 2016 at 09:43:47AM +0200, Quentin Schulz wrote: [...] >> +static int sunxi_gpadc_adc_read(struct iio_dev *indio_dev, int channel, >> +int *val) >> +{ >> +struct sunxi

Re: [PATCH v2 2/4] iio: adc: add support for Allwinner SoCs ADC

2016-07-21 Thread Quentin Schulz
On 20/07/2016 16:57, Jonathan Cameron wrote: > On 19/07/16 09:33, Quentin Schulz wrote: >> On 18/07/2016 15:18, Jonathan Cameron wrote: >>> On 15/07/16 10:59, Quentin Schulz wrote: [...] >>>> + enable_irq(info->temp_data_irq); >>> Is this hardware spi

[PATCH v2 2/4] iio: adc: add support for Allwinner SoCs ADC

2016-07-15 Thread Quentin Schulz
the Device Tree. This driver probes on three different platform_device_id to take into account slight differences between Allwinner SoCs ADCs. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- v2: - add SUNXI_GPADC_ prefixes for defines, - correct typo in Kconfig, - r

[PATCH v2 4/4] hwmon: iio: add label for channels read by iio_hwmon

2016-07-15 Thread Quentin Schulz
, the sysfs file is not created by iio_hwmon. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- patch added in v2 drivers/hwmon/iio_hwmon.c | 77 +-- 1 file changed, 68 insertions(+), 9 deletions(-) diff --git a/drivers

[PATCH v2 3/4] mfd: add support for Allwinner SoCs ADC

2016-07-15 Thread Quentin Schulz
The Allwinner SoCs all have an ADC that can also act as a touchscreen controller and a thermal sensor. For now, only the ADC and the thermal sensor drivers are probed by the MFD, the touchscreen controller support will be added later. Signed-off-by: Quentin Schulz <quentin.sch...@f

[PATCH v2 1/4] hwmon: iio_hwmon: defer probe when no channel is found

2016-07-15 Thread Quentin Schulz
of iio_hwmon if such error is returned by iio_channel_get_all in order to let a chance to iio drivers to expose channels in iio_map_list. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- No modifications for this patch since we did not settled for a solution. What should

[PATCH v2 0/4] add support for Allwinner SoCs ADC

2016-07-15 Thread Quentin Schulz
read by iio_hwmon. Until now, there were no way to identify what the exposed channels are representing. Now, if a channel has its extend_name field set, this value will be exposed in a sysfs file suffixed by _label. If the field is empty, no file will be created. Quentin Schulz (4): hwmon

Re: [PATCH v2 4/4] hwmon: iio: add label for channels read by iio_hwmon

2016-07-19 Thread Quentin Schulz
On 18/07/2016 14:24, Jonathan Cameron wrote: > On 15/07/16 10:59, Quentin Schulz wrote: >> Currently, iio_hwmon only exposes values of the IIO channels it can read >> but no label by channel is exposed. >> >> This adds exposition of sysfs files containing label for

Re: [PATCH v2 2/4] iio: adc: add support for Allwinner SoCs ADC

2016-07-19 Thread Quentin Schulz
On 18/07/2016 14:57, Maxime Ripard wrote: > On Fri, Jul 15, 2016 at 11:59:12AM +0200, Quentin Schulz wrote: >> The Allwinner SoCs all have an ADC that can also act as a touchscreen >> controller and a thermal sensor. This patch adds the ADC driver which is >> based on the MFD

Re: [PATCH v2 3/4] mfd: add support for Allwinner SoCs ADC

2016-07-19 Thread Quentin Schulz
On 18/07/2016 15:25, Jonathan Cameron wrote: > On 15/07/16 10:59, Quentin Schulz wrote: >> The Allwinner SoCs all have an ADC that can also act as a touchscreen >> controller and a thermal sensor. For now, only the ADC and the thermal >> sensor drivers are probed by the

Re: [PATCH v2 2/4] iio: adc: add support for Allwinner SoCs ADC

2016-07-19 Thread Quentin Schulz
On 18/07/2016 15:18, Jonathan Cameron wrote: > On 15/07/16 10:59, Quentin Schulz wrote: >> The Allwinner SoCs all have an ADC that can also act as a touchscreen >> controller and a thermal sensor. This patch adds the ADC driver which is >> based on the MFD for the same SoCs

Re: [PATCH v2 3/4] mfd: add support for Allwinner SoCs ADC

2016-07-19 Thread Quentin Schulz
On 18/07/2016 15:02, Maxime Ripard wrote: > On Fri, Jul 15, 2016 at 11:59:13AM +0200, Quentin Schulz wrote: >> The Allwinner SoCs all have an ADC that can also act as a touchscreen >> controller and a thermal sensor. For now, only the ADC and the thermal >> sensor drivers

[PATCH 2/5] mfd: sunxi-gpadc-mfd: add buffer structure

2016-07-20 Thread Quentin Schulz
This adds a buffer structure for files including the sunxi-gpadc-mfd header. This structure has a buffer of 32 u32 values to store data from the FIFO of the GPADC of Allwinner SoCs. A buff_size is provided in case the buffer is not full. Signed-off-by: Quentin Schulz <quentin.sch...@f

[PATCH 0/5] add resistive touchscreen support for new Allwinner SoCs' GPADC's driver

2016-07-20 Thread Quentin Schulz
ed after an up event are unreliable and are thus dropped. This patch replaces drivers/input/touchscreen/sun4i-ts.c by drivers/input/touchscreen/sunxi-gpadc-ts.c, adding the ADC feature to Allwinner SoCs' GPADC. Quentin Schulz (5): mfd: sunxi-gpadc-mfd: add TP_UP_PENDING irq mfd: sunxi-gpadc-mfd: add buffer

[PATCH 4/5] input: touchscreen: support Allwinner SoCs' touchscreen

2016-07-20 Thread Quentin Schulz
the ADC's buffer. When closing this input device, the buffering is stopped. Note that locations in the first received buffer after an TP_UP_PENDING irq occurred are unreliable, thus dropped. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- drivers/input/touchscreen/K

[PATCH 1/5] mfd: sunxi-gpadc-mfd: add TP_UP_PENDING irq

2016-07-20 Thread Quentin Schulz
This adds support for TP_UP_PENDING irq in Allwinner SoCs' GPADC's MFD. This interrupt occurs when a touchscreen is attached and the thing (stylus, finger) currently touching the touchscreen releases the touch. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- drive

[PATCH 5/5] mfd: sunxi-gpadc-mfd: probe sunxi-gpadc-ts driver

2016-07-20 Thread Quentin Schulz
This probes the touchscreen driver for Allwinner SoCs (A10, A13 and A31) when the property "allwinner,ts-attached" is set in the GPADC (rtp) node of the DT. Some comestic modifications done to shorten and increase readability of the code. Signed-off-by: Quentin Schulz <quenti

Re: [PATCH 3/5] iio: adc: sunxi-gpadc-iio: enable iio_buffers

2016-07-20 Thread Quentin Schulz
On 20/07/2016 10:38, Peter Meerwald-Stadler wrote: > >> This enables the use of buffers on ADC channels of sunxi-gpadc-iio driver. >> It also prepares the code which will be used by the touchscreen driver >> named sunxi-gpadc-ts. >> >> The GPADC on Allwinner SoCs (A10, A13 and A31) has a 12 bits

[PATCH 3/5] iio: adc: sunxi-gpadc-iio: enable iio_buffers

2016-07-20 Thread Quentin Schulz
is called and will enable FIFO_DATA_PENDING irq and select the mode in which the GPADC should run (ADC or touchscreen) depending on a property of the DT ("allwinner,ts-attached"). When the consumer stops buffering, it disables the same irq. Signed-off-by: Quentin Schulz <quentin.sch...@free-

Re: [PATCH v2 2/4] iio: adc: add support for Allwinner SoCs ADC

2016-07-20 Thread Quentin Schulz
On 18/07/2016 15:18, Jonathan Cameron wrote: [...] >> + >> +if (!wait_for_completion_timeout(>completion, >> + msecs_to_jiffies(100))) { >> +ret = -ETIMEDOUT; >> +goto out; >> +} >> + >> +if (info->flags &

Re: [PATCH v2 4/4] hwmon: iio: add label for channels read by iio_hwmon

2016-07-15 Thread Quentin Schulz
On 15/07/2016 16:03, Guenter Roeck wrote: > On 07/15/2016 02:59 AM, Quentin Schulz wrote: [...] >> +static ssize_t iio_hwmon_read_label(struct device *dev, >> +struct device_attribute *attr, >> +char *buf) >> +{ >> +stru

Re: [PATCH 2/3] iio: adc: add support for Allwinner SoCs ADC

2016-07-05 Thread Quentin Schulz
On 04/07/2016 18:29, Guenter Roeck wrote: > On 07/04/2016 12:26 AM, Quentin Schulz wrote: >> On 03/07/2016 17:43, Guenter Roeck wrote: >>> On 07/03/2016 04:54 AM, Jonathan Cameron wrote: >>>> On 28/06/16 09:18, Quentin Schulz wrote: >>>>> The All

Re: [PATCH 0/3] add support for Allwinner SoCs ADC

2016-07-01 Thread Quentin Schulz
On 29/06/2016 05:28, Chen-Yu Tsai wrote: > Hi, > > On Tue, Jun 28, 2016 at 4:45 PM, Quentin Schulz > <quentin.sch...@free-electrons.com> wrote: >> The Allwinner SoCs all have an ADC that can also act as a touchscreen >> controller >> and a thermal sensor.

Re: [PATCH 2/3] iio: adc: add support for Allwinner SoCs ADC

2016-07-04 Thread Quentin Schulz
On 03/07/2016 17:43, Guenter Roeck wrote: > On 07/03/2016 04:54 AM, Jonathan Cameron wrote: >> On 28/06/16 09:18, Quentin Schulz wrote: >>> The Allwinner SoCs all have an ADC that can also act as a touchscreen >>> controller and a thermal sensor. This patch adds the AD

Re: [PATCH v2 16/25] dt-bindings: power: supply: add AXP20X/AXP22X battery DT binding

2017-01-31 Thread Quentin Schulz
Hi, On 29/01/2017 17:47, Sebastian Reichel wrote: > Hi, > > On Fri, Jan 27, 2017 at 09:54:49AM +0100, Quentin Schulz wrote: >> - added x-powers,constant-charge-current property to set the >> maximal default constant current charge of the battery, > > Sinc

Re: [PATCH v9 3/3] iio: adc: add support for Allwinner SoCs ADC

2017-02-05 Thread Quentin Schulz
Hi Jonathan, On 14/01/2017 20:28, Jonathan Cameron wrote: > > > On 14 January 2017 19:19:58 GMT+00:00, Quentin Schulz > <quentin.sch...@free-electrons.com> wrote: >> Hi Jonathan, >> >> On 08/01/2017 12:17, Jonathan Cameron wrote: >>> On 30/12/16 14

Re: [PATCH 08/22] power: supply: add AC power supply driver for AXP20X and AXP22X PMICs

2017-01-26 Thread Quentin Schulz
Hi Sebastian, On 17/01/2017 04:00, Sebastian Reichel wrote: > Hi Quentin, > > The driver looks mostly fine. I do have a two comments, though. > > On Mon, Jan 02, 2017 at 05:37:08PM +0100, Quentin Schulz wrote: >> [...] >> >> +static int axp20x_ac_power_p

[PATCH v2 22/25] ARM: dtsi: axp209: add battery power supply subnode

2017-01-27 Thread Quentin Schulz
supply subnode for AXP20X PMIC. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- v2: - changed DT node name from battery_power_supply to battery-power-supply, - removed io-channels and io-channel-names from DT (the IIO mapping is done in the IIO ADC driver now),

[PATCH v2 24/25] ARM: dts: sun8i: sina33: enable battery power supply subnode

2017-01-27 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> --- arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dts | 4 1 file changed, 4 insertions(+)

[PATCH v2 15/25] ARM: sun5i: chip: enable ACIN power supply subnode

2017-01-27 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> --- arch/arm/boot/dts/sun5i-r8-chip.dts | 4 1 file changed, 4 inse

[PATCH v2 18/25] mfd: axp20x: add V_OFF to writeable regs for AXP20X and AXP22X

2017-01-27 Thread Quentin Schulz
The V_OFF register has its first 3 read-write bits for the minimal voltage (Voff) of the battery before the system is automatically shut down due to the power being too low. This adds V_OFF register to the writeable registers of AXP20X and AXP22X PMICs. Signed-off-by: Quentin Schulz <quentin.

[PATCH v2 23/25] ARM: dtsi: axp22x: add battery power supply subnode

2017-01-27 Thread Quentin Schulz
subnode for AXP22X PMIC. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- v2: - changed DT node name from battery_power_supply to battery-power-supply, - removed io-channels and io-channel-names from DT (the IIO mapping is done in the IIO ADC driver now), arch/ar

[PATCH v2 19/25] iio: adc: axp20x_adc: map battery IIO channels

2017-01-27 Thread Quentin Schulz
This maps the IIO channels batt_v, batt_chrg_i and batt_dischrg_i (respectively exposing the current charging and discharging currents and current voltage measures of the battery power supply) to the battery power supply driver. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.

[PATCH v2 25/25] ARM: sun5i: chip: enable battery power supply subnode

2017-01-27 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> --- arch/arm/boot/dts/sun5i-r8-chip.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/bo

[PATCH v2 20/25] power: supply: add battery driver for AXP20X and AXP22X PMICs

2017-01-27 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> --- v2: - changed BIT(x) to 1 << x when describing bits purpose for which

Re: [PATCH v2 04/25] iio: adc: add support for X-Powers AXP20X and AXP22X PMICs ADCs

2017-01-28 Thread Quentin Schulz
Hi Jonathan On 28/01/2017 15:49, Jonathan Cameron wrote: > On 27/01/17 08:54, Quentin Schulz wrote: >> The X-Powers AXP20X and AXP22X PMICs have multiple ADCs. They expose the >> battery voltage, battery charge and discharge currents, AC-in and VBUS >> voltages and curr

[PATCH v2 17/25] mfd: axp20x: add CHRG_CTRL1/2/3 to writeable regs for AXP20X/AXP22X

2017-01-27 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-for-MFD-by: Lee Jones <lee.jo...@linaro.org> --- v2: - added AXP20X_CHRG_CTRL2 and AXP20X_CHRG_CTRL3 to the writeable registers table, - remov

[PATCH v2 02/25] mfd: axp20x: correct name of temperature data ADC registers

2017-01-27 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.

[PATCH v2 14/25] ARM: dts: sun8i: sina33: enable ACIN power supply subnode

2017-01-27 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> --- arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dts | 4 1 file changed, 4 insertions(+) diff --git

[PATCH v2 07/25] ARM: dtsi: axp22x: add AXP22X ADC subnode

2017-01-27 Thread Quentin Schulz
X-Powers AXP22X PMIC has multiple ADCs, each one exposing data from the different power supplies connected to the PMIC. This adds the ADC subnode for AXP22X PMIC. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- v2: - removed #io-channels property (the IIO channels m

[PATCH v2 06/25] ARM: dtsi: axp209: add AXP209 ADC subnode

2017-01-27 Thread Quentin Schulz
X-Powers AXP209 PMIC has multiple ADCs, each one exposing data from the different power supplies connected to the PMIC. This adds the ADC subnode for AXP20X PMIC. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- v2: - removed #io-channels property (the IIO channels m

[PATCH v2 13/25] ARM: dtsi: axp22x: add AC power supply subnode

2017-01-27 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> --- v2: - changed DT node name from ac_power_supply to ac-power-supply, - removed io-channels

[PATCH v2 08/25] dt-bindings: power: supply: add AXP20X/AXP22X AC power supply

2017-01-27 Thread Quentin Schulz
The X-Powers AXP20X and AXP22X PMICs have an AC entry to supply power to the board. They have a few registers dedicated to the status of the AC power supply. This adds the DT binding documentation for the AC power supply for AXP20X and AXP22X PMICs. Signed-off-by: Quentin Schulz <quentin.

[PATCH v2 11/25] mfd: axp20x: add AC power supply cells for AXP22X PMICs

2017-01-27 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-for-MFD-by: Lee Jones <lee.jo...@linaro.org> --- drivers/

[PATCH v2 12/25] ARM: dtsi: axp209: add AC power supply subnode

2017-01-27 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> --- v2: - changed DT nod

[PATCH v2 05/25] mfd: axp20x: add ADC cells for AXP20X and AXP22X PMICs

2017-01-27 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-for-MFD-by: Lee Jones <lee.jo...@linaro.org> Acked-by: Chen-Yu Tsai <w...@csie.org> --- drivers/mfd/axp20x.

[PATCH v2 09/25] iio: adc: axp20x_adc: map acin_i and acin_v

2017-01-27 Thread Quentin Schulz
This maps the IIO channels acin_i and acin_v (respectively exposing the current current and voltage measures of the AC power supply) to the AC power supply driver. Only the AXP20X PMICs have these ADC channels and thus they are only mapped for this version of the PMIC. Signed-off-by: Quentin

[PATCH v2 10/25] power: supply: add AC power supply driver for AXP20X and AXP22X PMICs

2017-01-27 Thread Quentin Schulz
-by: Quentin Schulz <quentin.sch...@free-electrons.com> Acked-by: Jonathan Cameron <ji...@kernel.org> --- v2: - replaced ยต character by a common u for micro units to make checkpatch happy, - use of structure for specific data instead of an ID and if condiftions, - use dev_get_regmap instead

[PATCH v2 01/25] dt-bindings: iio: adc: add AXP20X/AXP22X ADC DT binding

2017-01-27 Thread Quentin Schulz
and AXP22X PMICs ADCs. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> Acked-by: Rob Herring <r...@kernel.org> Acked-by: Chen-Yu Tsai <w...@csie.org> Acked-by: Maxime Ripard <maxime.rip...@free-electrons.com> --- v2: - removing io-channels from required properti

[PATCH v2 00/25] add support for AXP20X and AXP22X power supply drivers

2017-01-27 Thread Quentin Schulz
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 Quentin Schulz (25): dt-bindings: iio: adc: add AXP20X/A

[PATCH v2 03/25] power: supply: axp20x_usb_power: use IIO channels when available

2017-01-27 Thread Quentin Schulz
is not compiled, this driver will fall back on previous behaviour which is direct register readings. Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com> --- added in v2 drivers/power/supply/axp20x_usb_power.c | 70 +++-- 1 file changed, 66 insertions

[PATCH v2 04/25] iio: adc: add support for X-Powers AXP20X and AXP22X PMICs ADCs

2017-01-27 Thread Quentin Schulz
l +++ b/drivers/iio/adc/axp20x_adc.c @@ -0,0 +1,572 @@ +/* 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

[PATCH v2 16/25] dt-bindings: power: supply: add AXP20X/AXP22X battery DT binding

2017-01-27 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> --- v2: - changed DT node name from ac_power_supply to ac-power-supply, - removed io-channels and io-channel-names from DT (t

[PATCH v2 21/25] mfd: axp20x: add MFD cells for AXP20X and AXP22X battery driver

2017-01-27 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

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

2017-02-21 Thread Quentin Schulz
Hi Chen-Yu, On 21/02/2017 05:45, Chen-Yu Tsai wrote: > On Tue, Feb 14, 2017 at 5:41 PM, Quentin Schulz > <quentin.sch...@free-electrons.com> wrote: >> The X-Powers AXP20X and AXP22X PMICs can have a battery as power supply. >> >> This patch adds the DT binding docum

Re: [PATCH v3 13/18] power: supply: add battery driver for AXP20X and AXP22X PMICs

2017-02-21 Thread Quentin Schulz
Hi Chen-Yu, On 21/02/2017 05:44, Chen-Yu Tsai wrote: > On Tue, Feb 14, 2017 at 5:41 PM, Quentin Schulz > <quentin.sch...@free-electrons.com> wrote: >> The X-Powers AXP20X and AXP22X PMICs can have a battery as power supply. >> >> This patch adds the battery power sup

Re: [PATCH v3 17/18] ARM: dts: sun8i: sina33: enable battery power supply subnode

2017-02-21 Thread Quentin Schulz
On 21/02/2017 05:50, Chen-Yu Tsai wrote: > On Tue, Feb 14, 2017 at 5:41 PM, Quentin Schulz > <quentin.sch...@free-electrons.com> wrote: >> The Sinlinx SinA33 has an AXP223 PMIC and a battery connector, thus, we >> enable the battery power supply subnode in its Devic

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

2017-02-21 Thread Quentin Schulz
Hi Jonathan, On 19/02/2017 13:40, Jonathan Cameron wrote: > On 14/02/17 09:40, Quentin Schulz wrote: >> The X-Powers AXP20X and AXP22X PMICs have multiple ADCs. They expose the >> battery voltage, battery charge and discharge currents, AC-in and VBUS >> voltages and curr

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

2017-02-14 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: Maxime Ripard <maxime.rip...@free-electrons.com> --- v3: - removed constant charge current property, now should

[PATCH v3 12/18] mfd: axp20x: add CHRG_CTRL1/2/3 to writeable regs for AXP20X/AXP22X

2017-02-14 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..

[PATCH v3 17/18] ARM: dts: sun8i: sina33: enable battery power supply subnode

2017-02-14 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> --- arch/arm/boot/dts/sun8i

[PATCH v3 16/18] ARM: dtsi: axp22x: add battery power supply subnode

2017-02-14 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> --- v2: - changed DT node name from battery_power_supply to battery-power-supply, - removed io-channels and io-channel-names from

[PATCH v3 18/18] ARM: sun5i: chip: enable battery power supply subnode

2017-02-14 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> --- arch/arm/boot/dts/sun5i-r8-chip.dts | 4

[PATCH v3 14/18] mfd: axp20x: add MFD cells for AXP20X and AXP22X battery driver

2017-02-14 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

[PATCH v3 10/18] ARM: sun5i: chip: enable ACIN power supply subnode

2017-02-14 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

[PATCH v3 06/18] mfd: axp20x: add AC power supply cells for AXP22X PMICs

2017-02-14 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

[PATCH v3 08/18] ARM: dtsi: axp22x: add AC power supply subnode

2017-02-14 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: Maxime Ripard <maxime.rip...@free-electrons.com> Acked-by: Chen-Yu Tsai <w...@cs

[PATCH v3 07/18] ARM: dtsi: axp209: add AC power supply subnode

2017-02-14 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

[PATCH v3 09/18] ARM: dts: sun8i: sina33: enable ACIN power supply subnode

2017-02-14 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

[PATCH v3 01/18] dt-bindings: power: battery: add constant-charge-current property

2017-02-14 Thread Quentin Schulz
This adds the constant-charge-current 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> --- added in v3 Documen

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

2017-02-14 Thread Quentin Schulz
dc/axp20x_adc.c b/drivers/iio/adc/axp20x_adc.c new file mode 100644 index 000..5ef6af8 --- /dev/null +++ b/drivers/iio/adc/axp20x_adc.c @@ -0,0 +1,606 @@ +/* ADC driver for AXP20X and AXP22X PMICs + * + * Copyright (c) 2016 Free Electrons NextThing Co. + * Quentin Schulz <quentin.sc

[PATCH v3 15/18] ARM: dtsi: axp209: add battery power supply subnode

2017-02-14 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> --- v2: - changed DT node name from battery_power_supply to battery-power-supply, - removed io-channels and io-channel-n

[PATCH v3 13/18] power: supply: add battery driver for AXP20X and AXP22X PMICs

2017-02-14 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

  1   2   3   4   5   6   7   8   9   10   >