mfd: max8925: Add dts
authorQing Xu <qingx@marvell.com>
Mon, 4 Feb 2013 15:40:46 +0000 (23:40 +0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 13 Feb 2013 23:23:01 +0000 (00:23 +0100)
Add max8925 dts support into mmp2 brownstone platform

Signed-off-by: Qing Xu <qingx@marvell.com>
Signed-off-by: Haojian Zhuang <haojian.zhuang@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
arch/arm/boot/dts/mmp2-brownstone.dts
arch/arm/boot/dts/mmp2.dtsi

index c9b4f27d191e1c61c7099da10910b69d24c34b8d..7f70a39459f649d7051b5423c754e356686762db 100644 (file)
                        };
                        twsi1: i2c@d4011000 {
                                status = "okay";
+                               pmic: max8925@3c {
+                                       compatible = "maxium,max8925";
+                                       reg = <0x3c>;
+                                       interrupts = <1>;
+                                       interrupt-parent = <&intcmux4>;
+                                       interrupt-controller;
+                                       #interrupt-cells = <1>;
+                                       maxim,tsc-irq = <0>;
+
+                                       regulators {
+                                               SDV1 {
+                                                       regulator-min-microvolt = <637500>;
+                                                       regulator-max-microvolt = <1425000>;
+                                                       regulator-boot-on;
+                                                       regulator-always-on;
+                                               };
+                                               SDV2 {
+                                                       regulator-min-microvolt = <650000>;
+                                                       regulator-max-microvolt = <2225000>;
+                                                       regulator-boot-on;
+                                                       regulator-always-on;
+                                               };
+                                               SDV3 {
+                                                       regulator-min-microvolt = <750000>;
+                                                       regulator-max-microvolt = <3900000>;
+                                                       regulator-boot-on;
+                                                       regulator-always-on;
+                                               };
+                                               LDO1 {
+                                                       regulator-min-microvolt = <750000>;
+                                                       regulator-max-microvolt = <3900000>;
+                                                       regulator-boot-on;
+                                                       regulator-always-on;
+                                               };
+                                               LDO2 {
+                                                       regulator-min-microvolt = <650000>;
+                                                       regulator-max-microvolt = <2250000>;
+                                                       regulator-boot-on;
+                                                       regulator-always-on;
+                                               };
+                                               LDO3 {
+                                                       regulator-min-microvolt = <650000>;
+                                                       regulator-max-microvolt = <2250000>;
+                                                       regulator-boot-on;
+                                                       regulator-always-on;
+                                               };
+                                               LDO4 {
+                                                       regulator-min-microvolt = <750000>;
+                                                       regulator-max-microvolt = <3900000>;
+                                                       regulator-boot-on;
+                                                       regulator-always-on;
+                                               };
+                                               LDO5 {
+                                                       regulator-min-microvolt = <750000>;
+                                                       regulator-max-microvolt = <3900000>;
+                                                       regulator-boot-on;
+                                                       regulator-always-on;
+                                               };
+                                               LDO6 {
+                                                       regulator-min-microvolt = <750000>;
+                                                       regulator-max-microvolt = <3900000>;
+                                                       regulator-boot-on;
+                                                       regulator-always-on;
+                                               };
+                                               LDO7 {
+                                                       regulator-min-microvolt = <750000>;
+                                                       regulator-max-microvolt = <3900000>;
+                                                       regulator-boot-on;
+                                                       regulator-always-on;
+                                               };
+                                               LDO8 {
+                                                       regulator-min-microvolt = <750000>;
+                                                       regulator-max-microvolt = <3900000>;
+                                                       regulator-boot-on;
+                                                       regulator-always-on;
+                                               };
+                                               LDO9 {
+                                                       regulator-min-microvolt = <750000>;
+                                                       regulator-max-microvolt = <3900000>;
+                                                       regulator-boot-on;
+                                                       regulator-always-on;
+                                               };
+                                               LDO10 {
+                                                       regulator-min-microvolt = <750000>;
+                                                       regulator-max-microvolt = <3900000>;
+                                               };
+                                               LDO11 {
+                                                       regulator-min-microvolt = <750000>;
+                                                       regulator-max-microvolt = <3900000>;
+                                                       regulator-boot-on;
+                                                       regulator-always-on;
+                                               };
+                                               LDO12 {
+                                                       regulator-min-microvolt = <750000>;
+                                                       regulator-max-microvolt = <3900000>;
+                                                       regulator-boot-on;
+                                                       regulator-always-on;
+                                               };
+                                               LDO13 {
+                                                       regulator-min-microvolt = <750000>;
+                                                       regulator-max-microvolt = <3900000>;
+                                                       regulator-boot-on;
+                                                       regulator-always-on;
+                                               };
+                                               LDO14 {
+                                                       regulator-min-microvolt = <750000>;
+                                                       regulator-max-microvolt = <3900000>;
+                                                       regulator-boot-on;
+                                                       regulator-always-on;
+                                               };
+                                               LDO15 {
+                                                       regulator-min-microvolt = <750000>;
+                                                       regulator-max-microvolt = <3900000>;
+                                                       regulator-boot-on;
+                                                       regulator-always-on;
+                                               };
+                                               LDO16 {
+                                                       regulator-min-microvolt = <750000>;
+                                                       regulator-max-microvolt = <3900000>;
+                                                       regulator-boot-on;
+                                                       regulator-always-on;
+                                               };
+                                               LDO17 {
+                                                       regulator-min-microvolt = <650000>;
+                                                       regulator-max-microvolt = <2250000>;
+                                                       regulator-boot-on;
+                                                       regulator-always-on;
+                                               };
+                                               LDO18 {
+                                                       regulator-min-microvolt = <650000>;
+                                                       regulator-max-microvolt = <2250000>;
+                                                       regulator-boot-on;
+                                                       regulator-always-on;
+                                               };
+                                               LDO19 {
+                                                       regulator-min-microvolt = <750000>;
+                                                       regulator-max-microvolt = <3900000>;
+                                                       regulator-boot-on;
+                                                       regulator-always-on;
+                                               };
+                                               LDO20 {
+                                                       regulator-min-microvolt = <750000>;
+                                                       regulator-max-microvolt = <3900000>;
+                                                       regulator-boot-on;
+                                                       regulator-always-on;
+                                               };
+                                       };
+                                       backlight {
+                                               maxim,max8925-dual-string = <0>;
+                                       };
+                                       charger {
+                                               batt-detect = <0>;
+                                               topoff-threshold = <1>;
+                                               fast-charge = <7>;
+                                               no-temp-support = <0>;
+                                               no-insert-detect = <0>;
+                                       };
+                               };
                        };
                        rtc: rtc@d4010000 {
                                status = "okay";
index 0514fb41627e1130a52d3c4ed56ff81ea23d68d0..1429ac05b36d45cff8aff69e745e98444c547f88 100644 (file)
@@ -46,7 +46,7 @@
                                mrvl,intc-nr-irqs = <64>;
                        };
 
-                       intcmux4@d4282150 {
+                       intcmux4: interrupt-controller@d4282150 {
                                compatible = "mrvl,mmp2-mux-intc";
                                interrupts = <4>;
                                interrupt-controller;
                                compatible = "mrvl,mmp-twsi";
                                reg = <0xd4011000 0x1000>;
                                interrupts = <7>;
+                               #address-cells = <1>;
+                               #size-cells = <0>;
                                mrvl,i2c-fast-mode;
                                status = "disabled";
                        };