rk3126-sdk.dts: add pinctrl, fix syntax err
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / rk3126-sdk.dts
index 2ba0bacf391a0806af1071f08e6fef042d66b187..9e2a195c339680dcf5200abb56e22b18d0ee40a9 100755 (executable)
 /dts-v1/;
 
-#include "rk3288.dtsi"
-#include "lcd-b101ew05.dtsi"
+#include "rk312x.dtsi"
+#include "rk312x-pinctrl.dtsi"
 
 / {
        fiq-debugger {
                status = "okay";
        };
-       &nandc {
-               status = "okay"; // used nand set "okay" ,used emmc set "disabled"
-       };  
+};
 
-       &nandc0reg {
-               status = "disabled"; // used nand set "disabled" ,used emmc set "okay"
-       };
+&nandc {
+       status = "okay"; // used nand set "okay" ,used emmc set "disabled"
+}; 
 
-       &emmc {
-               clock-frequency = <100000000>;
-               clock-freq-min-max = <400000 100000000>;
-               supports-highspeed;
-               supports-emmc;
-               bootpart-no-access;
-               supports-DDR_MODE;
-               //caps2-mmc-hs200;
-               ignore-pm-notify;
-               keep-power-in-suspend;
-               //poll-hw-reset
-               status = "disabled";
-       };
+&nandc0reg {
+       status = "disabled"; // used nand set "disabled" ,used emmc set "okay"
+};
+
+&emmc {
+       clock-frequency = <100000000>;
+       clock-freq-min-max = <400000 100000000>;
+       supports-highspeed;
+       supports-emmc;
+       bootpart-no-access;
+       supports-DDR_MODE;
+       //caps2-mmc-hs200;
+       ignore-pm-notify;
+       keep-power-in-suspend;
+       //poll-hw-reset
+       status = "disabled";
+};
+
+&sdmmc {
+       clock-frequency = <50000000>;
+       clock-freq-min-max = <400000 50000000>;
+       supports-highspeed;
+       supports-sd;
+       broken-cd;
+       card-detect-delay = <200>;
+       ignore-pm-notify;
+       keep-power-in-suspend;
+       //vmmc-supply = <&rk808_ldo5_reg>;
+       status = "disabled";
+};
+
+&sdio {
+       clock-frequency = <50000000>;
+       clock-freq-min-max = <200000 50000000>;
+       supports-highspeed;
+       supports-sdio;
+       ignore-pm-notify;
+       keep-power-in-suspend;
+       //cap-sdio-irq;
+       status = "disabled";
+};
 
