chard,
Quentin Schulz (2):
ubi: provide a way to skip CRC checks
ubi: expose the volume CRC check skip flag
drivers/mtd/ubi/cdev.c | 11 +++
drivers/mtd/ubi/kapi.c | 2 +-
drivers/mtd/ubi/ubi-media.h | 6 ++
drivers/mtd/ubi/ubi.h | 4
drivers/mtd/ubi/vmt.c
-by: Boris Brezillon
Signed-off-by: Quentin Schulz
Reviewed-by: Boris Brezillon
---
drivers/mtd/ubi/cdev.c | 11 +++
drivers/mtd/ubi/vmt.c | 3 +++
include/uapi/mtd/ubi-user.h | 18 --
3 files changed, 30 insertions(+), 2 deletions(-)
diff --git a/drive
at the block granularity instead of verifying the whole volume.
Skipping this test drastically improves the boot-time.
Patches for mtd-utils will be available as well.
Thanks,
Quentin
v2:
- use volume flags instead of arguments on the kernel command line as
suggested by Richard,
Quentin
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
---
drivers/mtd/ubi/kapi.c | 2 +-
drivers/mtd/ubi/ubi-media.h | 6 ++
drivers/mtd/ubi/ubi.h | 4
e UBI volume for which we are trying to skip the CRC check
is static.
Suggested-by: Boris Brezillon
Signed-off-by: Quentin Schulz
---
drivers/mtd/ubi/cdev.c | 4
drivers/mtd/ubi/vmt.c | 3 +++
include/uapi/mtd/ubi-user.h | 16 ++--
3 files changed, 21 insertions(
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 | 4
drivers/mtd/ubi/kapi.c | 2 +-
drivers/mtd/ubi/ubi-media.h | 6 ++
drivers/mtd/ubi/ubi.h | 4
drivers/mtd/ubi/vmt.c
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 | 4
drivers/mtd/ubi/vmt.c | 3 +++
include/uapi/mtd/ubi-user.h | 16 ++--
3
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
---
drivers/mtd/ubi/kapi.c | 2 +-
drivers/mtd/ubi/ubi-media.h | 6
Hi Josh,
On Fri, Dec 14, 2018 at 07:57:37AM -0500, Josh Boyer wrote:
> On Thu, Dec 6, 2018 at 5:34 AM Quentin Schulz
> wrote:
> >
> > Hi all,
> >
> > Both VSC8574 and VSC8584 Ethernet PHYs require a firmware patch to be
> > applied before making use of them
Hi Lee,
On Mon, Dec 10, 2018 at 06:27:18AM +, Lee Jones wrote:
> On Sat, 08 Dec 2018, Quentin Schulz wrote:
>
> > Hi Lee,
> >
> > On Fri, Dec 07, 2018 at 07:22:37PM +, Lee Jones wrote:
> > > On Fri, 07 Dec 2018, Vasily Khoruzhick wrote:
> > >
Hi Gustavo,
On Mon, Oct 08, 2018 at 08:06:49PM +0200, Gustavo A. R. Silva wrote:
> Currently, there is an out-of-bounds read on array ctrl->phys,
> once variable i reaches the maximum array size of SERDES_MAX
> in the for loop.
>
> Fix this by changing the condition in the for loop from
> i <= SE
ecause the size of
> array ctrl->phys is SERDES_MAX.
>
> Partially fix this by updating SERDES_MAX to be SERDES6G_MAX + 1.
>
> Notice that this is the first part of the solution to
> the out-of-bounds bug mentioned above. Although this
> change is not dependent on any
for loop from
> i <= SERDES_MAX to i < SERDES_MAX.
>
Reviewed-by: Quentin Schulz
Thanks,
Quentin
signature.asc
Description: PGP signature
size of SERDES_MAX
> in the for loop.
>
> Quentin Schulz pointed out that SERDES_MAX is a valid value to
> index ctrl->phys. So, I updated SERDES_MAX to be SERDES6G_MAX + 1
> in include/dt-bindings/phy/phy-ocelot-serdes.h.
>
> Then I changed the condition in the for loop f
Hi Frieder,
On Mon, Oct 08, 2018 at 11:53:21AM +0200, Frieder Schrempf wrote:
> Hi,
>
> On 27.09.2018 10:14, Maxime Ripard wrote:
> > On Wed, Sep 26, 2018 at 10:19:22PM +0200, Hans de Goede wrote:
> > > On 26-09-18 16:44, Frieder Schrempf wrote:
> > > > Hi,
> > > >
> > > > On Fri, Feb 09, 2018 a
Hi Gustavo,
On Tue, Oct 09, 2018 at 09:39:53PM +0200, Gustavo A. R. Silva wrote:
> In case memory resources for *fw* were successfully allocated,
> release them before return.
>
> Addresses-Coverity-ID: 1473968 ("Resource leak")
> Fixes: 00d70d8e0e78 ("net: phy: mscc: add support for VSC8574 PHY"
select/restore_page
> functions")
Reviewed-by: Quentin Schulz
Thanks!
Quentin
signature.asc
Description: PGP signature
c: add support for VSC8574 PHY")
Reviewed-by: Quentin Schulz
Thanks!
Quentin
signature.asc
Description: PGP signature
Hi Jonathan,
On Sun, Oct 28, 2018 at 03:40:11PM +, Jonathan Cameron wrote:
> On Wed, 24 Oct 2018 08:56:33 -0500
> Rob Herring wrote:
>
> > On Tue, 23 Oct 2018 21:53:23 +0300, Oskari Lemmela wrote:
> > > The AXP803 ADC is compatible with AXP813 ADC, but add
> > > specific compatible for it.
>
Hi Oskari,
On Mon, Oct 08, 2018 at 09:19:03PM +0300, Oskari Lemmela wrote:
> Add AC power supply subnode for AXP81X PMIC.
>
Reviewed-by: Quentin Schulz
Thanks,
Quentin
signature.asc
Description: PGP signature
Hi Oskari,
On Mon, Oct 08, 2018 at 09:19:02PM +0300, Oskari Lemmela wrote:
> The AXP803/AXP813 AC power supply can limit input current and voltage.
>
Reviewed-by: Quentin Schulz
Thanks,
Quentin
signature.asc
Description: PGP signature
Hi Oskari,
On Mon, Oct 08, 2018 at 09:19:04PM +0300, Oskari Lemmela wrote:
> AXP803 is compatible with AXP813. Add DT nodes ADC, GPIO,
> AC and battery power supplies.
>
Reviewed-by: Quentin Schulz
Thanks,
Quentin
signature.asc
Description: PGP signature
Hi Oskari,
On Mon, Oct 08, 2018 at 09:19:05PM +0300, Oskari Lemmela wrote:
> Sopine baseboard have ACIN and battery connectors.
>
Reviewed-by: Quentin Schulz
Thanks,
Quentin
signature.asc
Description: PGP signature
Hi Oskari,
On Mon, Oct 08, 2018 at 09:19:07PM +0300, Oskari Lemmela wrote:
> As axp20x-ac-power-supply now supports AXP813, add a cell for it.
>
Reviewed-by: Quentin Schulz
Thanks,
Quentin
signature.asc
Description: PGP signature
Hi Oskari,
On Thu, Oct 04, 2018 at 10:34:10PM +0300, Oskari Lemmela wrote:
> AXP803 PMIC is register compatible with AXP813.
>
> Added support for AXP803/AXP813 AC power supply.
> AXP8x3 is capable to limit input current and minimum input voltage.
> Both of these register values are writeable.
>
Hi Oskari,
On Sun, Oct 07, 2018 at 12:18:30AM +0300, Oskari Lemmela wrote:
> AXP813 AC power supply support with input current and
> voltage limiting support.
>
> AXP803 AC and battery power supply support.
>
Great to see a new developer taking interest in those PMICs :)
I received the v2 patc
Hi Oskari,
On Sun, Oct 07, 2018 at 12:18:32AM +0300, Oskari Lemmela wrote:
> Add AC power supply subnode for AXP81X PMIC.
>
> Signed-off-by: Oskari Lemmela
> ---
> arch/arm/boot/dts/axp81x.dtsi | 5 +
> 1 file changed, 5 insertions(+)
>
> diff --git a/arch/arm/boot/dts/axp81x.dtsi b/arch/a
Hi Oskari,
On Sun, Oct 07, 2018 at 12:18:33AM +0300, Oskari Lemmela wrote:
> AXP803 is compatible with AXP813. Add DT nodes ADC, GPIO,
> AC and battery power supplies.
>
> Signed-off-by: Oskari Lemmela
> ---
> arch/arm64/boot/dts/allwinner/axp803.dtsi | 31 +++
> 1 file chan
Hi Oskari,
On Sun, Oct 07, 2018 at 12:18:35AM +0300, Oskari Lemmela wrote:
> AXP803 is compatible with AXP813.
> Adding needed cells for AC and battery power supplies.
>
> AXP813 AC power supply cell added.
>
> Signed-off-by: Oskari Lemmela
> ---
> drivers/mfd/axp20x.c | 22 +
power_supply_property psp,
> + const union power_supply_propval *val)
> +{
Argh, missed this one in the first version. Since you're introducing it
with the AXP813 and it isn't used with the AXP20X, I'd name it
axp813_ac_power_set_property. I'll let Maxime or Chen-Yu confirm though.
With the modification in the header from the previous patch in this
patch,
Reviewed-by: Quentin Schulz
Thanks!
Quentin
signature.asc
Description: PGP signature
EEE in order to improve performance.
Reviewed-by: Florian Fainelli
Signed-off-by: Raju Lakkaraju
Signed-off-by: Quentin Schulz
---
drivers/net/phy/mscc.c | 65 ++
1 file changed, 65 insertions(+)
diff --git a/drivers/net/phy/mscc.c b/drivers/net/phy
iewed-by: Andrew Lunn
Signed-off-by: Raju Lakkaraju
Signed-off-by: Quentin Schulz
---
drivers/net/phy/mscc.c | 119 +
1 file changed, 119 insertions(+)
diff --git a/drivers/net/phy/mscc.c b/drivers/net/phy/mscc.c
index 52198be46c68..47fbab489287 100644
Hi Baolin,
On Thu, Nov 01, 2018 at 03:22:18PM +0800, Baolin Wang wrote:
> Hi Quentin,
>
> On 29 October 2018 at 22:48, Quentin Schulz
> wrote:
[...]
> >
> >> + return len;
> >> + } else if (len > POWER_SUPPLY_OCV_TEMP_MAX) {
> >
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 04a0d91
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
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(
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
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 (6):
mfd: axp20x: make AXP20
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
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
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
---
arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 9 +
1 file changed, 9 insertions(+)
diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs
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
---
arch/arm
shuts 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
on a per-board basis though.
Signed-off-by: Quentin Schulz
---
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 016d22f..05d5dd7 100644
--- a/arc
Since HSIO address space can be used by different drivers (PLL, SerDes
muxing, temperature sensor), let's move it somewhere it can be included
by all drivers.
Acked-by: Alexandre Belloni
Signed-off-by: Quentin Schulz
---
drivers/net/ethernet/mscc/ocelot.h | 1 +-
drivers/net/eth
Here, the rc variable is either used only for the condition right after
the assignment or right before being used as the return value of the
function it's being used in.
So let's remove this unneeded temporary variable whenever possible.
Signed-off-by: Quentin Schulz
---
drivers/net/
`if (x != 0)` is basically a more verbose version of `if (x)` so let's
use the latter so it's consistent throughout the whole driver.
Signed-off-by: Quentin Schulz
---
drivers/net/phy/mscc.c | 30 +++---
1 file changed, 15 insertions(+), 15 deletions(-)
di
Hi David,
On Tue, Sep 04, 2018 at 10:48:27AM -0700, David Miller wrote:
> From: Quentin Schulz
> Date: Mon, 3 Sep 2018 10:48:47 +0200
>
> > LEDs modes are set the same way, except they are offset by 4 times the
> > index of the LED.
> >
> > Let's factori
Hi Andrew,
On Fri, Sep 14, 2018 at 07:02:21PM +0200, Andrew Lunn wrote:
> On Fri, Sep 14, 2018 at 06:26:38PM +0200, Quentin Schulz wrote:
> > Hi Alexandre,
> >
> > On Fri, Sep 14, 2018 at 04:54:46PM +0200, Alexandre Belloni wrote:
> > > Hi,
> > >
>
Hi Andrew,
On Fri, Sep 14, 2018 at 07:27:54PM +0200, Andrew Lunn wrote:
>
> > struct vsc8531_private {
> > int rate_magic;
> > u16 supp_led_modes;
> > @@ -181,6 +354,7 @@ struct vsc8531_private {
> > struct vsc85xx_hw_stat *hw_stats;
> > u64 *stats;
> > int nstats;
> > + bo
driver,
- use a dev_dbg for the deferring of the probe in the SerDes driver,
- use constants in the Device Tree to select the SerDes macro in use with
a port,
- adapt the SerDes driver to use those constants,
- add a header file in include/dt-bindings for the constants,
- fix space/tab i
ff-by: Quentin Schulz
---
drivers/net/ethernet/mscc/ocelot.h | 73
drivers/net/ethernet/mscc/ocelot_regs.c | 92 +++--
include/soc/mscc/ocelot_hsio.h | 74
3 files changed, 83 insertions(+), 156 deletions(-)
diff --git a/driver
The Microsemi Ocelot can mux SerDes lanes (aka macros) to different
switch ports or even make it act as a PCIe interface.
This adds support for the muxing of the SerDes.
Signed-off-by: Quentin Schulz
---
drivers/phy/Kconfig | 1 +
drivers/phy/Makefile | 1
Hi Richard,
On Fri, Apr 20, 2018 at 11:37:07AM +0200, Richard Weinberger wrote:
> Quentin,
>
> Am Freitag, 20. April 2018, 10:52:41 CEST schrieb Quentin Schulz:
> > There's already ECC on NAND pages so there may be no need for one to
> > check the CRC of a UBI volume.
Hi Boris,
On Fri, Apr 20, 2018 at 07:19:24PM +0200, Boris Brezillon wrote:
> On Fri, 20 Apr 2018 10:52:41 +0200
> Quentin Schulz wrote:
>
> > There's already ECC on NAND pages so there may be no need for one to
> > check the CRC of a UBI volume.
>
> That
onstants to ubi.h so that they can be used to parse
other parameters impacting UBI volumes.
Signed-off-by: Quentin Schulz
---
drivers/mtd/ubi/block.c | 33 +
drivers/mtd/ubi/ubi.h | 15 +++
2 files changed, 24 insertions(+), 24 deletions(-)
diff --g
. I gained 3.2s on boot time of a SPEAr600-based board
for a ~20MB UBI volume used as rootfs.
Signed-off-by: Quentin Schulz
---
drivers/mtd/ubi/kapi.c | 70 +++-
drivers/mtd/ubi/ubi.h | 6 -
drivers/mtd/ubi/vtbl.c | 24 ++-
3 files c
Hi Richard,
On Fri, Apr 20, 2018 at 11:37:07AM +0200, Richard Weinberger wrote:
> Quentin,
>
> Am Freitag, 20. April 2018, 10:52:41 CEST schrieb Quentin Schulz:
> > There's already ECC on NAND pages so there may be no need for one to
> > check the CRC of a UBI volume.
/AXP209_Datasheet_v1.0en.pdf
Quentin Schulz (2):
gpio: axp209: use correct register for GPIO input status
gpio: axp209: add pinctrl support
.../devicetree/bindings/gpio/gpio-axp209.txt | 28 +-
drivers/gpio/gpio-axp209.c | 557 ++---
2 files changed
The GPIO input status was read from control register
(AXP20X_GPIO[210]_CTRL) instead of status register (AXP20X_GPIO20_SS).
Signed-off-by: Quentin Schulz
---
drivers/gpio/gpio-axp209.c | 8 ++--
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/drivers/gpio/gpio-axp209.c b
.
[1] see registers 90H, 92H and 93H at
http://dl.linux-sunxi.org/AXP/AXP209_Datasheet_v1.0en.pdf
Signed-off-by: Quentin Schulz
---
.../devicetree/bindings/gpio/gpio-axp209.txt | 28 +-
drivers/gpio/gpio-axp209.c | 551 ++---
2 files changed, 503
.
[1] see registers 90H, 92H and 93H at
http://dl.linux-sunxi.org/AXP/AXP209_Datasheet_v1.0en.pdf
Signed-off-by: Quentin Schulz
---
.../devicetree/bindings/gpio/gpio-axp209.txt | 28 +-
drivers/gpio/gpio-axp209.c | 551 ++---
2 files changed, 503
The GPIO input status was read from control register
(AXP20X_GPIO[210]_CTRL) instead of status register (AXP20X_GPIO20_SS).
Signed-off-by: Quentin Schulz
---
drivers/gpio/gpio-axp209.c | 8 ++--
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/drivers/gpio/gpio-axp209.c b
/AXP209_Datasheet_v1.0en.pdf
Quentin Schulz (2):
gpio: axp209: use correct register for GPIO input status
gpio: axp209: add pinctrl support
.../devicetree/bindings/gpio/gpio-axp209.txt | 28 +-
drivers/gpio/gpio-axp209.c | 557 ++---
2 files changed
On 05/01/2017 06:51, Chen-Yu Tsai wrote:
> On Tue, Jan 3, 2017 at 12:37 AM, Quentin Schulz
> wrote:
>> X-Powers AXP209 PMIC has multiple ADCs, each one exposing data from the
>> different power supplies connected to the PMIC.
>>
>> This adds the ADC subnode for AX
On 05/01/2017 07:10, Chen-Yu Tsai wrote:
> On Tue, Jan 3, 2017 at 12:37 AM, Quentin Schulz
> wrote:
>> The CHR_CTRL1 register is made of 7 read-write bits with one being used
>> to set the target voltage for battery charging.
>
> The description is incorrect.
>
Hi Chen-Yu,
On 05/01/2017 06:42, Chen-Yu Tsai wrote:
> On Tue, Jan 3, 2017 at 12:37 AM, Quentin Schulz
> wrote:
[...]
>> +
>> +#define AXP20X_ADC_RATE_MASK (3 << 6)
>> +#define AXP20X_ADC_RATE_25HZ (0 <<
On 05/01/2017 09:27, Chen-Yu Tsai wrote:
> On Thu, Jan 5, 2017 at 4:06 PM, Quentin Schulz
> wrote:
>> Hi Chen-Yu,
>>
>> On 05/01/2017 06:42, Chen-Yu Tsai wrote:
>>> On Tue, Jan 3, 2017 at 12:37 AM, Quentin Schulz
>>> wrote:
>> [...]
>>>&g
Hi,
On 06/01/2017 04:39, Chen-Yu Tsai wrote:
> Hi,
>
> On Tue, Jan 3, 2017 at 12:37 AM, Quentin Schulz
> wrote:
[...]
>> + case POWER_SUPPLY_PROP_CURRENT_MAX:
>> + ret = regmap_read(axp20x_batt->regmap, AXP20X_CHRG_CTRL1,
>&g
Hi Jonathan,
On 08/01/2017 12:17, Jonathan Cameron wrote:
> On 30/12/16 14:40, Jonathan Cameron wrote:
>> On 13/12/16 14:33, Quentin Schulz wrote:
>>> The Allwinner SoCs all have an ADC that can also act as a touchscreen
>>> controller and a thermal sensor. This patch a
Hi,
On 29/01/2017 17:47, Sebastian Reichel wrote:
> Hi,
>
> On Fri, Jan 27, 2017 at 09:54:49AM +0100, Quentin Schulz wrote:
>> - added x-powers,constant-charge-current property to set the
>> maximal default constant current charge of the battery,
>
> Since th
Hi Sebastian,
On 17/01/2017 04:00, Sebastian Reichel wrote:
> Hi Quentin,
>
> The driver looks mostly fine. I do have a two comments, though.
>
> On Mon, Jan 02, 2017 at 05:37:08PM +0100, Quentin Schulz wrote:
>> [...]
>>
>> +static int axp20x_ac_power_p
Hi Jonathan,
On 07/01/2017 20:31, Jonathan Cameron wrote:
> On 02/01/17 11:37, Quentin Schulz wrote:
[...]
>> +/*
>> + * IIO framework gives mV but Power Supply framework gives µV.
>> + */
> single line comment syntax throughout or we
Hi Jonathan,
On 07/01/2017 20:33, Jonathan Cameron wrote:
> On 04/01/17 08:21, Rob Herring wrote:
>> On Mon, Jan 02, 2017 at 05:37:14PM +0100, Quentin Schulz wrote:
>>> The X-Powers AXP20X and AXP22X PMICs can have a battery as power supply.
>>>
>>> This pat
registers to the
list of writeable registers for AXP20X and AXP22X PMICs.
Signed-off-by: Quentin Schulz
Acked-for-MFD-by: Lee Jones
---
v2:
- added AXP20X_CHRG_CTRL2 and AXP20X_CHRG_CTRL3 to the writeable
registers table,
- removed added reg range for ADC data in volatile regs range,
drivers/mfd
The registers 0x56 and 0x57 of AXP22X PMIC store the value of the
internal temperature of the PMIC.
This patch modifies the name of these registers from AXP22X_PMIC_ADC_H/L
to AXP22X_PMIC_TEMP_H/L so their purpose is clearer.
Signed-off-by: Quentin Schulz
---
added in v2
drivers/mfd/axp20x.c
The Sinlinx SinA33 has an AXP223 PMIC and an ACIN connector, thus, we
enable the ACIN power supply in its Device Tree.
Signed-off-by: Quentin Schulz
---
arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dts | 4
1 file changed, 4 insertions(+)
diff --git a/arch/arm/boot/dts/sun8i-a33-sinlinx
X-Powers AXP22X PMIC has multiple ADCs, each one exposing data from the
different power supplies connected to the PMIC.
This adds the ADC subnode for AXP22X PMIC.
Signed-off-by: Quentin Schulz
---
v2:
- removed #io-channels property (the IIO channels mapping is done by
using iio_map
X-Powers AXP209 PMIC has multiple ADCs, each one exposing data from the
different power supplies connected to the PMIC.
This adds the ADC subnode for AXP20X PMIC.
Signed-off-by: Quentin Schulz
---
v2:
- removed #io-channels property (the IIO channels mapping is done by
using iio_map
The X-Powers AXP22X PMIC exposes the status of AC power supply.
This adds the AC power supply subnode for the AXP22X PMIC.
Signed-off-by: Quentin Schulz
---
v2:
- changed DT node name from ac_power_supply to ac-power-supply,
- removed io-channels and io-channel-names from DT (the IIO mapping
The X-Powers AXP20X and AXP22X PMICs have an AC entry to supply power to
the board. They have a few registers dedicated to the status of the AC
power supply.
This adds the DT binding documentation for the AC power supply for
AXP20X and AXP22X PMICs.
Signed-off-by: Quentin Schulz
---
v2
The X-Powers AXP20X and AXP22X PMICs expose the status of AC power
supply.
This adds the AC power supply driver to the MFD cells of the AXP22X
PMICs.
Signed-off-by: Quentin Schulz
Acked-for-MFD-by: Lee Jones
---
drivers/mfd/axp20x.c | 10 ++
1 file changed, 10 insertions(+)
diff
The X-Powers AXP20X PMIC exposes the status of AC power supply, the
current current and voltage supplied to the board by the AC power
supply.
This adds the AC power supply subnode for AXP20X PMIC.
Signed-off-by: Quentin Schulz
---
v2:
- changed DT node name from ac_power_supply to ac-power
This adds the AXP20X/AXP22x ADCs 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
---
drivers/mfd/axp20x.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/drivers/mfd/axp20x.c b/drivers
This maps the IIO channels acin_i and acin_v (respectively exposing the
current current and voltage measures of the AC power supply) to the AC
power supply driver.
Only the AXP20X PMICs have these ADC channels and thus they are only
mapped for this version of the PMIC.
Signed-off-by: Quentin
: Quentin Schulz
Acked-by: Jonathan Cameron
---
v2:
- replaced µ character by a common u for micro units to make checkpatch
happy,
- use of structure for specific data instead of an ID and if
condiftions,
- use dev_get_regmap instead of manually looking for it in the parent
drvdata,
drivers
AXP22X PMICs ADCs.
Signed-off-by: Quentin Schulz
Acked-by: Rob Herring
Acked-by: Chen-Yu Tsai
Acked-by: Maxime Ripard
---
v2:
- removing io-channels from required properties,
- update AXP ADC DT node name from axp209_adc to simply adc,
.../devicetree/bindings/iio/adc/axp20x_adc.txt | 22
.
voltage and current of the battery have the same index in different
IIO types),
- Added structures for specific data instead of matching on IDs,
- Switched from DT IIO channels mapping to iio_map structures IIO
channels mapping,
Quentin
Quentin Schulz (25):
dt-bindings: iio: adc: add AXP
compiled,
this driver will fall back on previous behaviour which is direct
register readings.
Signed-off-by: Quentin Schulz
---
added in v2
drivers/power/supply/axp20x_usb_power.c | 70 +++--
1 file changed, 66 insertions(+), 4 deletions(-)
diff --git a/drivers/power
c
@@ -0,0 +1,572 @@
+/* ADC driver for AXP20X and AXP22X PMICs
+ *
+ * Copyright (c) 2016 Free Electrons NextThing Co.
+ * Quentin Schulz
+ *
+ * This program is free software; you can redistribute it and/or modify it
under
+ * the terms of the GNU General Public License version 2 as publish
capacity (in percentage), voltage max and min limits, current
voltage and battery capacity (in Ah).
Signed-off-by: Quentin Schulz
---
v2:
- changed DT node name from ac_power_supply to ac-power-supply,
- removed io-channels and io-channel-names from DT (the IIO mapping is
done in the IIO ADC
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
---
drivers/mfd/axp20x.c | 9 +
1 file changed, 9
subnode for AXP22X PMIC.
Signed-off-by: Quentin Schulz
---
v2:
- changed DT node name from battery_power_supply to
battery-power-supply,
- removed io-channels and io-channel-names from DT (the IIO mapping is
done in the IIO ADC driver now),
arch/arm/boot/dts/axp22x.dtsi | 5 +
1 file
This maps the IIO channels batt_v, batt_chrg_i and batt_dischrg_i
(respectively exposing the current charging and discharging currents and
current voltage measures of the battery power supply) to the battery
power supply driver.
Signed-off-by: Quentin Schulz
---
added in v2
drivers/iio/adc
The NextThing Co. CHIP has an AXP209 PMIC with battery connector.
This enables the battery power supply subnode.
Signed-off-by: Quentin Schulz
---
arch/arm/boot/dts/sun5i-r8-chip.dts | 4
1 file changed, 4 insertions(+)
diff --git a/arch/arm/boot/dts/sun5i-r8-chip.dts
b/arch/arm/boot
The V_OFF register has its first 3 read-write bits for the minimal
voltage (Voff) of the battery before the system is automatically shut
down due to the power being too low.
This adds V_OFF register to the writeable registers of AXP20X and AXP22X
PMICs.
Signed-off-by: Quentin Schulz
Acked-for
supply subnode for AXP20X PMIC.
Signed-off-by: Quentin Schulz
---
v2:
- changed DT node name from battery_power_supply to
battery-power-supply,
- removed io-channels and io-channel-names from DT (the IIO mapping is
done in the IIO ADC driver now),
arch/arm/boot/dts/axp209.dtsi | 5 +
1
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
---
arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dts | 4
1 file changed, 4 insertions(+)
diff --git a/arch/arm/boot/dts/sun8i
The NextThing Co. CHIP has an AXP209 PMIC and can be power-supplied by
ACIN via the CHG-IN pin.
This enables the ACIN power supply subnode in the DT.
Signed-off-by: Quentin Schulz
---
arch/arm/boot/dts/sun5i-r8-chip.dts | 4
1 file changed, 4 insertions(+)
diff --git a/arch/arm/boot/dts
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
---
v2:
- changed BIT(x) to 1 << x when describing bits purpose for which 2 <<
x or 3 << x exists
101 - 200 of 655 matches
Mail list logo