diff mbox series

[2/4] dt-bindings: mfd: samsung,s2mps11: add compatible for s2mpu05-pmic

Message ID 20250204-exynos7870-pmic-regulators-v1-2-05adad38102c@disroot.org (mailing list archive)
State New
Headers show
Series Introduce support for Exynos7870's S2MPU05 PMIC and its regulators | expand

Commit Message

Kaustabh Chakraborty Feb. 3, 2025, 8:36 p.m. UTC
S2MPU05 is a PMIC present in Samsung's Exynos7870 devices. It houses
voltage regulators (21 LDOs and 5 BUCKs), and an RTC module. Add the
compatible string "samsung,s2mpu05-pmic" to the PMIC documentation.

Signed-off-by: Kaustabh Chakraborty <kauschluss@disroot.org>
---
 Documentation/devicetree/bindings/mfd/samsung,s2mps11.yaml | 13 +++++++++++++
 1 file changed, 13 insertions(+)

Comments

Krzysztof Kozlowski Feb. 5, 2025, 8:33 a.m. UTC | #1
On Tue, Feb 04, 2025 at 02:06:27AM +0530, Kaustabh Chakraborty wrote:
> S2MPU05 is a PMIC present in Samsung's Exynos7870 devices. It houses
> voltage regulators (21 LDOs and 5 BUCKs), and an RTC module. Add the
> compatible string "samsung,s2mpu05-pmic" to the PMIC documentation.
> 
> Signed-off-by: Kaustabh Chakraborty <kauschluss@disroot.org>
> ---
>  Documentation/devicetree/bindings/mfd/samsung,s2mps11.yaml | 13 +++++++++++++
>  1 file changed, 13 insertions(+)

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/mfd/samsung,s2mps11.yaml b/Documentation/devicetree/bindings/mfd/samsung,s2mps11.yaml
index a4be642de33ce6b987fe011adfe4f6b938c20c19..ac5d0c149796b6a4034b5d4245bfa8be0433cfab 100644
--- a/Documentation/devicetree/bindings/mfd/samsung,s2mps11.yaml
+++ b/Documentation/devicetree/bindings/mfd/samsung,s2mps11.yaml
@@ -25,6 +25,7 @@  properties:
       - samsung,s2mps14-pmic
       - samsung,s2mps15-pmic
       - samsung,s2mpu02-pmic
+      - samsung,s2mpu05-pmic
 
   clocks:
     $ref: /schemas/clock/samsung,s2mps11.yaml
@@ -125,6 +126,18 @@  allOf:
         samsung,s2mps11-acokb-ground: false
         samsung,s2mps11-wrstbi-ground: false
 
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: samsung,s2mpu05-pmic
+    then:
+      properties:
+        regulators:
+          $ref: /schemas/regulator/samsung,s2mpu05.yaml
+        samsung,s2mps11-acokb-ground: false
+        samsung,s2mps11-wrstbi-ground: false
+
 examples:
   - |
     #include <dt-bindings/interrupt-controller/irq.h>