-       &sdmmc {
-               clock-frequency = <50000000>;
-               clock-freq-min-max = <400000 50000000>;
-               supports-highspeed;
-               supports-sd;
-               broken-cd;
-               card-detect-delay = <200>;
-               ignore-pm-notify;
-               keep-power-in-suspend;
-               //vmmc-supply = <&rk808_ldo5_reg>;
-               status = "disabled";
+&i2c0 {
+       status = "okay";
+       rk818: rk818@1c {
+               reg = <0x1c>;
+               status = "okay";
        };
+};
+
+/include/ "rk818.dtsi"
+&rk818 {
+       gpios =<&gpio1 GPIO_B1 GPIO_ACTIVE_HIGH>,<&gpio1 GPIO_A1 GPIO_ACTIVE_LOW>;
+       rk818,system-power-controller;
+
+       regulators {
+
+               rk818_dcdc1_reg: regulator@0{
+                       regulator-name= "vdd_arm";
+                       regulator-min-microvolt = <700000>;
+                       regulator-max-microvolt = <1500000>;
+                       regulator-initial-mode = <0x2>;
+                       regulator-initial-state = <3>;
+                       regulator-state-mem {
+                               regulator-state-mode = <0x2>;
+                               regulator-state-enabled;
+                               regulator-state-uv = <900000>;
+                       };
+               };
+
+               rk818_dcdc2_reg: regulator@1 {
+                       regulator-name= "vdd_logic";
+                       regulator-min-microvolt = <700000>;
+                       regulator-max-microvolt = <1500000>;
+                       regulator-initial-mode = <0x2>;
+                       regulator-initial-state = <3>;
+                       regulator-state-mem {
+                               regulator-state-mode = <0x2>;
+                               regulator-state-enabled;
+                               regulator-state-uv = <900000>;
+                       };
+               };
 
-       &sdio {
-               clock-frequency = <50000000>;
-               clock-freq-min-max = <200000 50000000>;
-               supports-highspeed;
-               supports-sdio;
-               ignore-pm-notify;
-               keep-power-in-suspend;
-               //cap-sdio-irq;
-               status = "disabled";
+               rk818_dcdc3_reg: regulator@2 {
+                       regulator-name= "rk818_dcdc3";
+                       regulator-min-microvolt = <1200000>;
+                       regulator-max-microvolt = <1200000>;
+                       regulator-initial-mode = <0x2>;
+                       regulator-initial-state = <3>;
+                       regulator-state-mem {
+                               regulator-state-mode = <0x2>;
+                               regulator-state-disabled;
+                               regulator-state-uv = <1200000>;
+                       };
+               };
+
+               rk818_dcdc4_reg: regulator@3 {
+                       regulator-name= "vccio";
+                       regulator-min-microvolt = <1800000>;
+                       regulator-max-microvolt = <3300000>;
+                       regulator-initial-mode = <0x2>;
+                       regulator-initial-state = <3>;
+                       regulator-state-mem {
+                               regulator-state-mode = <0x2>;
+                               regulator-state-disabled;
+                               regulator-state-uv = <2800000>;
+                       };
+               };
+
+               rk818_ldo1_reg: regulator@4 {
+                       regulator-name= "rk818_ldo1";
+                       regulator-min-microvolt = <3300000>;
+                       regulator-max-microvolt = <3300000>;
+                       regulator-initial-state = <3>;
+                       regulator-state-mem {
+                               regulator-state-disabled;
+                               regulator-state-uv = <3300000>;
+                       };
+               };
+
+               rk818_ldo2_reg: regulator@5 {
+                       regulator-name= "rk818_ldo2";
+                       regulator-min-microvolt = <3000000>;
+                       regulator-max-microvolt = <3000000>;
+                       regulator-initial-state = <3>;
+                       regulator-state-mem {
+                               regulator-state-disabled;
+                               regulator-state-uv = <3000000>;
+                       };
+               };
+
+               rk818_ldo3_reg: regulator@6 {
+                       regulator-name= "rk818_ldo3";
+                       regulator-min-microvolt = <1100000>;
+                       regulator-max-microvolt = <1100000>;
+                       regulator-initial-state = <3>;
+                       regulator-state-mem {
+                               regulator-state-disabled;
+                               regulator-state-uv = <1100000>;
+                       };
+               };
+
+               rk818_ldo4_reg:regulator@7 {
+                       regulator-name= "rk818_ldo4";
+                       regulator-min-microvolt = <2500000>;
+                       regulator-max-microvolt = <2500000>;
+                       regulator-initial-state = <3>;
+                       regulator-state-mem {
+                               regulator-state-disabled;
+                               regulator-state-uv = <2500000>;
+                       };
+               };
+
+               rk818_ldo5_reg: regulator@8 {
+                       regulator-name= "rk818_ldo5";
+                       regulator-min-microvolt = <3000000>;
+                       regulator-max-microvolt = <3000000>;
+                       regulator-initial-state = <3>;
+                       regulator-state-mem {
+                               regulator-state-disabled;
+                               regulator-state-uv = <3000000>;
+                       };
+               };
+
+               rk818_ldo6_reg: regulator@9 {
+                       regulator-name= "rk818_ldo6";
+                       regulator-min-microvolt = <1200000>;
+                       regulator-max-microvolt = <1200000>;
+                       regulator-initial-state = <3>;
+                       regulator-state-mem {
+                               regulator-state-disabled;
+                               regulator-state-uv = <1200000>;
+                       };
+               };
+
+               rk818_ldo7_reg: regulator@10 {
+                       regulator-name= "rk818_ldo7";
+                       regulator-min-microvolt = <1800000>;
+                       regulator-max-microvolt = <1800000>;
+                       regulator-initial-state = <3>;
+                       regulator-state-mem {
+                               regulator-state-disabled;
+                               regulator-state-uv = <1800000>;
+                       };
+               };
+
+               rk818_ldo8_reg: regulator@11 {
+                       regulator-name= "rk818_ldo8";
+                       regulator-min-microvolt = <1800000>;
+                       regulator-max-microvolt = <1800000>;
+                       regulator-initial-state = <3>;
+                       regulator-state-mem {
+                               regulator-state-disabled;
+                               regulator-state-uv = <1800000>;
+                       };
+               };
+               rk818_ldo9_reg: regulator@12 {
+                       regulator-name= "vcc_sd";
+                       regulator-min-microvolt = <1800000>;
+                       regulator-max-microvolt = <3000000>;
+                       regulator-initial-state = <3>;
+                       regulator-state-mem {
+                               regulator-state-disabled;
+                               regulator-state-uv = <3000000>;
+                       };
+               };
+               rk818_ldo10_reg: regulator@13 {
+                       regulator-name= "rk818_ldo10";
+                       regulator-state-mem {
+                               regulator-state-disabled;
+                       };
+               };
        };
-    };
+
+};