All of lore.kernel.org
 help / color / mirror / Atom feed
From: heiko@sntech.de (Heiko Stübner)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/7] ARM: dts: add i2c and regulator nodes to rk3188-radxarock
Date: Sat, 12 Jul 2014 21:29:30 +0200	[thread overview]
Message-ID: <1595980.jcnCXXlPVU@diego> (raw)
In-Reply-To: <16344051.ZPa9bzz4Fj@diego>

From: Beniamino Galvani <b.galvani@gmail.com>

This enables the 2nd i2c bus and adds the act8846 pmic as device.

Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
---
 arch/arm/boot/dts/rk3188-radxarock.dts | 117 
+++++++++++++++++++++++++++++++++
 1 file changed, 117 insertions(+)

diff --git a/arch/arm/boot/dts/rk3188-radxarock.dts b/arch/arm/boot/dts/rk3188-
radxarock.dts
index a5eee55..d4d9f94 100644
--- a/arch/arm/boot/dts/rk3188-radxarock.dts
+++ b/arch/arm/boot/dts/rk3188-radxarock.dts
@@ -77,5 +77,122 @@
 			};
 		};
 
+		pinctrl at 20008000 {
+			pcfg_output_low: pcfg_output_low {
+				output-low;
+			};
+
+			act8846 {
+				act8846_dvs0_ctl: act8846-dvs0-ctl {
+					rockchip,pins = <RK_GPIO3 27 RK_FUNC_GPIO 
&pcfg_output_low>;
+				};
+			};
+		};
+
+	};
+};
+
+&i2c1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&i2c1_pins>;
+
+	status = "okay";
+	clock-frequency = <400000>;
+
+	act8846: act8846 at 5a {
+		compatible = "active-semi,act8846";
+		reg = <0x5a>;
+		status = "okay";
+
+		pinctrl-names = "default";
+		pinctrl-0 = <&act8846_dvs0_ctl>;
+	};
+};
+
+&act8846 {
+	regulators {
+		vcc_ddr: REG1 {
+			regulator-name = "VCC_DDR";
+			regulator-min-microvolt = <1200000>;
+			regulator-max-microvolt = <1200000>;
+			regulator-always-on;
+		};
+
+		vdd_log: REG2 {
+			regulator-name = "VDD_LOG";
+			regulator-min-microvolt = <1000000>;
+			regulator-max-microvolt = <1000000>;
+			regulator-always-on;
+		};
+
+		vdd_arm: REG3 {
+			regulator-name = "VDD_ARM";
+			regulator-min-microvolt = <875000>;
+			regulator-max-microvolt = <1300000>;
+			regulator-always-on;
+		};
+
+		vcc_io: REG4 {
+			regulator-name = "VCC_IO";
+			regulator-min-microvolt = <3300000>;
+			regulator-max-microvolt = <3300000>;
+			regulator-always-on;
+		};
+
+		vdd_10: REG5 {
+			regulator-name = "VDD_10";
+			regulator-min-microvolt = <1000000>;
+			regulator-max-microvolt = <1000000>;
+			regulator-always-on;
+		};
+
+		vdd_hdmi: REG6 {
+			regulator-name = "VDD_HDMI";
+			regulator-min-microvolt = <2500000>;
+			regulator-max-microvolt = <2500000>;
+			regulator-always-on;
+		};
+
+		vcc18: REG7 {
+			regulator-name = "VCC_18";
+			regulator-min-microvolt = <1800000>;
+			regulator-max-microvolt = <1800000>;
+			regulator-always-on;
+		};
+
+		vcca_33: REG8 {
+			regulator-name = "VCCA_33";
+			regulator-min-microvolt = <3300000>;
+			regulator-max-microvolt = <3300000>;
+			regulator-always-on;
+		};
+
+		vcc_rmii: REG9 {
+			regulator-name = "VCC_RMII";
+			regulator-min-microvolt = <3300000>;
+			regulator-max-microvolt = <3300000>;
+			regulator-always-on;
+		};
+
+		vccio_wl: REG10 {
+			regulator-name = "VCCIO_WL";
+			regulator-min-microvolt = <3300000>;
+			regulator-max-microvolt = <3300000>;
+			regulator-always-on;
+		};
+
+		vcc_18: REG11 {
+			regulator-name = "VCC18_IO";
+			regulator-min-microvolt = <1800000>;
+			regulator-max-microvolt = <1800000>;
+			regulator-always-on;
+		};
+
+		vcc28: REG12 {
+			regulator-name = "VCC_28";
+			regulator-min-microvolt = <2800000>;
+			regulator-max-microvolt = <2800000>;
+			regulator-always-on;
+		};
 	};
 };
-- 
1.9.0

  parent reply	other threads:[~2014-07-12 19:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-12 19:27 [PATCH 0/7] ARM: dts: collected rockchip dtsi and board changes Heiko Stübner
2014-07-12 19:28 ` [PATCH 1/7] ARM: dts: add rk3066 and rk3188 i2c device nodes and pinctrl settings Heiko Stübner
2014-07-12 19:28 ` [PATCH 2/7] ARM: dts: rockchip: add tps65910 regulator for bqcurie2 Heiko Stübner
2014-07-12 19:29 ` Heiko Stübner [this message]
2014-07-12 19:29 ` [PATCH 4/7] ARM: dts: rk3188-radxarock: enable sd-card slot Heiko Stübner
2014-07-12 19:30 ` [PATCH 5/7] ARM: dts: rockchip: add both clocks to uart nodes Heiko Stübner
2014-07-12 19:30 ` [PATCH 6/7] ARM: dts: rockchip: add pwm nodes Heiko Stübner
2014-07-12 19:31 ` [PATCH 7/7] ARM: dts: rockchip: add saradc nodes Heiko Stübner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1595980.jcnCXXlPVU@diego \
    --to=heiko@sntech.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.