[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 --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/sun8i-r16-parrot.dts | 333 + 2 files changed, 334 insertions(+) create mode

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

[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 --- drivers/phy/phy-sun4i-usb.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/phy/phy-sun4i-usb.c b/drivers/phy/phy-sun4i-usb.c index

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

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

2016-06-28 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 --- drivers/hwmon/iio_hwmon.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/hwmon/iio_hwmon.c b

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

2016-06-28 Thread Quentin Schulz
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 --- drivers/iio/adc/Kconfig | 12 ++ drivers/iio/adc/Makefile | 1 + drivers/iio/adc/sunxi-gpadc-iio.c

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

2016-06-28 Thread Quentin Schulz
o iio 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 SoC

Re: [PATCH net-next v3 4/8] net: phy: mscc: take into account the 1588 block in MACsec init

2020-06-21 Thread Quentin Schulz
Hi Antoine, On 2020-06-19 14:22, Antoine Tenart wrote: This patch takes in account the use of the 1588 block in the MACsec initialization, as a conditional configuration has to be done (when the 1588 block is used). Signed-off-by: Antoine Tenart --- drivers/net/phy/mscc/mscc_macsec.c | 4 +++-

Re: [PATCH net-next v3 5/8] net: phy: mscc: 1588 block initialization

2020-06-21 Thread Quentin Schulz
Hi Antoine, Feels weird to review my own patches a year later having written them, almost nostalgic :) The review is mostly nitpicks. On 2020-06-19 14:22, Antoine Tenart wrote: [...] @@ -373,6 +374,21 @@ struct vsc8531_private { unsigned long ingr_flows; unsigned long egr_flows

Re: [PATCH net-next v3 6/8] net: phy: mscc: timestamping and PHC support

2020-06-21 Thread Quentin Schulz
Hi Antoine, On 2020-06-19 14:22, Antoine Tenart wrote: [...] @@ -999,9 +1553,35 @@ int vsc8584_ptp_probe(struct phy_device *phydev) if (!vsc8531->ptp) return -ENOMEM; + mutex_init(&vsc8531->phc_lock); mutex_init(&vsc8531->ts_lock); + /* Retrieve the

Re: [RFC PATCH 2/3] iio: adc: sun4i-gpadc-iio: add support for H3 thermal sensor

2017-03-28 Thread Quentin Schulz
repare(info->ths_bus_clk); > + reset_control_deassert(info->reset); > + } > + I'm not really fond of using this boolean as I don't see it being possibly reused for any other SoCs that has a GPADC or THS. Here, you could make use of a list/array of clk which

[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 Acked-by: Chen-Yu Tsai Acked-by: Maxime Ripard --- v6: - removed mention to monitored-battery, will be sent when the battery framework has been merged, v5

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

2017-04-18 Thread Quentin Schulz
ead of matching on IDs, - Switched 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

[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 Acked-by: Jonathan Cameron Acked-by: Maxime Ripard Acked-by: Chen-Yu Tsai Acked-by: Sebastian Reichel --- v5

[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 Acked-by: Maxime Ripard Acked-by: Chen-Yu Tsai --- 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

[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 Acked-by: Maxime Ripard Acked-by: Chen-Yu Tsai --- 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 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 Acked-by: Maxime Ripard Acked-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun5i-r8-chip.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch

[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 Acked-by: Maxime Ripard Acked-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dts | 4 1 file changed, 4

Re: [PATCH v2] ARM: dts: at91: sama5d2: add m_can nodes

2017-04-19 Thread Quentin Schulz
the following: # ip link set can0 down # ip link set can0 up type can bitrate 125000 # cansend can0 500#1E.10.10 Last line at least 10 times, every message is received on my computer. Same with can1. Tested with candump can0 as well, everything looks fine. Tested-by: Quentin Schulz Thanks, Quentin

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

2017-04-03 Thread Quentin Schulz
ERLIN2_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 + * + * Copyright (c) 2016 Free Elect

[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 Acked-by: Maxime Ripard Acked-by: Chen-Yu Tsai --- 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

[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 Acked-by: Maxime Ripard Acked-by: Chen-Yu Tsai --- 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 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 Acked-by: Maxime Ripard Acked-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dts | 4 1 file changed, 4

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

2017-04-05 Thread Quentin Schulz
From: Maxime Ripard This adds GPU thermal throttling for the Allwinner A33. Signed-off-by: Maxime Ripard Signed-off-by: Quentin Schulz --- v3: - got rid of cooling-min-level and cooling-max-level as it's not used in any code in the kernel, added in v2 arch/arm/boot/dts/sun8i-a2

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

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

2017-04-05 Thread Quentin Schulz
r SoCs 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 func

[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 Acked-by: Rob Herring --- v4: - correct patch title, v3: - fixed missing allwinner in front of compatible, - updated compatible to allwinner,sun8i-a33-ths to better reflect the datasheet's

[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 Acked-by: Rob Herring Acked-by: Dmitry Torokhov --- v4: - correct patch title, .../bindings/input/touchscreen

[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

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

2017-04-05 Thread Quentin Schulz
ready 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 Acked-by: Lee Jones Acked-by: Jonathan Cameron --- v3: - swi

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

[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 --- v3: - switched compatible to allwinner,sun8i-a33-ths, - renamed DT node name and label to ths to better match datasheet's name, arch/arm/boot/dts/sun8i-a33.dtsi

[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 --- v3: - switched to new phandle because of modified DT node name for the GPADC (named THS), - got rid of cooling-min-level and cooling-max-

[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 --- 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/boot/dts/sun8i-a33-sinlinx-sina33.dts index

[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 Acked-by: Maxime Ripard Acked-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun5i-r8-chip.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch

[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 Acked-by: Chen-Yu Tsai Acked-by: Maxime Ripard --- v5: - removed DT property example from monitored-battery, v4: - added monitored-battery optional property

[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 Acked-for-MFD-by: Lee Jones Acked-by: Chen-Yu Tsai --- v2: - changed DT node name

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

2017-04-05 Thread Quentin Schulz
iio_map structures IIO channels 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

[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 Acked-by: Jonathan Cameron Acked-by: Maxime Ripard Acked-by: Chen-Yu Tsai Acked-by: Sebastian Reichel --- v5

Re: [PATCH v2] can: m_can: enable transmission of FD frame on latest version

2017-04-07 Thread Quentin Schulz
olfgang Grandegger >> Cc: Alexandre Belloni ; Florian >> Fainelli >> ; Quentin Schulz ; >> Wenyou Yang - A41535 ; Nicolas Ferre >> ; linux-...@vger.kernel.org; net...@vger.kernel.org; >> linux-kernel@vger.kernel.org >> Subject: Re: [PATCH v2] can: m_can: en

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 char

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

[PATCH 2/2] spi: atmel: add PM support to SAMA5D2

2017-04-12 Thread Quentin Schulz
This adds PM support to the ATMEL SAMA5D2 Xplained. When suspending, VDDCore is shut down and the SPI registers are lost. Thus, the SPI controller needs to be re-initialized after resuming from a system suspend. Signed-off-by: Quentin Schulz --- drivers/spi/spi-atmel.c | 9 + 1 file

[PATCH 1/2] spi: atmel: factorize reusable code for SPI controller init

2017-04-12 Thread Quentin Schulz
The SPI controller configuration during the init can be reused, for the resume function for example. Let's move this configuration to a separate function. Signed-off-by: Quentin Schulz --- drivers/spi/spi-atmel.c | 35 +-- 1 file changed, 21 insertions(+

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

2017-04-02 Thread Quentin Schulz
assert(info->reset); > + > return 0; > } > > 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 GENMASK(3, 0) > > /* TP_CTRL1 bits for sun8i A23/A33 SoCs */ > +/* TP_CTRL1 bits for sun8i A23/A33 SoCs */ Spurious change? Thanks, Quentin -- Quentin Schulz, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com

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 = <&ths>; > +

[PATCH 1/2] spi: atmel: factorize reusable code for SPI controller init

2017-04-14 Thread Quentin Schulz
The SPI controller configuration during the init can be reused, for the resume function for example. Let's move this configuration to a separate function. Signed-off-by: Quentin Schulz Acked-by: Nicolas Ferre --- drivers/spi/spi-atmel.c | 35 +-- 1 file ch

[PATCH 2/2] spi: atmel: add deepest PM support to SAMA5D2

2017-04-14 Thread Quentin Schulz
This adds deepest (Backup+Self-Refresh) PM support to the ATMEL SAMA5D2 SoC's SPI controller. When resuming from deepest state, it is required to restore MR register as the registers are lost since VDD core has been shut down when entering deepest state on the SAMA5D2. Signed-off-by: Qu

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

2017-05-17 Thread Quentin Schulz
Signed-off-by: Quentin Schulz Reported-by: Corentin Labbe --- 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 doing a condition on pdev->dev.of_node, - check if CONFIG_THERMAL_OF

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

2017-07-12 Thread Quentin Schulz
ed to be reconfigured as well. The other registers and init process are taken care of by the SDHCI core. Signed-off-by: Quentin Schulz Acked-by: Ludovic Desroches --- v2: - use runtime_resume as system_resume, - set a flag to tell when restoring presets is needed, - use a flag to

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

2017-07-12 Thread Quentin Schulz
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's create a function for this setting. Signed-off-by: Quentin Schulz Acked-by: Ludovic Desroches Acked-by: Adrian Hunter --- drivers/mmc/

[PATCH v3 2/9] clk: at91: add audio plls to the compatible list in DT binding

2017-07-13 Thread Quentin Schulz
have different enable bits and different dividers and divider formulas, they are handled by two different drivers. This adds the audio plls (frac, pad and pmc) to the compatible list of at91 clocks in DT binding. Signed-off-by: Quentin Schulz Acked-by: Rob Herring --- added in v2: - split from

[PATCH v3 1/9] clk: at91: clk-generated: remove useless divisor loop

2017-07-13 Thread Quentin Schulz
(passed along req argument of the function) and the parent clock rate, thus we know the closest rounded divisor, we don't need to iterate over the available divisors to find the best one for a given clock. Signed-off-by: Quentin Schulz Acked-by: Boris Brezillon --- drivers/clk/at91/clk-genera

[PATCH v3 0/9] add support for Sama5d2 audio PLLs and enable ClassD

2017-07-13 Thread Quentin Schulz
[3] https://patchwork.kernel.org/patch/9462349/ [4] https://www.spinics.net/lists/arm-kernel/msg436120.html [5] http://www.spinics.net/lists/linux-clk/msg17927.html Cyrille Pitchen (2): ARM: dts: at91: sama5d2: add classd nodes ARM: dts: at91: sama5d2_xplained: add pin muxing and enable class

[PATCH v3 9/9] ARM: dts: at91: sama5d2_xplained: add pin muxing and enable classd

2017-07-13 Thread Quentin Schulz
From: Cyrille Pitchen This patch adds the pin muxing for classd and enables it. Signed-off-by: Cyrille Pitchen Signed-off-by: Nicolas Ferre Signed-off-by: Quentin Schulz --- arch/arm/boot/dts/at91-sama5d2_xplained.dts | 16 1 file changed, 16 insertions(+) diff --git a

[PATCH v3 8/9] ASoC: atmel-classd: remove aclk clock

2017-07-13 Thread Quentin Schulz
: Quentin Schulz Acked-by: Mark Brown --- added in v2: - split from bigger patch with audio PLLs and DT binding, - updated all variables and macros named ACLK to GCLK, sound/soc/atmel/atmel-classd.c | 47 +- 1 file changed, 14 insertions(+), 33 deletions

[PATCH v3 6/9] clk: at91: clk-generated: make gclk determine audio_pll rate

2017-07-13 Thread Quentin Schulz
the clock. Since audio IPs are most likely to request the same rate, we enforce that the only clks able to modify gck rate are those of audio IPs. To remain consistent, we deny other clocks to be children of audio_pll. Signed-off-by: Quentin Schulz Acked-by: Boris Brezillon --- v3: - added

[PATCH v3 7/9] ASoC: atmel-classd: remove aclk clock from DT binding

2017-07-13 Thread Quentin Schulz
Since gclk (generated-clk) is now able to determine the rate of the audio_pll, there is no need for classd to have a direct phandle to the audio_pll while already having a phandle to gclk. This binding is used by no board in mainline so it is safe to be modified. Signed-off-by: Quentin Schulz

[PATCH v3 3/9] clk: at91: add audio pll clock drivers

2017-07-13 Thread Quentin Schulz
have different enable bits and different dividers and divider formulas, they are handled by two different drivers. Each of them could modify the rate of the main audio pll parent. The main audio pll clock can output 620MHz to 700MHz. Signed-off-by: Nicolas Ferre Signed-off-by: Quentin Schulz

[PATCH v3 4/9] ARM: dts: at91: sama5d2: add classd nodes

2017-07-13 Thread Quentin Schulz
From: Cyrille Pitchen This patch adds nodes for the classd device and its generated clock. Signed-off-by: Cyrille Pitchen Signed-off-by: Nicolas Ferre Signed-off-by: Quentin Schulz --- arch/arm/boot/dts/sama5d2.dtsi | 39 ++- 1 file changed, 38 insertions

[PATCH v3 5/9] clk: at91: clk-generated: create function to find best_diff

2017-07-13 Thread Quentin Schulz
The way to find the best_diff and do the appropriate process afterwards can be re-used. This patch prepares the driver for an upcoming patch that will allow clk_generated to determine the rate of the audio_pll. Signed-off-by: Quentin Schulz Acked-by: Boris Brezillon --- drivers/clk/at91/clk

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

2017-07-13 Thread Quentin Schulz
ed to be reconfigured as well. The other registers and init process are taken care of by the SDHCI core. Signed-off-by: Quentin Schulz Acked-by: Ludovic Desroches --- v3: - pm_runtime_force_suspend before setting restore_needed flag, v2: - use runtime_resume as system_resume, - set a fl

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

2017-07-13 Thread Quentin Schulz
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's create a function for this setting. Signed-off-by: Quentin Schulz Acked-by: Ludovic Desroches Acked-by: Adrian Hunter --- drivers/mmc/

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

2017-07-04 Thread Quentin Schulz
Hi Adrian and Ludovic, On 20/06/2017 11:49, Ludovic Desroches wrote: > On Tue, Jun 20, 2017 at 10:07:06AM +0200, Quentin Schulz wrote: >> Hi Adrian, >> >> On 20/06/2017 09:39, Adrian Hunter wrote: >>> On 16/06/17 10:29, Quentin Schulz wrote: >>>> This add

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

2017-07-04 Thread Quentin Schulz
Better with the link. On 05/07/2017 08:23, Quentin Schulz wrote: > Hi Adrian and Ludovic, > > On 20/06/2017 11:49, Ludovic Desroches wrote: >> On Tue, Jun 20, 2017 at 10:07:06AM +0200, Quentin Schulz wrote: >>> Hi Adrian, >>> >>> On 20/06/2017 09:39, A

[PATCH 2/2] mfd: axp20x: use correct platform device id for many PEK

2017-07-17 Thread Quentin Schulz
According to their datasheets, the AXP221, AXP223, AXP288, AXP803, AXP809 and AXP813 PEK have different values for startup time bits from the AXP20X, let's use the platform device id with the correct values. Signed-off-by: Quentin Schulz --- drivers/mfd/axp20x.c | 12 ++-- 1

[PATCH 1/2] Input: axp20x-pek: add support for AXP221 PEK

2017-07-17 Thread Quentin Schulz
The AXP221 has different values for startup time bits from the AXP20X. This patch introduces a different platform_device_id to the driver and adds the necessary code to handle the different platform_device_ids. Signed-off-by: Quentin Schulz --- drivers/input/misc/axp20x-pek.c | 62

[PATCH 0/2] use correct values for startup time bits for AXP22X/AXP8XX PEKs

2017-07-17 Thread Quentin Schulz
from the board. Thanks, Quentin Quentin Schulz (2): Input: axp20x-pek: add support for AXP221 PEK mfd: axp20x: use correct platform device id for many PEK drivers/input/misc/axp20x-pek.c | 62 ++--- drivers/mfd/axp20x.c| 12 2 files ch

Re: [PATCH 0/2] use correct values for startup time bits for AXP22X/AXP8XX PEKs

2017-07-17 Thread Quentin Schulz
Hi all, On 17/07/2017 11:53, Quentin Schulz wrote: > According to their datasheets, the AXP221, AXP223, AXP288, AXP803, > AXP809 and AXP813 PEK have different values for startup time bits from > the AXP20X PEK (which are currently used for all the aforementioned PMICs). > > Th

Re: [PATCH 0/2] use correct values for startup time bits for AXP22X/AXP8XX PEKs

2017-07-18 Thread Quentin Schulz
Hi Lee, On 18/07/2017 09:18, Lee Jones wrote: > On Mon, 17 Jul 2017, Quentin Schulz wrote: > >> Hi all, >> >> On 17/07/2017 11:53, Quentin Schulz wrote: >>> According to their datasheets, the AXP221, AXP223, AXP288, AXP803, >>> AXP809 and AXP813 PEK h

Re: [PATCH 1/2] Input: axp20x-pek: add support for AXP221 PEK

2017-07-18 Thread Quentin Schulz
Hi Maxime, On 17/07/2017 13:29, Maxime Ripard wrote: > Hi, > > On Mon, Jul 17, 2017 at 11:53:06AM +0200, Quentin Schulz wrote: >> The AXP221 has different values for startup time bits from the AXP20X. >> >> This patch introduces a different platform_device_id to

Re: [PATCH 2/2] mfd: axp20x: use correct platform device id for many PEK

2017-07-18 Thread Quentin Schulz
Hi Lee, On 18/07/2017 09:19, Lee Jones wrote: > On Mon, 17 Jul 2017, Quentin Schulz wrote: > >> According to their datasheets, the AXP221, AXP223, AXP288, AXP803, >> AXP809 and AXP813 PEK have different values for startup time bits from >> the AXP20X, let's use th

Re: [PATCH 1/2] Input: axp20x-pek: add support for AXP221 PEK

2017-07-18 Thread Quentin Schulz
Hi Maxime, On 18/07/2017 09:57, Maxime Ripard wrote: > On Tue, Jul 18, 2017 at 09:36:04AM +0200, Quentin Schulz wrote: >>>> + >>>> + error = sysfs_create_group(&pdev->dev.kobj, >>>> + axp20x_pek->attribute_group); >

Re: [PATCH 2/2] mfd: axp20x: use correct platform device id for many PEK

2017-07-18 Thread Quentin Schulz
Hi Lee, On 18/07/2017 11:49, Lee Jones wrote: > On Tue, 18 Jul 2017, Quentin Schulz wrote: > >> Hi Lee, >> >> On 18/07/2017 09:19, Lee Jones wrote: >>> On Mon, 17 Jul 2017, Quentin Schulz wrote: >>> >>>> According to their datasheets, the

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

2017-07-18 Thread Quentin Schulz
Hi all, Kindly pinging since the merge window is now closed and I haven;t received any update in the last two weeks, Thanks, Quentin On 04/07/2017 14:37, Quentin Schulz wrote: > When phy-sun4i-usb's probing fails, it does not print the reason in > kernel log, forcing the developer t

Re: [PATCH v3 0/9] add support for Sama5d2 audio PLLs and enable ClassD

2017-07-18 Thread Quentin Schulz
Hi all, It's been almost a week with no comments on this patch set, so kindly pinging. Thanks, Quentin On 13/07/2017 09:49, Quentin Schulz wrote: > This patch series adds support for the audio PLLs and enables ClassD that > can be found in ATMEL Sama5d2 SoC. > > There are tw

[PATCH v2 2/3] Input: axp20x-pek: remove mention to extended attributes

2017-07-19 Thread Quentin Schulz
Now that extended attributes aren't used anymore, remove all the mentions to extended attributes. Signed-off-by: Quentin Schulz --- drivers/input/misc/axp20x-pek.c | 60 - 1 file changed, 29 insertions(+), 31 deletions(-) diff --git a/drivers/input

[PATCH v2 1/3] Input: axp20x-pek: use driver_data of platform_device_id instead of extended attributes

2017-07-19 Thread Quentin Schulz
PMIC can be easily supported by just filling correctly its ax20x_info structure and adding a platform_device_id. Signed-off-by: Quentin Schulz --- drivers/input/misc/axp20x-pek.c | 131 +++- 1 file changed, 88 insertions(+), 43 deletions(-) diff --git a/drivers/

[PATCH v2 0/3] add support for AXP22X/AXP288/AXP8XX PEK

2017-07-19 Thread Quentin Schulz
masks, - separate in different patches, - removed mfd patch to correct mfd cell name since Chen-Yu will take care of it in another patch series, Thanks, Quentin Quentin Schulz (3): Input: axp20x-pek: use driver_data of platform_device_id instead of extended attributes Input: axp20x-pek: r

[PATCH v2 3/3] Input: axp20x-pek: add support for AXP221 PEK

2017-07-19 Thread Quentin Schulz
The AXP221 has different values for startup time bits from the AXP20X. Signed-off-by: Quentin Schulz --- drivers/input/misc/axp20x-pek.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/input/misc/axp20x-pek.c b/drivers/input/misc/axp20x-pek.c index fa49f45c0f0e

[PATCH 0/2] add ESP8089 WiFi chip driver

2017-07-21 Thread Quentin Schulz
_detect_change_begin / _end functions Quentin Schulz (1): staging: net: wireless: add ESP8089 WiFi driver drivers/mmc/core/core.c | 47 +- drivers/staging/Kconfig |2 + drivers/staging/Makefile|1 + drivers/sta

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

2017-07-21 Thread Quentin Schulz
From: Hans de Goede Some sdio devices have a multiple stage bring-up process. Specifically the esp8089 (for which an out of tree driver is available) loads firmware on the first call to its sdio-drivers' probe function and then resets the device causing it to reboot from its RAM with the new firm

Re: [PATCH 1/2] staging: net: wireless: add ESP8089 WiFi driver

2017-07-21 Thread Quentin Schulz
Hi Greg, On 21/07/2017 17:01, Greg KH wrote: > On Fri, Jul 21, 2017 at 04:35:01PM +0200, Quentin Schulz wrote: >> The Espressif ESP8089 WiFi chips can be often found in cheap tablets. >> There is one in A23 Polaroid tablets for example. >> >> The chip is often embe

Re: [PATCH 1/2] staging: net: wireless: add ESP8089 WiFi driver

2017-07-21 Thread Quentin Schulz
an eMMC SDIO device. >>>> >>>> The code was taken from an out-of-tree repository and has seen a first >>>> pass in the cleanup process. >>>> >>>> At the moment, there is no publicly available datasheet for this chip. >>>> >

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

2018-02-08 Thread Quentin Schulz
Hi Ulf, On Wed, Aug 30, 2017 at 03:43:49PM +0200, Ulf Hansson wrote: > On 30 August 2017 at 14:44, Hans de Goede wrote: > > Hi, > > > > > > On 21-07-17 16:35, Quentin Schulz wrote: > >> > >> From: Hans de Goede > >> > >> Some sd

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

2018-02-09 Thread Quentin Schulz
Hi Ulf, On Thu, Feb 08, 2018 at 10:31:39PM +0100, Ulf Hansson wrote: > On 8 February 2018 at 15:59, Quentin Schulz > wrote: > > Hi Ulf, > > > > On Wed, Aug 30, 2017 at 03:43:49PM +0200, Ulf Hansson wrote: > >> On 30 August 2017 at 14:44, Hans de Goede wrote: &

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

2018-02-19 Thread Quentin Schulz
This makes the axp20x_adc driver probe with platform device id "axp813-adc". Signed-off-by: Quentin Schulz Acked-for-MFD-by: Lee Jones Acked-by: Chen-Yu Tsai --- drivers/mfd/axp20x.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/axp20x.c b/d

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

2018-02-19 Thread Quentin Schulz
This makes AXP209 and AXP22x ADCs probe first via DT and then by fallback via platform. Signed-off-by: Quentin Schulz Acked-for-MFD-by: Lee Jones Acked-by: Chen-Yu Tsai --- drivers/mfd/axp20x.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/axp20x.c b

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

2018-02-19 Thread Quentin Schulz
The DT node should be named after its functionality and not after the IP it's defining. Signed-off-by: Quentin Schulz Acked-by: Chen-Yu Tsai --- 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/boo

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

2018-02-19 Thread Quentin Schulz
use it. Signed-off-by: Quentin Schulz Reviewed-by: Chen-Yu Tsai --- 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 7

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

2018-02-19 Thread Quentin Schulz
This adds a DT node for the ADC of the PMIC so that there can be consumers of its IIO channels declaring their consumptions via DT. Signed-off-by: Quentin Schulz Acked-by: Chen-Yu Tsai --- arch/arm/boot/dts/axp22x.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts

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

2018-02-19 Thread Quentin Schulz
The TBS A711 has an AXP813 PMIC and a soldered battery, thus, we enable the battery power supply subnode in its Device Tree. Signed-off-by: Quentin Schulz Acked-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot

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

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

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

2018-02-19 Thread Quentin Schulz
This adds a DT node for the ADC of the PMIC so that there can be consumers of its IIO channels declaring their consumptions via DT. Signed-off-by: Quentin Schulz Acked-by: Chen-Yu Tsai --- arch/arm/boot/dts/axp209.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts

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

2018-02-19 Thread Quentin Schulz
As axp20x-battery-power-supply now supports AXP813, add a cell for it. Signed-off-by: Quentin Schulz Acked-for-MFD-by: Lee Jones Reviewed-by: Chen-Yu Tsai --- drivers/mfd/axp20x.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index e5516aa

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

2018-02-19 Thread Quentin Schulz
supply subnode for AXP81X PMIC. Signed-off-by: Quentin Schulz Acked-by: Chen-Yu Tsai --- 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

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

2018-02-19 Thread Quentin Schulz
the PMIC is valid. Signed-off-by: Quentin Schulz Reviewed-by: Chen-Yu Tsai --- 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 099e785

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

2018-02-19 Thread Quentin Schulz
The AXP813 can have a battery as power supply, so let's add it to the list of compatibles. Signed-off-by: Quentin Schulz Reviewed-by: Rob Herring Acked-by: Chen-Yu Tsai --- Documentation/devicetree/bindings/power/supply/axp20x_battery.txt | 8 +++ 1 file changed, 4 insertions(

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

2018-02-19 Thread Quentin Schulz
This adds a DT node for the ADC of the PMIC so that there can be consumers of its IIO channels declaring their consumptions via DT. Signed-off-by: Quentin Schulz Acked-by: Chen-Yu Tsai --- arch/arm/boot/dts/axp81x.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts

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

2018-02-19 Thread Quentin Schulz
f 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 (13): ARM: dtsi: axp209: add node for ADC ARM: dtsi: a

<    1   2   3   4   5   6   7   >