mmc: dts: limit clk for audi(s), and enable sdio by default
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / rk3288-tb.dts
index a317900dd824217382dab36673e5827987b9993f..2f99f0b032dbf111351b77f00c918be8af0e7c21 100755 (executable)
                rockchip,remote_wakeup;
                rockchip,usb_irq_wakeup;
        };
+       chosen {
+                bootargs = "vmalloc=512M";
+        };
 };
 
 &gmac {
 
 };
 
+&nandc0 {
+       status = "disabled"; // used nand set "disabled" ,used emmc set "okay"
+};
+&nandc1 {
+       status = "disabled"; // used nand set "disabled" ,used emmc set "okay"
+};   
+
+&nandc0reg {
+       status = "okay"; // used nand set "disabled" ,used emmc set "okay"
+};
+
 &emmc {
        clock-frequency = <100000000>;
        clock-freq-min-max = <400000 100000000>;
     
 &sdmmc {
                clock-frequency = <50000000>;
-               lock-freq-min-max = <400000 50000000>;
+               clock-freq-min-max = <400000 50000000>;
                supports-highspeed;
                supports-sd;
                broken-cd;
                        regulator-name = "vdd_gpu";
                        regulator-min-microvolt = <712500>;
                        regulator-max-microvolt = <1500000>;
-       //              regulator-always-on;
-                       regulator-boot-on;
+                       regulator-always-on;
+               regulator-boot-on;
                        regulator-initial-mode = <0x2>;
                        regulator-initial-state = <3>;
                        regulator-state-mem {
                                regulator-state-mode = <0x2>;
-                               regulator-state-disabled;
+                               regulator-state-enabled;
                                regulator-state-uv = <900000>;
                        };      
                };
               poll_delay_ms = <30>;
               layout = <1>;
        };
