Hi Maxime, Philipp,
On Thu, Sep 06, 2018 at 01:42:41PM +0200, Maxime Ripard wrote:
> On Thu, Sep 06, 2018 at 01:39:43PM +0200, Philipp Rossak wrote:
> > On 06.09.2018 09:24, Quentin Schulz wrote:
> > > Hi Philipp,
> > >
> > > On Thu, Aug 30, 2018 at 05
Hi Philipp,
On Thu, Aug 30, 2018 at 05:45:18PM +0200, Philipp Rossak wrote:
> Since we have now thermal trotteling enabeled we can now add the full
> range of the OPP table.
>
That's not the reason why they were not added.
Please see commit 2db639d8c1663d7543c9ab5323383d94c8a76c63[1].
Hi Sebastian,
On Fri, Mar 09, 2018 at 05:08:25PM +0100, Sebastian Reichel wrote:
> Hi Quentin,
>
> On Wed, Feb 28, 2018 at 11:35:58AM +0100, Quentin Schulz wrote:
> > We used to use IDs to select a function or a feature depending on the
> > variant. It's easier to mainta
The Allwinner A83T is a SoC with two clusters of 4 A7 which have a
different clock and regulator.
Set the CPU regulator.
Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com>
---
arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 9 +
1 file changed, 9 insertions(+)
diff --git
on a per-board basis though.
Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com>
---
arch/arm/boot/dts/sun8i-a83t.dtsi | 118 +++-
1 file changed, 118 insertions(+)
diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi
b/arch/arm/boot/dts/sun8i-a83t.dtsi
index 0
The Allwinner A83T is a SoC with two clusters of 4 A7, each cluster
having its own regulator and clock.
The regulators are board-specific, thus we need labels for cpu0 and
cpu100 so that we can use references to these nodes from the board
header file.
Signed-off-by: Quentin Schulz <quentin.
down).
It seems[1] impossible to reach those frequencies with none or passive
cooling, so better leave them out by default.
It's still possible to add those OPPs on a per-board basis though.
[1] http://linux-sunxi.org/User:Tkaiser#First_steps_with_Banana_Pi_M3
Thanks,
Quentin
Quentin Schulz (3
As axp20x-battery-power-supply now supports AXP813, add a cell for it.
Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com>
Acked-for-MFD-by: Lee Jones <lee.jo...@linaro.org>
Reviewed-by: Chen-Yu Tsai <w...@csie.org>
---
drivers/mfd/axp20x.c | 3 +++
1 file changed, 3 i
ad of ID for variant specific code in
battery driver,
- add DT binding for ADC driver,
- make mfd probe the ADC driver via DT as well so that its IIO channels
can be consumed by other drivers via DT mapping,
Thanks,
Quentin
Quentin Schulz (6):
mfd: axp20x: make AXP209/22x cells probe th
by the
PMIC is valid.
Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com>
Reviewed-by: Chen-Yu Tsai <w...@csie.org>
---
drivers/power/supply/axp20x_battery.c | 42 -
1 file changed, 42 insertions(+)
diff --git a/drivers/power/supply/axp20x_battery.
-off-by: Quentin Schulz <quentin.sch...@bootlin.com>
Reviewed-by: Chen-Yu Tsai <w...@csie.org>
---
drivers/power/supply/axp20x_battery.c | 100 +--
1 file changed, 66 insertions(+), 34 deletions(-)
diff --git a/drivers/power/supply/axp20x_battery.c
b/drivers/
The AXP813 can have a battery as power supply, so let's add it to the
list of compatibles.
Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com>
Reviewed-by: Rob Herring <r...@kernel.org>
Acked-by: Chen-Yu Tsai <w...@csie.org>
---
Documentation/devicetree/bin
This makes AXP209 and AXP22x ADCs probe first via DT and then by
fallback via platform.
Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com>
Acked-for-MFD-by: Lee Jones <lee.jo...@linaro.org>
Acked-by: Chen-Yu Tsai <w...@csie.org>
---
drivers/mfd/axp20x.c | 5 -
This makes the axp20x_adc driver probe with platform device id
"axp813-adc".
Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com>
Acked-for-MFD-by: Lee Jones <lee.jo...@linaro.org>
Acked-by: Chen-Yu Tsai <w...@csie.org>
---
drivers/mfd/axp20x.c | 5 -
1 file
As axp20x-battery-power-supply now supports AXP813, add a cell for it.
Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com>
Acked-for-MFD-by: Lee Jones <lee.jo...@linaro.org>
Reviewed-by: Chen-Yu Tsai <w...@csie.org>
---
drivers/mfd/axp20x.c | 3 +++
1 file changed, 3 i
-off-by: Quentin Schulz <quentin.sch...@bootlin.com>
Reviewed-by: Chen-Yu Tsai <w...@csie.org>
---
drivers/power/supply/axp20x_battery.c | 100 +--
1 file changed, 66 insertions(+), 34 deletions(-)
diff --git a/drivers/power/supply/axp20x_battery.c
b/drivers/
in
battery driver,
- add DT binding for ADC driver,
- make mfd probe the ADC driver via DT as well so that its IIO channels
can be consumed by other drivers via DT mapping,
Thanks,
Quentin
Quentin Schulz (13):
ARM: dtsi: axp209: add node for ADC
ARM: dtsi: axp22x: add node for ADC
mfd:
This makes AXP209 and AXP22x ADCs probe first via DT and then by
fallback via platform.
Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com>
Acked-for-MFD-by: Lee Jones <lee.jo...@linaro.org>
Acked-by: Chen-Yu Tsai <w...@csie.org>
---
drivers/mfd/axp20x.c | 5 -
by the
PMIC is valid.
Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com>
Reviewed-by: Chen-Yu Tsai <w...@csie.org>
---
drivers/power/supply/axp20x_battery.c | 42 -
1 file changed, 42 insertions(+)
diff --git a/drivers/power/supply/axp20x_battery.
!!'s behaviour isn't that obvious and sparse complained about it, so
let's replace it with a ternary condition.
Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com>
---
drivers/iio/adc/axp20x_adc.c | 8 +---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/i
The DT node should be named after its functionality and not after the
IP it's defining.
Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com>
Acked-by: Chen-Yu Tsai <w...@csie.org>
---
arch/arm/boot/dts/axp81x.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --gi
This adds a DT node for the ADC of the PMIC so that there can be
consumers of its IIO channels declaring their consumptions via DT.
Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com>
Acked-by: Chen-Yu Tsai <w...@csie.org>
---
arch/arm/boot/dts/axp209.dtsi | 5 +
1 fil
The TBS A711 has an AXP813 PMIC and a soldered battery, thus, we enable
the battery power supply subnode in its Device Tree.
Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com>
Acked-by: Chen-Yu Tsai <w...@csie.org>
---
arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 4
1 fil
This makes the axp20x_adc driver probe with platform device id
"axp813-adc".
Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com>
Acked-for-MFD-by: Lee Jones <lee.jo...@linaro.org>
Acked-by: Chen-Yu Tsai <w...@csie.org>
---
drivers/mfd/axp20x.c | 5 -
1 file
supply subnode for AXP81X PMIC.
Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com>
Acked-by: Chen-Yu Tsai <w...@csie.org>
---
arch/arm/boot/dts/axp81x.dtsi | 5 +
1 file changed, 5 insertions(+)
diff --git a/arch/arm/boot/dts/axp81x.dtsi b/arch/arm/boot/dts/axp81x.dtsi
i
This adds a DT node for the ADC of the PMIC so that there can be
consumers of its IIO channels declaring their consumptions via DT.
Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com>
Acked-by: Chen-Yu Tsai <w...@csie.org>
---
arch/arm/boot/dts/axp81x.dtsi | 5 +
1 fil
This adds a DT node for the ADC of the PMIC so that there can be
consumers of its IIO channels declaring their consumptions via DT.
Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com>
Acked-by: Chen-Yu Tsai <w...@csie.org>
---
arch/arm/boot/dts/axp22x.dtsi | 5 +
1 fil
The AXP813 can have a battery as power supply, so let's add it to the
list of compatibles.
Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com>
Reviewed-by: Rob Herring <r...@kernel.org>
Acked-by: Chen-Yu Tsai <w...@csie.org>
---
Documentation/devicetree/bin
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
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
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
et;
> int temp_scale;
> @@ -56,6 +65,9 @@ struct gpadc_data {
> unsigned inttp_adc_select;
> unsigned int(*adc_chan_select)(unsigned int chan);
> unsigned intadc_chan_mask;
> + unsigned inttemp_data;
Does not really have anything
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.
>
>
Hi Jonathan,
On Sun, Jan 21, 2018 at 12:26:55PM +, Jonathan Cameron wrote:
> On Mon, 15 Jan 2018 11:33:41 +0100
> Quentin Schulz <quentin.sch...@free-electrons.com> wrote:
>
> > The X-Powers AXP813 PMIC is really close to what is already done for
> > AXP20X/AXP
for
AXP20X/AXP22X.
GPIO0 can be used as an ADC (measuring Volts) unlike for AXP22X.
The scales to apply to the different inputs are unlike the ones from
AXP20X and AXP22X.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
Acked-by: Jonathan Cameron <jonathan.came...@h
This adds a DT node for the ADC of the PMIC so that there can be
consumers of its IIO channels declaring their consumptions via DT.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
---
arch/arm/boot/dts/axp22x.dtsi | 5 +
1 file changed, 5 insertions(+)
diff --git
As axp20x-battery-power-supply now supports AXP813, add a cell for it.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
Acked-for-MFD-by: Lee Jones <lee.jo...@linaro.org>
---
drivers/mfd/axp20x.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/mf
The TBS A711 has an AXP813 PMIC and a soldered battery, thus, we enable
the battery power supply subnode in its Device Tree.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
---
arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 4
1 file changed, 4 insertions(+)
diff
This adds a DT node for the ADC of the PMIC so that there can be
consumers of its IIO channels declaring their consumptions via DT.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
---
arch/arm/boot/dts/axp81x.dtsi | 5 +
1 file changed, 5 insertions(+)
diff --git
oduce data structure instead of ID for variant specific code in
battery driver,
- add DT binding for ADC driver,
- make mfd probe the ADC driver via DT as well so that its IIO channels
can be consumed by other drivers via DT mapping,
Thanks,
Quentin
Quentin Schulz (16):
iio: adc: axp20x_adc:
X-Powers PMICs have several ADC channels that can be used for different
purposes, e.g. PMIC internal temperature, battery voltage or AC current.
This is the documentation for AXP209, AXP221/223 and AXP813 ADC
bindings.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
Re
supply subnode for AXP81X PMIC.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
---
arch/arm/boot/dts/axp81x.dtsi | 5 +
1 file changed, 5 insertions(+)
diff --git a/arch/arm/boot/dts/axp81x.dtsi b/arch/arm/boot/dts/axp81x.dtsi
index 6b5e7bc..1b05c7f 100644
--- a/ar
the code to use it.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
---
drivers/power/supply/axp20x_battery.c | 100 +--
1 file changed, 66 insertions(+), 34 deletions(-)
diff --git a/drivers/power/supply/axp20x_battery.c
b/drivers/power/
The AXP813 can have a battery as power supply, so let's add it to the
list of compatibles.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
Reviewed-by: Rob Herring <r...@kernel.org>
---
Documentation/devicetree/bindings/power/supply/axp20x_battery.txt | 8 +++
This makes AXP209 and AXP22x ADCs probe first via DT and then by
fallback via platform.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
---
drivers/mfd/axp20x.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/ax
This makes the axp20x_adc driver probe with platform device id
"axp813-adc".
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
---
drivers/mfd/axp20x.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/mfd/axp20x.c b/drivers/mf
This adds a DT node for the ADC of the PMIC so that there can be
consumers of its IIO channels declaring their consumptions via DT.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
---
arch/arm/boot/dts/axp209.dtsi | 5 +
1 file changed, 5 insertions(+)
diff --git
by the
PMIC is valid.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
---
drivers/power/supply/axp20x_battery.c | 42 -
1 file changed, 42 insertions(+)
diff --git a/drivers/power/supply/axp20x_battery.c
b/drivers/power/supply/axp20x_battery.c
The DT node should be named after its functionality and not after the
IP it's defining.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
---
arch/arm/boot/dts/axp81x.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/axp81x.dtsi b/ar
To prepare for a new comer that set a different register with different
values, move rate setting in a function that is specific to each AXP
variant.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
---
drivers/iio/adc/axp20x_adc.c | 18 +++---
1 file chang
with
old DTs.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
---
drivers/iio/adc/axp20x_adc.c | 19 ++-
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/drivers/iio/adc/axp20x_adc.c b/drivers/iio/adc/axp20x_adc.c
index 3fc1b06..3968053
with
old DTs.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
---
drivers/iio/adc/axp20x_adc.c | 19 ++-
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/drivers/iio/adc/axp20x_adc.c b/drivers/iio/adc/axp20x_adc.c
index 3fc1b06..f8c4c62
To prepare for a new comer that set a different register with different
values, move rate setting in a function that is specific to each AXP
variant.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
---
drivers/iio/adc/axp20x_adc.c | 18 +++---
1 file chang
AXP813 is now supported so add documentation for this compatible.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
---
Documentation/devicetree/bindings/iio/adc/axp20x_adc.txt | 9 +-
1 file changed, 9 insertions(+)
diff --git a/Documentation/devicetree/bindin
The AXP813 can have a battery as power supply, so let's add it to the
list of compatibles.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
---
Documentation/devicetree/bindings/power/supply/axp20x_battery.txt | 8 +++
1 file changed, 4 insertions(+), 4 deletions(-)
for
AXP20X/AXP22X.
GPIO0 can be used as an ADC (measuring Volts) unlike for AXP22X.
The scales to apply to the different inputs are unlike the ones from
AXP20X and AXP22X.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
---
drivers/iio/adc/axp20x_adc.c
This adds a DT node for the ADC of the PMIC so that there can be
consumers of its IIO channels declaring their consumptions via DT.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
---
arch/arm/boot/dts/axp209.dtsi | 5 +
1 file changed, 5 insertions(+)
diff --git
The TBS A711 has an AXP813 PMIC and a soldered battery, thus, we enable
the battery power supply subnode in its Device Tree.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
---
arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 4
1 file changed, 4 insertions(+)
diff
As axp20x-battery-power-supply now supports AXP813, add a cell for it.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
---
drivers/mfd/axp20x.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c
index d112414..1175091
the code to use it.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
---
drivers/power/supply/axp20x_battery.c | 100 +--
1 file changed, 66 insertions(+), 34 deletions(-)
diff --git a/drivers/power/supply/axp20x_battery.c
b/drivers/power/
This makes the axp20x_adc driver probe with platform device id
"axp813-adc".
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
---
drivers/mfd/axp20x.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/mfd/axp20x.c b/drivers/mf
so that its IIO channels
can be consumed by other drivers via DT mapping,
Thanks,
Quentin
Quentin Schulz (16):
iio: adc: axp20x_adc: put ADC rate setting in a per-variant function
dt-bindings: iio: adc: add binding for X-Powers AXP PMICs ADC
iio: adc: axp20x_adc: make it possible to probe
This adds a DT node for the ADC of the PMIC so that there can be
consumers of its IIO channels declaring their consumptions via DT.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
---
arch/arm/boot/dts/axp22x.dtsi | 5 +
1 file changed, 5 insertions(+)
diff --git
This adds a DT node for the ADC of the PMIC so that there can be
consumers of its IIO channels declaring their consumptions via DT.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
---
arch/arm/boot/dts/axp81x.dtsi | 5 +
1 file changed, 5 insertions(+)
diff --git
supply subnode for AXP81X PMIC.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
---
arch/arm/boot/dts/axp81x.dtsi | 5 +
1 file changed, 5 insertions(+)
diff --git a/arch/arm/boot/dts/axp81x.dtsi b/arch/arm/boot/dts/axp81x.dtsi
index dd25bfe..5fb396e 100644
--- a/ar
This makes AXP209 and AXP22x ADCs probe first via DT and then by
fallback via platform.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
---
drivers/mfd/axp20x.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/ax
by the
PMIC is valid.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
---
drivers/power/supply/axp20x_battery.c | 42 -
1 file changed, 42 insertions(+)
diff --git a/drivers/power/supply/axp20x_battery.c
b/drivers/power/supply/axp20x_battery.c
X-Powers PMICs have several ADC channels that can be used for different
purposes, e.g. PMIC internal temperature, battery voltage or AC current.
This is the documentation for AXP209, AXP221/223 ADC bindings.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
---
Documen
This fixes some compilation issues.
GENERIC_PINCONF and OF at least for pinconf_generic_dt_*, PINMUX at
least for pinmux_ops and GPIOLIB for at least gpio_chip.
Fixes: 23f75d7dfa92 ("pinctrl: axp209: add pinctrl features")
Reported-by: Randy Dunlab <rdun...@infradead.org>
Signed
ff133cc0156828d48c8efb96987fa45f885761d22a25dc1
> + Verifying Hash Integrity ... sha256+ OK
> + Booting using the fdt blob at 0x40710f24
> + Uncompressing Kernel Image ... OK
> + Loading Device Tree to 49ffa000, end 49fff347 ... OK
> +
> +Starting kernel ...
> +---
pport for AXP813 GPIOs")
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
Reported-by: Mylène Josserand <mylene.josser...@free-electrons.com>
---
drivers/pinctrl/pinctrl-axp209.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/pinc
Hi Jonathan,
On 10/12/2017 17:49, Jonathan Cameron wrote:
> On Mon, 4 Dec 2017 15:12:51 +0100
> Quentin Schulz <quentin.sch...@free-electrons.com> wrote:
>
>> The X-Powers AXP813 PMIC has got some slight differences from
>> AXP20X/AXP22X PMICs:
>> - the max
Hi all,
There is a bug below.
On 05/12/2017 15:46, Quentin Schulz wrote:
> The AXP813 has only two GPIOs. GPIO0 can either be used as a GPIO, an
> LDO regulator or an ADC. GPIO1 can be used either as a GPIO or an LDO
> regulator.
>
> Moreover, the status bit of the GPIOs whe
Hi Chen-Yu,
On 07/12/2017 09:54, Chen-Yu Tsai wrote:
> On Thu, Dec 7, 2017 at 4:51 PM, Quentin Schulz
> <quentin.sch...@free-electrons.com> wrote:
>> Hi Maxime,
>>
>> On 05/12/2017 09:08, Maxime Ripard wrote:
>>> On Mon, Dec 04, 2017 at 03:12:49PM +0100
Hi Maxime,
On 05/12/2017 09:08, Maxime Ripard wrote:
> On Mon, Dec 04, 2017 at 03:12:49PM +0100, Quentin Schulz wrote:
>> This makes the axp20x_adc driver probe with platform device id
>> "axp813-adc".
>>
>> Signed-off-by: Quentin Schulz <quentin.sch...@fr
Hi all,
Copy pasting of the cover letter done wrong, there are only 9 patches in
this patch series unlike what's specified in the title of the cover
letter for this patch series.
Sorry for the noise.
Quentin
On 05/12/2017 15:46, Quentin Schulz wrote:
> The AXP209 and AXP813 PMICs have seve
The X-Powers AXP209 has 3 GPIOs. GPIO0/1 can each act either as a GPIO,
an ADC or a LDO regulator. GPIO2 can only act as a GPIO.
This adds the pinctrl features to the driver so GPIO0/1 can be used as
ADC or LDO regulator.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
thin the same range instead of a range per pin,
Thanks,
Quentin
Quentin Schulz (9):
gpio: axp209: switch unsigned variables to unsigned int
pinctrl: move gpio-axp209 to pinctrl
pinctrl: axp209: add pinctrl features
dt-bindings: gpio: gpio-axp209: add pinctrl features
pinctrl: axp209: rena
To prepare for patches that will add support for a new PMIC that has a
different GPIO adc muxing value, add an adc_mux within axp20x_pctl
structure and use it.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
Acked-by: Maxime Ripard <maxime.rip...@free-electrons.com>
The AXP813 has only two GPIOs. GPIO0 can either be used as a GPIO, an
LDO regulator or an ADC. GPIO1 can be used either as a GPIO or an LDO
regulator.
Moreover, the status bit of the GPIOs when in input mode is not offset
by 4 unlike the AXP209.
Signed-off-by: Quentin Schulz <quentin.sch...@f
The X-Powers AXP209 has 3 GPIOs. GPIO0/1 can each act either as a GPIO,
an ADC or a LDO regulator. GPIO2 can only act as a GPIO.
This adds the pinctrl features to the driver so GPIO0/1 can be used as
ADC or LDO regulator.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
Checkpatch complains with the following message:
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
Let's make it happy by switching over to unsigned int.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
---
drivers/gpio/gpio-axp209.c | 13 +++--
1 file chan
To prepare for patches that will add support for a new PMIC that has a
different GPIO input status register, add a gpio_status_offset within
axp20x_pctl structure and use it.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
Acked-by: Maxime Ripard <maxime.ri
As GPIO/pinctrl driver now supports AXP813, add a cell for it.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
Acked-by: Maxime Ripard <maxime.rip...@free-electrons.com>
Acked-by: Linus Walleij <linus.wall...@linaro.org>
Acked-for-MFD-by: Lee Jones <
.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
Acked-by: Maxime Ripard <maxime.rip...@free-electrons.com>
---
drivers/pinctrl/pinctrl-axp209.c | 176 +++
1 file changed, 88 insertions(+), 88 deletions(-)
diff --git a/drivers/pin
To prepare the driver for the upcoming pinctrl features, move the GPIO
driver AXP209 from GPIO to pinctrl subsystem.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
Acked-by: Maxime Ripard <maxime.rip...@free-electrons.com>
Acked-by: Chen-Yu Tsai <w...@csie.or
As axp20x-battery-power-supply now supports AXP813, add a cell for it.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
---
drivers/mfd/axp20x.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c
index 42e54d1..7566358
To prepare for a new comer that set a different register with different
values, move rate setting in a function that is specific to each AXP
variant.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
---
drivers/iio/adc/axp20x_adc.c | 17 ++---
1 file chang
The TBS A711 has an AXP813 PMIC and a soldered battery, thus, we enable
the battery power supply subnode in its Device Tree.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
---
arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 4
1 file changed, 4 insertions(+)
diff
supply subnode for AXP81X PMIC.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
---
arch/arm/boot/dts/axp81x.dtsi | 5 +
1 file changed, 5 insertions(+)
diff --git a/arch/arm/boot/dts/axp81x.dtsi b/arch/arm/boot/dts/axp81x.dtsi
index 73b761f..f7401c3 100644
--- a/ar
for
AXP20X/AXP22X.
GPIO0 can be used as an ADC (measuring Volts) unlike for AXP22X.
The scales to apply to the different inputs are unlike the ones from
AXP20X and AXP22X.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
---
drivers/iio/adc/axp20x_adc.c
This makes the axp20x_adc driver probe with platform device id
"axp813-adc".
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
---
drivers/mfd/axp20x.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x
The AXP813 can have a battery as power supply, so let's add it to the
list of compatibles.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
---
Documentation/devicetree/bindings/power/supply/axp20x_battery.txt | 8 +++
1 file changed, 4 insertions(+), 4 deletions(-)
by the
PMIC is valid.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
---
drivers/power/supply/axp20x_battery.c | 44 +++-
1 file changed, 43 insertions(+), 1 deletion(-)
diff --git a/drivers/power/supply/axp20x_battery.c
b/drivers/power/
driver, add the battery
power supply node in axp81x node and enable it for the TBS A711 since it
has a soldered battery.
Q: The BananaPi M3 has two solder balls for battery, should the battery
power supply node be enabled for this board as well?
Thanks,
Quentin
Quentin Schulz (8):
iio: adc
Hi Maxime,
On 01/12/2017 16:57, Maxime Ripard wrote:
> On Fri, Dec 01, 2017 at 02:44:43PM +0100, Quentin Schulz wrote:
>> +static void axp20x_gpio_set(struct gpio_chip *chip, unsigned offset,
>> +int value)
>> +{
>
> checkpatch output:
>
On AXP813/818, GPIO0 and GPIO1 can be used as LDO as (respectively)
ldo_io0 and ldo_io1.
Let's add the pinctrl properties to the said regulators.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
---
arch/arm/boot/dts/axp81x.dtsi | 14 ++
1 file chang
order of some patches,
- register all pins within the same range instead of a range per pin,
Thanks,
Quentin
Quentin Schulz (10):
pinctrl: move gpio-axp209 to pinctrl
pinctrl: axp209: add pinctrl features
dt-bindings: gpio: gpio-axp209: add pinctrl features
pinctrl: axp209: rename ev
To prepare the driver for the upcoming pinctrl features, move the GPIO
driver AXP209 from GPIO to pinctrl subsystem.
Signed-off-by: Quentin Schulz <quentin.sch...@free-electrons.com>
Acked-by: Maxime Ripard <maxime.rip...@free-electrons.com>
Acked-by: Chen-Yu Tsai <w...@csie.or
The AXP813 has only two GPIOs. GPIO0 can either be used as a GPIO, an
LDO regulator or an ADC. GPIO1 can be used either as a GPIO or an LDO
regulator.
Moreover, the status bit of the GPIOs when in input mode is not offset
by 4 unlike the AXP209.
Signed-off-by: Quentin Schulz <quentin.sch...@f
1 - 100 of 235 matches
Mail list logo