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

2021-03-21 Thread LI Qingwu
Hi Sebastian, On Friday, March 19, 2021 7:27 PM Sebastian Reichel wrote: > 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.

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

2021-03-19 Thread LI Qingwu
POWER_SUPPLY_HEALTH=Good POWER_SUPPLY_MANUFACTURER=Texas Instruments Signed-off-by: LI Qingwu Reviewed-by: Krzysztof Kozlowski --- drivers/power/supply/bq27xxx_battery.c | 44 ++ drivers/power/supply/bq27xxx_battery_i2c.c | 2 + include/linux/power/bq27xxx_battery.h

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

2021-03-19 Thread LI Qingwu
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 for BQ78Z100 .../bindings/power/supply/bq27xxx.yaml| 1 + drivers/power

[PATCH V7 1/2] dt-bindings: power: bq27xxx: add bq78z100

2021-03-19 Thread LI Qingwu
Add bindings for TI BQ78Z100. An 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. Signed-off-by: LI Qingwu Acked-by: Rob Herring --- Documentation/devicetree/bindings/power/supply

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

2021-03-19 Thread LI Qingwu
9 POWER_SUPPLY_TIME_TO_EMPTY_NOW=1249920 POWER_SUPPLY_TECHNOLOGY=Li-ion POWER_SUPPLY_CHARGE_FULL=6494000 POWER_SUPPLY_CHARGE_NOW=1736000 POWER_SUPPLY_CHARGE_FULL_DESIGN=600 POWER_SUPPLY_CYCLE_COUNT=1 POWER_SUPPLY_POWER_AVG=-2 POWER_SUPPLY_HEALTH=Good POWER_SUPPLY_MANUFACTURER=Texas Instr

[PATCH V6 1/2] dt-bindings: power: bq27xxx: add bq78z100

2021-03-17 Thread LI Qingwu
Add bindings for TI BQ78Z100. An 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. Signed-off-by: LI Qingwu Acked-by: Rob Herring --- Documentation/devicetree/bindings/power/supply

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

2021-03-17 Thread LI Qingwu
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 equipment. Signed-off-by: LI Qingwu Reviewed-by: Krzysztof Kozlowski result

[PATCH V6 0/2] power: bq27xxx: add bq78z100

2021-03-17 Thread LI Qingwu
Changes in V6: Reword the commit message, add result of cat "/sys/class/power_supply//uevent" LI Qingwu (2): dt-bindings: power: bq27xxx: add bq78z100 power: supply: bq27xxx: Add support for BQ78Z100 .../bindings/power/supply/bq27xxx.yaml| 1 + drivers/po

RE: [PATCH V5 0/2] power: bq27xxx: add bq78z100

2021-03-17 Thread LI Qingwu
POWER_SUPPLY_CAPACITY_LEVEL=Normal POWER_SUPPLY_TEMP=260 POWER_SUPPLY_TECHNOLOGY=Li-ion POWER_SUPPLY_CHARGE_FULL=6494000 POWER_SUPPLY_CHARGE_FULL_DESIGN=600 POWER_SUPPLY_CYCLE_COUNT=1 POWER_SUPPLY_ENERGY_NOW=0 POWER_SUPPLY_POWER_AVG=0 POWER_SUPPLY_HEALTH=Good POWER_SUPPLY_

[PATCH V3 1/2] dt-bindings: iio: st,st-sensors add IIS2MDC.

2021-03-16 Thread LI Qingwu
Add support for ST magnetometer IIS2MDC, an I2C/SPI interface 3-axis magnetometer sensor. The patch was tested on the instrument with IIS2MDC via I2C interface. Acked-by: Rob Herring Signed-off-by: LI Qingwu --- Documentation/devicetree/bindings/iio/st,st-sensors.yaml | 1 + 1 file changed, 1

[PATCH V3 2/2] iio:magnetometer: Add Support for ST IIS2MDC

2021-03-16 Thread LI Qingwu
Add support for ST magnetometer IIS2MDC, an I2C/SPI interface 3-axis magnetometer. The patch was tested on the instrument with IIS2MDC via I2C interface. Signed-off-by: LI Qingwu --- drivers/iio/magnetometer/st_magn.h | 1 + drivers/iio/magnetometer/st_magn_core.c | 1 + drivers/iio

[PATCH V3 0/2] Add support for ST magnetometer IIS2MDC

