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