[PATCH 2/3] dt-bindings: mfd: sprd,sc2731: Reference sprd,sc2730-regulator bindings
From: Otto Pflüger
Date: Fri Feb 20 2026 - 12:12:27 EST
The SC2730 PMIC provides a different set of regulators than SC2731 and
thus requires separate regulator bindings. Determine which bindings to
include based on the compatible string of the PMIC.
Signed-off-by: Otto Pflüger <otto.pflueger@xxxxxxxxx>
---
Documentation/devicetree/bindings/mfd/sprd,sc2731.yaml | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/Documentation/devicetree/bindings/mfd/sprd,sc2731.yaml b/Documentation/devicetree/bindings/mfd/sprd,sc2731.yaml
index b023e1ef8d3c..e4ebb511bba1 100644
--- a/Documentation/devicetree/bindings/mfd/sprd,sc2731.yaml
+++ b/Documentation/devicetree/bindings/mfd/sprd,sc2731.yaml
@@ -99,6 +99,19 @@ required:
- '#interrupt-cells'
- '#size-cells'
+allOf:
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - sprd,sc2730
+ then:
+ properties:
+ regulators:
+ type: object
+ $ref: /schemas/regulator/sprd,sc2730-regulator.yaml#
+
additionalProperties: false
examples:
--
2.51.0