dts: mt8173-evb: Add da9211 to i2c1
diff mbox

Message ID 1435890506-25425-1-git-send-email-henryc.chen@mediatek.com
State New
Headers show

Commit Message

Henry Chen July 3, 2015, 2:28 a.m. UTC
Add a DA9211 dual-channel BUCK regulator to i2c1.
This regulator supplies GPU and DVFS1 voltages.

Signed-off-by: Henry Chen <henryc.chen@mediatek.com>
---
This patch based on https://github.com/mbgg/linux-mediatek.git branch/v4.2-next/arm64
---
 arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 30 +++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

Comments

Matthias Brugger July 3, 2015, 9:57 p.m. UTC | #1
On Friday, July 03, 2015 10:28:26 AM Henry Chen wrote:
> Add a DA9211 dual-channel BUCK regulator to i2c1.
> This regulator supplies GPU and DVFS1 voltages.
> 
> Signed-off-by: Henry Chen <henryc.chen@mediatek.com>
> ---
> This patch based on https://github.com/mbgg/linux-mediatek.git
> branch/v4.2-next/arm64 ---
>  arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 30
> +++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+)

applied to v4.2-next/arm64

Thanks.

Patch
diff mbox

diff --git a/arch/arm64/boot/dts/mediatek/mt8173-evb.dts b/arch/arm64/boot/dts/mediatek/mt8173-evb.dts
index d0ab012..7f583bd 100644
--- a/arch/arm64/boot/dts/mediatek/mt8173-evb.dts
+++ b/arch/arm64/boot/dts/mediatek/mt8173-evb.dts
@@ -34,6 +34,36 @@ 
 	chosen { };
 };
 
+&i2c1 {
+	status = "okay";
+
+	buck: da9211@68 {
+		compatible = "dlg,da9211";
+		reg = <0x68>;
+
+		regulators {
+			da9211_vcpu_reg: BUCKA {
+				regulator-name = "VBUCKA";
+				regulator-min-microvolt = < 700000>;
+				regulator-max-microvolt = <1310000>;
+				regulator-min-microamp	= <2000000>;
+				regulator-max-microamp	= <4400000>;
+				regulator-ramp-delay = <10000>;
+				regulator-always-on;
+			};
+
+			da9211_vgpu_reg: BUCKB {
+				regulator-name = "VBUCKB";
+				regulator-min-microvolt = < 700000>;
+				regulator-max-microvolt = <1310000>;
+				regulator-min-microamp	= <2000000>;
+				regulator-max-microamp	= <3000000>;
+				regulator-ramp-delay = <10000>;
+			};
+		};
+	};
+};
+
 &uart0 {
 	status = "okay";
 };