2021-03-16 Thread LI Qingwu
Changes in V3: Reword the commit message, add "Acked-by: Rob Herring" LI Qingwu (2): dt-bindings: iio: st,st-sensors add IIS2MDC. iio:magnetometer: Add Support for ST IIS2MDC Documentation/devicetree/bindings/iio/st,st-sensors.yaml | 1 + drivers/iio/magnetometer

RE: [PATCH V5 0/2] power: bq27xxx: add bq78z100

2021-03-15 Thread LI Qingwu
Hi Sebastian, Thanks for your input, I will and dump message into next version patch. Best Regards ** Li Qingwu (Terry) Senior Embedded Software Engineer Leica Geosystems(Shanghai)Co.,Limited (Tel): +86 21 61061036 (FAX): +86 21 61061008 (Mobile

RE: [PATCH 2/2] iio:magnetometer: Support for ST magnetic sensors

2021-03-10 Thread LI Qingwu
Hi Andy, Thanks a lot for your input, I just extend the existing driver in patch V2 for the sersor. Best Regards ** Li Qingwu (Terry) Senior Embedded Software Engineer Leica Geosystems(Shanghai)Co.,Limited (Tel): +86 21 61061036 (FAX): +86 21

[PATCH V2 2/2] iio:magnetometer: Add Support for ST IIS2MDC

2021-03-10 Thread LI Qingwu
Add support for ST magnetometer IIS2MDC, an I2C/SPI interface 3-axis magnetometer. The patch was tested on the instrument with IIS2MDC via I2C interface. Signed-off-by: LI Qingwu --- drivers/iio/magnetometer/st_magn.h | 2 ++ drivers/iio/magnetometer/st_magn_core.c | 1 + drivers/iio

[PATCH V2 0/2] Add support for ST magnetometer IIS2MDC

2021-03-10 Thread LI Qingwu
Changes in V2: Extend the exist st_magn* to support IIS2MDC, instead of adding a new driver. LI Qingwu (2): dt-bindings: iio: st,st-sensors add IIS2MDC. iio:magnetometer: Add Support for ST IIS2MDC Documentation/devicetree/bindings/iio/st,st-sensors.yaml | 1 + drivers/iio/magnetometer

[PATCH V2 1/2] dt-bindings: iio: st,st-sensors add IIS2MDC.

2021-03-10 Thread LI Qingwu
Add support for ST magnetometer IIS2MDC, an I2C/SPI interface 3-axis magnetometer sensor. The patch was tested on the instrument with IIS2MDC via I2C interface. Signed-off-by: LI Qingwu --- Documentation/devicetree/bindings/iio/st,st-sensors.yaml | 1 + 1 file changed, 1 insertion(+) diff

RE: [PATCH 2/2] iio:magnetometer: Support for ST magnetic sensors

2021-03-08 Thread LI Qingwu
Hi Jonathan, Thanks for your input, I will integrate into existing magnetometers driver! Best Regards ** Li Qingwu (Terry) ** -Original Message- From: Jonathan Cameron Sent: Sunday, March 7

[PATCH 2/2] iio:magnetometer: Support for ST magnetic sensors

2021-03-04 Thread LI Qingwu
Add support for STMicroelectronics digital magnetic sensors, LSM303AH,LSM303AGR,LIS2MDL,ISM303DAC,IIS2MDC. The patch tested with IIS2MDC instrument. Signed-off-by: LI Qingwu --- drivers/iio/magnetometer/Kconfig | 23 ++ drivers/iio/magnetometer/Makefile | 4 + drivers/iio

[PATCH 1/2] dt-bindings: iio: st,st-sensors.yaml New iis2mdc bindings

2021-03-04 Thread LI Qingwu
Add support for ST magnetometer lsm303ah,sm303dac and iis2mdc. The patch tested with IIS2MDC instrument. Signed-off-by: LI Qingwu --- Documentation/devicetree/bindings/iio/st,st-sensors.yaml | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/st,st

RE: [PATCH V4 2/2] power: supply: bq27xxx: Add support for BQ78Z100

2021-03-04 Thread LI Qingwu
WxW) #100: FILE: drivers/power/supply/bq27xxx_battery.c:1015: + [BQ78Z100] = BQ27XXX_DATA(bq78z100, 0 , BQ27Z561_O_BITS), ^ Best Regards ****** Li Qingwu (Terry) Senior Embedded Softw

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

2021-03-04 Thread LI Qingwu
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 equipment. Reviewed-by: Krzysztof Kozlowski Signed-off-by: LI Qingwu

