arm: dts: rk3288-evb-act8846: add power supply for eDP
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / rk3288-tb_8846.dts
old mode 100644 (file)
new mode 100755 (executable)
index c16d2cd..230a75d
@@ -3,6 +3,8 @@
 #include "rk3288.dtsi"
 //#include "lcd-b101ew05.dtsi"
 #include "lcd-F402.dtsi"
+#include "vtl_ts_sdk8846.dtsi"
+#include "rk3288-cif-sensor.dtsi"
 / {
        fiq-debugger {
                status = "okay";
     wireless-wlan {
         compatible = "wlan-platdata";
 
-        wifi_chip_type = "";
+               /* wifi_chip_type - wifi chip define
+                 * ap6210, ap6330, ap6335
+                 * rtl8188eu, rtl8723bs, rtl8723bu
+                 * esp8089
+               */
+               wifi_chip_type = "ap6335";
+
         sdio_vref = <1800>; //1800mv or 3300mv
 
+        //keep_wifi_power_on;
+
         //power_ctrl_by_pmu;
         power_pmu_regulator = "act_ldo3";
         power_pmu_enable_level = <1>; //1->HIGH, 0->LOW
@@ -43,7 +53,7 @@
         BT,power_gpio = <&gpio4 GPIO_D3 GPIO_ACTIVE_HIGH>;
         BT,reset_gpio = <&gpio4 GPIO_D5 GPIO_ACTIVE_HIGH>;
         BT,wake_gpio = <&gpio4 GPIO_D2 GPIO_ACTIVE_HIGH>;
-        BT,wake_host_irq = <&gpio4 GPIO_D7 GPIO_ACTIVE_LOW>;
+        BT,wake_host_irq = <&gpio4 GPIO_D7 GPIO_ACTIVE_HIGH>;
 
         status = "okay";
     };
                dais {
                        dai0 {
                                audio-codec = <&codec_hdmi_i2s>;
-                               i2s-controller = <&i2s>;
+                               audio-controller = <&i2s>;
                                format = "i2s";
                                //continuous-clock;
                                //bitclock-inversion;
                dais {
                        dai0 {
                                audio-codec = <&codec_hdmi_spdif>;
-                               i2s-controller = <&spdif>;
+                               audio-controller = <&spdif>;
                        };
                };
        };
                dais {
                        dai0 {
                                audio-codec = <&rt5631>;
-                               i2s-controller = <&i2s>;
+                               audio-controller = <&i2s>;
                                format = "i2s";
                                //continuous-clock;
                                //bitclock-inversion;
                dais {
                        dai0 {
                                audio-codec = <&rt3261>;
-                               i2s-controller = <&i2s>;
+                               audio-controller = <&i2s>;
                                format = "i2s";
                                //continuous-clock;
                                //bitclock-inversion;
                        };
                        dai1 {
                                audio-codec = <&rt3261>;
-                               i2s-controller = <&i2s>;
+                               audio-controller = <&i2s>;
                                format = "dsp_a";
                                //continuous-clock;
                                bitclock-inversion;
                rockchip,remote_wakeup;
                rockchip,usb_irq_wakeup;
        };
+        chosen {
+                bootargs = "vmalloc=512M";
+        };
 };
 
 &gmac {
        power-gpio = <&gpio0 GPIO_A6 GPIO_ACTIVE_HIGH>;
 //     power-pmu = "act_ldo"
 //     reset-gpio = <&gpio4 GPIO_A7 GPIO_ACTIVE_LOW>;
+        phy-mode = "rgmii";
+        clock_in_out = "input";
+        tx_delay = <0x28>;
+        rx_delay = <0x10>;
+       status = "disabled"; //if want to use gmac, please set "okay"
 };
 
 &pinctrl {
                
        //could add other pinctrl definition such as gpio
 
+       // gmac drive strength
+       gpio4_gmac {
+               mac_clk: mac-clk {
+                       rockchip,drive = <VALUE_DRV_12MA>;
+               };
+
+               mac_txpins: mac-txpins {
+                       rockchip,drive = <VALUE_DRV_12MA>;
+               };
+
+               mac_rxpins: mac-rxpins {
+                       rockchip,drive = <VALUE_DRV_12MA>;
+               };
+
+               mac_crs: mac-crs {
+                       rockchip,drive = <VALUE_DRV_12MA>;
+               };
+
+               mac_mdpins: mac-mdpins {
+                       rockchip,drive = <VALUE_DRV_12MA>;
+               };
+       };
 };
 
 &nandc0 {
 
         supports-highspeed;
        supports-emmc;
-        bootpart-no-access;
+        //supports-sd;
+       bootpart-no-access;
 
        //supports-DDR_MODE; //you should set the two value in your project. only close in RK3288-SDK board.
        //caps2-mmc-hs200;
 };
 
 &spi0 {
-       status = "okay";
+       status = "disabled";
        max-freq = <48000000>;  
        /*
        spi_test@00 {
 };
 
 &spi1 {
-       status = "okay";
+       status = "disabled";
        max-freq = <48000000>;
        /*
        spi_test@10 {
 };
 
 &spi2 {
-       status = "okay";
+       status = "disabled";
        max-freq = <48000000>;
        /*
        spi_test@20 {
                irq_gpio = <&gpio0 GPIO_A4 IRQ_TYPE_EDGE_FALLING>;
        };
 
+       /*
+       mpu6880_acc:mpu_acc@68{
+               compatible = "mpu6880_acc";
+               reg = <0x68>;
+               irq_enable = <0>;
+               poll_delay_ms = <30>;
+               type = <SENSOR_TYPE_ACCEL>;
+               layout = <7>;
+       };
+       mpu6880_gyro:mpu_gyro@68{
+               compatible = "mpu6880_gyro";
+               reg = <0x68>;
+               //irq-gpio = <&gpio7 GPIO_B0 IRQ_TYPE_LEVEL_LOW>;
+               irq_enable = <0>;
+               poll_delay_ms = <30>;
+               type = <SENSOR_TYPE_GYROSCOPE>;
+               layout = <7>;
+       };
+       */
 };
 
 &i2c1 {
        status = "okay";
-               
        mpu6050:mpu@68{
                compatible = "mpu6050";
                reg = <0x68>;
                irq-gpio = <&gpio8 GPIO_A0 IRQ_TYPE_LEVEL_LOW>;                 
                mpu-debug = <0>;
        };
-       
 
        ak8963:compass@0d{
                compatible = "mpu_ak8963";
 
 &i2c4 {
        status = "okay";
-       ts@55 {
-               compatible = "goodix,gt8xx";
-               reg = <0x55>;
-               touch-gpio = <&gpio7 GPIO_A6 IRQ_TYPE_LEVEL_LOW>;
-               reset-gpio = <&gpio7 GPIO_A5 GPIO_ACTIVE_LOW>;
-               //power-gpio = <&gpio0 GPIO_C5 GPIO_ACTIVE_LOW>;
-               max-x = <1280>;
-               max-y = <800>;
-       };
        
        ts@01 {
                compatible = "ct,vtl_ts";
                reg = <0x01>;
                screen_max_x = <1536>;
                screen_max_y = <2048>;
+               xy_swap = <1>;
+               x_reverse = <0>;
+               y_reverse = <0>;
+               x_mul = <2>;
+               y_mul = <2>;
+               bin_ver = <0>;
                irq_gpio_number = <&gpio7 GPIO_A6 IRQ_TYPE_LEVEL_LOW>;
                rst_gpio_number = <&gpio7 GPIO_A5 GPIO_ACTIVE_HIGH>;
        };
 
 &fb {
        rockchip,disp-mode = <DUAL>;
+       rockchip,uboot-logo-on = <1>;
 };
 
 &rk_screen {
        rockchip,cabc_mode = <0>;
        power_ctr: power_ctr {
                rockchip,debug = <0>;
+               /*lcd_18:lcd18 {
+                       rockchip,power_type = <REGULATOR>;
+                       rockchip,regulator_name = "vcc_18";
+                       rockchip,regulator_voltage = <1800000>;
+                       rockchip,delay = <5>;
+               };*/
+
                lcd_en:lcd_en {
                        rockchip,power_type = <GPIO>;
                        gpios = <&gpio7 GPIO_A3 GPIO_ACTIVE_HIGH>;
 
 &hdmi {
        status = "okay";
-       rockchips,hdmi_audio_source = <0>;
+       rockchip,hdmi_video_source = <DISPLAY_SOURCE_LCDC1>;
 };
 
 &adc {
        //      1704000 1350000
        //      1800000 1400000
                >;
+        support-pvtm = <1>;
+        pvtm-operating-points = <
+                /* KHz    uV    margin(uV)*/
+                126000 900000   25000
+                216000 900000   25000
+                312000 900000   25000
+                408000 900000   25000
+                600000 900000   25000
+                696000 950000   25000
+                816000 1000000  25000
+                1008000 1050000 25000
+                1200000 1100000 25000
+                1416000 1200000 25000
+                1512000 1300000 25000
+                1608000 1350000 25000
+                >;
        status="okay";
 };
 
                SYS_STATUS_BOOST        324000
                SYS_STATUS_ISP          400000
                >;
+       bd-freq-table = <
+               /* bandwidth   freq */
+               5000           800000
+               3500           456000
+               2600           396000
+               2000           324000
+       >;
        auto-freq-table = <
                240000
                324000
 
                ldo1_reg: regulator@4 {
                        regulator-name= "vccio_sd";
-                       regulator-min-microvolt = <3300000>;
+                       regulator-min-microvolt = <1800000>;
                        regulator-max-microvolt = <3300000>;
                        
                };
 &sdmmc0_vdd_domain{
        regulator-name = "vcc_sd";                      
        };
-       
+
+&dwc_control_usb {
+       usb_uart {
+               status = "disabled";
+       };
+};
+
+&rk3288_cif_sensor{
+       status = "okay";
+};
+