X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=arch%2Farm%2Fboot%2Fdts%2Frk3288-tb_8846.dts;h=e2e2902205a6270515ae4352a5144461d3105ac2;hb=1f49c03ee0d79c6941697d40dae7ff1dddf95b79;hp=5188c021571e340143b4e06403b59818dbe7ce10;hpb=b5d61451d6b04fbf8d470030fa4bf96235c921f9;p=firefly-linux-kernel-4.4.55.git diff --git a/arch/arm/boot/dts/rk3288-tb_8846.dts b/arch/arm/boot/dts/rk3288-tb_8846.dts index 5188c021571e..e2e2902205a6 100644 --- a/arch/arm/boot/dts/rk3288-tb_8846.dts +++ b/arch/arm/boot/dts/rk3288-tb_8846.dts @@ -3,6 +3,8 @@ #include "rk3288.dtsi" //#include "lcd-b101ew05.dtsi" #include "lcd-F402.dtsi" +#include "vtl_ts_sdk8846.dtsi" + / { fiq-debugger { status = "okay"; @@ -11,9 +13,18 @@ wireless-wlan { compatible = "wlan-platdata"; - wifi_chip_type = ""; + /* wifi_chip_type - wifi chip define + * bcmwifi ==> like ap6xxx, rk90x; + * rtkwifi ==> like rtl8188xx, rtl8723xx; + * esp8089 ==> esp8089; + * other ==> for other wifi; + */ + wifi_chip_type = "bcmwifi"; + 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 +54,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"; }; @@ -192,6 +203,11 @@ 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 { @@ -220,6 +236,28 @@ //could add other pinctrl definition such as gpio + // gmac drive strength + gpio4_gmac { + mac_clk: mac-clk { + rockchip,drive = ; + }; + + mac_txpins: mac-txpins { + rockchip,drive = ; + }; + + mac_rxpins: mac-rxpins { + rockchip,drive = ; + }; + + mac_crs: mac-crs { + rockchip,drive = ; + }; + + mac_mdpins: mac-mdpins { + rockchip,drive = ; + }; + }; }; &nandc0 { @@ -241,6 +279,7 @@ supports-emmc; bootpart-no-access; + //supports-tSD; //supports-DDR_MODE; //you should set the two value in your project. only close in RK3288-SDK board. //caps2-mmc-hs200; @@ -278,7 +317,7 @@ }; &spi0 { - status = "okay"; + status = "disabled"; max-freq = <48000000>; /* spi_test@00 { @@ -307,7 +346,7 @@ }; &spi1 { - status = "okay"; + status = "disabled"; max-freq = <48000000>; /* spi_test@10 { @@ -325,7 +364,7 @@ }; &spi2 { - status = "okay"; + status = "disabled"; max-freq = <48000000>; /* spi_test@20 { @@ -529,21 +568,18 @@ &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>; }; @@ -569,6 +605,13 @@ rockchip,cabc_mode = <0>; power_ctr: power_ctr { rockchip,debug = <0>; + /*lcd_18:lcd18 { + rockchip,power_type = ; + rockchip,regulator_name = "vcc_18"; + rockchip,regulator_voltage = <1800000>; + rockchip,delay = <5>; + };*/ + lcd_en:lcd_en { rockchip,power_type = ; gpios = <&gpio7 GPIO_A3 GPIO_ACTIVE_HIGH>; @@ -692,6 +735,22 @@ // 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"; }; @@ -999,3 +1058,9 @@ &ion_cma { reg = <0x40000000 0x28000000>; /* 640MB */ }; + +&dwc_control_usb { + usb_uart { + status = "disabled"; + }; +};