Re: [PATCH] openrisc: Use do_kernel_power_off()

2024-04-14 Thread Sebastian Reichel
isc to use do_kernel_power_off() instead of the > legacy pm_power_off(). > > Fixes: 14c5678720bd ("power: reset: syscon-poweroff: Use > devm_register_sys_off_handler(POWER_OFF)") > Signed-off-by: Stafford Horne > --- Reviewed-by: Sebastian Reichel -- Sebastian > arch

Re: [PATCH] power: supply: cpcap-battery: fix invalid usage of list cursor

2021-04-20 Thread Sebastian Reichel
[+Cc Tony] Hi, On Wed, Apr 14, 2021 at 02:47:24PM +0800, zhuguangqin...@gmail.com wrote: > From: Guangqing Zhu > > Fix invalid usage of a list_for_each_entry in cpcap_battery_irq_thread(). > When list is empty or if the list is completely traversed (without breaking > from the loop on one of

[PATCH 1/6] ARM: dts: mmp2-brownstone: Fix max8925 vendor prefix

2021-04-12 Thread Sebastian Reichel
Fix typo in max8925 vendor prefix. Cc: Lubomir Rintel Signed-off-by: Sebastian Reichel --- arch/arm/boot/dts/mmp2-brownstone.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/mmp2-brownstone.dts b/arch/arm/boot/dts/mmp2-brownstone.dts index 04f1ae1382e7

[PATCH 4/6] dt-bindings: power: supply: charger-manager: Convert to DT schema format

2021-04-12 Thread Sebastian Reichel
. Signed-off-by: Sebastian Reichel --- .../bindings/power/supply/charger-manager.txt | 91 .../power/supply/charger-manager.yaml | 215 ++ 2 files changed, 215 insertions(+), 91 deletions(-) delete mode 100644 Documentation/devicetree/bindings/power/supply

[PATCH 5/6] dt-bindings: power: mfd: max8925: Convert to DT schema format

2021-04-12 Thread Sebastian Reichel
Convert the binding to DT schema format. The sub-functions of this MFD device do not have their own compatible string and are thus described directly in the MFD binding document after being converted to YAML. Signed-off-by: Sebastian Reichel --- .../leds/backlight/max8925-backlight.txt

[PATCH 0/6] Convert remaining power-supply DT bindings to YAML

2021-04-12 Thread Sebastian Reichel
t;) queued into power-supply's for-next branch for v5.13. The change is not critical, so it can wait for 5.14. Thanks for reviewing it, -- Sebastian Sebastian Reichel (6): ARM: dts: mmp2-brownstone: Fix max8925 vendor prefix ARM: dts: ux500: Fix interrupt cells ARM: dts: ux500: R

[PATCH 2/6] ARM: dts: ux500: Fix interrupt cells

2021-04-12 Thread Sebastian Reichel
Fix interrupt cells in DT AB8500/AB8505 source files. The compiled DTB files will stay the same. Signed-off-by: Sebastian Reichel --- arch/arm/boot/dts/ste-ab8500.dtsi | 26 +- arch/arm/boot/dts/ste-ab8505.dtsi | 22 +++--- 2 files changed, 24 insertions

[PATCH 6/6] dt-bindings: power: mfd: ab8500: Convert to DT schema format

2021-04-12 Thread Sebastian Reichel
Convert the binding to DT schema format. I slightly modified the binding by renaming the gpio node from ab8500-gpio to ab8500-gpiocontroller, since the -gpio suffix is used for gpio consumers. Signed-off-by: Sebastian Reichel --- .../devicetree/bindings/mfd/ab8500.txt| 280

[PATCH 3/6] ARM: dts: ux500: Rename gpio-controller node

2021-04-12 Thread Sebastian Reichel
Rename the AB8500 gpio controller node from ab8500-gpio to ab8500-gpiocontroller, since -gpio is a common suffix for gpio consumers. Signed-off-by: Sebastian Reichel --- arch/arm/boot/dts/ste-ab8500.dtsi | 2 +- arch/arm/boot/dts/ste-ab8505.dtsi | 2 +- arch/arm/boot/dts/ste-href

Re: [PATCHv2 35/38] dt-bindings: power: supply: ab8500: Convert to DT schema format

2021-04-09 Thread Sebastian Reichel
Hi Linus, On Fri, Apr 09, 2021 at 01:28:05AM +0200, Linus Walleij wrote: > On Wed, Mar 17, 2021 at 2:51 PM Sebastian Reichel > wrote: > > > Convert the binding to DT schema format. > > > > Note: The battery node does not have a compatible value and needs > >

Re: [PATCH V2 3/4] dt-bindings: power: reset: qcom-pon: Convert qcom PON binding to yaml

2021-04-09 Thread Sebastian Reichel
Hi, On Fri, Apr 09, 2021 at 01:48:58PM +0530, ska...@codeaurora.org wrote: >> Please do not drop the example :) > > As per my understanding on Rob's comments [1] I have added one complete > example in qcom,pm8941-pwrkey.yaml (see patch 4/4) and dropped it here. > > [1]

Re: [PATCH -next] power: reset: hisi-reboot: add missing MODULE_DEVICE_TABLE

2021-04-09 Thread Sebastian Reichel
Hi, On Fri, Apr 09, 2021 at 10:50:11AM +0800, Chen Lifu wrote: > This patch adds missing MODULE_DEVICE_TABLE definition which generates > correct modalias for automatic loading of this driver when it is built > as an external module. > > Reported-by: Hulk Robot > Signed-off-by: Chen Lifu > ---

Re: [PATCH v2 1/1] kernel.h: Split out panic and oops helpers

