apf27dev: add max5821 to the dts
authorPhilippe Reynes <tremyfr@gmail.com>
Thu, 27 Nov 2014 20:33:59 +0000 (21:33 +0100)
committerShawn Guo <shawn.guo@linaro.org>
Mon, 5 Jan 2015 12:43:48 +0000 (20:43 +0800)
Signed-off-by: Philippe Reynes <tremyfr@gmail.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/boot/dts/imx27-apf27dev.dts

index da306c5dd6782862e67d1470c0e5ddcbc4a7dfd0..bba3f41b89ef680b587c11cb6e1215a5c45b1885 100644 (file)
                        linux,default-trigger = "heartbeat";
                };
        };
+
+       regulators {
+               compatible = "simple-bus";
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               reg_max5821: regulator@0 {
+                       compatible = "regulator-fixed";
+                       reg = <0>;
+                       regulator-name = "max5821-reg";
+                       regulator-min-microvolt = <2500000>;
+                       regulator-max-microvolt = <2500000>;
+                       regulator-always-on;
+               };
+       };
 };
 
 &cspi1 {
                compatible = "dallas,ds1374";
                reg = <0x68>;
        };
+
+       max5821@38 {
+               compatible = "maxim,max5821";
+               reg = <0x38>;
+               vref-supply = <&reg_max5821>;
+       };
 };
 
 &i2c2 {