Merge branch android-common-3.10
[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        rockchip_suspend {
43                 rockchip,ctrbits = <
44                         (0
45                         |RKPM_CTR_PWR_DMNS
46                         |RKPM_CTR_GTCLKS
47                         |RKPM_CTR_PLLS
48                         |RKPM_CTR_ARMOFF_LPMD
49                         |RKPM_CTR_DDR
50                         |RKPM_CTR_IDLESRAM_MD
51                         |RKPM_CTR_DDR
52                         |RKPM_CTR_BUS_IDLE
53                         //|RKPM_CTR_VOLTS
54                         //|RKPM_CTR_VOL_PWM1
55                         //|RKPM_CTR_VOL_PWM2
56                         )
57                 >;
58                rockchip,pmic-suspend_gpios = <
59                        GPIO1_A1
60                         >;
61         };
62 };
63
64 &fb {
65         rockchip,disp-mode = <NO_DUAL>;
66         rockchip,uboot-logo-on = <1>;
67 };
68
69 &rk_screen {
70         display-timings = <&disp_timings>;
71 };
72
73 &lvds {
74         status = "okay";
75
76         pinctrl-names = "lcdc";
77         pinctrl-0 = <&lcdc0_lcdc_d>;
78 };
79
80 &lcdc {
81         status = "okay";
82
83         backlight = <&backlight>;
84         pinctrl-names = "default", "gpio";
85         pinctrl-0 = <&lcdc0_lcdc>;
86         pinctrl-1 = <&lcdc0_gpio>;
87
88         rockchip,fb-win-map = <FB_DEFAULT_ORDER>;
89
90         power_ctr: power_ctr {
91                 rockchip,debug = <0>;
92                 lcd_en: lcd_en {
93                         rockchip,power_type = <GPIO>;
94                         gpios = <&gpio1 GPIO_B3 GPIO_ACTIVE_HIGH>;
95                         rockchip,delay = <10>;
96                 };
97         };
98 };
99
100 &hdmi {
101         status = "disabled";
102 };
103
104 &key {
105                 io-channels = <&adc 2>;
106                 power-key {
107                         gpios = <&gpio1 GPIO_A4 GPIO_ACTIVE_LOW>;
108                         linux,code = <116>;
109                         label = "power";
110                         gpio-key,wakeup;
111                 };
112 };
113 &sdmmc {
114         cd-gpios = <&gpio2 GPIO_A7 GPIO_ACTIVE_HIGH>;/*CD GPIO*/
115 };
116
117 &codec {
118         spk_ctl_io = <&gpio1 GPIO_A0 GPIO_ACTIVE_HIGH>;
119         spk-mute-delay = <200>;
120         hp-mute-delay = <100>;
121         rk312x_for_mid = <1>;
122         is_rk3128 = <0>;
123         spk_volume = <25>;
124         hp_volume = <25>;
125         capture_volume = <26>;
126         gpio_debug = <1>;
127         codec_hp_det = <0>;
128
129 };
130
131 &dwc_control_usb {
132         usb_uart {
133                 status = "disabled";
134         };
135 };
136
137 &i2c1 {
138         status = "okay";
139 };
140
141 &rk3126_cif_sensor{
142         status = "okay";
143 };
144
145 &clk_core_dvfs_table {
146         operating-points = <
147                 /* KHz    uV */
148                 216000 950000
149                 408000 950000
150                 600000 1050000
151                 696000 1050000
152                 816000 1125000
153                 1008000 1275000
154                 1200000 1400000
155                 >;
156         virt-temp-limit-1-cpu-busy = <
157         /* target-temp  limit-freq */
158                 75      1008000
159                 85      1200000
160                 95      1200000
161                 100     1200000
162                 >;
163         virt-temp-limit-2-cpu-busy = <
164         /* target-temp  limit-freq */
165                 75      912000
166                 85      1008000
167                 95      1104000
168                 100     1200000
169                 >;
170         virt-temp-limit-3-cpu-busy = <
171         /* target-temp  limit-freq */
172                 75      816000
173                 85      912000
174                 95      100800
175                 100     110400
176                 >;
177         virt-temp-limit-4-cpu-busy = <
178         /* target-temp  limit-freq */
179                 75      816000
180                 85      912000
181                 95      100800
182                 100     110400
183                 >;
184         temp-limit-enable = <1>;
185         target-temp = <85>;
186         status="okay";
187 };
188
189 &clk_gpu_dvfs_table {
190         operating-points = <
191                 /* KHz    uV */
192                 200000 950000
193                 300000 950000
194                 400000 1075000
195                 //480000 1175000
196                 >;
197         status="okay";
198 };
199
200 &clk_ddr_dvfs_table {
201         operating-points = <
202                 /* KHz    uV */
203                 200000 950000
204                 300000 950000
205                 400000 1025000
206                 533000 1225000
207                 >;
208
209         freq-table = <
210                 /*status                freq(KHz)*/
211                 SYS_STATUS_NORMAL       400000
212                 SYS_STATUS_SUSPEND      200000
213                 SYS_STATUS_VIDEO_1080P  240000
214                 SYS_STATUS_VIDEO_4K     400000
215                 SYS_STATUS_PERFORMANCE  528000
216                 SYS_STATUS_DUALVIEW     400000
217                 SYS_STATUS_BOOST        324000
218                 SYS_STATUS_ISP          533000
219                 >;
220         auto-freq-table = <
221                 240000
222                 324000
223                 396000
224                 528000
225                 >;
226         auto-freq=<0>;
227         status="okay";
228 };