mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
dt-bindings: mfd: ti,bq25703a: Expand to include BQ25792
TI BQ25792 is similar in operation to BQ25703A, but has a different register layout and different current/voltage capabilities. Expand the existing BQ25703A binding to include BQ25792, and move the voltage and current limits into per-variant conditional statements. Signed-off-by: Alexey Charkov <alchark@flipper.net> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Tested-by: Chris Morgan <macromorgan@hotmail.com> Link: https://patch.msgid.link/20260331-bq25792-v6-1-0278fba33eb9@flipper.net Signed-off-by: Lee Jones <lee@kernel.org>
This commit is contained in:
parent
25c80f08e5
commit
583003fe5e
|
|
@ -4,17 +4,16 @@
|
|||
$id: http://devicetree.org/schemas/mfd/ti,bq25703a.yaml#
|
||||
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
||||
|
||||
title: BQ25703A Charger Manager/Buck/Boost Converter
|
||||
title: BQ257xx Charger Manager/Buck/Boost Converter
|
||||
|
||||
maintainers:
|
||||
- Chris Morgan <macromorgan@hotmail.com>
|
||||
|
||||
allOf:
|
||||
- $ref: /schemas/power/supply/power-supply.yaml#
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
const: ti,bq25703a
|
||||
enum:
|
||||
- ti,bq25703a
|
||||
- ti,bq25792
|
||||
|
||||
reg:
|
||||
const: 0x6b
|
||||
|
|
@ -25,7 +24,6 @@ properties:
|
|||
powering the device.
|
||||
minimum: 50000
|
||||
maximum: 6400000
|
||||
default: 3250000
|
||||
|
||||
interrupts:
|
||||
maxItems: 1
|
||||
|
|
@ -57,11 +55,11 @@ properties:
|
|||
minimum: 0
|
||||
maximum: 6350000
|
||||
regulator-min-microvolt:
|
||||
minimum: 4480000
|
||||
maximum: 20800000
|
||||
minimum: 2800000
|
||||
maximum: 22000000
|
||||
regulator-max-microvolt:
|
||||
minimum: 4480000
|
||||
maximum: 20800000
|
||||
minimum: 2800000
|
||||
maximum: 22000000
|
||||
enable-gpios:
|
||||
description:
|
||||
The BQ25703 may require both a register write and a GPIO
|
||||
|
|
@ -74,6 +72,61 @@ properties:
|
|||
- regulator-min-microvolt
|
||||
- regulator-max-microvolt
|
||||
|
||||
allOf:
|
||||
- $ref: /schemas/power/supply/power-supply.yaml#
|
||||
- if:
|
||||
properties:
|
||||
compatible:
|
||||
const: ti,bq25703a
|
||||
then:
|
||||
properties:
|
||||
input-current-limit-microamp:
|
||||
minimum: 50000
|
||||
maximum: 6400000
|
||||
default: 3250000
|
||||
regulators:
|
||||
properties:
|
||||
vbus:
|
||||
properties:
|
||||
regulator-min-microamp:
|
||||
minimum: 0
|
||||
maximum: 6350000
|
||||
regulator-max-microamp:
|
||||
minimum: 0
|
||||
maximum: 6350000
|
||||
regulator-min-microvolt:
|
||||
minimum: 4480000
|
||||
maximum: 20800000
|
||||
regulator-max-microvolt:
|
||||
minimum: 4480000
|
||||
maximum: 20800000
|
||||
- if:
|
||||
properties:
|
||||
compatible:
|
||||
const: ti,bq25792
|
||||
then:
|
||||
properties:
|
||||
input-current-limit-microamp:
|
||||
minimum: 100000
|
||||
maximum: 3300000
|
||||
default: 3000000
|
||||
regulators:
|
||||
properties:
|
||||
vbus:
|
||||
properties:
|
||||
regulator-min-microamp:
|
||||
minimum: 0
|
||||
maximum: 3320000
|
||||
regulator-max-microamp:
|
||||
minimum: 0
|
||||
maximum: 3320000
|
||||
regulator-min-microvolt:
|
||||
minimum: 2800000
|
||||
maximum: 22000000
|
||||
regulator-max-microvolt:
|
||||
minimum: 2800000
|
||||
maximum: 22000000
|
||||
|
||||
unevaluatedProperties: false
|
||||
|
||||
required:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user