The X-Powers AXP813 PMIC has got some slight differences from
AXP20X/AXP22X PMICs:
- the maximum voltage supplied by the PMIC is 4.35 instead of 4.36/4.24
for AXP20X/AXP22X,
- the constant charge current formula is different,
It also has a bit to tell whether the battery percentage returned by
!!'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
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
The AXP813 PMIC is relatively close to the already supported AXP20X and
AXP22X. It provides three different power outputs: battery, AC and USB, and
measures a few different things: temperature, power supply status, current
current and voltage supplied, maximum current limit, battery capacity, min
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
We used to use IDs to select a function or a feature depending on the
variant. It's easier to maintain the code by adding data structure
storing the few differences between variants so that we don't add a pile
of if conditions.
Let's use this data structure and update the code to use it.
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
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
The X-Powers AXP81X PMIC exposes battery supply various data such as
the battery status (charging, discharging, full, dead), current max
limit, current current, battery capacity (in percentage), voltage max
and min limits, current voltage, and battery capacity (in Ah).
This adds the battery power
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
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
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
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
---
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
On Wed, 2018-02-14 at 21:08 +0100, Jernej Skrabec wrote:
> dw_hdmi shouldn't set drvdata since some drivers might need to store
> it's own data there. Rework dw_hdmi in a way to return struct dw_hdmi
> instead to store it in drvdata. This way drivers are responsible to
> store and pass structure
15 matches
Mail list logo