[PATCH V5 0/2] power: bq27xxx: add bq78z100

2021-03-04 Thread LI Qingwu
POWER_SUPPLY_PROP_TIME_TO_EMPTY_AVG, not support by bq78z100 LI Qingwu (2): dt-bindings: power: bq27xxx: add bq78z100 power: supply: bq27xxx: Add support for BQ78Z100 .../bindings/power/supply/bq27xxx.yaml| 1 + drivers/power/supply/bq27xxx_battery.c| 44 +++ drivers/power

[PATCH V5 1/2] dt-bindings: power: bq27xxx: add bq78z100

2021-03-04 Thread LI Qingwu
Add bindings for TI BQ78Z100. An 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. Acked-by: Rob Herring Signed-off-by: LI Qingwu --- Documentation/devicetree/bindings/power/supply

RE: [PATCH V4 2/2] power: supply: bq27xxx: Add support for BQ78Z100

2021-03-02 Thread LI Qingwu
this is a friendly reminder. Best Regards ** Li Qingwu (Terry) Senior Embedded Software Engineer Leica Geosystems(Shanghai)Co.,Limited (Tel): +86 21 61061036 (FAX): +86 21 61061008 (Mobile): +86 187 0185 9600 E-mail: qing-wu...@leica

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

2021-02-04 Thread LI Qingwu
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 equipment. Reviewed-by: Krzysztof Kozlowski Signed-off-by: LI Qingwu

[PATCH V4 0/2] power: bq27xxx: add bq78z100

2021-02-04 Thread LI Qingwu
Changes in V4: Correct the wrong part number in the subject, bq78z100 instead of bq78z10. LI Qingwu (2): dt-bindings: power: bq27xxx: add bq78z100 power: supply: bq27xxx: Add support for BQ78Z100 .../bindings/power/supply/bq27xxx.yaml| 1 + drivers/power/supply/bq27xxx_battery.c

[PATCH V4 1/2] dt-bindings: power: bq27xxx: add bq78z100

2021-02-04 Thread LI Qingwu
Add bindings for TI BQ78Z100. An 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. Acked-by: Rob Herring Signed-off-by: LI Qingwu --- Documentation/devicetree/bindings/power/supply

[PATCH V3 1/2] dt-bindings: power: bq27xxx: add bq78z10

2021-02-03 Thread LI Qingwu
Add bindings for TI BQ78Z100. An 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. Signed-off-by: LI Qingwu --- Documentation/devicetree/bindings/power/supply/bq27xxx.yaml | 1 + 1 file

[PATCH V3 0/2] cover-letter bq27xxx: BQ78Z100

2021-02-03 Thread LI Qingwu
Changes in V3: Delete comma before "and" in commit comments. Reorder commits to sending the bindings as the first patch. LI Qingwu (2): dt-bindings: power: bq27xxx: add bq78z10 power: supply: bq27xxx: Add support for BQ78Z100 .../bindings/power/supply/bq27xxx.yaml| 1

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

2021-02-03 Thread LI Qingwu
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 equipment. Reviewed-by: Krzysztof Kozlowski Signed-off-by: LI Qingwu

RE: [PATCH V2 2/2] dt-bindings: power: bq27xxx: add bq78z10

2021-02-02 Thread LI Qingwu
pacity. In the future, please send the bindings as first patch. The checkpatch should point this - did you run it? >>yes, I run the checkpatch, I will reorder in V3. Best Regards ********** Li Qingwu (Terry) Senior Embedded Software Engineer Leica Geosyste

[PATCH V2 2/2] dt-bindings: power: bq27xxx: add bq78z10

2021-02-02 Thread LI Qingwu
Add bindings for TI BQ78Z100. An 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. Signed-off-by: LI Qingwu --- Documentation/devicetree/bindings/power/supply/bq27xxx.yaml | 1 + 1 file

[PATCH V2 0/2] cover-letter bq27xxx: BQ78Z100: Fix Typo

2021-02-02 Thread LI Qingwu
PATCH V2: Fix typo of commit comments of previous version. -replace "equippent" with "equipment" LI Qingwu (2): power: supply: bq27xxx: Add support for BQ78Z100 dt-bindings: power: bq27xxx: add bq78z10 .../bindings/power/supply/bq27xxx.yaml| 1 +

[PATCH V2 1/2] power: supply: bq27xxx: Add support for BQ78Z100

2021-02-02 Thread LI Qingwu
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 equipment. Signed-off-by: LI Qingwu --- drivers/power/supply