Make epod-supply optional and mark it deprecated.

The MCDE should use its power domain instead.

Require either epod-supply or power-domains, allowing both for
transitional device trees. Reject nodes describing neither.

Acked-by: Rob Herring (Arm) <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
---
Deprecate the legacy EPOD supply and allow MCDE to use its power domain
instead. Accept either property or both, rejecting nodes with neither.

This binding-only change can be applied independently. The companion
MCDE driver and Ux500 DTS changes are submitted separately.
---
 Documentation/devicetree/bindings/display/ste,mcde.yaml | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/Documentation/devicetree/bindings/display/ste,mcde.yaml 
b/Documentation/devicetree/bindings/display/ste,mcde.yaml
index 05e7e4ebc882..e7978eca6f32 100644
--- a/Documentation/devicetree/bindings/display/ste,mcde.yaml
+++ b/Documentation/devicetree/bindings/display/ste,mcde.yaml
@@ -39,7 +39,8 @@ properties:
     maxItems: 1
 
   epod-supply:
-    description: a phandle to the EPOD regulator
+    description: a phandle to the legacy EPOD regulator
+    deprecated: true
 
   vana-supply:
     description: a phandle to the analog voltage regulator
@@ -103,9 +104,14 @@ required:
   - interrupts
   - clocks
   - clock-names
-  - epod-supply
   - vana-supply
 
+anyOf:
+  - required:
+      - epod-supply
+  - required:
+      - power-domains
+
 additionalProperties: false
 
 examples:
@@ -121,7 +127,6 @@ examples:
       reg = <0xa0350000 0x1000>;
       interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
       power-domains = <&pm_domains DOMAIN_B2R2_MCDE>;
-      epod-supply = <&db8500_b2r2_mcde_reg>;
       vana-supply = <&ab8500_ldo_ana_reg>;
       clocks = <&prcmu_clk PRCMU_MCDECLK>,
                <&prcmu_clk PRCMU_LCDCLK>,

---
base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
change-id: 20261116-ux500-mcde-powerdomain-binding-0ad1b35c46bc

Best regards,
--  
Linus Walleij <[email protected]>

Reply via email to