.. | .. |
---|
5 | 5 | */ |
---|
6 | 6 | |
---|
7 | 7 | /dts-v1/; |
---|
8 | | - |
---|
9 | 8 | #include "sun50iw10p1.dtsi" |
---|
10 | 9 | |
---|
11 | 10 | /{ |
---|
.. | .. |
---|
19 | 18 | |
---|
20 | 19 | reg_usb1_vbus: usb1-vbus { |
---|
21 | 20 | compatible = "regulator-fixed"; |
---|
22 | | - gpio = <&r_pio PL 11 1 2 0 1>; |
---|
| 21 | + //gpio = <&r_pio PL 11 1 2 0 1>; |
---|
23 | 22 | regulator-name = "usb1-vbus"; |
---|
24 | 23 | regulator-min-microvolt = <5000000>; |
---|
25 | 24 | regulator-max-microvolt = <5000000>; |
---|
.. | .. |
---|
49 | 48 | }; |
---|
50 | 49 | }; |
---|
51 | 50 | pio: pinctrl@0300b000 { |
---|
52 | | - twi0_pins_a: twi0@0 { |
---|
53 | | - allwinner,pins = "PH0", "PH1"; |
---|
54 | | - allwinner,pname = "twi0_scl", "twi0_sda"; |
---|
55 | | - allwinner,function = "twi0"; |
---|
56 | | - allwinner,muxsel = <2>; |
---|
57 | | - allwinner,drive = <1>; |
---|
58 | | - allwinner,pull = <0>; |
---|
59 | | - }; |
---|
| 51 | + twi0_pins_a: twi0@0 { |
---|
| 52 | + allwinner,pins = "PD22", "PD23"; |
---|
| 53 | + allwinner,pname = "twi0_scl", "twi0_sda"; |
---|
| 54 | + allwinner,function = "twi0"; |
---|
| 55 | + allwinner,muxsel = <4>; |
---|
| 56 | + allwinner,drive = <1>; |
---|
| 57 | + allwinner,pull = <0>; |
---|
| 58 | + }; |
---|
60 | 59 | |
---|
61 | | - twi0_pins_b: twi0@1 { |
---|
62 | | - allwinner,pins = "PH0", "PH1"; |
---|
63 | | - allwinner,function = "io_disabled"; |
---|
64 | | - allwinner,muxsel = <7>; |
---|
65 | | - allwinner,drive = <1>; |
---|
66 | | - allwinner,pull = <0>; |
---|
67 | | - }; |
---|
| 60 | + twi0_pins_b: twi0@1 { |
---|
| 61 | + allwinner,pins = "PD22", "PD23"; |
---|
| 62 | + allwinner,function = "io_disabled"; |
---|
| 63 | + allwinner,muxsel = <7>; |
---|
| 64 | + allwinner,drive = <1>; |
---|
| 65 | + allwinner,pull = <0>; |
---|
| 66 | + }; |
---|
68 | 67 | |
---|
69 | 68 | twi1_pins_a: twi1@0 { |
---|
70 | | - allwinner,pins = "PH2", "PH3"; |
---|
| 69 | + allwinner,pins = "PB4", "PB5"; |
---|
71 | 70 | allwinner,pname = "twi1_scl", "twi1_sda"; |
---|
72 | 71 | allwinner,function = "twi1"; |
---|
73 | 72 | allwinner,muxsel = <2>; |
---|
.. | .. |
---|
76 | 75 | }; |
---|
77 | 76 | |
---|
78 | 77 | twi1_pins_b: twi1@1 { |
---|
79 | | - allwinner,pins = "PH2", "PH3"; |
---|
| 78 | + allwinner,pins = "PB4", "PB5"; |
---|
80 | 79 | allwinner,function = "io_disabled"; |
---|
81 | 80 | allwinner,muxsel = <7>; |
---|
82 | 81 | allwinner,drive = <1>; |
---|
.. | .. |
---|
118 | 117 | }; |
---|
119 | 118 | |
---|
120 | 119 | pwm0_pin_a: pwm0@0 { |
---|
121 | | - allwinner,pins = "PD23"; |
---|
| 120 | + //allwinner,pins = "PD23"; |
---|
122 | 121 | allwinner,function = "pwm0"; |
---|
123 | 122 | allwinner,muxsel = <0x02>; |
---|
124 | 123 | allwinner,drive = <0x2>; |
---|
.. | .. |
---|
127 | 126 | }; |
---|
128 | 127 | |
---|
129 | 128 | pwm0_pin_b: pwm0@1 { |
---|
130 | | - allwinner,pins = "PD23"; |
---|
| 129 | + //allwinner,pins = "PD23"; |
---|
131 | 130 | allwinner,function = "io_disabled"; |
---|
132 | 131 | allwinner,muxsel = <0x07>; |
---|
133 | 132 | allwinner,drive = <0x2>; |
---|
.. | .. |
---|
136 | 135 | }; |
---|
137 | 136 | |
---|
138 | 137 | pwm1_pin_a: pwm1@0 { |
---|
139 | | - allwinner,pins = "PD22"; |
---|
| 138 | + //allwinner,pins = "PD22"; |
---|
140 | 139 | allwinner,function = "pwm1"; |
---|
141 | 140 | allwinner,muxsel = <0x02>; |
---|
142 | 141 | allwinner,drive = <0x2>; |
---|
.. | .. |
---|
145 | 144 | }; |
---|
146 | 145 | |
---|
147 | 146 | pwm1_pin_b: pwm1@1 { |
---|
148 | | - allwinner,pins = "PD22"; |
---|
| 147 | + //allwinner,pins = "PD22"; |
---|
149 | 148 | allwinner,function = "io_disabled"; |
---|
150 | 149 | allwinner,muxsel = <0x07>; |
---|
151 | 150 | allwinner,drive = <0x2>; |
---|
.. | .. |
---|
156 | 155 | pwm2_pin_a: pwm2@0 { |
---|
157 | 156 | allwinner,pins = "PD20"; |
---|
158 | 157 | allwinner,function = "pwm2"; |
---|
159 | | - allwinner,muxsel = <0x02>; |
---|
| 158 | + allwinner,muxsel = <0x03>; |
---|
160 | 159 | allwinner,drive = <0x2>; |
---|
161 | 160 | allwinner,pull = <0>; |
---|
162 | 161 | allwinner,data = <0xffffffff>; |
---|
.. | .. |
---|
174 | 173 | pwm3_pin_a: pwm3@0 { |
---|
175 | 174 | allwinner,pins = "PD21"; |
---|
176 | 175 | allwinner,function = "pwm3"; |
---|
177 | | - allwinner,muxsel = <0x02>; |
---|
| 176 | + allwinner,muxsel = <0x03>; |
---|
178 | 177 | allwinner,drive = <0x2>; |
---|
179 | 178 | allwinner,pull = <0>; |
---|
180 | 179 | allwinner,data = <0xffffffff>; |
---|
.. | .. |
---|
215 | 214 | allwinner,drive = <1>; |
---|
216 | 215 | allwinner,pull = <0>; |
---|
217 | 216 | }; |
---|
218 | | - |
---|
219 | 217 | spi1_pins_a: spi1@0 { |
---|
220 | 218 | allwinner,pins = "PD11", "PD12", "PD13"; |
---|
221 | 219 | allwinner,pname = "spi1_sclk", "spi1_mosi", |
---|
.. | .. |
---|
243 | 241 | allwinner,pull = <0>; |
---|
244 | 242 | }; |
---|
245 | 243 | |
---|
246 | | - spi2_pins_a: spi2@0 { |
---|
247 | | - allwinner,pins = "PB1", "PB2", "PB3"; |
---|
248 | | - allwinner,pname = "spi2_sclk", "spi2_mosi", |
---|
249 | | - "spi2_miso"; |
---|
250 | | - allwinner,function = "spi2"; |
---|
251 | | - allwinner,muxsel = <3>; |
---|
252 | | - allwinner,drive = <1>; |
---|
253 | | - allwinner,pull = <0>; |
---|
254 | | - }; |
---|
| 244 | + uart3_pins_a: uart3@0 { |
---|
| 245 | + allwinner,pins = "PD14", "PD15"; |
---|
| 246 | + allwinner,pname = "uart3_tx", "uart3_rx"; |
---|
| 247 | + allwinner,function = "uart3"; |
---|
| 248 | + allwinner,muxsel = <4>; |
---|
| 249 | + allwinner,drive = <1>; |
---|
| 250 | + allwinner,pull = <1>; |
---|
| 251 | + }; |
---|
255 | 252 | |
---|
256 | | - spi2_pins_b: spi2@1 { |
---|
257 | | - allwinner,pins = "PB0"; |
---|
258 | | - allwinner,pname = "spi2_cs0"; |
---|
259 | | - allwinner,function = "spi2"; |
---|
260 | | - allwinner,muxsel = <3>; |
---|
261 | | - allwinner,drive = <1>; |
---|
262 | | - allwinner,pull = <1>; /* only CS should be pulled up */ |
---|
263 | | - }; |
---|
| 253 | + uart3_pins_b: uart3@1 { |
---|
| 254 | + allwinner,pins = "PD14", "PD15"; |
---|
| 255 | + allwinner,function = "io_disabled"; |
---|
| 256 | + allwinner,muxsel = <7>; |
---|
| 257 | + allwinner,drive = <1>; |
---|
| 258 | + allwinner,pull = <0>; |
---|
| 259 | + }; |
---|
264 | 260 | |
---|
265 | | - spi2_pins_c: spi2@2 { |
---|
266 | | - allwinner,pins = "PB0", "PB1", "PB2", "PB3"; |
---|
267 | | - allwinner,function = "io_disabled"; |
---|
268 | | - allwinner,muxsel = <7>; |
---|
269 | | - allwinner,drive = <1>; |
---|
270 | | - allwinner,pull = <0>; |
---|
271 | | - }; |
---|
| 261 | + uart4_pins_a: uart4@0 { |
---|
| 262 | + allwinner,pins = "PD18", "PD19"; |
---|
| 263 | + allwinner,pname = "uart4_tx", "uart4_rx"; |
---|
| 264 | + allwinner,function = "uart4"; |
---|
| 265 | + allwinner,muxsel = <4>; |
---|
| 266 | + allwinner,drive = <1>; |
---|
| 267 | + allwinner,pull = <1>; |
---|
| 268 | + }; |
---|
272 | 269 | |
---|
| 270 | + uart4_pins_b: uart4@1 { |
---|
| 271 | + allwinner,pins = "PD18", "PD19"; |
---|
| 272 | + allwinner,pins = "PD18", "PD19"; |
---|
| 273 | + allwinner,function = "io_disabled"; |
---|
| 274 | + allwinner,muxsel = <7>; |
---|
| 275 | + allwinner,drive = <1>; |
---|
| 276 | + allwinner,pull = <0>; |
---|
| 277 | + }; |
---|
273 | 278 | }; |
---|
274 | 279 | |
---|
275 | 280 | twi0: twi@0x05002000{ |
---|
.. | .. |
---|
277 | 282 | pinctrl-0 = <&twi0_pins_a>; |
---|
278 | 283 | pinctrl-1 = <&twi0_pins_b>; |
---|
279 | 284 | status = "okay"; |
---|
280 | | - ctp { |
---|
281 | | - compatible = "allwinner,gslX680"; |
---|
282 | | - reg = <0x40>; |
---|
283 | | - device_type = "ctp"; |
---|
284 | | - status = "disabled"; |
---|
285 | | - ctp_name = "gslX680_3676_1280x800"; |
---|
286 | | - ctp_twi_id = <0x0>; |
---|
287 | | - ctp_twi_addr = <0x40>; |
---|
288 | | - ctp_screen_max_x = <0x320>; |
---|
289 | | - ctp_screen_max_y = <0x500>; |
---|
290 | | - ctp_revert_x_flag = <1>; |
---|
291 | | - ctp_revert_y_flag = <1>; |
---|
292 | | - |
---|
293 | | - ctp_exchange_x_y_flag = <0x1>; |
---|
294 | | - ctp_int_port = <&pio PL 7 6 0xffffffff 0xffffffff 0>; |
---|
295 | | - ctp_wakeup = <&pio PH 9 1 0xffffffff 0xffffffff 1>; |
---|
296 | | - ctp-supply = <®_ldoio0>; |
---|
297 | | - ctp_power_ldo_vol = <3300>; |
---|
298 | | - }; |
---|
| 285 | + ctp { |
---|
| 286 | + compatible = "gt9xx_ts"; |
---|
| 287 | + ctp_used = <1>; |
---|
| 288 | + device_type = "ctp"; |
---|
| 289 | + status = "okay"; |
---|
| 290 | + ctp_twi_id = <0x0>; |
---|
| 291 | + ctp_name = "gt9xx"; |
---|
| 292 | + reg = <0x5D>; |
---|
| 293 | + ctp_screen_max_x = <800>; |
---|
| 294 | + ctp_screen_max_y = <1280>; |
---|
| 295 | + ctp_revert_x_flag = <0x1>; |
---|
| 296 | + ctp_revert_y_flag = <0x1>; |
---|
| 297 | + ctp_exchange_x_y_flag = <0x0>; |
---|
| 298 | + ctp_int_port = <&r_pio PL 7 3 0xffffffff 0xffffffff 0>; |
---|
| 299 | + ctp_wakeup = <&pio PB 2 1 0xffffffff 0xffffffff 1>; |
---|
| 300 | + ctp_power_ldo = <3300>; |
---|
| 301 | + ctp_power_ldo_vol = <3300>; |
---|
| 302 | + ctp_power = <3300>; |
---|
| 303 | + }; |
---|
299 | 304 | }; |
---|
| 305 | + |
---|
| 306 | + spi0: spi@05010000 { |
---|
| 307 | + #address-cells = <1>; |
---|
| 308 | + #size-cells = <0>; |
---|
| 309 | + compatible = "allwinner,sun50i-spi"; |
---|
| 310 | + device_type = "spi0"; |
---|
| 311 | + reg = <0x0 0x05010000 0x0 0x1000>; |
---|
| 312 | + interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>; |
---|
| 313 | + clocks = <&clk_pll_periph0>, <&clk_spi0>; |
---|
| 314 | + clock-frequency = <100000000>; |
---|
| 315 | + pinctrl-names = "default", "sleep"; |
---|
| 316 | + pinctrl-0 = <&spi0_pins_a &spi0_pins_b>; |
---|
| 317 | + pinctrl-1 = <&spi0_pins_c>; |
---|
| 318 | + spi0_cs_number = <1>; |
---|
| 319 | + spi0_cs_bitmap = <1>; |
---|
| 320 | + spi_slave_mode = <0>; |
---|
| 321 | + //status = "okay"; |
---|
| 322 | + status = "disabled"; |
---|
| 323 | + spi_uart { |
---|
| 324 | + compatible = "wkmic,wk2124spi"; |
---|
| 325 | + reg = <0>; |
---|
| 326 | + spi-max-frequency = <10000000>; |
---|
| 327 | + //irq_gpio = <&pio PH 11 6 0xffffffff 0xffffffff 0>; |
---|
| 328 | + }; |
---|
| 329 | + }; |
---|
| 330 | + |
---|
| 331 | + pwm3: pwm3@0300a000 { |
---|
| 332 | + pinctrl-names = "active", "sleep"; |
---|
| 333 | + pinctrl-0 = <&pwm3_pin_a>; |
---|
| 334 | + pinctrl-1 = <&pwm3_pin_b>; |
---|
| 335 | + status = "okay"; |
---|
| 336 | + }; |
---|
| 337 | + |
---|
| 338 | + pwm2: pwm2@0300a000 { |
---|
| 339 | + pinctrl-names = "active", "sleep"; |
---|
| 340 | + pinctrl-0 = <&pwm2_pin_a>; |
---|
| 341 | + pinctrl-1 = <&pwm2_pin_b>; |
---|
| 342 | + status = "okay"; |
---|
| 343 | + }; |
---|
300 | 344 | |
---|
301 | 345 | twi1: twi@0x05002400{ |
---|
302 | 346 | clock-frequency = <200000>; |
---|
.. | .. |
---|
310 | 354 | status = "disabled"; |
---|
311 | 355 | gsensor_twi_id = <0x1>; |
---|
312 | 356 | gsensor_twi_addr = <0x19>; |
---|
313 | | - gsensor_int1 = <&pio PH 11 6 1 0xffffffff 0xffffffff>; |
---|
| 357 | + //gsensor_int1 = <&pio PH 11 6 1 0xffffffff 0xffffffff>; |
---|
314 | 358 | gsensor-supply = <®_dcdc1>; |
---|
315 | 359 | gsensor_vcc_io_val = <3300>; |
---|
316 | 360 | }; |
---|
.. | .. |
---|
321 | 365 | status = "disabled"; |
---|
322 | 366 | ls_twi_id = <0x1>; |
---|
323 | 367 | ls_twi_addr = <0x48>; |
---|
324 | | - ls_int = <&pio PH 4 6 1 0xffffffff 0xffffffff>; |
---|
| 368 | + //ls_int = <&pio PH 4 6 1 0xffffffff 0xffffffff>; |
---|
325 | 369 | lightsensor-supply = <®_dcdc1>; |
---|
326 | 370 | }; |
---|
327 | | - |
---|
328 | | - |
---|
| 371 | + pcf85063@51 { |
---|
| 372 | + compatible = "haoyu,hym8563"; |
---|
| 373 | + reg = <0x51>; |
---|
| 374 | + status = "okay"; |
---|
| 375 | + }; |
---|
| 376 | + mpu6050@68 { |
---|
| 377 | + compatible = "invensense,mpu6500"; |
---|
| 378 | + reg = <0x68>; |
---|
| 379 | + mount-matrix = "-0.984807753012208", /* x0 */ |
---|
| 380 | + "0", /* y0 */ |
---|
| 381 | + "-0.173648177666930", /* z0 */ |
---|
| 382 | + "0", /* x1 */ |
---|
| 383 | + "-1", /* y1 */ |
---|
| 384 | + "0", /* z1 */ |
---|
| 385 | + "-0.173648177666930", /* x2 */ |
---|
| 386 | + "0", /* y2 */ |
---|
| 387 | + "0.984807753012208"; /* z2 */ |
---|
| 388 | + status = "disabled"; |
---|
| 389 | + }; |
---|
329 | 390 | }; |
---|
330 | 391 | |
---|
331 | 392 | twi2: twi@0x05002800{ |
---|
.. | .. |
---|
333 | 394 | pinctrl-0 = <&twi2_pins_a>; |
---|
334 | 395 | pinctrl-1 = <&twi2_pins_b>; |
---|
335 | 396 | twi-supply = <®_dldo2>; |
---|
336 | | - status = "okay"; |
---|
| 397 | + status = "ok"; |
---|
337 | 398 | |
---|
338 | 399 | /* ac107@36 { |
---|
339 | 400 | compatible = "Allwinnertech,ac107_0"; |
---|
.. | .. |
---|
347 | 408 | clock-frequency = <200000>; |
---|
348 | 409 | pinctrl-0 = <&twi3_pins_a>; |
---|
349 | 410 | pinctrl-1 = <&twi3_pins_b>; |
---|
350 | | - status = "okay"; |
---|
| 411 | + status = "ok"; |
---|
351 | 412 | }; |
---|
352 | 413 | |
---|
353 | 414 | twi6: s_twi@0x07081400{ |
---|
.. | .. |
---|
384 | 445 | |
---|
385 | 446 | usb_power_supply: usb_power_supply { |
---|
386 | 447 | compatible = "x-powers,axp803-usb-power-supply"; |
---|
387 | | - status = "disabled"; |
---|
| 448 | + status = "okay"; |
---|
388 | 449 | |
---|
389 | 450 | pmu_usbpc_vol = <4600>; |
---|
390 | | - pmu_usbpc_cur = <1000>; |
---|
| 451 | + pmu_usbpc_cur = <3000>; |
---|
391 | 452 | pmu_usbad_vol = <4600>; |
---|
392 | 453 | pmu_usbad_cur = <2500>; |
---|
393 | 454 | |
---|
.. | .. |
---|
639 | 700 | regulator-min-microvolt = <700000>; |
---|
640 | 701 | regulator-max-microvolt = <3300000>; |
---|
641 | 702 | regulator-enable-ramp-delay = <1000>; |
---|
| 703 | + regulator-boot-on; |
---|
| 704 | + regulator-always-on; |
---|
642 | 705 | }; |
---|
643 | 706 | reg_ldoio1: ldoio1 { |
---|
644 | 707 | regulator-name = "axp803-ldoio1"; |
---|
.. | .. |
---|
776 | 839 | pinctrl-1 = <&pwm0_pin_b>; |
---|
777 | 840 | }; |
---|
778 | 841 | |
---|
779 | | - spi0: spi@05010000 { |
---|
780 | | - pinctrl-0 = <&spi0_pins_a &spi0_pins_b>; |
---|
781 | | - pinctrl-1 = <&spi1_pins_c>; |
---|
782 | | - spi_slave_mode = <0>; |
---|
783 | | - status = "disabled"; |
---|
784 | | - }; |
---|
785 | | - |
---|
786 | 842 | spi1: spi@05011000 { |
---|
787 | 843 | pinctrl-0 = <&spi1_pins_a &spi1_pins_b>; |
---|
788 | 844 | pinctrl-1 = <&spi1_pins_c>; |
---|
.. | .. |
---|
832 | 888 | |
---|
833 | 889 | sdc0: sdmmc@04020000 { |
---|
834 | 890 | bus-width = <4>; |
---|
835 | | - cd-gpios = <&pio PF 6 6 1 3 0xffffffff>; |
---|
836 | 891 | /*non-removable;*/ |
---|
837 | 892 | /*broken-cd;*/ |
---|
838 | 893 | /*cd-inverted*/ |
---|
.. | .. |
---|
868 | 923 | device_type = "usbc0"; |
---|
869 | 924 | usb_port_type = <0x0>; |
---|
870 | 925 | usb_detect_type = <0x1>; |
---|
871 | | - usb_id_gpio = <&pio PH 8 0 0 0xffffffff 0xffffffff>; |
---|
| 926 | + //usb_id_gpio = <&pio PH 8 0 0 0xffffffff 0xffffffff>; |
---|
| 927 | + usb_id_gpio = <&r_pio PL 10 0 0 0xffffffff 0xffffffff>; |
---|
872 | 928 | usb_det_vbus_gpio = "axp_ctrl"; |
---|
873 | 929 | usb_regulator_io = "nocare"; |
---|
874 | 930 | det_vbus_supply = <&usb_power_supply>; |
---|
.. | .. |
---|
926 | 982 | status = "okay"; |
---|
927 | 983 | }; |
---|
928 | 984 | |
---|
| 985 | + /* gpio-spk will output 0x00 when playing audio */ |
---|
929 | 986 | /* Audio Driver Modules */ |
---|
930 | 987 | codec:codec@0x05096000 { |
---|
931 | 988 | /* MIC and headphone gain setting */ |
---|
.. | .. |
---|
942 | 999 | lineout_vol = <0x1a>; |
---|
943 | 1000 | headphonegain = <0x00>; |
---|
944 | 1001 | /* Pa enabled about */ |
---|
945 | | - pa_level = <0x01>; |
---|
| 1002 | + pa_level = <0x00>; |
---|
946 | 1003 | pa_msleep_time = <0x78>; |
---|
947 | | - gpio-spk = <&pio PH 11 1 1 1 1>; |
---|
| 1004 | + gpio-spk = <&pio PH 17 1 1 1 1>; |
---|
948 | 1005 | /* regulator about */ |
---|
949 | 1006 | avcc-supply = <®_aldo1>; |
---|
950 | 1007 | cpvin-supply = <®_eldo1>; |
---|
.. | .. |
---|
956 | 1013 | }; |
---|
957 | 1014 | |
---|
958 | 1015 | spdif:spdif-controller@0x05094000{ |
---|
959 | | - status = "disabled"; |
---|
| 1016 | + status = "okay"; |
---|
960 | 1017 | }; |
---|
961 | 1018 | |
---|
962 | 1019 | sndspdif:sound@1{ |
---|
963 | | - status = "disabled"; |
---|
| 1020 | + status = "okay"; |
---|
964 | 1021 | }; |
---|
965 | 1022 | |
---|
966 | 1023 | dmic:dmic-controller@0x05095000{ |
---|
967 | | - status = "disabled"; |
---|
| 1024 | + status = "okay"; |
---|
968 | 1025 | }; |
---|
969 | 1026 | |
---|
970 | 1027 | snddmic:sound@2{ |
---|
.. | .. |
---|
1055 | 1112 | snddaudio3:sound@6 { |
---|
1056 | 1113 | status = "disabled"; |
---|
1057 | 1114 | }; |
---|
| 1115 | + |
---|
1058 | 1116 | vind0:vind@0 { |
---|
1059 | 1117 | vind0_clk = <336000000>; |
---|
1060 | 1118 | vind0_isp = <300000000>; |
---|
.. | .. |
---|
1081 | 1139 | }; |
---|
1082 | 1140 | sensor0:sensor@0 { |
---|
1083 | 1141 | device_type = "sensor0"; |
---|
1084 | | - sensor0_mname = "gc2385_mipi"; |
---|
| 1142 | + sensor1_mname = "ov8858_r2a_4lane"; |
---|
1085 | 1143 | sensor0_twi_cci_id = <2>; |
---|
1086 | | - sensor0_twi_addr = <0x6e>; |
---|
| 1144 | + sensor0_twi_addr = <0x6c>; |
---|
| 1145 | + //sensor0_twi_addr = <0x20>; |
---|
| 1146 | + |
---|
1087 | 1147 | sensor0_mclk_id = <0>; |
---|
1088 | 1148 | sensor0_pos = "rear"; |
---|
1089 | 1149 | sensor0_isp_used = <1>; |
---|
.. | .. |
---|
1098 | 1158 | sensor0_dvdd-supply = <®_eldo2>; |
---|
1099 | 1159 | sensor0_dvdd_vol = <1200000>; |
---|
1100 | 1160 | sensor0_power_en = <>; |
---|
1101 | | - sensor0_reset = <&pio PE 9 1 0 1 0>; |
---|
1102 | | - sensor0_pwdn = <&pio PE 8 1 0 1 0>; |
---|
1103 | | - status = "disabled"; |
---|
| 1161 | + sensor0_reset = <&pio PE 6 1 0 1 0>; |
---|
| 1162 | + sensor0_pwdn = <&pio PE 7 1 0 1 0>; |
---|
| 1163 | + status = "okay"; |
---|
1104 | 1164 | }; |
---|
1105 | 1165 | sensor1:sensor@1 { |
---|
1106 | 1166 | device_type = "sensor1"; |
---|
1107 | | - sensor1_mname = "gc030a_mipi"; |
---|
1108 | | - sensor1_twi_cci_id = <2>; |
---|
1109 | | - sensor1_twi_addr = <0x42>; |
---|
1110 | | - sensor1_mclk_id = <0>; |
---|
| 1167 | + sensor1_mname = "ov5648_mipi"; |
---|
| 1168 | + sensor1_twi_cci_id = <3>; |
---|
| 1169 | + sensor1_twi_addr = <0x6c>; |
---|
| 1170 | + sensor1_mclk_id = <1>; |
---|
1111 | 1171 | sensor1_pos = "front"; |
---|
1112 | 1172 | sensor1_isp_used = <1>; |
---|
1113 | 1173 | sensor1_fmt = <1>; |
---|
.. | .. |
---|
1118 | 1178 | sensor1_iovdd_vol = <1800000>; |
---|
1119 | 1179 | sensor1_avdd-supply = <®_dldo3>; |
---|
1120 | 1180 | sensor1_avdd_vol = <2800000>; |
---|
1121 | | - sensor1_dvdd-supply = <>; |
---|
1122 | | - sensor1_dvdd_vol = <>; |
---|
| 1181 | + sensor1_dvdd-supply = <®_eldo2>; |
---|
| 1182 | + sensor1_dvdd_vol = <1500000>; |
---|
1123 | 1183 | sensor1_power_en = <>; |
---|
1124 | | - sensor1_reset = <&pio PE 7 1 0 1 0>; |
---|
1125 | | - sensor1_pwdn = <&pio PE 6 1 0 1 0>; |
---|
1126 | | - status = "disabled"; |
---|
| 1184 | + sensor1_reset = <&pio PE 8 1 0 1 0>; |
---|
| 1185 | + sensor1_pwdn = <&pio PE 9 1 0 1 0>; |
---|
| 1186 | + status = "okay"; |
---|
1127 | 1187 | }; |
---|
| 1188 | + |
---|
1128 | 1189 | vinc0:vinc@0 { |
---|
1129 | 1190 | vinc0_csi_sel = <0>; |
---|
1130 | 1191 | vinc0_mipi_sel = <0>; |
---|
.. | .. |
---|
1209 | 1270 | display, 2:dual display with 3 channel in main display and 3 channel in second |
---|
1210 | 1271 | in display. |
---|
1211 | 1272 | ----------------------------------------------------------------------------------*/ |
---|
1212 | | - disp: disp@06000000 { |
---|
1213 | | - disp_init_enable = <1>; |
---|
1214 | | - disp_mode = <0>; |
---|
| 1273 | + disp: disp@06000000 { |
---|
| 1274 | + disp_init_enable = <1>; |
---|
| 1275 | + disp_mode = <0>; |
---|
1215 | 1276 | |
---|
1216 | | - screen0_output_type = <1>; |
---|
1217 | | - screen0_output_mode = <4>; |
---|
| 1277 | + screen0_output_type = <1>; |
---|
| 1278 | + screen0_output_mode = <4>; |
---|
1218 | 1279 | |
---|
1219 | | - screen1_output_type = <1>; |
---|
1220 | | - screen1_output_mode = <4>; |
---|
| 1280 | + screen1_output_type = <1>; |
---|
| 1281 | + screen1_output_mode = <4>; |
---|
1221 | 1282 | |
---|
1222 | | - screen1_output_format = <0>; |
---|
1223 | | - screen1_output_bits = <0>; |
---|
1224 | | - screen1_output_eotf = <4>; |
---|
1225 | | - screen1_output_cs = <257>; |
---|
1226 | | - screen1_output_dvi_hdmi = <2>; |
---|
1227 | | - screen1_output_range = <2>; |
---|
1228 | | - screen1_output_scan = <0>; |
---|
1229 | | - screen1_output_aspect_ratio = <8>; |
---|
| 1283 | + screen1_output_format = <0>; |
---|
| 1284 | + screen1_output_bits = <0>; |
---|
| 1285 | + screen1_output_eotf = <4>; |
---|
| 1286 | + screen1_output_cs = <257>; |
---|
| 1287 | + screen1_output_dvi_hdmi = <2>; |
---|
| 1288 | + screen1_output_range = <2>; |
---|
| 1289 | + screen1_output_scan = <0>; |
---|
| 1290 | + screen1_output_aspect_ratio = <8>; |
---|
1230 | 1291 | |
---|
1231 | | - dev0_output_type = <1>; |
---|
1232 | | - dev0_output_mode = <4>; |
---|
1233 | | - dev0_screen_id = <0>; |
---|
1234 | | - dev0_do_hpd = <0>; |
---|
| 1292 | + dev0_output_type = <1>; |
---|
| 1293 | + dev0_output_mode = <4>; |
---|
| 1294 | + dev0_screen_id = <0>; |
---|
| 1295 | + dev0_do_hpd = <0>; |
---|
1235 | 1296 | |
---|
1236 | | - dev1_output_type = <4>; |
---|
1237 | | - dev1_output_mode = <10>; |
---|
1238 | | - dev1_screen_id = <1>; |
---|
1239 | | - dev1_do_hpd = <1>; |
---|
| 1297 | + dev1_output_type = <4>; |
---|
| 1298 | + dev1_output_mode = <10>; |
---|
| 1299 | + dev1_screen_id = <1>; |
---|
| 1300 | + dev1_do_hpd = <1>; |
---|
1240 | 1301 | |
---|
1241 | | - def_output_dev = <0>; |
---|
1242 | | - hdmi_mode_check = <1>; |
---|
| 1302 | + def_output_dev = <0>; |
---|
| 1303 | + hdmi_mode_check = <1>; |
---|
1243 | 1304 | |
---|
1244 | | - fb0_format = <0>; |
---|
1245 | | - fb0_width = <600>; |
---|
1246 | | - fb0_height = <1024>; |
---|
| 1305 | + fb0_format = <0>; |
---|
| 1306 | + fb0_width = <800>; |
---|
| 1307 | + fb0_height = <1280>; |
---|
1247 | 1308 | |
---|
1248 | | - fb1_format = <0>; |
---|
1249 | | - fb1_width = <0>; |
---|
1250 | | - fb1_height = <0>; |
---|
1251 | | - chn_cfg_mode = <1>; |
---|
| 1309 | + fb1_format = <0>; |
---|
| 1310 | + fb1_width = <0>; |
---|
| 1311 | + fb1_height = <0>; |
---|
| 1312 | + chn_cfg_mode = <1>; |
---|
1252 | 1313 | |
---|
1253 | | - disp_para_zone = <1>; |
---|
1254 | | - /*VCC-LCD*/ |
---|
1255 | | - dc1sw-supply = <®_dc1sw>; |
---|
1256 | | - /*VCC-DSI*/ |
---|
1257 | | - eldo3-supply = <®_eldo3>; |
---|
1258 | | - /*VCC-PD*/ |
---|
1259 | | - dcdc1-supply = <®_dcdc1>; |
---|
1260 | | - }; |
---|
| 1314 | + disp_para_zone = <1>; |
---|
| 1315 | + dc1sw-supply = <®_dc1sw>; |
---|
| 1316 | + eldo3-supply = <®_eldo3>; |
---|
| 1317 | + dcdc1-supply = <®_dcdc1>; |
---|
| 1318 | + }; |
---|
1261 | 1319 | /*---------------------------------------------------------------------------------- |
---|
1262 | 1320 | ;lcd0 configuration |
---|
1263 | 1321 | |
---|
.. | .. |
---|
1316 | 1374 | ;For lvds1: use lvds1_pins_a and lvds1_pins_b instead |
---|
1317 | 1375 | ;For lvds0: use lvds0_pins_a and lvds0_pins_b instead |
---|
1318 | 1376 | ;----------------------------------------------------------------------------------*/ |
---|
1319 | | - lcd0: lcd0@01c0c000 { |
---|
1320 | | - lcd_used = <1>; |
---|
| 1377 | + lcd0: lcd0@01c0c000 { |
---|
| 1378 | + lcd_used = <1>; |
---|
1321 | 1379 | |
---|
1322 | | - lcd_driver_name = "k101im2qa04"; |
---|
1323 | | - lcd_backlight = <50>; |
---|
1324 | | - lcd_if = <4>; |
---|
| 1380 | + lcd_driver_name = "mipi_800x1280"; |
---|
| 1381 | + lcd_backlight = <50>; |
---|
| 1382 | + lcd_if = <4>; |
---|
1325 | 1383 | |
---|
1326 | | - lcd_x = <600>; |
---|
1327 | | - lcd_y = <1024>; |
---|
1328 | | - lcd_width = <135>; |
---|
1329 | | - lcd_height = <216>; |
---|
1330 | | - lcd_dclk_freq = <68>; |
---|
| 1384 | + lcd_x = <800>; |
---|
| 1385 | + lcd_y = <1280>; |
---|
| 1386 | + lcd_width = <220>; |
---|
| 1387 | + lcd_height = <140>; |
---|
| 1388 | + lcd_dclk_freq = <67>; |
---|
1331 | 1389 | |
---|
1332 | | - lcd_pwm_used = <1>; |
---|
1333 | | - lcd_pwm_ch = <0>; |
---|
1334 | | - lcd_pwm_freq = <50000>; |
---|
1335 | | - lcd_pwm_pol = <1>; |
---|
1336 | | - lcd_pwm_max_limit = <255>; |
---|
| 1390 | + lcd_pwm_used = <1>; |
---|
| 1391 | + lcd_pwm_ch = <3>; |
---|
| 1392 | + lcd_pwm_freq = <50000>; |
---|
| 1393 | + lcd_pwm_pol = <1>; |
---|
| 1394 | + lcd_pwm_max_limit = <255>; |
---|
1337 | 1395 | |
---|
| 1396 | + lcd_hbp = <18>; |
---|
| 1397 | + lcd_ht = <934>; |
---|
| 1398 | + lcd_hspw = <4>; |
---|
| 1399 | + lcd_vbp = <38>; |
---|
| 1400 | + lcd_vt = <1344>; |
---|
| 1401 | + lcd_vspw = <2>; |
---|
1338 | 1402 | |
---|
1339 | | - lcd_hbp = <36>; |
---|
1340 | | - lcd_ht = <854>; |
---|
1341 | | - lcd_hspw = <18>; |
---|
1342 | | - lcd_vbp = <12>; |
---|
1343 | | - lcd_vt = <1320>; |
---|
1344 | | - lcd_vspw = <4>; |
---|
| 1403 | + lcd_frm = <0>; |
---|
| 1404 | + lcd_gamma_en = <0>; |
---|
| 1405 | + lcd_bright_curve_en = <0>; |
---|
| 1406 | + lcd_cmap_en = <0>; |
---|
1345 | 1407 | |
---|
1346 | | - lcd_frm = <0>; |
---|
1347 | | - lcd_gamma_en = <0>; |
---|
1348 | | - lcd_bright_curve_en = <0>; |
---|
1349 | | - lcd_cmap_en = <0>; |
---|
| 1408 | + deu_mode = <0>; |
---|
| 1409 | + lcdgamma4iep = <22>; |
---|
| 1410 | + smart_color = <90>; |
---|
1350 | 1411 | |
---|
1351 | | - deu_mode = <0>; |
---|
1352 | | - lcdgamma4iep = <22>; |
---|
1353 | | - smart_color = <90>; |
---|
| 1412 | + lcd_dsi_if = <0>; |
---|
| 1413 | + lcd_dsi_lane = <4>; |
---|
| 1414 | + lcd_dsi_format = <0>; |
---|
| 1415 | + lcd_dsi_te = <0>; |
---|
| 1416 | + lcd_dsi_eotp = <0>; |
---|
1354 | 1417 | |
---|
1355 | | - lcd_dsi_if = <0>; |
---|
1356 | | - lcd_dsi_lane = <4>; |
---|
1357 | | - lcd_dsi_format = <0>; |
---|
1358 | | - lcd_dsi_te = <0>; |
---|
1359 | | - lcd_dsi_eotp = <0>; |
---|
| 1418 | + lcd_pin_power = "dcdc1"; |
---|
| 1419 | + lcd_pin_power1 = "eldo3"; |
---|
1360 | 1420 | |
---|
1361 | | - lcd_pin_power = "dcdc1"; |
---|
1362 | | - lcd_pin_power1 = "eldo3"; |
---|
1363 | | - |
---|
1364 | | - lcd_power = "dc1sw"; |
---|
1365 | | - lcd_bl_en = <&pio PB 8 1 0 3 1>; |
---|
1366 | | - /*lcd_gpio_1 = <&pio PD 23 1 0 3 1>;*/ |
---|
1367 | | - lcd_gpio_0 = <&pio PD 22 1 0 3 1>; |
---|
1368 | | - pinctrl-0 = <&dsi4lane_pins_a>; |
---|
1369 | | - pinctrl-1 = <&dsi4lane_pins_b>; |
---|
1370 | | - }; |
---|
| 1421 | + lcd_power = "dc1sw"; |
---|
| 1422 | + lcd_gpio_0 = <&r_pio PL 11 1 0 3 1>; |
---|
| 1423 | + pinctrl-0 = <&dsi4lane_pins_a>; |
---|
| 1424 | + pinctrl-1 = <&dsi4lane_pins_b>; |
---|
| 1425 | + }; |
---|
1371 | 1426 | |
---|
1372 | 1427 | hall_para { |
---|
1373 | 1428 | hall_name = "MH248"; |
---|
.. | .. |
---|
1377 | 1432 | |
---|
1378 | 1433 | keyboard { |
---|
1379 | 1434 | compatible = "allwinner,keyboard_1350mv"; |
---|
1380 | | - status = "okay"; |
---|
| 1435 | + status = "disable"; |
---|
1381 | 1436 | key_cnt = <3>; |
---|
1382 | 1437 | key0 = <475 0x7372>; |
---|
1383 | 1438 | key1 = <646 0x73>; |
---|
.. | .. |
---|
1398 | 1453 | power_en; |
---|
1399 | 1454 | status = "okay"; |
---|
1400 | 1455 | }; |
---|
1401 | | - |
---|
1402 | 1456 | bt: bt@0 { |
---|
1403 | 1457 | compatible = "allwinner,sunxi-bt"; |
---|
1404 | 1458 | clocks = <&clk_losc_out>, <&clk_dcxo_out>; |
---|
1405 | 1459 | bt_power = "axp803-dldo1"; |
---|
| 1460 | + //bt_power = "axp803-dldo1"; |
---|
1406 | 1461 | bt_io_regulator; |
---|
1407 | 1462 | bt_rst_n = <&r_pio PL 2 1 0xffffffff 0xffffffff 0>; |
---|
1408 | 1463 | status = "okay"; |
---|
.. | .. |
---|
1423 | 1478 | type_addr_eth = <0x0>; |
---|
1424 | 1479 | status = "okay"; |
---|
1425 | 1480 | }; |
---|
1426 | | - |
---|
1427 | 1481 | uart0: uart@05000000 { |
---|
1428 | 1482 | uart-supply = <®_dcdc1>; |
---|
1429 | 1483 | }; |
---|
1430 | 1484 | |
---|
1431 | 1485 | uart1: uart@05000400 { |
---|
| 1486 | + status = "okay"; |
---|
| 1487 | + }; |
---|
| 1488 | + |
---|
| 1489 | + uart2: uart@05000800 { |
---|
| 1490 | + status = "okay"; |
---|
| 1491 | + }; |
---|
| 1492 | + |
---|
| 1493 | + uart3: uart@05000c00 { |
---|
| 1494 | + status = "okay"; |
---|
| 1495 | + }; |
---|
| 1496 | + |
---|
| 1497 | + uart4: uart@05001000 { |
---|
1432 | 1498 | status = "okay"; |
---|
1433 | 1499 | }; |
---|
1434 | 1500 | }; |
---|
.. | .. |
---|
1447 | 1513 | gpu-supply = <®_dcdc4>; |
---|
1448 | 1514 | }; |
---|
1449 | 1515 | |
---|
1450 | | - leds:gpio-leds { |
---|
1451 | | - compatible = "gpio-leds"; |
---|
| 1516 | + leds { |
---|
| 1517 | + compatible = "gpio-leds"; |
---|
| 1518 | + pinctrl-names = "default"; |
---|
1452 | 1519 | status = "okay"; |
---|
1453 | | - hbt{ |
---|
1454 | | - gpios = <&pio PH 10 1 0xffffffff 0xffffffff 0>; |
---|
1455 | | - //linux,default-trigger = "heartbeat"; |
---|
| 1520 | + |
---|
| 1521 | + sys { |
---|
| 1522 | + label = "sysled"; |
---|
| 1523 | + gpios = <&pio PH 19 1 0 1 0>; |
---|
| 1524 | + linux,default_trigger = "heartbeat"; |
---|
| 1525 | + }; |
---|
| 1526 | + |
---|
| 1527 | + hubrst { |
---|
| 1528 | + label = "hubrst"; |
---|
| 1529 | + gpios = <&pio PC 7 1 0 1 1>; |
---|
| 1530 | + default_state="on"; |
---|
1456 | 1531 | }; |
---|
1457 | | - }; |
---|
| 1532 | + |
---|
| 1533 | + usb1_pwr { |
---|
| 1534 | + label = "usb1_pwr"; |
---|
| 1535 | + gpios = <&r_pio PL 9 1 0 1 1>; |
---|
| 1536 | + default_state="on"; |
---|
| 1537 | + }; |
---|
| 1538 | + |
---|
| 1539 | + usb2_pwr { |
---|
| 1540 | + label = "usb2_pwr"; |
---|
| 1541 | + gpios = <&pio PH 15 1 0 1 1>; |
---|
| 1542 | + default_state="on"; |
---|
| 1543 | + }; |
---|
| 1544 | + |
---|
| 1545 | + usb3_pwr { |
---|
| 1546 | + label = "usb3_pwr"; |
---|
| 1547 | + gpios = <&pio PH 16 1 0 1 1>; |
---|
| 1548 | + default_state="on"; |
---|
| 1549 | + }; |
---|
| 1550 | + |
---|
| 1551 | + usb4_pwr { |
---|
| 1552 | + label = "usb4_pwr"; |
---|
| 1553 | + gpios = <&r_pio PL 8 1 0 1 1>; |
---|
| 1554 | + default_state="on"; |
---|
| 1555 | + }; |
---|
| 1556 | + |
---|
| 1557 | + usb5_pwr { |
---|
| 1558 | + label = "usb5_pwr"; |
---|
| 1559 | + gpios = <&pio PH 18 1 0 1 1>; |
---|
| 1560 | + default_state="on"; |
---|
| 1561 | + }; |
---|
| 1562 | + |
---|
| 1563 | + usb6_pwr { |
---|
| 1564 | + label = "usb6_pwr"; |
---|
| 1565 | + gpios = <&pio PB 6 1 0 1 1>; |
---|
| 1566 | + default_state="on"; |
---|
| 1567 | + }; |
---|
| 1568 | + |
---|
| 1569 | + usb7_pwr { |
---|
| 1570 | + label = "usb7_pwr"; |
---|
| 1571 | + gpios = <&pio PB 8 1 0 1 1>; |
---|
| 1572 | + default_state="on"; |
---|
| 1573 | + }; |
---|
| 1574 | + |
---|
| 1575 | + spkmute { |
---|
| 1576 | + label = "spkmute"; |
---|
| 1577 | + gpios = <&pio PH 13 1 0 1 0>; |
---|
| 1578 | + default_state="on"; |
---|
| 1579 | + }; |
---|
| 1580 | + }; |
---|
| 1581 | + |
---|
1458 | 1582 | }; |
---|
1459 | 1583 | |
---|
1460 | 1584 | &cpu0 { |
---|