wifi: modify the usb's wifi 8188eus gpio.
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / rk3128-box.dts
1 #include "rk312x-sdk.dtsi"
2 #include "lcd-box.dtsi"
3
4 / {
5          compatible = "rockchip,rk3128";
6         wireless-wlan {
7                 compatible = "wlan-platdata";
8
9                 wifi_chip_type = "";
10                 sdio_vref = <0>; //1800mv or 3300mv
11
12                 //power_ctrl_by_pmu;
13                 //power_pmu_regulator = "act_ldo3";
14                 //power_pmu_enable_level = <1>; //1->HIGH, 0->LOW
15
16                 //vref_ctrl_enable;
17                 //vref_ctrl_gpio = <&gpio0 GPIO_A2 GPIO_ACTIVE_HIGH>;
18                 //vref_pmu_regulator = "act_ldo3";
19                 //vref_pmu_enable_level = <1>; //1->HIGH, 0->LOW
20
21                 WIFI,poweren_gpio = <&gpio0 GPIO_D6 GPIO_ACTIVE_HIGH>;
22                 WIFI,host_wake_irq = <&gpio0 GPIO_A2 GPIO_ACTIVE_HIGH>;
23                 //WIFI,reset_gpio = <&gpio0 GPIO_A2 GPIO_ACTIVE_LOW>;
24
25                 status = "okay";
26     };
27
28     wireless-bluetooth {
29         compatible = "bluetooth-platdata";
30
31         //wifi-bt-power-toggle;
32
33         uart_rts_gpios = <&gpio0 GPIO_C2 GPIO_ACTIVE_LOW>;
34         pinctrl-names = "default","rts_gpio";
35         pinctrl-0 = <&uart0_rts>;
36         pinctrl-1 = <&uart0_rts_gpio>;
37
38         //BT,power_gpio = <&gpio4 GPIO_D3 GPIO_ACTIVE_HIGH>;
39         BT,reset_gpio = <&gpio3 GPIO_C5 GPIO_ACTIVE_HIGH>;
40         BT,wake_gpio = <&gpio1 GPIO_B4 GPIO_ACTIVE_HIGH>;
41         BT,wake_host_irq = <&gpio0 GPIO_A2 GPIO_ACTIVE_LOW>;
42
43         status = "disabled";
44     };
45         usb_control {
46                 compatible = "rockchip,rk3126-usb-control";
47                 host_drv_gpio = <&gpio3 GPIO_C4 GPIO_ACTIVE_LOW>;
48                 otg_drv_gpio = <&gpio3 GPIO_C1 GPIO_ACTIVE_LOW>;
49
50                 rockchip,remote_wakeup;
51                 rockchip,usb_irq_wakeup;
52         };
53 };
54
55
56 &clk_core_dvfs_table {
57         operating-points = <
58                 /* KHz    uV */
59                 /*408000 1250000
60                 600000 1250000
61                 696000 1250000
62                 */
63                 816000 1250000
64                 1008000 1250000
65                 >;
66         status="okay";
67 };
68
69 &clk_gpu_dvfs_table {
70         operating-points = <
71                 /* KHz    uV */
72                 200000 1250000
73                 300000 1250000
74                 >;
75         status="okay";
76 };
77
78 &clk_ddr_dvfs_table {
79         operating-points = <
80                 /* KHz    uV */
81                 200000 950000
82                 300000 950000
83                 400000 1000000
84                 533000 1050000
85                 >;
86
87         freq-table = <
88                 /*status                freq(KHz)*/
89                 SYS_STATUS_NORMAL       400000
90                 SYS_STATUS_SUSPEND      200000
91                 SYS_STATUS_VIDEO_1080P  240000
92                 SYS_STATUS_VIDEO_4K     400000
93                 SYS_STATUS_PERFORMANCE  528000
94                 SYS_STATUS_DUALVIEW     400000
95                 SYS_STATUS_BOOST        324000
96                 SYS_STATUS_ISP          533000
97                 >;
98         auto-freq-table = <
99                 240000
100                 324000
101                 396000
102                 528000
103                 >;
104         auto-freq=<0>;
105         status="disable";
106 };
107
108 &pwm_regulator1 {
109         status = "okay";
110 };
111
112 &pwm_regulator2 {
113         status = "okay";
114 };
115
116 &pwm1 {
117         status = "okay";
118 };
119
120 &pwm2 {
121         status = "okay";
122 };
123
124 &rk_screen {
125         display-timings = <&disp_timings>;
126 };
127
128 &lcdc {
129         status = "okay";
130 };
131
132 &i2c2 {
133         status = "disabled";
134 };
135
136