-       
+
+    nfc-bcm2079x@76 {
+        compatible = "nfc-bcm2079x.ap6441";
+        reg = <0x76>;
+        en_gpio = <&gpio4 GPIO_D3 GPIO_ACTIVE_HIGH>;
+        wake_gpio = <&gpio5 GPIO_C0 GPIO_ACTIVE_HIGH>;
+        irq_gpio = <&gpio5 GPIO_B7 IRQ_TYPE_EDGE_RISING>;
+        status = "disabled";
+    };
+    nfc-bcm2079x@77 {
+        compatible = "nfc-bcm2079x.ap6493";
+        reg = <0x77>;
+        en_gpio = <&gpio4 GPIO_D3 GPIO_ACTIVE_HIGH>;
+        wake_gpio = <&gpio5 GPIO_C0 GPIO_ACTIVE_HIGH>;
+        irq_gpio = <&gpio5 GPIO_B7 IRQ_TYPE_EDGE_RISING>;
+        status = "disabled";
+    };
 };
 
 &i2c2 {
 
 &fb {
        rockchip,disp-mode = <DUAL>;
+       rockchip,uboot-logo-on = <1>;
 };
 
 &rk_screen {
         display-timings = <&disp_timings>;
 };
 
-/*lcdc1 as PRMRY(LCD),lcdc0 as EXTEND(HDMI)*/
-&lcdc1 {
+/*lcdc0 as PRMRY(LCD),lcdc1 as EXTEND(HDMI)*/
+&lcdc0 {
        status = "okay";
+       rockchip,mirror = <NO_MIRROR>;
        rockchip,cabc_mode = <0>;
        power_ctr: power_ctr {
                rockchip,debug = <0>;
-               rockchip,mirror = <NO_MIRROR>;
                lcd_en:lcd_en {
                        rockchip,power_type = <GPIO>;
                        gpios = <&gpio7 GPIO_A3 GPIO_ACTIVE_HIGH>;
                };
                
                lcd_cs:lcd_cs {
-rockchip,power_type = <GPIO>;
+                       rockchip,power_type = <GPIO>;
                        gpios = <&gpio7 GPIO_A4 GPIO_ACTIVE_HIGH>;
                        rockchip,delay = <10>;
                };
@@ -588,8 +619,9 @@ rockchip,power_type = <GPIO>;
        };
 };
 
-&lcdc0 {
+&lcdc1 {
        status = "okay";
+       rockchip,mirror = <NO_MIRROR>;
 };
 
 &hdmi {
@@ -717,7 +749,7 @@ rockchip,power_type = <GPIO>;
                SYS_STATUS_PERFORMANCE  528000
                SYS_STATUS_DUALVIEW     400000
                SYS_STATUS_BOOST        324000
-               SYS_STATUS_ISP          400000
+               SYS_STATUS_ISP          533000
                >;
        auto-freq-table = <
                240000
@@ -779,7 +811,7 @@ rockchip,power_type = <GPIO>;
 
                ldo1_reg: regulator@4 {
                        regulator-name= "vccio_sd";
-                       regulator-min-microvolt = <3300000>;
+                       regulator-min-microvolt = <1800000>;
                        regulator-max-microvolt = <3300000>;
                        
                };
@@ -859,8 +891,8 @@ rockchip,power_type = <GPIO>;
 
                rk808_dcdc2_reg: regulator@1 {
                        regulator-name= "vdd_gpu";
-               //      regulator-always-on;
-                       regulator-boot-on;
+                       //regulator-always-on;
+                       //regulator-boot-on;
                };
 
                rk808_dcdc3_reg: regulator@2 {
@@ -964,67 +996,67 @@ rockchip,power_type = <GPIO>;
        
        regulators {
                ricoh619_dcdc1_reg: regulator@0 {
-                       regulator-name = "vdd_logic";
-                       regulator-min-microvolt = < 700000>;
-                       regulator-max-microvolt = <1500000>;
+                       regulator-name = "vccio";
+                       regulator-min-microvolt = <3300000>;
+                       regulator-max-microvolt = <3300000>;
                        regulator-initial-mode = <0x2>;
                        regulator-initial-state = <3>;
                        regulator-state-mem {
                                regulator-state-mode = <0x2>;
                                regulator-state-enabled;
-                               regulator-state-uv = <900000>;
+                               regulator-state-uv = <2800000>;
                        };      
                };
                ricoh619_dcdc2_reg: regulator@1 {
                        regulator-name = "ricoh619_dcdc2";
-                       regulator-min-microvolt = <1200000>;
-                       regulator-max-microvolt = <1200000>;
+                       regulator-min-microvolt = <2000000>;
+                       regulator-max-microvolt = <2000000>;
                        regulator-initial-mode = <0x2>;
                        regulator-initial-state = <3>;
                        regulator-state-mem {
                                regulator-state-mode = <0x2>;
                                regulator-state-enabled;
-                               regulator-state-uv = <1200000>;
+                               regulator-state-uv = <2000000>;
                        };      
                };
                ricoh619_dcdc3_reg: regulator@2 {
-                       regulator-name = "ricoh619_dcdc3";
-                       regulator-min-microvolt = < 1200000>;
-                       regulator-max-microvolt = <1200000>;
+                       regulator-name = "vcc_lcd";
+                       regulator-min-microvolt = <3300000>;
+                       regulator-max-microvolt = <3300000>;
                        regulator-initial-mode = <0x2>;
                        regulator-initial-state = <3>;
                        regulator-state-mem {
                                regulator-state-mode = <0x2>;
                                regulator-state-enabled;
-                               regulator-state-uv = <1200000>;
+                               regulator-state-uv = <3300000>;
                        };      
                };
                ricoh619_dcdc4_reg: regulator@3 {
-                       regulator-name = "ricoh619_dcdc4";
-                       regulator-min-microvolt = < 3300000>;
-                       regulator-max-microvolt = <3300000>;
+                       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 = <2800000>;
+                               regulator-state-uv = <900000>;
                        };      
                };
                ricoh619_dcdc5_reg: regulator@4 {
-                       regulator-name = "ricoh619_dcdc5";
-                       regulator-min-microvolt = < 2000000>;
-                       regulator-max-microvolt = <2000000>;
+                       regulator-name = "vcc_ddr";
+                       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-enabled;
-                               regulator-state-uv = <2000000>;
+                               regulator-state-uv = <1200000>;
                        };      
                };
                ricoh619_ldo1_reg: regulator@5  {
-                       regulator-name = "ricoh619_ldo1";
+                       regulator-name = "vccio_pmu";
                        regulator-min-microvolt = <3300000>;
                        regulator-max-microvolt = <3300000>;
                        regulator-initial-state = <3>;
@@ -1064,13 +1096,13 @@ rockchip,power_type = <GPIO>;
                        };
                };
                ricoh619_ldo5_reg: regulator@9  {
-                       regulator-name = "ricoh619_ldo5";
-                       regulator-min-microvolt = <3300000>;
-                       regulator-max-microvolt = <3300000>;
+                       regulator-name = "vcc_wl";
+                       regulator-min-microvolt = <1800000>;
+                       regulator-max-microvolt = <1800000>;
                        regulator-initial-state = <3>;
                        regulator-state-mem {
                                regulator-state-enabled;
-                               regulator-state-uv = <3300000>;
+                               regulator-state-uv = <1800000>;
                        };
                };
                ricoh619_ldo6_reg: regulator@10  {
@@ -1090,13 +1122,13 @@ rockchip,power_type = <GPIO>;
                        regulator-initial-state = <3>;
                        regulator-state-mem {
                                regulator-state-enabled;
-                               regulator-state-uv = <3300000>;
+                               regulator-state-uv = <1000000>;
                        };
                };
                ricoh619_ldo8_reg: regulator@12  {
                        regulator-name = "ricoh619_ldo8";
-                       regulator-min-microvolt = <1800000>;
-                       regulator-max-microvolt = <1800000>;
+                       regulator-min-microvolt = <3300000>;
+                       regulator-max-microvolt = <3300000>;
                        regulator-initial-state = <3>;
                        regulator-state-mem {
                                regulator-state-enabled;
@@ -1110,17 +1142,17 @@ rockchip,power_type = <GPIO>;
                        regulator-initial-state = <3>;
                        regulator-state-mem {
                                regulator-state-enabled;
-                               regulator-state-uv = <3300000>;
+                               regulator-state-uv = <1000000>;
                        };
                };
                ricoh619_ldo10_reg: regulator@14  {
-                       regulator-name = "ricoh619_ldo10";
+                       regulator-name = "vcc_18";
                        regulator-min-microvolt = <1800000>;
                        regulator-max-microvolt = <1800000>;
                        regulator-initial-state = <3>;
                        regulator-state-mem {
                                regulator-state-enabled;
-                               regulator-state-uv = <3300000>;
+                               regulator-state-uv = <1800000>;
                        };
                };
                ricoh619_ldortc1_reg: regulator@15  {
@@ -1339,4 +1371,13 @@ rockchip,power_type = <GPIO>;
 &sdmmc0_vdd_domain{
        regulator-name = "vcc_sd";                      
        };
-       
+
+&ion_cma {
+       reg = <0x40000000 0x28000000>; /* 640MB */
+};
+
+&dwc_control_usb {
+       usb_uart {
+               status = "disabled";
+       };
+};