diff mbox series

[6/6] ARM: dts: microchip: sama5d29_curiosity: Add reg_5v to supply PMIC nodes

Message ID 20240802084433.20958-7-andrei.simion@microchip.com (mailing list archive)
State New, archived
Headers show
Series Add input voltage suppliers for PMIC MCP16502 regulators | expand

Commit Message

Andrei Simion Aug. 2, 2024, 8:44 a.m. UTC
Align with the datasheet by adding regulator-5v which supplies
each node from the regulator using phandle to regulator-5v through
pvin[1-4]-supply and lvin-supply.

Co-developed-by: Mihai Sain <mihai.sain@microchip.com>
Signed-off-by: Mihai Sain <mihai.sain@microchip.com>
Signed-off-by: Andrei Simion <andrei.simion@microchip.com>
---
 .../boot/dts/microchip/at91-sama5d29_curiosity.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/microchip/at91-sama5d29_curiosity.dts b/arch/arm/boot/dts/microchip/at91-sama5d29_curiosity.dts
index 6b02b7bcfd49..a9d409ad7726 100644
--- a/arch/arm/boot/dts/microchip/at91-sama5d29_curiosity.dts
+++ b/arch/arm/boot/dts/microchip/at91-sama5d29_curiosity.dts
@@ -84,6 +84,14 @@  memory@20000000 {
 		device_type = "memory";
 		reg = <0x20000000 0x20000000>;
 	};
+
+	reg_5v: regulator-5v {
+		compatible = "regulator-fixed";
+		regulator-name = "5V_MAIN";
+		regulator-min-microvolt = <5000000>;
+		regulator-max-microvolt = <5000000>;
+		regulator-always-on;
+	};
 };
 
 &adc {
@@ -150,6 +158,7 @@  mcp16502@5b {
 		regulators {
 			vdd_3v3: VDD_IO {
 				regulator-name = "VDD_IO";
+				pvin1-supply = <&reg_5v>;
 				regulator-min-microvolt = <3300000>;
 				regulator-max-microvolt = <3300000>;
 				regulator-initial-mode = <2>;
@@ -169,6 +178,7 @@  regulator-state-mem {
 
 			vddio_ddr: VDD_DDR {
 				regulator-name = "VDD_DDR";
+				pvin2-supply = <&reg_5v>;
 				regulator-min-microvolt = <1200000>;
 				regulator-max-microvolt = <1200000>;
 				regulator-initial-mode = <2>;
@@ -192,6 +202,7 @@  regulator-state-mem {
 
 			vdd_core: VDD_CORE {
 				regulator-name = "VDD_CORE";
+				pvin3-supply = <&reg_5v>;
 				regulator-min-microvolt = <1250000>;
 				regulator-max-microvolt = <1250000>;
 				regulator-initial-mode = <2>;
@@ -211,6 +222,7 @@  regulator-state-mem {
 
 			vdd_ddr: VDD_OTHER {
 				regulator-name = "VDD_OTHER";
+				pvin4-supply = <&reg_5v>;
 				regulator-min-microvolt = <1800000>;
 				regulator-max-microvolt = <1800000>;
 				regulator-initial-mode = <2>;
@@ -234,6 +246,7 @@  regulator-state-mem {
 
 			LDO1 {
 				regulator-name = "LDO1";
+				lvin-supply = <&reg_5v>;
 				regulator-min-microvolt = <2500000>;
 				regulator-max-microvolt = <2500000>;
 				regulator-always-on;
@@ -249,6 +262,7 @@  regulator-state-mem {
 
 			LDO2 {
 				regulator-name = "LDO2";
+				lvin-supply = <&reg_5v>;
 				regulator-min-microvolt = <3300000>;
 				regulator-max-microvolt = <3300000>;
 				regulator-always-on;