| .. | .. |
|---|
| 1 | | -/* |
|---|
| 2 | | - * This file is dual-licensed: you can use it either under the terms |
|---|
| 3 | | - * of the GPL or the X11 license, at your option. Note that this dual |
|---|
| 4 | | - * licensing only applies to this file, and not this project as a |
|---|
| 5 | | - * whole. |
|---|
| 6 | | - * |
|---|
| 7 | | - * a) This file is free software; you can redistribute it and/or |
|---|
| 8 | | - * modify it under the terms of the GNU General Public License as |
|---|
| 9 | | - * published by the Free Software Foundation; either version 2 of the |
|---|
| 10 | | - * License, or (at your option) any later version. |
|---|
| 11 | | - * |
|---|
| 12 | | - * This file is distributed in the hope that it will be useful, |
|---|
| 13 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 14 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 15 | | - * GNU General Public License for more details. |
|---|
| 16 | | - * |
|---|
| 17 | | - * Or, alternatively, |
|---|
| 18 | | - * |
|---|
| 19 | | - * b) Permission is hereby granted, free of charge, to any person |
|---|
| 20 | | - * obtaining a copy of this software and associated documentation |
|---|
| 21 | | - * files (the "Software"), to deal in the Software without |
|---|
| 22 | | - * restriction, including without limitation the rights to use, |
|---|
| 23 | | - * copy, modify, merge, publish, distribute, sublicense, and/or |
|---|
| 24 | | - * sell copies of the Software, and to permit persons to whom the |
|---|
| 25 | | - * Software is furnished to do so, subject to the following |
|---|
| 26 | | - * conditions: |
|---|
| 27 | | - * |
|---|
| 28 | | - * The above copyright notice and this permission notice shall be |
|---|
| 29 | | - * included in all copies or substantial portions of the Software. |
|---|
| 30 | | - * |
|---|
| 31 | | - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
|---|
| 32 | | - * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
|---|
| 33 | | - * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
|---|
| 34 | | - * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
|---|
| 35 | | - * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
|---|
| 36 | | - * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|---|
| 37 | | - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
|---|
| 38 | | - * OTHER DEALINGS IN THE SOFTWARE. |
|---|
| 39 | | - */ |
|---|
| 1 | +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
|---|
| 40 | 2 | |
|---|
| 41 | 3 | /dts-v1/; |
|---|
| 42 | 4 | #include "rk3288-evb.dtsi" |
|---|
| 43 | 5 | #include "rk3288-linux.dtsi" |
|---|
| 44 | | -#include "rk3288-rkisp1.dtsi" |
|---|
| 45 | 6 | |
|---|
| 46 | 7 | / { |
|---|
| 47 | 8 | compatible = "rockchip,rk3288-evb-rk808-linux", "rockchip,rk3288"; |
|---|
| 48 | | - |
|---|
| 49 | | - panel { |
|---|
| 50 | | - compatible = "simple-panel"; |
|---|
| 51 | | - backlight = <&backlight>; |
|---|
| 52 | | - enable-gpios = <&gpio7 RK_PA4 GPIO_ACTIVE_HIGH>; |
|---|
| 53 | | - prepare-delay-ms = <120>; |
|---|
| 54 | | - |
|---|
| 55 | | - display-timings { |
|---|
| 56 | | - native-mode = <&timing0>; |
|---|
| 57 | | - |
|---|
| 58 | | - timing0: timing0 { |
|---|
| 59 | | - clock-frequency = <200000000>; |
|---|
| 60 | | - hactive = <1536>; |
|---|
| 61 | | - vactive = <2048>; |
|---|
| 62 | | - hfront-porch = <12>; |
|---|
| 63 | | - hsync-len = <16>; |
|---|
| 64 | | - hback-porch = <48>; |
|---|
| 65 | | - vfront-porch = <8>; |
|---|
| 66 | | - vsync-len = <4>; |
|---|
| 67 | | - vback-porch = <8>; |
|---|
| 68 | | - hsync-active = <0>; |
|---|
| 69 | | - vsync-active = <0>; |
|---|
| 70 | | - de-active = <0>; |
|---|
| 71 | | - pixelclk-active = <0>; |
|---|
| 72 | | - }; |
|---|
| 73 | | - }; |
|---|
| 74 | | - |
|---|
| 75 | | - port { |
|---|
| 76 | | - panel_in_edp: endpoint { |
|---|
| 77 | | - remote-endpoint = <&edp_out_panel>; |
|---|
| 78 | | - }; |
|---|
| 79 | | - }; |
|---|
| 80 | | - }; |
|---|
| 81 | 9 | |
|---|
| 82 | 10 | adc-keys { |
|---|
| 83 | 11 | compatible = "adc-keys"; |
|---|
| .. | .. |
|---|
| 114 | 42 | label = "Home"; |
|---|
| 115 | 43 | linux,code = <KEY_HOME>; |
|---|
| 116 | 44 | press-threshold-microvolt = <1300000>; |
|---|
| 117 | | - }; |
|---|
| 118 | | - }; |
|---|
| 119 | | - |
|---|
| 120 | | - gpio-keys { |
|---|
| 121 | | - compatible = "gpio-keys"; |
|---|
| 122 | | - #address-cells = <1>; |
|---|
| 123 | | - #size-cells = <0>; |
|---|
| 124 | | - autorepeat; |
|---|
| 125 | | - |
|---|
| 126 | | - pinctrl-names = "default"; |
|---|
| 127 | | - pinctrl-0 = <&pwrbtn>; |
|---|
| 128 | | - |
|---|
| 129 | | - button@0 { |
|---|
| 130 | | - gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; |
|---|
| 131 | | - linux,code = <116>; |
|---|
| 132 | | - label = "GPIO Key Power"; |
|---|
| 133 | | - linux,input-type = <1>; |
|---|
| 134 | | - gpio-key,wakeup = <1>; |
|---|
| 135 | | - debounce-interval = <100>; |
|---|
| 136 | 45 | }; |
|---|
| 137 | 46 | }; |
|---|
| 138 | 47 | |
|---|
| .. | .. |
|---|
| 210 | 119 | status = "okay"; |
|---|
| 211 | 120 | }; |
|---|
| 212 | 121 | |
|---|
| 213 | | -&edp { |
|---|
| 214 | | - force-hpd; |
|---|
| 215 | | - status = "okay"; |
|---|
| 216 | | - |
|---|
| 217 | | - ports { |
|---|
| 218 | | - port@1 { |
|---|
| 219 | | - reg = <1>; |
|---|
| 220 | | - |
|---|
| 221 | | - edp_out_panel: endpoint { |
|---|
| 222 | | - remote-endpoint = <&panel_in_edp>; |
|---|
| 223 | | - }; |
|---|
| 224 | | - }; |
|---|
| 225 | | - }; |
|---|
| 226 | | -}; |
|---|
| 227 | | - |
|---|
| 228 | 122 | &edp_in_vopb { |
|---|
| 229 | 123 | status = "disabled"; |
|---|
| 230 | 124 | }; |
|---|
| .. | .. |
|---|
| 239 | 133 | }; |
|---|
| 240 | 134 | |
|---|
| 241 | 135 | &hdmi { |
|---|
| 242 | | - pinctrl-0 = <&hdmi_ddc>, <&hdmi_cec>; |
|---|
| 136 | + pinctrl-0 = <&hdmi_ddc>, <&hdmi_cec_c0>; |
|---|
| 137 | +}; |
|---|
| 138 | + |
|---|
| 139 | +&hdmi_in_vopb { |
|---|
| 140 | + status = "okay"; |
|---|
| 141 | +}; |
|---|
| 142 | + |
|---|
| 143 | +&hdmi_in_vopl { |
|---|
| 144 | + status = "disabled"; |
|---|
| 243 | 145 | }; |
|---|
| 244 | 146 | |
|---|
| 245 | 147 | &i2c0 { |
|---|
| .. | .. |
|---|
| 330 | 232 | regulator-max-microvolt = <3300000>; |
|---|
| 331 | 233 | regulator-name = "vcca_codec"; |
|---|
| 332 | 234 | regulator-state-mem { |
|---|
| 333 | | - regulator-off-in-suspend; |
|---|
| 235 | + regulator-on-in-suspend; |
|---|
| 236 | + regulator-suspend-microvolt = <3300000>; |
|---|
| 334 | 237 | }; |
|---|
| 335 | 238 | }; |
|---|
| 336 | 239 | |
|---|
| .. | .. |
|---|
| 350 | 253 | regulator-always-on; |
|---|
| 351 | 254 | regulator-boot-on; |
|---|
| 352 | 255 | regulator-min-microvolt = <1800000>; |
|---|
| 353 | | - regulator-max-microvolt = <3300000>; |
|---|
| 256 | + regulator-max-microvolt = <1800000>; |
|---|
| 354 | 257 | regulator-name = "vcc_wl"; |
|---|
| 355 | 258 | regulator-state-mem { |
|---|
| 356 | | - regulator-off-in-suspend; |
|---|
| 259 | + regulator-on-in-suspend; |
|---|
| 357 | 260 | }; |
|---|
| 358 | 261 | }; |
|---|
| 359 | 262 | |
|---|
| .. | .. |
|---|
| 364 | 267 | regulator-max-microvolt = <3300000>; |
|---|
| 365 | 268 | regulator-name = "vccio_sd"; |
|---|
| 366 | 269 | regulator-state-mem { |
|---|
| 367 | | - regulator-on-in-suspend; |
|---|
| 368 | | - regulator-suspend-microvolt = <3300000>; |
|---|
| 270 | + regulator-off-in-suspend; |
|---|
| 369 | 271 | }; |
|---|
| 370 | 272 | }; |
|---|
| 371 | 273 | |
|---|
| .. | .. |
|---|
| 408 | 310 | regulator-boot-on; |
|---|
| 409 | 311 | regulator-name = "vcc_sd"; |
|---|
| 410 | 312 | regulator-state-mem { |
|---|
| 411 | | - regulator-on-in-suspend; |
|---|
| 313 | + regulator-off-in-suspend; |
|---|
| 412 | 314 | }; |
|---|
| 413 | 315 | }; |
|---|
| 414 | 316 | |
|---|
| .. | .. |
|---|
| 463 | 365 | mpu-debug = <1>; |
|---|
| 464 | 366 | }; |
|---|
| 465 | 367 | |
|---|
| 466 | | - ak8963:compass@0d{ |
|---|
| 368 | + ak8963: compass@d{ |
|---|
| 467 | 369 | compatible = "mpu_ak8963"; |
|---|
| 468 | 370 | reg = <0x0d>; |
|---|
| 469 | 371 | compass-bus = <0>; |
|---|
| .. | .. |
|---|
| 496 | 398 | |
|---|
| 497 | 399 | ov13850: ov13850@10 { |
|---|
| 498 | 400 | compatible = "ovti,ov13850"; |
|---|
| 499 | | - status = "okay"; |
|---|
| 500 | 401 | reg = <0x10>; |
|---|
| 501 | 402 | clocks = <&cru SCLK_VIP_OUT>; |
|---|
| 502 | 403 | clock-names = "xvclk"; |
|---|
| 503 | | - |
|---|
| 504 | | - reset-gpios = <&gpio7 21 GPIO_ACTIVE_HIGH>; |
|---|
| 505 | | - pwdn-gpios = <&gpio2 15 GPIO_ACTIVE_HIGH>; |
|---|
| 506 | | - |
|---|
| 404 | + /* avdd-supply = <>; */ |
|---|
| 405 | + /* dvdd-supply = <>; */ |
|---|
| 406 | + /* dovdd-supply = <>; */ |
|---|
| 407 | + /* reset-gpios = <>; */ |
|---|
| 408 | + pinctrl-names = "rockchip,camera_default"; |
|---|
| 409 | + pinctrl-0 = <&isp_mipi>; |
|---|
| 410 | + power-gpio = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>; |
|---|
| 411 | + reset-gpio = <&gpio7 RK_PC5 GPIO_ACTIVE_HIGH>; |
|---|
| 412 | + pwdn-gpios = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>; |
|---|
| 413 | + rockchip,camera-module-index = <0>; |
|---|
| 414 | + rockchip,camera-module-facing = "back"; |
|---|
| 415 | + rockchip,camera-module-name = "CMK-CT0116"; |
|---|
| 416 | + rockchip,camera-module-lens-name = "Largan-50013A1"; |
|---|
| 507 | 417 | port { |
|---|
| 508 | | - cam_out: endpoint { |
|---|
| 509 | | - remote-endpoint = <&mipi_in_cam>; |
|---|
| 418 | + ov13850_out: endpoint { |
|---|
| 419 | + remote-endpoint = <&mipi_in_ucam0>; |
|---|
| 510 | 420 | data-lanes = <1 2>; |
|---|
| 511 | 421 | }; |
|---|
| 512 | 422 | }; |
|---|
| 513 | 423 | }; |
|---|
| 514 | | -}; |
|---|
| 515 | 424 | |
|---|
| 516 | | -&isp { |
|---|
| 517 | | - status = "okay"; |
|---|
| 518 | | - |
|---|
| 519 | | - port { |
|---|
| 520 | | - isp_mipi_in: endpoint { |
|---|
| 521 | | - remote-endpoint = <&dphy_rx0_out>; |
|---|
| 425 | + gc8034: gc8034@37 { |
|---|
| 426 | + compatible = "galaxycore,gc8034"; |
|---|
| 427 | + status = "okay"; |
|---|
| 428 | + reg = <0x37>; |
|---|
| 429 | + clocks = <&cru SCLK_VIP_OUT>; |
|---|
| 430 | + clock-names = "xvclk"; |
|---|
| 431 | + pinctrl-names = "rockchip,camera_default"; |
|---|
| 432 | + pinctrl-0 = <&isp_mipi>; |
|---|
| 433 | + power-gpio = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>; |
|---|
| 434 | + reset-gpios = <&gpio7 RK_PC5 GPIO_ACTIVE_LOW>; |
|---|
| 435 | + pwdn-gpios = <&gpio2 RK_PB7 GPIO_ACTIVE_LOW>; |
|---|
| 436 | + rockchip,camera-module-index = <0>; |
|---|
| 437 | + rockchip,camera-module-facing = "back"; |
|---|
| 438 | + rockchip,camera-module-name = "LH-RK-8034-v1.0"; |
|---|
| 439 | + rockchip,camera-module-lens-name = "CK8401"; |
|---|
| 440 | + port { |
|---|
| 441 | + gc8034_out: endpoint { |
|---|
| 442 | + remote-endpoint = <&mipi_in_gc8034>; |
|---|
| 443 | + data-lanes = <1 2 3 4>; |
|---|
| 444 | + }; |
|---|
| 522 | 445 | }; |
|---|
| 523 | 446 | }; |
|---|
| 524 | 447 | }; |
|---|
| .. | .. |
|---|
| 536 | 459 | |
|---|
| 537 | 460 | port@0 { |
|---|
| 538 | 461 | reg = <0>; |
|---|
| 462 | + #address-cells = <1>; |
|---|
| 463 | + #size-cells = <0>; |
|---|
| 539 | 464 | |
|---|
| 540 | | - mipi_in_cam: endpoint { |
|---|
| 541 | | - remote-endpoint = <&cam_out>; |
|---|
| 465 | + mipi_in_ucam0: endpoint@1 { |
|---|
| 466 | + reg = <1>; |
|---|
| 467 | + remote-endpoint = <&ov13850_out>; |
|---|
| 542 | 468 | data-lanes = <1 2>; |
|---|
| 469 | + }; |
|---|
| 470 | + mipi_in_gc8034: endpoint@0 { |
|---|
| 471 | + reg = <0>; |
|---|
| 472 | + remote-endpoint = <&gc8034_out>; |
|---|
| 473 | + data-lanes = <1 2 3 4>; |
|---|
| 543 | 474 | }; |
|---|
| 544 | 475 | }; |
|---|
| 545 | 476 | |
|---|
| 546 | 477 | port@1 { |
|---|
| 547 | 478 | reg = <1>; |
|---|
| 479 | + #address-cells = <1>; |
|---|
| 480 | + #size-cells = <0>; |
|---|
| 548 | 481 | |
|---|
| 549 | | - dphy_rx0_out: endpoint { |
|---|
| 482 | + dphy_rx_out: endpoint@0 { |
|---|
| 483 | + reg = <0>; |
|---|
| 550 | 484 | remote-endpoint = <&isp_mipi_in>; |
|---|
| 551 | 485 | }; |
|---|
| 552 | 486 | }; |
|---|
| 487 | + }; |
|---|
| 488 | +}; |
|---|
| 489 | + |
|---|
| 490 | +&rkisp1 { |
|---|
| 491 | + status = "okay"; |
|---|
| 492 | + port { |
|---|
| 493 | + #address-cells = <1>; |
|---|
| 494 | + #size-cells = <0>; |
|---|
| 495 | + |
|---|
| 496 | + isp_mipi_in: endpoint@0 { |
|---|
| 497 | + reg = <0>; |
|---|
| 498 | + remote-endpoint = <&dphy_rx_out>; |
|---|
| 499 | + }; |
|---|
| 500 | + |
|---|
| 553 | 501 | }; |
|---|
| 554 | 502 | }; |
|---|
| 555 | 503 | |
|---|
| .. | .. |
|---|
| 562 | 510 | }; |
|---|
| 563 | 511 | |
|---|
| 564 | 512 | &route_hdmi { |
|---|
| 565 | | - status = "okay"; |
|---|
| 566 | | -}; |
|---|
| 567 | | - |
|---|
| 568 | | -&sound { |
|---|
| 569 | 513 | status = "okay"; |
|---|
| 570 | 514 | }; |
|---|
| 571 | 515 | |
|---|