2021-04-09 Thread Sebastian Reichel
ers > - elaborated commit message (Luis) > - collected given tags (incl. Andrew's SoB, see below) > > I added Andrew's SoB since part of the fixes I took from him. Andrew, > feel free to amend or tell me how you want me to do. > > [...] > drivers/power/reset/ltc295

Re: [PATCH V2 3/4] dt-bindings: power: reset: qcom-pon: Convert qcom PON binding to yaml

2021-04-08 Thread Sebastian Reichel
Hi, On Thu, Apr 08, 2021 at 05:01:08PM +0530, satya priya wrote: > Convert qcom PON binding from .txt to .yaml format. > > Signed-off-by: satya priya > --- Thanks for doing this. > Changes in V2: > - As per Rob's comments, converted the main PON binding and added in V2. > >

Re: [PATCH] power: supply: Fix missing IRQF_ONESHOT as only threaded handler

2021-04-08 Thread Sebastian Reichel
Hi, On Tue, Apr 06, 2021 at 01:28:29PM +0800, zhuguangqin...@gmail.com wrote: > From: Guangqing Zhu > > Coccinelle noticed: > 1. drivers/power/supply/pm2301_charger.c:1089:7-27: ERROR: Threaded IRQ > with no primary handler requested without IRQF_ONESHOT > 2.

Re: [PATCH -next] power: supply: s3c_adc_battery: fix possible use-after-free in s3c_adc_bat_remove()

2021-04-08 Thread Sebastian Reichel
Hi, On Wed, Apr 07, 2021 at 01:15:11PM +0200, Krzysztof Kozlowski wrote: > On 07/04/2021 11:19, Yang Yingliang wrote: > > This driver's remove path calls cancel_delayed_work(). However, that > > function does not wait until the work function finishes. This means > > that the callback function may

Re: [PATCH -next] power: supply: generic-adc-battery: fix possible use-after-free in gab_remove()

2021-04-08 Thread Sebastian Reichel
Hi, On Wed, Apr 07, 2021 at 05:17:06PM +0800, Yang Yingliang wrote: > This driver's remove path calls cancel_delayed_work(). However, that > function does not wait until the work function finishes. This means > that the callback function may still be running after the driver's > remove function

Re: [PATCH v2 0/2] power: supply: Add battery and AC drivers for Surface devices

2021-04-08 Thread Sebastian Reichel
Hi, On Tue, Apr 06, 2021 at 01:41:24AM +0200, Maximilian Luz wrote: > This series provides battery and AC drivers for Microsoft Surface > devices, where this information is provided via an embedded controller > (the Surface System Aggregator Module, SSAM) instead of the usual ACPI > interface. >

Re: [PATCH v2 12/19] dt-bindings: power: supply: da9150: update da9150-charger.txt reference

2021-04-07 Thread Sebastian Reichel
ocumentation/devicetree/bindings/power/supply/da9150-charger.txt > - da9150-fg: See Documentation/devicetree/bindings/power/da9150-fg.txt This got "renamed" again in -next. Also I do not see the point to update the next line in its own patch. git show --stat 59604ba75633 commit 596

Re: [PATCH v2 07/19] dt-bindings: fix references for iio-bindings.txt

2021-04-07 Thread Sebastian Reichel
Hi, On Wed, Apr 07, 2021 at 10:20:46AM +0200, Mauro Carvalho Chehab wrote: > The iio-bindings.txt was converted into two files and merged > at the dt-schema git tree at: > > https://github.com/devicetree-org/dt-schema > > Yet, some documents still refer to the old file. Fix their >

Re: [RFC] clk: add boot clock support

2021-04-05 Thread Sebastian Reichel
Hi, On Tue, Mar 30, 2021 at 10:05:45AM -0700, Saravana Kannan wrote: > On Tue, Mar 30, 2021 at 2:09 AM Sebastian Reichel > wrote: > > On Mon, Mar 29, 2021 at 05:36:11PM -0700, Saravana Kannan wrote: > > > On Mon, Mar 29, 2021 at 2:53 PM Sebastian Reichel > > >

Re: [PATCHv4] serial: imx: Add DMA buffer configuration via sysfs

2021-04-05 Thread Sebastian Reichel
Hi, On Fri, Mar 05, 2021 at 01:42:52PM +0100, Sebastian Reichel wrote: > On Fri, Mar 05, 2021 at 01:06:12PM +0100, Greg Kroah-Hartman wrote: > > On Fri, Mar 05, 2021 at 12:50:58PM +0100, Sebastian Reichel wrote: > > > From: Fabien Lahoudere > > > > > > In or

Re: [PATCH 1/2] power: supply: Add battery driver for Surface Aggregator Module

2021-04-05 Thread Sebastian Reichel
Hi, On Mon, Apr 05, 2021 at 09:07:55PM +0200, Maximilian Luz wrote: > [...] > > > +static int spwr_battery_recheck_adapter(struct spwr_battery_device *bat) > > > +{ > > > + /* > > > + * Handle battery update quirk: When the battery is fully charged (or > > > + * charged up to the limit imposed

Re: [GIT PULL] Immutable branch between MFD and Power due for the v5.13 merge window

2021-04-05 Thread Sebastian Reichel
Hi, On Tue, Mar 23, 2021 at 10:11:18AM +0100, Linus Walleij wrote: > On Tue, Mar 23, 2021 at 9:57 AM Lee Jones wrote: > > > git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git > > ib-mfd-power-v5.13 > > Thanks so much for fixing this Lee! > > Sebastian: if you decide to pull this in

Re: [PATCH v2 2/2] power: supply: bq25980: Move props from battery node

2021-04-05 Thread Sebastian Reichel
Hi, On Thu, Feb 11, 2021 at 08:38:07AM +0100, Krzysztof Kozlowski wrote: > On Wed, Feb 10, 2021 at 04:56:46PM -0600, Ricardo Rivera-Matos wrote: > > Currently POWER_SUPPLY_PROP_CONSTANT_CHARGE_CURRENT and > > POWER_SUPPLY_PROP_CONSTANT_CHARGE_VOLTAGE are exposed on the battery node > > and this

Re: [PATCH v2 1/2] power: supply: bq25980 Apply datasheet revision changes

2021-04-05 Thread Sebastian Reichel
Hi, On Thu, Feb 11, 2021 at 08:36:03AM +0100, Krzysztof Kozlowski wrote: > On Wed, Feb 10, 2021 at 04:56:45PM -0600, Ricardo Rivera-Matos wrote: > > The latest datasheet revision for BQ25980, BQ25975, and BQ25960 changed > > > > various register step sizes and offset values. > > > > This patch

Re: [PATCH 2/2] power: supply: Add AC driver for Surface Aggregator Module

2021-04-05 Thread Sebastian Reichel
Hi, On Tue, Mar 09, 2021 at 01:05:30AM +0100, Maximilian Luz wrote: > On newer Microsoft Surface models (specifically 7th-generation, i.e. > Surface Pro 7, Surface Book 3, Surface Laptop 3, and Surface Laptop Go), > battery and AC status/information is no longer handled via standard ACPI >

Re: [PATCH 1/2] power: supply: Add battery driver for Surface Aggregator Module

2021-04-05 Thread Sebastian Reichel
Hi, On Tue, Mar 09, 2021 at 01:05:29AM +0100, Maximilian Luz wrote: > On newer Microsoft Surface models (specifically 7th-generation, i.e. > Surface Pro 7, Surface Book 3, Surface Laptop 3, and Surface Laptop Go), > battery and AC status/information is no longer handled via standard ACPI >

Re: [PATCH 1/3] MAINTAINERS: power: supply: add entry for S3C ADC battery driver

2021-04-05 Thread Sebastian Reichel
e old with only few > users currently and Krzysztof does not have the actual hardware, let's > mark the driver as "Odd fixes". > > Cc: Sebastian Reichel > Signed-off-by: Krzysztof Kozlowski > --- Thanks, much appreciated. I queued this series some time ago, but forgo

Re: [PATCH] power: supply: Use true and false for bool variable

2021-04-05 Thread Sebastian Reichel
Hi, On Tue, Feb 09, 2021 at 05:58:43PM +0800, Jiapeng Chong wrote: > Fix the following coccicheck warning: > > ./include/linux/power_supply.h:507:9-10: WARNING: return of 0/1 in > function 'power_supply_is_watt_property' with return type bool. > > ./include/linux/power_supply.h:479:9-10:

Re: [PATCH] Remove the GOLDFISH dependency from BATTERY_GOLDFISH

2021-04-05 Thread Sebastian Reichel
Hi, On Tue, Mar 09, 2021 at 11:22:26AM -0800, Roman Kiryanov wrote: > On Fri, Feb 5, 2021 at 6:31 PM wrote: > > > > From: Roman Kiryanov > > > > This will allow to use the BATTERY_GOLDFISH driver > > without enabling GOLDFISH. > > Hi Sebastian, could you please take a look at my patch? > >

Re: [PATCH v5 0/2] Introduce the BQ25790 charger driver

2021-04-05 Thread Sebastian Reichel
Hi, On Mon, Feb 01, 2021 at 08:17:45PM -0600, Ricardo Rivera-Matos wrote: > This patchset introduces the BQ25790 integrated buck-boost charging IC. Please add changelogs compared to previous version to your cover letters. > Dan Murphy (2): > dt-bindings: power: Add the bq25790 dt bindings >

Re: [PATCH v4 1/2] power: supply: PCHG: Peripheral device charger

2021-04-05 Thread Sebastian Reichel
Hi, On Sat, Jan 23, 2021 at 10:43:23AM -0800, Gwendal Grignou wrote: > On Sat, Jan 23, 2021 at 7:53 AM Daisuke Nojiri wrote: > > > > This patch adds a driver for PCHG (Peripheral CHarGer). PCHG is a > > framework managing power supplies for peripheral devices. > > > > This driver creates a sysfs

Re: [PATCH v2 0/1] charger-supply for max8997_charger

2021-04-02 Thread Sebastian Reichel
Hi, On Mon, Mar 29, 2021 at 02:37:47PM +, Timon Baetz wrote: > Based on the discussion from [0] add an optional DT property to retrieve > the regulator used for charging control in the max8997_charger driver. > > [0] https://lore.kernel.org/lkml/20210118124505.gg4...@sirena.org.uk/ > >

Re: [PATCH v4 2/2] power: supply: mt6360_charger: add MT6360 charger support

2021-04-02 Thread Sebastian Reichel
Hi, On Mon, Jan 18, 2021 at 08:41:43PM +0800, Gene Chen wrote: > From: Gene Chen > > Add basic support for the battery charger for MT6360 PMIC > > Signed-off-by: Gene Chen > --- > drivers/power/supply/Kconfig | 10 + > drivers/power/supply/Makefile | 1 + >

Re: [PATCH v2 1/1] power: reset: at91-reset: use devm_of_iomap

2021-04-02 Thread Sebastian Reichel
Hi, On Fri, Apr 02, 2021 at 01:50:18PM +0300, Claudiu Beznea wrote: > Use devm_of_iomap() to map resources. This will avoid the necessity to > track the mapped resources and free them on failure path or on remove. > > Reported-by: kernel test robot > Reported-by: Dan Carpenter > Suggested-by:

Re: [PATCH 28/32] dt-bindings: power: update battery.yaml reference

2021-04-02 Thread Sebastian Reichel
Hi, On Thu, Apr 01, 2021 at 02:17:48PM +0200, Mauro Carvalho Chehab wrote: > Changesets: 70c23e62d20c ("dt-bindings: power: supply: Fix remaining > battery.txt links") > and: 471dec8023d1 ("dt-bindings: power: Convert battery.txt to battery.yaml") > renamed:

Re: [PATCH 12/32] MAINTAINERS: update lego,ev3-battery.yaml reference

2021-04-02 Thread Sebastian Reichel
Hi, On Thu, Apr 01, 2021 at 10:40:32AM -0500, David Lechner wrote: > On 4/1/21 7:17 AM, Mauro Carvalho Chehab wrote: > > Changeset 3004e581d92a ("dt-bindings: power: supply: lego-ev3-battery: > > Convert to DT schema format") > > renamed:

Re: [RFC] clk: add boot clock support

2021-03-30 Thread Sebastian Reichel
Hi, On Mon, Mar 29, 2021 at 05:36:11PM -0700, Saravana Kannan wrote: > On Mon, Mar 29, 2021 at 2:53 PM Sebastian Reichel > wrote: > > On Mon, Mar 29, 2021 at 01:03:20PM -0700, Saravana Kannan wrote: > > > On Fri, Mar 26, 2021 at 2:52 AM Sebastian Reichel > > >

Re: [RFC] clk: add boot clock support

2021-03-29 Thread Sebastian Reichel
Hi, On Mon, Mar 29, 2021 at 01:03:20PM -0700, Saravana Kannan wrote: > On Fri, Mar 26, 2021 at 2:52 AM Sebastian Reichel > wrote: > > On Thu, Mar 25, 2021 at 06:55:52PM -0700, Saravana Kannan wrote: > > > On Thu, Mar 25, 2021 at 6:27 PM Rob Herring wrote: > > > &

Re: [RFC] clk: add boot clock support

2021-03-26 Thread Sebastian Reichel
Hi Saravana, On Thu, Mar 25, 2021 at 06:55:52PM -0700, Saravana Kannan wrote: > On Thu, Mar 25, 2021 at 6:27 PM Rob Herring wrote: > > > > +Saravana > > > > On Thu, Mar 18, 2021 at 10:03:18PM +0100, Sebastian Reichel wrote: > > > On Congatec's QMX6 system on

Re: [PATCH 2/2] power: supply: axp20x_usb_power: fix work-queue init

2021-03-24 Thread Sebastian Reichel
managed > work init") > > Signed-off-by: Matti Vaittinen > Reported-by: Chen-Yu Tsai > --- Acked-by: Sebastian Reichel Needs to be merged by Greg, since I do not have 6d0c5de2fd84 in my tree. -- Sebastian > drivers/power/supply/axp20x_usb_power.c | 10 +- > 1

Re: [PATCHv2 01/38] ARM: dts: motorola-cpcap-mapphone: Prepare for dtbs_check parsing

2021-03-23 Thread Sebastian Reichel
Hi Tony, On Wed, Mar 17, 2021 at 04:29:19PM +0200, Tony Lindgren wrote: > * Sebastian Reichel [210317 13:50]: > > '< parameters parameters>' and '< parameters>, > > < parameters>' result in the same DTB, but second format has > > better source code readab

Re: [PATCH v2] drm/omap: dsi: Add missing IRQF_ONESHOT

2021-03-23 Thread Sebastian Reichel
i > --- Reviewed-by: Sebastian Reichel Also maybe add this, so that it is properly backported. OTOH old code did not have IRQF_ONESHOT either. Fixes: 4c1b935fea54 ("drm/omap: dsi: move TE GPIO handling into core") -- Sebastian > Change in v2: > -Modify the fourth parameter

Re: [PATCHv2 00/38] Convert power-supply DT bindings to YAML

2021-03-22 Thread Sebastian Reichel
Hi, On Mon, Mar 22, 2021 at 10:25:49AM -0600, Rob Herring wrote: > On Wed, Mar 17, 2021 at 7:49 AM Sebastian Reichel wrote: > > Sebastian Reichel (38): > > ARM: dts: motorola-cpcap-mapphone: Prepare for dtbs_check parsing > > dt-bindings: power: supply: cpcap-battery:

Re: [PATCH] Rectify spelling

2021-03-22 Thread Sebastian Reichel
Hi, On Thu, Mar 11, 2021 at 07:57:35PM +0800, Xiaofeng Cao wrote: > Change 'stanalone' to 'standalone' > Change 'mesaurement'to 'measurement' > Change 'nonvilatile'to 'nonvolatile' > Change 'unical' to 'unique' > Change 'unaccesable'to 'unaccessible' > Change

Re: [PATCH] power-supply: use kobj_to_dev()

2021-03-22 Thread Sebastian Reichel
Hi, On Tue, Mar 16, 2021 at 02:54:12PM +0800, Jian Dong wrote: > From: dongjian > > Use kobj_to_dev() instead of open-coding it > > Signed-off-by: dongjian > --- Thanks, queued. -- Sebastian > drivers/power/supply/ds2781_battery.c | 8 > 1 file changed, 4 insertions(+), 4

Re: [PATCH] power: supply: charger-manager: Fix a typo

2021-03-22 Thread Sebastian Reichel
Hi, On Fri, Mar 19, 2021 at 11:11:47AM -0700, Randy Dunlap wrote: > On Fri, 19 Mar 2021, Bhaskar Chowdhury wrote: > > > s/systme/system/ > > > > Signed-off-by: Bhaskar Chowdhury > > Acked-by: Randy Dunlap Thanks, queued. -- Sebastian > > --- > > drivers/power/supply/charger-manager.c | 2

Re: [PATCH V7 0/2] power: supply: bq27xxx: Add support for BQ78Z100

2021-03-22 Thread Sebastian Reichel
Hi, On Fri, Mar 19, 2021 at 11:02:34AM +, LI Qingwu wrote: > Changes in V7: > > AddPOWER_SUPPLY_CHARGE_NOW > Remove POWER_SUPPLY_PROP_ENERGY_NOW > Refresh result of dump uevent > > > LI Qingwu (2): > dt-bindings: power: bq27xxx: add bq78z100 > power: supply: bq27xxx: Add support

Re: [PATCH] power-supply: Use IRQF_ONESHOT

2021-03-22 Thread Sebastian Reichel
Hi, On Mon, Mar 22, 2021 at 07:21:33PM +0800, Jian Dong wrote: > From: dongjian > > Fixes coccicheck error: > > drivers/power/supply/pm2301_charger.c:1089:7-27: ERROR: > drivers/power/supply/lp8788-charger.c:502:8-28: ERROR: > drivers/power/supply/tps65217_charger.c:239:8-33: ERROR: >

Re: [PATCH V6 2/2] power: supply: bq27xxx: Add support for BQ78Z100

2021-03-19 Thread Sebastian Reichel
Hi, On Fri, Mar 19, 2021 at 10:16:51AM +, LI Qingwu wrote: > About 4mA current, it's not the expected current, since we are > working remotely, the instrument was unattended. With the real > current, the battery will be empty in a working day, so we just > connect a dummy load for test for a

[RFC] clk: add boot clock support

2021-03-18 Thread Sebastian Reichel
this. You can find all the details about the hardware in the following patchset: https://lore.kernel.org/linux-devicetree/20210222171247.97609-1-sebastian.reic...@collabora.com/ Signed-off-by: Sebastian Reichel --- .../bindings/clock/clock-bindings.txt | 7 + drivers/clk/clk.c

[PATCHv2 30/38] dt-bindings: power: supply: lp8727: Convert to DT schema format

2021-03-17 Thread Sebastian Reichel
Convert the binding to DT schema format. Signed-off-by: Sebastian Reichel --- .../bindings/power/supply/lp8727_charger.txt | 43 - .../bindings/power/supply/ti,lp8727.yaml | 90 +++ 2 files changed, 90 insertions(+), 43 deletions(-) delete mode 100644

[PATCHv2 31/38] dt-bindings: power: supply: lt3651: Convert to DT schema format

2021-03-17 Thread Sebastian Reichel
Convert the binding to DT schema format. Signed-off-by: Sebastian Reichel --- .../power/supply/lltc,lt3651-charger.yaml | 44 +++ .../bindings/power/supply/lt3651-charger.txt | 29 2 files changed, 44 insertions(+), 29 deletions(-) create mode 100644

[PATCHv2 29/38] dt-bindings: power: supply: da9150: Convert to DT schema format

2021-03-17 Thread Sebastian Reichel
Convert the binding to DT schema format. Signed-off-by: Sebastian Reichel --- .../bindings/power/supply/da9150-charger.txt | 26 -- .../bindings/power/supply/da9150-fg.txt | 23 .../power/supply/dlg,da9150-charger.yaml | 52 +++ .../power/supply/dlg

[PATCHv2 27/38] dt-bindings: power: supply: act8945a: Convert to DT schema format

2021-03-17 Thread Sebastian Reichel
Convert the binding to DT schema format. Signed-off-by: Sebastian Reichel --- .../power/supply/act8945a-charger.txt | 44 --- .../supply/active-semi,act8945a-charger.yaml | 76 +++ 2 files changed, 76 insertions(+), 44 deletions(-) delete mode 100644

[PATCHv2 28/38] dt-bindings: power: supply: axp20x: Convert to DT schema format

2021-03-17 Thread Sebastian Reichel
Convert the binding to DT schema format. Cc: Chen-Yu Tsai Signed-off-by: Sebastian Reichel --- .../bindings/power/supply/axp20x_ac_power.txt | 25 --- .../bindings/power/supply/axp20x_battery.txt | 20 - .../power/supply/axp20x_usb_power.txt | 41

[PATCHv2 24/38] dt-bindings: power: supply: ucs1002: Convert to DT schema format

2021-03-17 Thread Sebastian Reichel
Convert the binding to DT schema format. Signed-off-by: Sebastian Reichel --- .../power/supply/microchip,ucs1002.txt| 27 -- .../power/supply/microchip,ucs1002.yaml | 51 +++ 2 files changed, 51 insertions(+), 27 deletions(-) delete mode 100644

[PATCHv2 32/38] dt-bindings: power: supply: ltc294x: Convert to DT schema format

2021-03-17 Thread Sebastian Reichel
Convert the binding to DT schema format. Signed-off-by: Sebastian Reichel --- .../bindings/power/supply/lltc,ltc294x.yaml | 66 +++ .../bindings/power/supply/ltc2941.txt | 28 2 files changed, 66 insertions(+), 28 deletions(-) create mode 100644

[PATCHv2 25/38] dt-bindings: power: supply: pm8941-charger: Convert to DT schema format

2021-03-17 Thread Sebastian Reichel
Convert the binding to DT schema format. Signed-off-by: Sebastian Reichel --- .../power/supply/qcom,pm8941-charger.yaml | 169 ++ .../bindings/power/supply/qcom_smbb.txt | 150 2 files changed, 169 insertions(+), 150 deletions(-) create mode 100644

[PATCHv2 33/38] dt-bindings: power: supply: rt9455: Convert to DT schema format

2021-03-17 Thread Sebastian Reichel
Convert the binding to DT schema format. Signed-off-by: Sebastian Reichel --- .../bindings/power/supply/richtek,rt9455.yaml | 90 +++ .../bindings/power/supply/rt9455_charger.txt | 46 -- 2 files changed, 90 insertions(+), 46 deletions(-) create mode 100644

[PATCHv2 26/38] dt-bindings: power: supply: pm8941-coincell: Convert to DT schema format

2021-03-17 Thread Sebastian Reichel
Convert the binding to DT schema format. Signed-off-by: Sebastian Reichel --- .../power/supply/qcom,coincell-charger.txt| 48 .../power/supply/qcom,pm8941-coincell.yaml| 57 +++ 2 files changed, 57 insertions(+), 48 deletions(-) delete mode 100644

[PATCHv2 36/38] dt-bindings: power: supply: sbs-battery: Fix dtbs_check

2021-03-17 Thread Sebastian Reichel
perties. Signed-off-by: Sebastian Reichel --- .../devicetree/bindings/power/supply/sbs,sbs-battery.yaml | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/power/supply/sbs,sbs-battery.yaml b/Documentation/devicetree/bindings/

[PATCHv2 20/38] dt-bindings: power: supply: max17040: Convert to DT schema format

2021-03-17 Thread Sebastian Reichel
Convert the binding to DT schema format. Signed-off-by: Sebastian Reichel --- .../power/supply/max17040_battery.txt | 52 -- .../bindings/power/supply/maxim,max17040.yaml | 95 +++ 2 files changed, 95 insertions(+), 52 deletions(-) delete mode 100644

[PATCHv2 37/38] dt-bindings: power: supply: Fix remaining battery.txt links

2021-03-17 Thread Sebastian Reichel
Signed-off-by: Sebastian Reichel --- Documentation/devicetree/bindings/power/supply/battery.txt | 3 --- Documentation/devicetree/bindings/power/supply/bq27xxx.yaml| 2 +- .../devicetree/bindings/power/supply/rohm,bd99954.yaml | 2 +- 3 files changed, 2 insertions(+), 5 deletions

[PATCHv2 34/38] dt-bindings: power: supply: olpc-battery: Convert to DT schema format

2021-03-17 Thread Sebastian Reichel
Convert the binding to DT schema format. Signed-off-by: Sebastian Reichel --- .../bindings/power/supply/olpc-battery.yaml | 27 +++ .../bindings/power/supply/olpc_battery.txt| 5 2 files changed, 27 insertions(+), 5 deletions(-) create mode 100644 Documentation

[PATCHv2 38/38] dt-bindings: power: supply: Drop power_supply.txt

2021-03-17 Thread Sebastian Reichel
The file has been replaced by power-supply.yaml and all links have been updated to the new file. Signed-off-by: Sebastian Reichel --- Documentation/devicetree/bindings/power/supply/power_supply.txt | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 Documentation/devicetree/bindings

[PATCHv2 35/38] dt-bindings: power: supply: ab8500: Convert to DT schema format

2021-03-17 Thread Sebastian Reichel
Convert the binding to DT schema format. Note: The battery node does not have a compatible value and needs to be described from the binding file for the PMIC. That has not yet been converted, so I kept the information in plaintext for now. Signed-off-by: Sebastian Reichel --- .../bindings

[PATCHv2 21/38] dt-bindings: power: supply: max14656: Convert to DT schema format

2021-03-17 Thread Sebastian Reichel
Convert the binding to DT schema format. Signed-off-by: Sebastian Reichel --- .../bindings/power/supply/maxim,max14656.txt | 23 -- .../bindings/power/supply/maxim,max14656.yaml | 45 +++ 2 files changed, 45 insertions(+), 23 deletions(-) delete mode 100644

[PATCHv2 15/38] dt-bindings: power: supply: tps65090: Convert to DT schema format

2021-03-17 Thread Sebastian Reichel
Convert the binding to DT schema format. Signed-off-by: Sebastian Reichel --- .../power/supply/tps65090-charger.yaml| 36 +++ .../bindings/power/supply/tps65090.txt| 17 - 2 files changed, 36 insertions(+), 17 deletions(-) create mode 100644

[PATCHv2 18/38] dt-bindings: power: supply: n900-battery: Convert to DT schema format

2021-03-17 Thread Sebastian Reichel
Convert the binding to DT schema format. Cc: Pali Rohár Signed-off-by: Sebastian Reichel --- .../power/supply/nokia,n900-battery.yaml | 49 +++ .../bindings/power/supply/rx51-battery.txt| 25 -- 2 files changed, 49 insertions(+), 25 deletions(-) create mode

[PATCHv2 12/38] dt-bindings: power: supply: ds2760: Convert to DT schema format

2021-03-17 Thread Sebastian Reichel
Convert the binding to DT schema format. Signed-off-by: Sebastian Reichel --- .../bindings/power/supply/maxim,ds2760.txt| 26 --- .../bindings/power/supply/maxim,ds2760.yaml | 43 +++ 2 files changed, 43 insertions(+), 26 deletions(-) delete mode 100644

[PATCHv2 11/38] dt-bindings: power: supply: sbs-manager: Convert to DT schema format

2021-03-17 Thread Sebastian Reichel
Convert the binding to DT schema format. Signed-off-by: Sebastian Reichel --- .../bindings/power/supply/sbs,sbs-manager.txt | 66 --- .../power/supply/sbs,sbs-manager.yaml | 107 ++ 2 files changed, 107 insertions(+), 66 deletions(-) delete mode 100644

[PATCHv2 23/38] dt-bindings: power: supply: max8903: Convert to DT schema format

2021-03-17 Thread Sebastian Reichel
Convert the binding to DT schema format. Signed-off-by: Sebastian Reichel --- .../bindings/power/supply/max8903-charger.txt | 24 --- .../bindings/power/supply/maxim,max8903.yaml | 67 +++ 2 files changed, 67 insertions(+), 24 deletions(-) delete mode 100644 Documentation

[PATCHv2 22/38] dt-bindings: power: supply: max17042: Convert to DT schema format

2021-03-17 Thread Sebastian Reichel
Convert the binding to DT schema format. Signed-off-by: Sebastian Reichel --- .../power/supply/max17042_battery.txt | 35 - .../bindings/power/supply/maxim,max17042.yaml | 78 +++ 2 files changed, 78 insertions(+), 35 deletions(-) delete mode 100644

[PATCHv2 17/38] dt-bindings: power: supply: twl4030: Convert to DT schema format

2021-03-17 Thread Sebastian Reichel
Convert the binding to DT schema format. Signed-off-by: Sebastian Reichel --- .../bindings/power/supply/twl-charger.txt | 30 .../power/supply/twl4030-charger.yaml | 68 +++ 2 files changed, 68 insertions(+), 30 deletions(-) delete mode 100644

[PATCHv2 13/38] dt-bindings: power: supply: sc27xx-fg: Convert to DT schema format

2021-03-17 Thread Sebastian Reichel
Convert the binding to DT schema format. Signed-off-by: Sebastian Reichel --- .../bindings/power/supply/sc27xx-fg.txt | 59 --- .../bindings/power/supply/sc27xx-fg.yaml | 98 +++ 2 files changed, 98 insertions(+), 59 deletions(-) delete mode 100644

[PATCHv2 08/38] dt-bindings: power: supply: bq24735: Convert to DT schema format

2021-03-17 Thread Sebastian Reichel
Convert the binding to DT schema format. Signed-off-by: Sebastian Reichel --- .../bindings/power/supply/bq24735.yaml| 89 +++ .../bindings/power/supply/ti,bq24735.txt | 39 2 files changed, 89 insertions(+), 39 deletions(-) create mode 100644 Documentation

[PATCHv2 19/38] dt-bindings: power: supply: lego-ev3-battery: Convert to DT schema format

2021-03-17 Thread Sebastian Reichel
Convert the binding to DT schema format. Cc: David Lechner Signed-off-by: Sebastian Reichel --- .../power/supply/lego,ev3-battery.yaml| 55 +++ .../power/supply/lego_ev3_battery.txt | 21 --- 2 files changed, 55 insertions(+), 21 deletions(-) create mode

[PATCHv2 14/38] dt-bindings: power: supply: sc2731-charger: Convert to DT schema format

2021-03-17 Thread Sebastian Reichel
Convert the binding to DT schema format. Signed-off-by: Sebastian Reichel --- .../bindings/power/supply/sc2731-charger.yaml | 53 +++ .../bindings/power/supply/sc2731_charger.txt | 40 -- 2 files changed, 53 insertions(+), 40 deletions(-) create mode 100644

[PATCHv2 16/38] dt-bindings: power: supply: tps65217: Convert to DT schema format

2021-03-17 Thread Sebastian Reichel
Convert the binding to DT schema format. Signed-off-by: Sebastian Reichel --- .../power/supply/tps65217-charger.yaml| 43 +++ .../power/supply/tps65217_charger.txt | 17 2 files changed, 43 insertions(+), 17 deletions(-) create mode 100644

[PATCHv2 05/38] dt-bindings: power: supply: bq24257: Convert to DT schema format

2021-03-17 Thread Sebastian Reichel
Convert the binding to DT schema format. Signed-off-by: Sebastian Reichel --- .../bindings/power/supply/bq24257.txt | 62 - .../bindings/power/supply/bq24257.yaml| 124 ++ 2 files changed, 124 insertions(+), 62 deletions(-) delete mode 100644

[PATCHv2 07/38] dt-bindings: power: supply: bq2415x: Convert to DT schema format

2021-03-17 Thread Sebastian Reichel
Convert the binding to DT schema format. Signed-off-by: Sebastian Reichel --- .../bindings/power/supply/bq2415x.txt | 47 - .../bindings/power/supply/bq2415x.yaml| 98 +++ 2 files changed, 98 insertions(+), 47 deletions(-) delete mode 100644

[PATCHv2 10/38] dt-bindings: power: supply: sbs-charger: Convert to DT schema format

2021-03-17 Thread Sebastian Reichel
Convert the binding to DT schema format. Signed-off-by: Sebastian Reichel --- .../power/supply/sbs,sbs-charger.yaml | 55 +++ .../bindings/power/supply/sbs_sbs-charger.txt | 21 --- 2 files changed, 55 insertions(+), 21 deletions(-) create mode 100644 Documentation

[PATCHv2 09/38] dt-bindings: power: supply: isp1704: Convert to DT schema format

2021-03-17 Thread Sebastian Reichel
Convert the binding to DT schema format. Signed-off-by: Sebastian Reichel --- .../bindings/power/supply/isp1704.txt | 17 .../bindings/power/supply/isp1704.yaml| 42 +++ 2 files changed, 42 insertions(+), 17 deletions(-) delete mode 100644 Documentation

[PATCHv2 03/38] dt-bindings: power: supply: cpcap-charger: Convert to DT schema format

2021-03-17 Thread Sebastian Reichel
Convert the binding to DT schema format. I also added the missing bits used by the only in-tree user and implemented in the driver. Cc: Tony Lindgren Signed-off-by: Sebastian Reichel --- .../bindings/power/supply/cpcap-charger.txt | 40 --- .../bindings/power/supply/cpcap-charger.yaml

[PATCHv2 06/38] dt-bindings: power: supply: bq24190: Convert to DT schema format

2021-03-17 Thread Sebastian Reichel
Convert the binding to DT schema format. Signed-off-by: Sebastian Reichel --- .../bindings/power/supply/bq24190.txt | 61 .../bindings/power/supply/bq24190.yaml| 92 +++ 2 files changed, 92 insertions(+), 61 deletions(-) delete mode 100644

[PATCHv2 02/38] dt-bindings: power: supply: cpcap-battery: Convert to DT schema format

2021-03-17 Thread Sebastian Reichel
Convert the binding to DT schema format. I also added the missing bits used by the only in-tree user and implemented in the driver. Cc: Tony Lindgren Signed-off-by: Sebastian Reichel --- .../bindings/power/supply/cpcap-battery.txt | 31 --- .../bindings/power/supply/cpcap-battery.yaml

[PATCHv2 00/38] Convert power-supply DT bindings to YAML

2021-03-17 Thread Sebastian Reichel
ties Thanks for reviewing it, -- Sebastian Sebastian Reichel (38): ARM: dts: motorola-cpcap-mapphone: Prepare for dtbs_check parsing dt-bindings: power: supply: cpcap-battery: Convert to DT schema format dt-bindings: power: supply: cpcap-charger: Convert to DT schema format dt-bindings: power: supply: bq2

[PATCHv2 01/38] ARM: dts: motorola-cpcap-mapphone: Prepare for dtbs_check parsing

2021-03-17 Thread Sebastian Reichel
ify the devicetree source against a DT schema format. Cc: Tony Lindgren Cc: linux-o...@vger.kernel.org Signed-off-by: Sebastian Reichel --- .../arm/boot/dts/motorola-cpcap-mapphone.dtsi | 59 +-- 1 file changed, 28 insertions(+), 31 deletions(-) diff --git a/arch/arm/boot/

[PATCHv2 04/38] dt-bindings: power: supply: bq25890: Convert to DT schema format

2021-03-17 Thread Sebastian Reichel
Convert the binding to DT schema format. Signed-off-by: Sebastian Reichel --- .../bindings/power/supply/bq25890.txt | 60 - .../bindings/power/supply/bq25890.yaml| 123 ++ 2 files changed, 123 insertions(+), 60 deletions(-) delete mode 100644

Re: [PATCH V6 2/2] power: supply: bq27xxx: Add support for BQ78Z100

2021-03-17 Thread Sebastian Reichel
Hi, On Wed, Mar 17, 2021 at 10:49:18AM +, LI Qingwu wrote: > Add support for TI BQ78Z100, I2C interface gas gauge. > It provides a fully integrated safety protection > and authentication for 1 to 2-series cell Li-Ion and > Li-Polymer battery packs. > > The patch was tested with BQ78Z100

Re: [PATCH] dt-bindings: More cleanup of standard unit properties

2021-03-17 Thread Sebastian Reichel
okhov > Cc: Bjorn Andersson > Cc: Zhang Rui > Cc: Daniel Lezcano > Cc: Linus Walleij > Cc: Kevin Tsai > Cc: Dmitry Baryshkov > Cc: Sebastian Reichel > Cc: Mark Brown > Cc: linux-...@vger.kernel.org > Cc: linux-in...@vger.kernel.org > Cc: linux...@vger.ke

Re: [PATCH] dt-bindings: Clean-up undocumented compatible strings

2021-03-17 Thread Sebastian Reichel
ing > Cc: Sam Ravnborg > Cc: Vinod Koul > Cc: Alexandre Belloni > Cc: Jonathan Cameron > Cc: Pavel Machek > Cc: Kishon Vijay Abraham I > Cc: Sebastian Reichel > Cc: Mark Brown > Cc: Greg Kroah-Hartman > Cc: linux-...@vger.kernel.org > Cc: dmae

Re: [PATCH 04/38] dt-bindings: power: supply: bq25890: Convert to DT schema format

2021-03-16 Thread Sebastian Reichel
Hi, On Mon, Mar 15, 2021 at 12:21:34PM -0600, Rob Herring wrote: > On Fri, Mar 12, 2021 at 8:44 AM Sebastian Reichel > wrote: > > + ti,ibatcomp-clamp-microvolt: > > +$ref: /schemas/types.yaml#/definitions/uint32 > > +description: max. charging voltage adjustment

Re: [PATCH 08/38] dt-bindings: power: supply: bq24735: Convert to DT schema format

2021-03-16 Thread Sebastian Reichel
Hi, On Mon, Mar 15, 2021 at 12:24:09PM -0600, Rob Herring wrote: > On Fri, Mar 12, 2021 at 8:44 AM Sebastian Reichel > > + poll-interval: > > +description: | > > + If 'interrupts' is not specified, poll AC adapter presence with this > > interval (millisecond

Re: [PATCH 16/38] dt-bindings: power: supply: tps65217: Convert to DT schema format

2021-03-16 Thread Sebastian Reichel
Hi Rob, On Mon, Mar 15, 2021 at 12:33:23PM -0600, Rob Herring wrote: > On Fri, Mar 12, 2021 at 8:44 AM Sebastian Reichel > wrote: > > + interrupts: > > +minItems: 2 > > +maxItems: 2 > > We've lost info that was in the original binding. You could do >

Re: [PATCH v2 3/3] power: supply: bq27xxx: make status more robust

2021-03-14 Thread Sebastian Reichel
Hi, On Wed, Mar 03, 2021 at 10:54:20AM +0100, Matthias Schiffer wrote: > There are multiple issues in bq27xxx_battery_status(): > > - On BQ28Q610 is was observed that the "full" flag may be set even while > the battery is charging or discharging. With the current logic to make > "full"

Re: [PATCH v2 2/3] power: supply: bq27xxx: fix power_avg for newer ICs

2021-03-14 Thread Sebastian Reichel
Hi, On Wed, Mar 03, 2021 at 10:54:19AM +0100, Matthias Schiffer wrote: > On all newer bq27xxx ICs, the AveragePower register contains a signed > value; in addition to handling the raw value as unsigned, the driver > code also didn't convert it to µW as expected. > > At least for the BQ28Z610,

Re: [PATCH v2 1/3] power: supply: bq27xxx: fix sign of current_now for newer ICs

2021-03-14 Thread Sebastian Reichel
Hi, On Wed, Mar 03, 2021 at 10:54:18AM +0100, Matthias Schiffer wrote: > Commit cd060b4d0868 ("power: supply: bq27xxx: fix polarity of current_now") > changed the sign of current_now for all bq27xxx variants, but on BQ28Z610 > I'm now seeing negated values *with* that patch. > > The

  1   2   3   4   5   6   7   8   9   10   >