From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nishanth Menon Subject: [PATCH V2 3/8] ARM: dts: OMAP3: use twl4030 vdd1 regulator for CPU Date: Tue, 19 Mar 2013 12:53:05 -0500 Message-ID: <1363715590-5131-4-git-send-email-nm@ti.com> References: <1363715590-5131-1-git-send-email-nm@ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <1363715590-5131-1-git-send-email-nm@ti.com> Sender: cpufreq-owner@vger.kernel.org To: linux-omap@vger.kernel.org Cc: Nishanth Menon , Kevin Hilman , Jon Hunter , =?UTF-8?q?Beno=C3=AEt=20Cousson?= , Santosh Shilimkar , Shawn Guo , Keerthy , devicetree-discuss@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, cpufreq@vger.kernel.org, linux-pm@vger.kernel.org List-Id: linux-pm@vger.kernel.org Define VDD1 regulator in twl4030 DT and mark it as the supply for the various OMAP34xx/35xx/36xx/37xx platforms (all use TWL4030 variants wit= h VDD1 supplying the CPU). NOTE: This currently will use I2C1 bus communication path to set the voltage in device tree boot. In the legacy non device tree boot, we continue to use twl-common.c which bypasses I2C1 bus communication path and uses I2C4 bus path using OMAP voltage libraries. We should eventually be able to use I2C4 path once we have voltage regulator for OMAP which is capable of using the voltage controller/voltage processor IP blocks. Cc: Kevin Hilman Cc: Jon Hunter Cc: "Beno=C3=AEt Cousson" Cc: Santosh Shilimkar Cc: Shawn Guo Cc: Keerthy Cc: linux-omap@vger.kernel.org Cc: devicetree-discuss@lists.ozlabs.org Cc: linux-arm-kernel@lists.infradead.org Cc: cpufreq@vger.kernel.org Cc: linux-pm@vger.kernel.org Signed-off-by: Nishanth Menon --- Changes in V2: - little more verbose commit log (no functional changes) V1: https://patchwork.kernel.org/patch/2273701/ arch/arm/boot/dts/omap3-beagle-xm.dts | 6 ++++++ arch/arm/boot/dts/omap3-beagle.dts | 6 ++++++ arch/arm/boot/dts/omap3-evm.dts | 6 ++++++ arch/arm/boot/dts/twl4030.dtsi | 6 ++++++ 4 files changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/omap3-beagle-xm.dts b/arch/arm/boot/dts/= omap3-beagle-xm.dts index 1177ff6..5a31964 100644 --- a/arch/arm/boot/dts/omap3-beagle-xm.dts +++ b/arch/arm/boot/dts/omap3-beagle-xm.dts @@ -13,6 +13,12 @@ model =3D "TI OMAP3 BeagleBoard xM"; compatible =3D "ti,omap3-beagle-xm, ti,omap3-beagle", "ti,omap3"; =20 + cpus { + cpu@0 { + cpu0-supply =3D <&vcc>; + }; + }; + memory { device_type =3D "memory"; reg =3D <0x80000000 0x20000000>; /* 512 MB */ diff --git a/arch/arm/boot/dts/omap3-beagle.dts b/arch/arm/boot/dts/oma= p3-beagle.dts index 418550c..07dea0a 100644 --- a/arch/arm/boot/dts/omap3-beagle.dts +++ b/arch/arm/boot/dts/omap3-beagle.dts @@ -13,6 +13,12 @@ model =3D "TI OMAP3 BeagleBoard"; compatible =3D "ti,omap3-beagle", "ti,omap3"; =20 + cpus { + cpu@0 { + cpu0-supply =3D <&vcc>; + }; + }; + memory { device_type =3D "memory"; reg =3D <0x80000000 0x10000000>; /* 256 MB */ diff --git a/arch/arm/boot/dts/omap3-evm.dts b/arch/arm/boot/dts/omap3-= evm.dts index f14370e..05f51e1 100644 --- a/arch/arm/boot/dts/omap3-evm.dts +++ b/arch/arm/boot/dts/omap3-evm.dts @@ -13,6 +13,12 @@ model =3D "TI OMAP3 EVM (OMAP3530, AM/DM37x)"; compatible =3D "ti,omap3-evm", "ti,omap3"; =20 + cpus { + cpu@0 { + cpu0-supply =3D <&vcc>; + }; + }; + memory { device_type =3D "memory"; reg =3D <0x80000000 0x10000000>; /* 256 MB */ diff --git a/arch/arm/boot/dts/twl4030.dtsi b/arch/arm/boot/dts/twl4030= =2Edtsi index 23c0cdd..b3034da 100644 --- a/arch/arm/boot/dts/twl4030.dtsi +++ b/arch/arm/boot/dts/twl4030.dtsi @@ -23,6 +23,12 @@ compatible =3D "ti,twl4030-wdt"; }; =20 + vcc: regulator-vdd1 { + compatible =3D "ti,twl4030-vdd1"; + regulator-min-microvolt =3D <600000>; + regulator-max-microvolt =3D <1450000>; + }; + vdac: regulator-vdac { compatible =3D "ti,twl4030-vdac"; regulator-min-microvolt =3D <1800000>; --=20 1.7.9.5