arm: dts: rk3288-evb: modify panel to edp_panel
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / rk3128-sdk.dts
1 /dts-v1/;
2
3 #include "rk3128.dtsi"
4 #include "rk3128-cif-sensor.dtsi"
5 #include "rk312x-sdk.dtsi"
6 #include "lcd-b101ew05.dtsi"
7
8 / {
9          compatible = "rockchip,rk3128";
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 = <&gpio0 GPIO_D3 GPIO_ACTIVE_HIGH>;
16         };
17
18         usb_control {
19                 compatible = "rockchip,rk3126-usb-control";
20
21                 host_drv_gpio = <&gpio3 GPIO_C4 GPIO_ACTIVE_LOW>;
22                 otg_drv_gpio = <&gpio3 GPIO_C1 GPIO_ACTIVE_LOW>;
23
24                 rockchip,remote_wakeup;
25                 rockchip,usb_irq_wakeup;
26         };
27 };
28
29 &fb {
30         rockchip,disp-mode = <ONE_DUAL>;
31         rockchip,uboot-logo-on = <1>;
32 };
33
34 &rk_screen {
35         display-timings = <&disp_timings>;
36 };
37
38 &lvds {
39         status = "okay";
40
41         pinctrl-names = "lcdc";
42         pinctrl-0 = <&lcdc0_lcdc_d>;
43 };
44
45 &lcdc {
46         status = "okay";
47
48         backlight = <&backlight>;
49         pinctrl-names = "default", "gpio";
50         pinctrl-0 = <&lcdc0_lcdc>;
51         pinctrl-1 = <&lcdc0_gpio>;
52
53         rockchip,fb-win-map = <FB_DEFAULT_ORDER>;
54         power_ctr: power_ctr {
55                 rockchip,debug = <0>;
56                 lcd_cs: lcd_cs {
57                         rockchip,power_type = <GPIO>;
58                         gpios = <&gpio0 GPIO_D0 GPIO_ACTIVE_HIGH>;
59                         rockchip,delay = <10>;
60                 };
61         };
62 };
63
64 &hdmi {
65         status = "okay";
66 };
67
68 &sdmmc {
69         cd-gpios = <&gpio1 GPIO_C1 GPIO_ACTIVE_HIGH>;/*CD GPIO*/
70 };
71 &key {
72                 power-key {
73                         gpios = <&gpio0 GPIO_A2 GPIO_ACTIVE_LOW>;
74                         linux,code = <116>;
75                         label = "power";
76                         gpio-key,wakeup;
77                 };
78 };
79
80 &dwc_control_usb {
81         usb_uart {
82                 status = "ok";
83         };
84 };
85 &codec {
86         spk_ctl_io = <&gpio1 GPIO_B3 GPIO_ACTIVE_HIGH>;
87         spk-mute-delay = <200>;
88         hp-mute-delay = <100>;
89         rk312x_for_mid = <1>;
90         is_rk3128 = <0>;
91         spk_volume = <25>;
92         hp_volume = <25>;
93         capture_volume = <26>;
94         gpio_debug = <1>;
95         codec_hp_det = <1>;
96 };
97
98 &rk3128_cif_sensor{
99         status = "okay";
100 };
101
102
103 &clk_core_dvfs_table {
104         operating-points = <
105                 /* KHz    uV */
106                 216000 925000
107                 408000 925000
108                 600000 950000
109                 696000 975000
110                 816000 1050000
111                 1008000 1175000
112                 1200000 1300000
113                 1296000 1350000
114                 1320000 1375000
115                 >;
116         virt-temp-limit-1-cpu-busy = <
117         /* target-temp  limit-freq */
118                 75      1008000
119                 85      1200000
120                 95      1200000
121                 100     1200000
122                 >;
123         virt-temp-limit-2-cpu-busy = <
124         /* target-temp  limit-freq */
125                 75      912000
126                 85      1008000
127                 95      1104000
128                 100     1200000
129                 >;
130         virt-temp-limit-3-cpu-busy = <
131         /* target-temp  limit-freq */
132                 75      816000
133                 85      912000
134                 95      100800
135                 100     110400
136                 >;
137         virt-temp-limit-4-cpu-busy = <
138         /* target-temp  limit-freq */
139                 75      816000
140                 85      912000
141                 95      100800
142                 100     110400
143                 >;
144         temp-limit-enable = <1>;
145         target-temp = <85>;
146         status="okay";
147 };
148
149 &clk_gpu_dvfs_table {
150         operating-points = <
151                 /* KHz    uV */
152                 200000 950000
153                 300000 975000
154                 400000 1075000
155                 //480000 1175000
156                 >;
157         status="okay";
158 };
159
160 &clk_ddr_dvfs_table {
161         operating-points = <
162                 /* KHz    uV */
163                 //200000 950000
164                 //300000 950000
165                 400000 1000000
166                 //533000 1200000
167                 >;
168
169         freq-table = <
170                 /*status                freq(KHz)*/
171                 SYS_STATUS_NORMAL       400000
172                 SYS_STATUS_SUSPEND      400000
173                 SYS_STATUS_VIDEO_1080P  400000
174                 SYS_STATUS_VIDEO_4K     400000
175                 SYS_STATUS_PERFORMANCE  400000
176                 SYS_STATUS_DUALVIEW     400000
177                 SYS_STATUS_BOOST        400000
178                 SYS_STATUS_ISP          400000
179                 >;
180         auto-freq-table = <
181                 //240000
182                 //324000
183                 396000
184                 //528000
185                 >;
186         auto-freq=<0>;
187         status="okay";
188 };