|
104 | 104 | regulator-boot-on;
|
105 | 105 | };
|
106 | 106 |
|
| 107 | + avdd2v8_dvp: regulator-avdd2v8-dvp { |
| 108 | + compatible = "regulator-fixed"; |
| 109 | + regulator-name = "avdd2v8_dvp"; |
| 110 | + regulator-always-on; |
| 111 | + regulator-boot-on; |
| 112 | + regulator-min-microvolt = <2800000>; |
| 113 | + regulator-max-microvolt = <2800000>; |
| 114 | + vin-supply = <&vcc3v3_sys>; |
| 115 | + }; |
| 116 | + |
107 | 117 | vcc3v3_sys: regulator-vcc3v3-sys {
|
108 | 118 | compatible = "regulator-fixed";
|
109 | 119 | regulator-name = "vcc3v3_sys";
|
|
136 | 146 | vin-supply = <&vcc3v3_sys>;
|
137 | 147 | };
|
138 | 148 |
|
| 149 | + vcc1v2_dvp: regulator-vcc1v2-dvp { |
| 150 | + compatible = "regulator-fixed"; |
| 151 | + regulator-name = "vcc1v2_dvp"; |
| 152 | + regulator-always-on; |
| 153 | + regulator-boot-on; |
| 154 | + regulator-min-microvolt = <1200000>; |
| 155 | + regulator-max-microvolt = <1200000>; |
| 156 | + vin-supply = <&vcca1v8_s3>; |
| 157 | + }; |
| 158 | + |
139 | 159 | wifi_pwrseq: sdio-wifi-pwrseq {
|
140 | 160 | compatible = "mmc-pwrseq-simple";
|
141 | 161 | clocks = <&rk818 1>;
|
|
312 | 332 |
|
313 | 333 | vcca1v8_codec: LDO_REG3 {
|
314 | 334 | regulator-name = "vcca1v8_codec";
|
| 335 | + regulator-always-on; |
| 336 | + regulator-boot-on; |
315 | 337 | regulator-min-microvolt = <1800000>;
|
316 | 338 | regulator-max-microvolt = <1800000>;
|
317 | 339 | };
|
|
420 | 442 | };
|
421 | 443 | };
|
422 | 444 |
|
| 445 | +&i2c1 { |
| 446 | + assigned-clocks = <&cru SCLK_CIF_OUT>; |
| 447 | + assigned-clock-rates = <24000000>; |
| 448 | + clock-frequency = <400000>; |
| 449 | + pinctrl-names = "default"; |
| 450 | + pinctrl-0 = <&i2c1_xfer &cif_clkouta>; |
| 451 | + status = "okay"; |
| 452 | + |
| 453 | + wcam: camera@1a { |
| 454 | + compatible = "sony,imx258"; |
| 455 | + reg = <0x1a>; |
| 456 | + clocks = <&cru SCLK_CIF_OUT>; /* MIPI_MCLK0, derived from CIF_CLKO */ |
| 457 | + lens-focus = <&wcam_lens>; |
| 458 | + orientation = <1>; /* V4L2_CAMERA_ORIENTATION_BACK */ |
| 459 | + pinctrl-names = "default"; |
| 460 | + pinctrl-0 = <&camera_rst_l>; |
| 461 | + reset-gpios = <&gpio1 RK_PA0 GPIO_ACTIVE_LOW>; |
| 462 | + rotation = <270>; |
| 463 | + /* Note: both cameras also depend on vcca1v8_codec to power the I2C bus. */ |
| 464 | + vif-supply = <&vcc1v8_dvp>; |
| 465 | + vana-supply = <&avdd2v8_dvp>; |
| 466 | + vdig-supply = <&vcc1v2_dvp>; /* DVDD_DVP is the same as VCC1V2_DVP */ |
| 467 | + |
| 468 | + port { |
| 469 | + wcam_out: endpoint { |
| 470 | + data-lanes = <1 2 3 4>; |
| 471 | + link-frequencies = /bits/ 64 <636000000>; |
| 472 | + remote-endpoint = <&mipi_in_wcam>; |
| 473 | + }; |
| 474 | + }; |
| 475 | + }; |
| 476 | + |
| 477 | + wcam_lens: camera-lens@c { |
| 478 | + compatible = "dongwoon,dw9714"; |
| 479 | + reg = <0x0c>; |
| 480 | + /* Same I2c bus as both cameras, depends on vcca1v8_codec for power. */ |
| 481 | + vcc-supply = <&vcc1v8_dvp>; |
| 482 | + }; |
| 483 | +}; |
| 484 | + |
423 | 485 | &i2c3 {
|
424 | 486 | i2c-scl-rising-time-ns = <450>;
|
425 | 487 | i2c-scl-falling-time-ns = <15>;
|
|
462 | 524 | status = "okay";
|
463 | 525 | };
|
464 | 526 |
|
| 527 | +&isp1 { |
| 528 | + status = "okay"; |
| 529 | + |
| 530 | + ports { |
| 531 | + port@0 { |
| 532 | + mipi_in_wcam: endpoint@0 { |
| 533 | + reg = <0>; |
| 534 | + data-lanes = <1 2 3 4>; |
| 535 | + remote-endpoint = <&wcam_out>; |
| 536 | + }; |
| 537 | + }; |
| 538 | + }; |
| 539 | +}; |
| 540 | + |
| 541 | +&mipi_dphy_rx0 { |
| 542 | + status = "okay"; |
| 543 | +}; |
| 544 | + |
| 545 | +&isp1_mmu { |
| 546 | + status = "okay"; |
| 547 | +}; |
| 548 | + |
465 | 549 | &mipi_dsi {
|
466 | 550 | clock-master;
|
467 | 551 | status = "okay";
|
|
490 | 574 | };
|
491 | 575 | };
|
492 | 576 |
|
| 577 | +&mipi_dsi1 { |
| 578 | + status = "okay"; |
| 579 | +}; |
| 580 | + |
493 | 581 | &pmu_io_domains {
|
494 | 582 | pmu1830-supply = <&vcc_1v8>;
|
495 | 583 | status = "okay";
|
|
508 | 596 | };
|
509 | 597 | };
|
510 | 598 |
|
| 599 | + camera { |
| 600 | + camera_rst_l: camera-rst-l { |
| 601 | + rockchip,pins = <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>; |
| 602 | + }; |
| 603 | + }; |
| 604 | + |
511 | 605 | leds {
|
512 | 606 | red_led_pin: red-led-pin {
|
513 | 607 | rockchip,pins = <4 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
0 commit comments