diff mbox series

[9/9] arm64: dts: qcom: apq8039-t2: add node for ncv6336 regulator

Message ID 20241218-ncv6336-v1-9-b8d973747f7a@gmail.com
State New
Headers show
Series Regulator driver with I2C/Regmap Rust abstractions | expand

Commit Message

Fabien Parent Dec. 18, 2024, 11:36 p.m. UTC
From: Fabien Parent <fabien.parent@linaro.org>

CPR is using the power rail provided by the ncv6336 buck regulator
on the apq8039 t2 board. This commit adds the required regulator.

Signed-off-by: Fabien Parent <fabien.parent@linaro.org>
---
 arch/arm64/boot/dts/qcom/apq8039-t2.dts | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/qcom/apq8039-t2.dts b/arch/arm64/boot/dts/qcom/apq8039-t2.dts
index 4f82bb668616f942d65f59a6f418cf38f404df32..2da5b7d01521520a6814b76c02329be3bdedb4fd 100644
--- a/arch/arm64/boot/dts/qcom/apq8039-t2.dts
+++ b/arch/arm64/boot/dts/qcom/apq8039-t2.dts
@@ -111,6 +111,23 @@  typec_ep: endpoint {
 	};
 };
 
+&blsp_i2c4 {
+	status = "okay";
+
+	regulator@1c {
+		compatible = "onnn,ncv6336";
+		reg = <0x1c>;
+		pinctrl-0 = <&ncv6336_vsel>;
+		pinctrl-names = "default";
+
+		buck {
+			regulator-name = "ncv6336,buck";
+			regulator-min-microvolt = <600000>;
+			regulator-max-microvolt = <1393750>;
+		};
+	};
+};
+
 &blsp_i2c5 {
 	status = "okay";
 };
@@ -371,6 +388,12 @@  typec_irq: typec-irq-state {
 		pins = "gpio107";
 		bias-pull-up;
 	};
+
+	ncv6336_vsel: ncv6336-state  {
+		function = "gpio";
+		pins = "gpio111";
+		output-low;
+	};
 };
 
 &usb {