3049052774d0fa838fa13d924ad734a654858bdd
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / rk3126-sdk.dts
1 #include "rk312x-sdk.dtsi"
2 #include "lcd-b101ew05.dtsi"
3
4 / {
5          compatible = "rockchip,rk3126";
6         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 = <&gpio3 GPIO_C1 GPIO_ACTIVE_HIGH>;
12         };
13
14         usb_control {
15                 compatible = "rockchip,rk3126-usb-control";
16                 host_drv_gpio = <&gpio2 GPIO_B4 GPIO_ACTIVE_LOW>;
17                 otg_drv_gpio = <&gpio2 GPIO_B6 GPIO_ACTIVE_LOW>;
18
19                 rockchip,remote_wakeup;
20                 rockchip,usb_irq_wakeup;
21                 };
22         
23         wireless-wlan {         
24                compatible = "wlan-platdata";
25                wifi_chip_type = "esp8089";
26                sdio_vref = <0>; //1800mv or 3300mv
27                
28                power_ctrl_by_pmu;
29                power_pmu_regulator = "rk818_ldo8";
30                power_pmu_enable_level = <1>; //1->HIGH, 0->LOW
31                
32                //vref_ctrl_enable;
33                //vref_pmu_regulator = "rk818_ldo8";
34                //vref_pmu_enable_level = <1>; //1->HIGH, 0->LOW
35                
36                satus = "okay";  
37          };     
38 };
39
40 &fb {
41         rockchip,disp-mode = <NO_DUAL>;
42         rockchip,uboot-logo-on = <0>;
43 };
44
45 &rk_screen {
46         display-timings = <&disp_timings>;
47 };
48
49 &lvds {
50         status = "okay";
51
52         pinctrl-names = "lcdc", "sleep";
53         pinctrl-0 = <&lcdc0_lcdc_d>;
54         pinctrl-1 = <&lcdc0_lcdc_gpio>;
55 };
56
57 &lcdc {
58         status = "okay";
59
60         pinctrl-names = "default", "gpio";
61         pinctrl-0 = <&lcdc0_lcdc>;
62         pinctrl-1 = <&lcdc0_gpio>;
63
64         rockchip,fb-win-map = <FB_DEFAULT_ORDER>;
65
66         power_ctr: power_ctr {
67                 rockchip,debug = <0>;
68                 lcd_en: lcd_en {
69                         rockchip,power_type = <GPIO>;
70                         gpios = <&gpio1 GPIO_B3 GPIO_ACTIVE_HIGH>;
71                         rockchip,delay = <10>;
72                 };
73         };
74 };
75
76 &hdmi {
77         status = "disabled";
78 };
79
80 &key {
81                 io-channels = <&adc 2>;
82                 power-key {
83                         gpios = <&gpio1 GPIO_A4 GPIO_ACTIVE_LOW>;
84                         linux,code = <116>;
85                         label = "power";
86                         gpio-key,wakeup;
87                 };
88 };
89 &sdmmc {
90         cd-gpios = <&gpio2 GPIO_A3 GPIO_ACTIVE_HIGH>;/*CD GPIO*/
91 };
92
93 &codec {
94         spk_ctl_io = <&gpio1 GPIO_A0 GPIO_ACTIVE_HIGH>;
95         spk-mute-delay = <200>;
96         hp-mute-delay = <100>;
97         rk312x_for_mid = <1>;
98         is_rk3128 = <0>;
99         spk_volume = <25>;
100         hp_volume = <25>;
101         capture_volume = <26>;
102         gpio_debug = <1>;
103         codec_hp_det = <0>;
104
105 };
106
107 &dwc_control_usb {
108         usb_uart {
109                 status = "disabled";
110         };
111 };
112
113 &i2c1 {
114         status = "okay";
115 };
116
117 &rk3126_cif_sensor{
118         status = "okay";
119 };
120
121 &clk_core_dvfs_table {
122         operating-points = <
123                 /* KHz    uV */
124                 216000 975000
125                 408000 975000
126                 600000 1075000
127                 696000 1100000
128                 816000 1150000
129                 1008000 1300000
130                 1200000 1375000
131                 >;
132         status="okay";
133 };
134
135 &clk_gpu_dvfs_table {
136         operating-points = <
137                 /* KHz    uV */
138                 200000 950000
139                 300000 950000
140                 400000 1075000
141                 //480000 1175000
142                 >;
143         status="okay";
144 };
145
146 &clk_ddr_dvfs_table {
147         operating-points = <
148                 /* KHz    uV */
149                 200000 950000
150                 300000 950000
151                 400000 1000000
152                 533000 1225000
153                 >;
154
155         freq-table = <
156                 /*status                freq(KHz)*/
157                 SYS_STATUS_NORMAL       400000
158                 SYS_STATUS_SUSPEND      200000
159                 SYS_STATUS_VIDEO_1080P  240000
160                 SYS_STATUS_VIDEO_4K     400000
161                 SYS_STATUS_PERFORMANCE  528000
162                 SYS_STATUS_DUALVIEW     400000
163                 SYS_STATUS_BOOST        324000
164                 SYS_STATUS_ISP          533000
165                 >;
166         auto-freq-table = <
167                 240000
168                 324000
169                 396000
170                 528000
171                 >;
172         auto-freq=<0>;
173         status="okay";
174 };