Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1701943

[PATCH v2 22/23] ARM: dts: rockchip: add pmic rk805 dt node for rv1108 evb

From Andy Yan <andy.yan@rock-chips.com>
Newsgroups linux.kernel
Subject [PATCH v2 22/23] ARM: dts: rockchip: add pmic rk805 dt node for rv1108 evb
Date 2017-08-02 11:10 +0200
Message-ID <u9XPd-7SS-31@gated-at.bofh.it> (permalink)
References <u9Xct-7q1-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


RK805 is used as the voltage regulator on rv1108 evaluation
board. Add device tree node for it.

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
---

Changes in v2: None

 arch/arm/boot/dts/rv1108-evb.dts | 108 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 108 insertions(+)

diff --git a/arch/arm/boot/dts/rv1108-evb.dts b/arch/arm/boot/dts/rv1108-evb.dts
index 77ce707..a1bd95e 100644
--- a/arch/arm/boot/dts/rv1108-evb.dts
+++ b/arch/arm/boot/dts/rv1108-evb.dts
@@ -94,6 +94,114 @@
 			248 249 250 251 252 253 254 255>;
 		default-brightness-level = <200>;
 	};
+
+	vcc_sys: vsys-regulator {
+		compatible = "regulator-fixed";
+		regulator-name = "vsys";
+		regulator-min-microvolt = <5000000>;
+		regulator-max-microvolt = <5000000>;
+		regulator-boot-on;
+	};
+};
+
+&i2c0 {
+	status = "okay";
+	i2c-scl-rising-time-ns = <275>;
+	i2c-scl-falling-time-ns = <16>;
+	clock-frequency = <400000>;
+
+	rk805: pmic@18 {
+		compatible = "rockchip,rk805";
+		reg = <0x18>;
+		interrupt-parent = <&gpio0>;
+		interrupts = <RK_PB4 IRQ_TYPE_LEVEL_LOW>;
+		rockchip,system-power-controller;
+
+		vcc1-supply = <&vcc_sys>;
+		vcc2-supply = <&vcc_sys>;
+		vcc3-supply = <&vcc_sys>;
+		vcc4-supply = <&vcc_sys>;
+		vcc5-supply = <&vcc_sys>;
+		vcc6-supply = <&vcc_sys>;
+
+		regulators {
+			vdd_core: DCDC_REG1 {
+				regulator-name= "vdd_core";
+				regulator-min-microvolt = <700000>;
+				regulator-max-microvolt = <1500000>;
+				regulator-boot-on;
+				regulator-always-on;
+				regulator-state-mem {
+					regulator-state-enabled;
+					regulator-state-uv = <900000>;
+				};
+			};
+
+			vdd_cam: DCDC_REG2 {
+				regulator-name= "vdd_cam";
+				regulator-min-microvolt = <700000>;
+				regulator-max-microvolt = <2000000>;
+				regulator-state-mem {
+					regulator-state-disabled;
+				};
+			};
+
+			vcc_ddr: DCDC_REG3 {
+				regulator-name= "vcc_ddr";
+				regulator-boot-on;
+				regulator-always-on;
+				regulator-state-mem {
+					regulator-state-enabled;
+				};
+			};
+
+			vcc_io: DCDC_REG4 {
+				regulator-name= "vcc_io";
+				regulator-min-microvolt = <3300000>;
+				regulator-max-microvolt = <3300000>;
+				regulator-boot-on;
+				regulator-always-on;
+				regulator-state-mem {
+					regulator-state-enabled;
+					regulator-state-uv = <3300000>;
+				};
+			};
+
+			vdd_10: LDO_REG1 {
+				regulator-name= "vdd_10";
+				regulator-min-microvolt = <1000000>;
+				regulator-max-microvolt = <1000000>;
+				regulator-boot-on;
+				regulator-always-on;
+				regulator-state-mem {
+					regulator-state-disabled;
+				};
+			};
+
+			vcc_18: LDO_REG2 {
+				regulator-name= "vcc_18";
+				regulator-min-microvolt = <1800000>;
+				regulator-max-microvolt = <1800000>;
+				regulator-boot-on;
+				regulator-always-on;
+				regulator-state-mem {
+					regulator-state-disabled;
+				};
+			};
+
+			vdd10_pmu: LDO_REG3 {
+				regulator-name= "vdd10_pmu";
+				regulator-min-microvolt = <1000000>;
+				regulator-max-microvolt = <1000000>;
+				regulator-boot-on;
+				regulator-always-on;
+				regulator-state-mem {
+					regulator-state-enabled;
+					regulator-state-uv = <1000000>;
+				};
+			};
+		};
+	};
 };
 
 &pwm0 {
-- 
2.7.4

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH v2 00/23] Support more devices on rockchip rv1108 Andy Yan <andy.yan@rock-chips.com> - 2017-08-02 10:30 +0200
  [PATCH v2 01/23] clk: rockchip: add more clk ids for rv1108 Andy Yan <andy.yan@rock-chips.com> - 2017-08-02 10:30 +0200
    Re: [PATCH v2 01/23] clk: rockchip: add more clk ids for rv1108 Heiko Stuebner <heiko@sntech.de> - 2017-08-08 17:40 +0200
  [PATCH v2 05/23] clk: rockchip: fix up the pll clks error for rv1108 SoC Andy Yan <andy.yan@rock-chips.com> - 2017-08-02 10:40 +0200
    Re: [PATCH v2 05/23] clk: rockchip: fix up the pll clks error for rv1108 SoC Heiko Stuebner <heiko@sntech.de> - 2017-08-08 01:00 +0200
  [PATCH v2 06/23] clk: rockchip: support more clks for rv1108 Andy Yan <andy.yan@rock-chips.com> - 2017-08-02 10:40 +0200
    Re: [PATCH v2 06/23] clk: rockchip: support more clks for rv1108 Heiko Stuebner <heiko@sntech.de> - 2017-08-08 01:00 +0200
  [PATCH v2 08/23] clk: rockchip: rename some of clks for rv1108 SoC Andy Yan <andy.yan@rock-chips.com> - 2017-08-02 10:40 +0200
  [PATCH v2 04/23] clk: rockchip: support more rates for cpuclk Andy Yan <andy.yan@rock-chips.com> - 2017-08-02 10:40 +0200
    Re: [PATCH v2 04/23] clk: rockchip: support more rates for cpuclk Heiko Stuebner <heiko@sntech.de> - 2017-08-08 01:00 +0200
  [PATCH v2 09/23] clk: rockchip: add some critical clocks for rv1108 SoC Andy Yan <andy.yan@rock-chips.com> - 2017-08-02 10:40 +0200
  [PATCH v2 03/23] clk: rockchip: fix up the indentation stuff for RV1108 SoC Andy Yan <andy.yan@rock-chips.com> - 2017-08-02 10:40 +0200
    Re: [PATCH v2 03/23] clk: rockchip: fix up the indentation stuff for RV1108 SoC Heiko Stuebner <heiko@sntech.de> - 2017-08-08 17:40 +0200
  [PATCH v2 02/23] clk: rockchip: rename the clk id for HCLK_I2S1_2CH Andy Yan <andy.yan@rock-chips.com> - 2017-08-02 10:40 +0200
    Re: [PATCH v2 02/23] clk: rockchip: rename the clk id for HCLK_I2S1_2CH Heiko Stuebner <heiko@sntech.de> - 2017-08-08 17:40 +0200
  [PATCH v2 07/23] clk: rockchip: fix up some clks describe error for rv1108 SoC Andy Yan <andy.yan@rock-chips.com> - 2017-08-02 10:40 +0200
  [PATCH v2 12/23] i2c: rk3x: add support for rv1108 Andy Yan <andy.yan@rock-chips.com> - 2017-08-02 10:50 +0200
  [PATCH v2 10/23] pinctrl: rockchip: add schmitt input mode support for rv1108 Andy Yan <andy.yan@rock-chips.com> - 2017-08-02 10:50 +0200
    Re: [PATCH v2 10/23] pinctrl: rockchip: add schmitt input mode  support for rv1108 Linus Walleij <linus.walleij@linaro.org> - 2017-08-07 11:00 +0200
  [PATCH v2 14/23] spi: rockchip: add compatible string for rv1108 spi Andy Yan <andy.yan@rock-chips.com> - 2017-08-02 10:50 +0200
    Re: [PATCH v2 14/23] spi: rockchip: add compatible string for rv1108  spi Rob Herring <robh@kernel.org> - 2017-08-10 18:20 +0200
  [PATCH v2 16/23] dt-bindings: pwm: add description for rv1108 pwm Andy Yan <andy.yan@rock-chips.com> - 2017-08-02 10:50 +0200
    Re: [PATCH v2 16/23] dt-bindings: pwm: add description for rv1108 pwm Rob Herring <robh@kernel.org> - 2017-08-10 18:20 +0200
  [PATCH v2 18/23] ARM: dts: rockchip: add watchdog dt node for rv1108 Andy Yan <andy.yan@rock-chips.com> - 2017-08-02 10:50 +0200
  [PATCH v2 11/23] dt-bindings: i2c: rk3x: add support for rv1108 Andy Yan <andy.yan@rock-chips.com> - 2017-08-02 10:50 +0200
    Re: [PATCH v2 11/23] dt-bindings: i2c: rk3x: add support for rv1108 Rob Herring <robh@kernel.org> - 2017-08-10 18:20 +0200
  [PATCH v2 17/23] ARM: dts: rockchip: add pwm dt node for rv1108 Andy Yan <andy.yan@rock-chips.com> - 2017-08-02 10:50 +0200
  [PATCH v2 15/23] ARM: dts: rockchip: add spi dt node for rv1108 Andy Yan <andy.yan@rock-chips.com> - 2017-08-02 10:50 +0200
  [PATCH v2 13/23] ARM: dts: rockchip: add i2c dt node for rv1108 Andy Yan <andy.yan@rock-chips.com> - 2017-08-02 10:50 +0200
  [PATCH v2 21/23] ARM: dts: rockchip: add pwm backlight for rv1108 evb Andy Yan <andy.yan@rock-chips.com> - 2017-08-02 11:00 +0200
  [PATCH v2 19/23] dt-bindings: adc: add description for rv1108 saradc Andy Yan <andy.yan@rock-chips.com> - 2017-08-02 11:00 +0200
    Re: [PATCH v2 19/23] dt-bindings: adc: add description for rv1108  saradc Rob Herring <robh@kernel.org> - 2017-08-10 18:20 +0200
  [PATCH v2 20/23] ARM: dts: rockchip: add saradc support for rv1108 Andy Yan <andy.yan@rock-chips.com> - 2017-08-02 11:00 +0200
  [PATCH v2 23/23] ARM: dts: rockchip: add accelerometer bma250e dt node for rv1108 evb Andy Yan <andy.yan@rock-chips.com> - 2017-08-02 11:10 +0200
  [PATCH v2 22/23] ARM: dts: rockchip: add pmic rk805 dt node for rv1108 evb Andy Yan <andy.yan@rock-chips.com> - 2017-08-02 11:10 +0200

csiph-web