arm: dts: rk3288-evb: modify panel to edp_panel
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / rk3126-sdk.dts
1 /dts-v1/;
2
3 #include "rk3126.dtsi"
4 #include "lcd-b101ew05.dtsi"
5 #include "rk3126-cif-sensor.dtsi"
6 #include "rk312x-sdk.dtsi"
7
8 / {
9          compatible = "rockchip,rk3126";
10         backlight: backlight {
11                 compatible = "pwm-backlight";
12                 pwms = <&pwm0 0 25000>;
13                 brightness-levels = <0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255>;
14                 default-brightness-level = <128>;
15                 enable-gpios = <&gpio3 GPIO_C1 GPIO_ACTIVE_HIGH>;
16         };
17
18         usb_control {
19                 compatible = "rockchip,rk3126-usb-control";
20                 host_drv_gpio = <&gpio2 GPIO_B4 GPIO_ACTIVE_LOW>;
21                 otg_drv_gpio = <&gpio2 GPIO_B6 GPIO_ACTIVE_LOW>;
22
23                 rockchip,remote_wakeup;
24                 rockchip,usb_irq_wakeup;
25                 };
26         
27         wireless-wlan {         
28                compatible = "wlan-platdata";
29                wifi_chip_type = "esp8089";
30                sdio_vref = <0>; //1800mv or 3300mv
31                
32                power_ctrl_by_pmu;
33                power_pmu_regulator = "rk818_ldo8";
34                power_pmu_enable_level = <1>; //1->HIGH, 0->LOW
35                
36                //vref_ctrl_enable;
37                //vref_pmu_regulator = "rk818_ldo8";
38                //vref_pmu_enable_level = <1>; //1->HIGH, 0->LOW
39                
40                satus = "okay";  
41          };
42
43         rockchip_suspend: rockchip_suspend {
44                 rockchip,ctrbits = <
45                         (0
46                         |RKPM_CTR_PWR_DMNS
47                         |RKPM_CTR_GTCLKS
48                         |RKPM_CTR_PLLS
49                         |RKPM_CTR_ARMOFF_LPMD
50                         |RKPM_CTR_DDR
51                         |RKPM_CTR_IDLESRAM_MD
52                         |RKPM_CTR_DDR
53                         |RKPM_CTR_BUS_IDLE
54                         //|RKPM_CTR_VOLTS
55                         //|RKPM_CTR_VOL_PWM1
56                         //|RKPM_CTR_VOL_PWM2
57                         )
58                 >;
59                rockchip,pmic-suspend_gpios = <
60                        GPIO1_A1
61                         >;
62         };
63 };
64
65 &fb {
66         rockchip,disp-mode = <NO_DUAL>;
67         rockchip,uboot-logo-on = <1>;
68 };
69
70 &rk_screen {
71         display-timings = <&disp_timings>;
72 };
73
74 &lvds {
75         status = "okay";
76
77         pinctrl-names = "lcdc";
78         pinctrl-0 = <&lcdc0_lcdc_d>;
79 };
80
81 &lcdc {
82         status = "okay";
83
84         backlight = <&backlight>;
85         pinctrl-names = "default", "gpio";
86         pinctrl-0 = <&lcdc0_lcdc>;
87         pinctrl-1 = <&lcdc0_gpio>;
88
89         rockchip,fb-win-map = <FB_DEFAULT_ORDER>;
90
91         power_ctr: power_ctr {
92                 rockchip,debug = <0>;
93                 lcd_en: lcd_en {
94                         rockchip,power_type = <GPIO>;
95                         gpios = <&gpio1 GPIO_B3 GPIO_ACTIVE_HIGH>;
96                         rockchip,delay = <10>;
97                 };
98         };
99 };
100
101 &hdmi {
102         status = "disabled";
103 };
104
105 &key {
106                 io-channels = <&adc 2>;
107                 power-key {
108                         gpios = <&gpio1 GPIO_A4 GPIO_ACTIVE_LOW>;
109                         linux,code = <116>;
110                         label = "power";
111                         gpio-key,wakeup;
112                 };
113 };
114 &sdmmc {
115         cd-gpios = <&gpio2 GPIO_A7 GPIO_ACTIVE_HIGH>;/*CD GPIO*/
116 };
117
118 &codec {
119         spk_ctl_io = <&gpio1 GPIO_A0 GPIO_ACTIVE_HIGH>;
120         spk-mute-delay = <200>;
121         hp-mute-delay = <100>;
122         rk312x_for_mid = <1>;
123         is_rk3128 = <0>;
124         spk_volume = <25>;
125         hp_volume = <25>;
126         capture_volume = <26>;
127         gpio_debug = <1>;
128         codec_hp_det = <0>;
129
130 };
131
132 &dwc_control_usb {
133         usb_uart {
134                 status = "disabled";
135         };
136 };
137
138 &i2c1 {
139         status = "okay";
140 };
141
142 &rk3126_cif_sensor{
143         status = "okay";
144 };
145
146 &clk_core_dvfs_table {
147         operating-points = <
148                 /* KHz    uV */
149                 216000 950000
150                 408000 950000
151                 600000 1050000
152                 696000 1050000
153                 816000 1125000
154                 1008000 1275000
155                 1200000 1400000
156                 >;
157         virt-temp-limit-1-cpu-busy = <
158         /* target-temp  limit-freq */
159                 75      1008000
160                 85      1200000
161                 95      1200000
162                 100     1200000
163                 >;
164         virt-temp-limit-2-cpu-busy = <
165         /* target-temp  limit-freq */
166                 75      912000
167                 85      1008000
168                 95      1104000
169                 100     1200000
170                 >;
171         virt-temp-limit-3-cpu-busy = <
172         /* target-temp  limit-freq */
173                 75      816000
174                 85      912000
175                 95      100800
176                 100     110400
177                 >;
178         virt-temp-limit-4-cpu-busy = <
179         /* target-temp  limit-freq */
180                 75      816000
181                 85      912000
182                 95      100800
183                 100     110400
184                 >;
185         temp-limit-enable = <1>;
186         target-temp = <85>;
187         status="okay";
188 };
189
190 &clk_gpu_dvfs_table {
191         operating-points = <
192                 /* KHz    uV */
193                 200000 950000
194                 300000 950000
195                 400000 1075000
196                 //480000 1175000
197                 >;
198         status="okay";
199 };
200
201 &clk_ddr_dvfs_table {
202         operating-points = <
203                 /* KHz    uV */
204                 200000 950000
205                 300000 950000
206                 400000 1025000
207                 533000 1225000
208                 >;
209
210         freq-table = <
211                 /*status                freq(KHz)*/
212                 SYS_STATUS_NORMAL       400000
213                 SYS_STATUS_SUSPEND      200000
214                 SYS_STATUS_VIDEO_1080P  240000
215                 SYS_STATUS_VIDEO_4K     400000
216                 SYS_STATUS_PERFORMANCE  528000
217                 SYS_STATUS_DUALVIEW     400000
218                 SYS_STATUS_BOOST        324000
219                 SYS_STATUS_ISP          533000
220                 >;
221         auto-freq-table = <
222                 240000
223                 324000
224                 396000
225                 528000
226                 >;
227         auto-freq=<0>;
228         status="okay";
229 };