ARM: davinci: da850: add tps6507x regulator DT data
authorVishwanathrao Badarkhe, Manish <manishv.b@ti.com>
Thu, 7 Mar 2013 06:26:21 +0000 (11:56 +0530)
committerSekhar Nori <nsekhar@ti.com>
Wed, 3 Apr 2013 04:14:52 +0000 (09:44 +0530)
Add tps6507x regulator device tree data to da850-evm by
adding regulator consumers with tightened constraints
and regulator-name.TPS6507x regulator handle can be obtained
by using this regulator name.
Regulator constraints are added as per da850 board file.

Regulator names are given as per maximum output voltage the
regulator is capable to provide.
for e.g. regulator name for dcdc1 is "VDCDC1_3.3V".
Also, add tps6507x PMIC I2C slave device under I2C0 node.

Tested on da850-evm.

Signed-off-by: Vishwanathrao Badarkhe, Manish <manishv.b@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
arch/arm/boot/dts/da850-evm.dts

index f712fb607a42ec6275ee46c6de13db7613a3a8a2..d1d091bee038a4e05f27d6caff6654858e0da44b 100644 (file)
                        clock-frequency = <100000>;
                        pinctrl-names = "default";
                        pinctrl-0 = <&i2c0_pins>;
+
+                       tps: tps@48 {
+                               reg = <0x48>;
+                       };
                };
                wdt: wdt@1c21000 {
                        status = "okay";
                pinctrl-names = "default";
                pinctrl-0 = <&nand_cs3_pins>;
        };
+       vbat: fixedregulator@0 {
+               compatible = "regulator-fixed";
+               regulator-name = "vbat";
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+               regulator-boot-on;
+       };
+};
+
+/include/ "tps6507x.dtsi"
+
+&tps {
+       vdcdc1_2-supply = <&vbat>;
+       vdcdc3-supply = <&vbat>;
+       vldo1_2-supply = <&vbat>;
+
+       regulators {
+               vdcdc1_reg: regulator@0 {
+                       regulator-name = "VDCDC1_3.3V";
+                       regulator-min-microvolt = <3150000>;
+                       regulator-max-microvolt = <3450000>;
+                       regulator-always-on;
+                       regulator-boot-on;
+               };
+
+               vdcdc2_reg: regulator@1 {
+                       regulator-name = "VDCDC2_3.3V";
+                       regulator-min-microvolt = <1710000>;
+                       regulator-max-microvolt = <3450000>;
+                       regulator-always-on;
+                       regulator-boot-on;
+                       ti,defdcdc_default = <1>;
+               };
+
+               vdcdc3_reg: regulator@2 {
+                       regulator-name = "VDCDC3_1.2V";
+                       regulator-min-microvolt = <950000>;
+                       regulator-max-microvolt = <1350000>;
+                       regulator-always-on;
+                       regulator-boot-on;
+                       ti,defdcdc_default = <1>;
+               };
+
+               ldo1_reg: regulator@3 {
+                       regulator-name = "LDO1_1.8V";
+                       regulator-min-microvolt = <1710000>;
+                       regulator-max-microvolt = <1890000>;
+                       regulator-always-on;
+                       regulator-boot-on;
+               };
+
+               ldo2_reg: regulator@4 {
+                       regulator-name = "LDO2_1.2V";
+                       regulator-min-microvolt = <1140000>;
+                       regulator-max-microvolt = <1320000>;
+                       regulator-always-on;
+                       regulator-boot-on;
+               };
+       };
 };
This page took 0.028544 seconds and 5 git commands to generate.