[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 --- drivers

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

2016-07-20 Thread Quentin Schulz
etrieved 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-m

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

2016-07-20 Thread Quentin Schulz
m 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 --- drivers/input/touchscreen/Kconfig | 11 +- dri

[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 --- drivers/mfd/sunxi-gpadc-

[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 --- include/linux/mfd/sunxi

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

2016-07-20 Thread Quentin Schulz
le 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 --- drivers/

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 r

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(&info->completion, >> + msecs_to_jiffies(100))) { >> +ret = -ETIMEDOUT; >> +goto out; >> +} >> + >> +if (info->flags & SUNXI_GPADC_ARC

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 spitti

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

2016-09-24 Thread Quentin Schulz
on the v6, so comments here might include references to code parts added later in the ADC patch series. On 24/07/2016 13:03, Jonathan Cameron wrote: > On 20/07/16 09:29, Quentin Schulz wrote: >> This enables the use of buffers on ADC channels of sunxi-gpadc-iio driver. >> It also pre

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

2016-09-24 Thread Quentin Schulz
Hi Dimitry, Sorry for the (long) delay, I did not have time to work on it. I'll mainly work in my free time now. On 20/07/2016 19:25, Dmitry Torokhov wrote: > Hi Quentin, > > On Wed, Jul 20, 2016 at 10:29:10AM +0200, Quentin Schulz wrote: >> This adds support for Allwinner

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

2016-09-25 Thread Quentin Schulz
On 24/07/2016 13:24, Jonathan Cameron wrote: > On 20/07/16 09:29, Quentin Schulz wrote: >> This adds support for Allwinner SoCs' (A10, A13 and A31) resistive >> touchscreen. This driver is probed by the MFD sunxi-gpadc-mfd. >> >> This driver uses ADC channels expo

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

2016-09-25 Thread Quentin Schulz
On 25/09/2016 11:10, Jonathan Cameron wrote: > On 24/09/16 18:40, Quentin Schulz wrote: >> Hi Jonathan, >> >> Sorry for the (long) delay, I did not have time to work on it. I'll >> mainly work in my free time now. >> >> Keep in mind this patch was

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

2016-09-07 Thread Quentin Schulz
for sunxi platforms' (A10, A13 and A31) GPADC >> + * >> + * Copyright (c) 2016 Quentin Schulz > > email address is incomplete > As in my other patches, thanks! >> + * >> + * This program is free software; you can redistribute it and/or modify it >&

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

2016-09-07 Thread Quentin Schulz
On 04/09/2016 16:35, Jonathan Cameron wrote: > On 01/09/16 15:05, 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

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

2016-09-08 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 --- v5: - correct mail

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

2016-09-08 Thread Quentin Schulz
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 --- v5: - correct mail address

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

2016-09-08 Thread Quentin Schulz
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 --- v5: - patch re-inserted, v3: - patch removed, drivers/hwmon/iio_hwmon.c | 5 - 1 file changed, 4 insertions(+), 1

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

2016-09-08 Thread Quentin Schulz
e_of_sensor_register(&pdev->dev, 0, info, &sun4i_ts_tz_ops); we now have: tzd = devm_thermal_zone_of_sensor_register(pdev->dev.parent, 0, info, &sun4i_ts_tz_ops); Removal of proposed patch to use late_initcall f

Re: [PATCH v5 2/3] mfd: add support for Allwinner SoCs ADC

2016-09-13 Thread Quentin Schulz
On 12/09/2016 15:56, Lee Jones wrote: > On Mon, 12 Sep 2016, Quentin Schulz wrote: >> On 12/09/2016 11:59, Lee Jones wrote: >>> On Mon, 12 Sep 2016, Quentin Schulz wrote: >>> >>>> On 12/09/2016 11:18, Lee Jones wrote: >>

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

2016-09-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 Acked-by: Maxime Ripard Acked

[PATCH v6 0/2] add support for Allwinner SoCs ADC

2016-09-15 Thread Quentin Schulz
of proposed patch to use late_initcall for iio_hwmon probe deferring. Removal of patch for iio_hwmon probe deferring due to being applied to -next by Guenter Roeck. Quentin Schulz (2): mfd: add support for Allwinner SoCs ADC iio: adc: add support for Allwinner SoCs ADC drivers/iio/adc/Kconfig

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

2016-09-15 Thread Quentin Schulz
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 Acked-by: Maxime Ripard Acked-by

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

2016-09-01 Thread Quentin Schulz
200, 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: >>>>>>>

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

2016-09-01 Thread Quentin Schulz
On 31/08/2016 13:56, Lee Jones wrote: > On Wed, 24 Aug 2016, Maxime Ripard wrote: > >> Hi Lee, >> >> On Tue, Aug 09, 2016 at 02:48:47PM +0100, Lee Jones wrote: >>> On Tue, 26 Jul 2016, Quentin Schulz wrote: >>> >>>> When an MFD cell has

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

2016-09-01 Thread Quentin Schulz
On 01/09/2016 09:15, Quentin Schulz wrote: > On 15/08/2016 23:35, Jonathan Cameron wrote: >> >> >> On 15 August 2016 18:07:30 BST, Guenter Roeck wrote: >>> On Mon, Aug 15, 2016 at 04:40:21PM +0100, Jonathan Cameron wrote: >>>> On 26/07/16 17:04, Guenter

[PATCH v4 1/3] hwmon: iio_hwmon: delay probing with late_initcall

2016-09-01 Thread Quentin Schulz
() as their init. Signed-off-by: Quentin Schulz --- v4: - use platform_driver_register instead of platform_register_drivers, v3: - use late_initcall instead of deferring probe, drivers/hwmon/iio_hwmon.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers

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

2016-09-01 Thread Quentin Schulz
robed by the MFD driver) instead of: tzd = devm_thermal_zone_of_sensor_register(&pdev->dev, 0, info, &sun4i_ts_tz_ops); we now have: tzd = devm_thermal_zone_of_sensor_register(pdev->dev.parent, 0, info, &sun4i_

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

2016-09-01 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 --- v4: - rename files and

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

2016-09-01 Thread Quentin Schulz
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 --- v4: - rename files and

Re: [PATCH 2/2] mmc: sdhci-of-at91: set clocks and presets after resume from deepest PM

2017-06-20 Thread Quentin Schulz
Hi Adrian, On 20/06/2017 09:39, Adrian Hunter wrote: > On 16/06/17 10:29, Quentin Schulz wrote: >> This adds deepest (Backup+Self-Refresh) PM support to the ATMEL SAMA5D2 >> SoC's SDHCI controller. >> >> When resuming from deepest state, it is required to re

Re: [PATCH 1/2] mmc: sdhci-of-at91: factor out clks and presets setting

2017-06-20 Thread Quentin Schulz
Hi Adrian, On 20/06/2017 08:36, Adrian Hunter wrote: > On 16/06/17 10:29, Quentin Schulz wrote: >> The setting of clocks and presets is currently done in probe only but >> once deep PM support is added, it'll be needed in the resume function. >> >> Let'

Re: [PATCH 2/2] pinctrl: ocelot: add support for interrupt controller

2018-08-06 Thread Quentin Schulz
Hi Linus, On Mon, Aug 06, 2018 at 01:06:23PM +0200, Linus Walleij wrote: > Hi Quentin, sorry for delays! > No worries :) > On Wed, Jul 25, 2018 at 2:27 PM Quentin Schulz > wrote: > > > This GPIO controller can serve as an interrupt controller as well on the > > G

[PATCH] MIPS: mscc: ocelot: fix length of memory address space for MIIM

2018-07-25 Thread Quentin Schulz
The length of memory address space for MIIM0 is from 0x7107009c to 0x710700bf included which is 36 bytes long in decimal, or 0x24 bytes in hexadecimal and not 0x36. Fixes: 49b031690abe ("MIPS: mscc: Add switch to ocelot") Signed-off-by: Quentin Schulz --- arch/mips/boot/dts/mscc/o

[PATCH] MIPS: mscc: ocelot: add MIIM1 bus

2018-07-25 Thread Quentin Schulz
ff-by: Quentin Schulz --- arch/mips/boot/dts/mscc/ocelot.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/mips/boot/dts/mscc/ocelot.dtsi b/arch/mips/boot/dts/mscc/ocelot.dtsi index 7096915f26e0..d7f0e3551500 100644 --- a/arch/mips/boot/dts/mscc/ocelot.dtsi +++ b/arch

[PATCH 1/2] MIPS: mscc: ocelot: add interrupt controller properties to GPIO controller

2018-07-25 Thread Quentin Schulz
The GPIO controller also serves as an interrupt controller for events on the GPIO it handles. An interrupt occurs whenever a GPIO line has changed. Signed-off-by: Quentin Schulz --- arch/mips/boot/dts/mscc/ocelot.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/mips/boot/dts

[PATCH 2/2] pinctrl: ocelot: add support for interrupt controller

2018-07-25 Thread Quentin Schulz
only after the line gets hold in its default state, this is what's done with the fasteoi functions. Only IRQ_TYPE_EDGE_BOTH and IRQ_TYPE_LEVEL_HIGH are supported for now. Signed-off-by: Quentin Schulz --- drivers/pinctrl/Kconfig | 1 + drivers/pinctrl/pinctrl-ocelot.c

[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 --- drivers/power/supply/power_supply_core.c | 3 +++ include/

[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 --- Documentation/devicetree/bindings/power/s

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

2017-05-11 Thread Quentin Schulz
. Signed-off-by: Quentin Schulz --- 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 100644 --- a/drivers/power/supply

[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

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

2017-05-11 Thread Quentin Schulz
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 --- drivers/power

Re: [PATCH v4 1/4] can: m_can: move Message RAM initialization to function

2017-05-11 Thread Quentin Schulz
Hi all, On 05/05/2017 15:50, Quentin Schulz wrote: > To avoid possible ECC/parity checksum errors when reading an > uninitialized buffer, the entire Message RAM is initialized when probing > the driver. This initialization is done in the same function reading the > Device Tre

Re: [PATCH 1/2] ARM: at91/defconfig: make system tickless when idle

2017-05-11 Thread Quentin Schulz
Hi all, On 05/05/2017 10:43, Quentin Schulz wrote: > This makes Atmel sama5 platforms' system tickless when idle. > > Signed-off-by: Quentin Schulz It's been a week since I posted this patch series. Any comment? Thanks, Quentin > --- > arch/arm/configs/sama5_

[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 Reported-by: Corentin Labbe --- drivers/iio/adc/sun4i-gpadc-iio.c | 31 ++- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/drivers/iio/adc/sun4i-gpadc-iio.c b/drivers/iio/adc/sun4i-gpadc-iio.c index b23527309088..0d3df17be4

[PATCH] ASoC: atmel-classd: sync regcache when resuming

2017-05-15 Thread Quentin Schulz
The PM functions used in this driver are the ones defined in sounc/soc/soc-core.c. When suspending (using snd_soc_suspend), the regcache is marked dirty but is never synced on resume. Sync regcache on resume of Atmel ClassD device. Signed-off-by: Quentin Schulz --- sound/soc/atmel/atmel

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

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. > > Allw

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

2018-01-31 Thread Quentin Schulz
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 to do with sample_start/end. I would have made a different commit for it. Otherwise, Reviewed-by: Quentin Schulz Quentin signature.asc Description: PGP signature

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 this

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 tri

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 proces

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 wrote: > > > The X-Powers AXP813 PMIC is really close to what is already done for > > AXP20X/AXP22X. > > > > There are two pairs

[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 --- Documentation/devicetree/bindings/power/supply/axp20x_battery.txt | 8 +++ 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/devic

[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 --- 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 100644 --- a/drivers/iio/adc/axp20x_adc.c

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

2018-01-09 Thread Quentin Schulz
and update the code to use it. Signed-off-by: Quentin Schulz --- 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/supply/axp20x_battery.c index 7494f0f.

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

2018-01-09 Thread Quentin Schulz
the PMIC is valid. Signed-off-by: Quentin Schulz --- 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 index d73c78f..dad72a5 100644 --- a/drivers

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

2018-01-09 Thread Quentin Schulz
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 --- drivers/iio/adc/axp20x_adc.c | 123 - include/linux/mfd

[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 --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711

[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 --- arch/arm/boot/dts/axp81x.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/axp81x.dtsi b/arch/arm

[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 --- drivers/mfd/axp20x.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index e0cbaea..d112414 100644 --- a/d

[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 --- Documentation/devicetree/bindings/iio/adc/axp20x_adc.txt | 9 +- 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/adc/axp20x_adc.txt b/Documentation

[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 --- 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/arch/arm/boot/dts/axp81x.dtsi +++ b/arch/arm

[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 --- drivers/mfd/axp20x.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index d8c92fb..e0cbaea 100644 --- a

[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 --- 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 100644 --- a/drivers/mfd/axp20x.c +++ b/drivers

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

2018-01-09 Thread Quentin Schulz
well 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

[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 --- Documentation/devicetree/bindings/iio/adc

[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 --- drivers/iio/adc/axp20x_adc.c | 18 +++--- 1 file changed, 11 insertions(+), 7 deletions(-) diff

[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 --- arch/arm/boot/dts/axp22x.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/axp22x.dtsi b/arch/arm

[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 --- arch/arm/boot/dts/axp209.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/axp209.dtsi b/arch/arm

[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 --- arch/arm/boot/dts/axp81x.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/axp81x.dtsi b/arch/arm/boot/dts/axp81x.dtsi index 1b

[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 --- arch/arm/boot/dts/axp22x.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/axp22x.dtsi b/arch/arm

[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 --- drivers/mfd/axp20x.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index e94c72c..1977a03 100644 --- a

[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 --- arch/arm/boot/dts/axp81x.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/axp81x.dtsi b/arch/arm

[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 --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711

[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 --- 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/arch/arm/boot/dts/axp81x.dtsi +++ b/arch/arm

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

2018-01-15 Thread Quentin Schulz
and update the code to use it. Signed-off-by: Quentin Schulz --- 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/supply/axp20x_battery.c index 7494f0f.

[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 Acked-for-MFD-by: Lee Jones --- drivers/mfd/axp20x.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index e5516aa..aaf2acb 100644 --- a

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

2018-01-15 Thread Quentin Schulz
the PMIC is valid. Signed-off-by: Quentin Schulz --- 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 index d73c78f..e75fa90 100644 --- a/drivers

[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 --- drivers/mfd/axp20x.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index 1977a03..e5516aa 100644 --- a/d

[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 Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/power/supply/axp20x_battery.txt | 8 +++ 1 file changed, 4 insertions(+), 4 deletions(-) diff --

[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 Reviewed-by: Rob Herring --- Documentation

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

2018-01-15 Thread Quentin Schulz
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 Acked-by: Jonathan Cameron --- drivers/iio/adc/axp20x_adc.c | 123

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

2018-01-15 Thread Quentin Schulz
pinctrl DT node, v2: - introduce 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

[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 --- drivers/iio/adc/axp20x_adc.c | 18 +++--- 1 file changed, 11 insertions(+), 7 deletions(-) diff

[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 --- arch/arm/boot/dts/axp209.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/axp209.dtsi b/arch/arm

[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 --- 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 100644 --- a/drivers/iio/adc/axp20x_adc.c

[PATCH 2/2] clk: spear: fix WDT clock definition on SPEAr600

2018-04-06 Thread Quentin Schulz
There is no SPEAr600 device named "wdt". Instead, the description of the WDT (watchdog) was recently added to the Device Tree, and the device name is "fc88.wdt", so we should associate the WDT fixed rate clock to this device name. Signed-off-by: Quentin Schulz --

[PATCH 1/2] ARM: SPEAr600: add DT description of the watchdog

2018-04-06 Thread Quentin Schulz
The SPEAr600 has a built-in watchdog which already has a DT binding described in Documentation/devicetree/bindings/watchdog/sp805-wdt.txt. Let's add the description of the watchdog device in the SPEAr600 Device Tree. Signed-off-by: Quentin Schulz --- arch/arm/boot/dts/spear600.dts

Re: [PATCH 2/2] mmc: Add mmc_force_detect_change_begin / _end functions

2018-03-23 Thread Quentin Schulz
Hi Uffe, On Fri, Feb 09, 2018 at 03:01:00PM +0100, Ulf Hansson wrote: > [...] > > >> > I'd like to know if any progress has been made on that problem (I may > >> > have missed patches). > >> > Had you had the time to look at the issue? > >> > >> I have looked at the issue, but not manage to cook

Re: [PATCH v2 00/10] Add support for SAMA5D2 touchscreen

2018-04-10 Thread Quentin Schulz
Hi Jonathan and Eugen, On Fri, Mar 30, 2018 at 02:02:12PM +0100, Jonathan Cameron wrote: > On Tue, 27 Mar 2018 15:32:33 +0300 > Eugen Hristev wrote: > > > Hello, > > > > This patch series is a rework of my previous series named: > > [PATCH 00/14] iio: triggers: add consumer support > > > > In

Re: [PATCH 4.14 000/110] 4.14.25-stable review

2018-03-09 Thread Quentin Schulz
Hi Kevin, On Thu, Mar 08, 2018 at 04:05:01PM -0800, Kevin Hilman wrote: > kernelci.org bot writes: > > > stable-rc/linux-4.14.y boot: 148 boots: 4 failed, 133 passed with 7 > > offline, 3 untried/unknown, 1 conflict (v4.14.24-111-g66060ac1dfa0) > > > > Full Boot Summary: > > https://kernelci.o

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 m

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

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

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 i

Re: [PATCH v3 2/2] ubi: expose the volume CRC check skip flag

2018-07-01 Thread Quentin Schulz
> > Am Donnerstag, 28. Juni 2018, 09:40:53 CEST schrieb Quentin Schulz: > > > > Now that we have the logic for skipping CRC check for static UBI volumes > > > > in the core, let's expose it to users. > > > > > > > > This makes use of a

[PATCH v4 1/2] ubi: provide a way to skip CRC checks

2018-07-02 Thread Quentin Schulz
at the block granularity instead of verifying the whole volume. Skipping this test drastically improves the boot-time. Suggested-by: Boris Brezillon Signed-off-by: Quentin Schulz Reviewed-by: Boris Brezillon Reviewed-by: Richard Weinberger --- drivers/mtd/ubi/kapi.c | 2 +- drivers/mtd

[PATCH v4 0/2] ubi: add possibility to skip CRC check for static UBI volumes

2018-07-02 Thread Quentin Schulz
: - fix a few typos, v2: - use volume flags instead of arguments on the kernel command line as suggested by Richard, Quentin Schulz (2): ubi: provide a way to skip CRC checks ubi: expose the volume CRC check skip flag drivers/mtd/ubi/cdev.c | 7 +++ drivers/mtd/ubi/kapi.c

[PATCH v4 2/2] ubi: expose the volume CRC check skip flag

2018-07-02 Thread Quentin Schulz
e UBI volume for which we are trying to skip the CRC check is static. Suggested-by: Boris Brezillon Signed-off-by: Quentin Schulz Reviewed-by: Boris Brezillon --- drivers/mtd/ubi/cdev.c | 7 +++ drivers/mtd/ubi/vmt.c | 3 +++ include/uapi/mtd/ubi-user.h | 18

[PATCH v5 1/2] ubi: provide a way to skip CRC checks

2018-07-02 Thread Quentin Schulz
at the block granularity instead of verifying the whole volume. Skipping this test drastically improves the boot-time. Suggested-by: Boris Brezillon Signed-off-by: Quentin Schulz Reviewed-by: Boris Brezillon Reviewed-by: Richard Weinberger --- drivers/mtd/ubi/kapi.c | 2 +- drivers/mtd

  1   2   3   4   5   6   7   >