Skip to content

Commit 7ac5241

Browse files
TravMuravlag-linaro
authored andcommitted
dt-bindings: mfd: qcom,spmi-pmic: Add pm8916 vm-bms and lbc
PM8916 (and probably some other similar pmics) have hardware blocks for battery monitoring and charging. Add patterns for respecive nodes so the devicetree for those blocks can be validated properly. Signed-off-by: Nikita Travkin <nikita@trvn.ru> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20231120-pm8916-dtsi-bms-lbc-v4-1-4f91056c8252@trvn.ru Signed-off-by: Lee Jones <lee@kernel.org>
1 parent 2f7cae5 commit 7ac5241

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,15 @@ patternProperties:
135135
type: object
136136
$ref: /schemas/sound/qcom,pm8916-wcd-analog-codec.yaml#
137137

138+
"^battery@[0-9a-f]+$":
139+
type: object
140+
oneOf:
141+
- $ref: /schemas/power/supply/qcom,pm8916-bms-vm.yaml#
142+
138143
"^charger@[0-9a-f]+$":
139144
type: object
140145
oneOf:
146+
- $ref: /schemas/power/supply/qcom,pm8916-lbc.yaml#
141147
- $ref: /schemas/power/supply/qcom,pm8941-charger.yaml#
142148
- $ref: /schemas/power/supply/qcom,pm8941-coincell.yaml#
143149
- $ref: /schemas/power/supply/qcom,pmi8998-charger.yaml#

0 commit comments

Comments
 (0)