FILE
rk3588-tiger-haikou-video-demo.dtso
File preview with syntax highlighting.
linux-6.19.14/arch/arm64/boot/dts/rockchip/rk3588-tiger-haikou-video-demo.dtso
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Copyright (C) 2024 Cherry Embedded Solutions GmbH 4 * 5 * DEVKIT ADDON CAM-TS-A01 6 * https://embedded.cherry.de/product/development-kit/ 7 * 8 * DT-overlay for the camera / DSI demo appliance for Haikou boards. 9 * In the flavour for use with a Tiger system-on-module. 10 */ 11 12/dts-v1/; 13/plugin/; 14 15#include <dt-bindings/gpio/gpio.h> 16#include <dt-bindings/interrupt-controller/irq.h> 17#include <dt-bindings/leds/common.h> 18#include <dt-bindings/pinctrl/rockchip.h> 19#include <dt-bindings/soc/rockchip,vop2.h> 20 21&{/} { 22 backlight: backlight { 23 compatible = "pwm-backlight"; 24 power-supply = <&dc_12v>; 25 pwms = <&pwm0 0 25000 0>; 26 }; 27 28 vcc1v8_video: regulator-vcc1v8-video { 29 compatible = "regulator-fixed"; 30 regulator-name = "vcc1v8-video"; 31 regulator-always-on; 32 regulator-boot-on; 33 regulator-min-microvolt = <1800000>; 34 regulator-max-microvolt = <1800000>; 35 vin-supply = <&vcc3v3_baseboard>; 36 }; 37 38 vcc2v8_video: regulator-vcc2v8-video { 39 compatible = "regulator-fixed"; 40 regulator-name = "vcc2v8-video"; 41 regulator-always-on; 42 regulator-boot-on; 43 regulator-min-microvolt = <2800000>; 44 regulator-max-microvolt = <2800000>; 45 vin-supply = <&vcc3v3_baseboard>; 46 }; 47 48 video-adapter-leds { 49 compatible = "gpio-leds"; 50 51 video-adapter-led { 52 color = <LED_COLOR_ID_BLUE>; 53 gpios = <&pca9670 7 GPIO_ACTIVE_HIGH>; 54 label = "video-adapter-led"; 55 linux,default-trigger = "none"; 56 }; 57 }; 58}; 59 60&dsi0 { 61 #address-cells = <1>; 62 #size-cells = <0>; 63 status = "okay"; 64 65 panel@0 { 66 compatible = "leadtek,ltk050h3148w"; 67 reg = <0>; 68 backlight = <&backlight>; 69 iovcc-supply = <&vcc1v8_video>; 70 reset-gpios = <&pca9670 0 GPIO_ACTIVE_LOW>; 71 vci-supply = <&vcc2v8_video>; 72 73 port { 74 mipi_panel_in: endpoint { 75 remote-endpoint = <&dsi0_out_panel>; 76 }; 77 }; 78 }; 79}; 80 81&dsi0_in { 82 dsi0_in_vp3: endpoint { 83 remote-endpoint = <&vp3_out_dsi0>; 84 }; 85}; 86 87&dsi0_out { 88 dsi0_out_panel: endpoint { 89 remote-endpoint = <&mipi_panel_in>; 90 }; 91}; 92 93&i2c6 { 94 /* OV5675, GT911, DW9714 are limited to 400KHz */ 95 clock-frequency = <400000>; 96 #address-cells = <1>; 97 #size-cells = <0>; 98 99 touchscreen@14 { 100 compatible = "goodix,gt911"; 101 reg = <0x14>; 102 interrupt-parent = <&gpio3>; 103 interrupts = <RK_PC3 IRQ_TYPE_LEVEL_LOW>; 104 irq-gpios = <&gpio3 RK_PC3 GPIO_ACTIVE_HIGH>; 105 pinctrl-names = "default"; 106 pinctrl-0 = <&touch_int>; 107 reset-gpios = <&pca9670 1 GPIO_ACTIVE_HIGH>; 108 AVDD28-supply = <&vcc2v8_video>; 109 VDDIO-supply = <&vcc3v3_baseboard>; 110 }; 111 112 pca9670: gpio@27 { 113 compatible = "nxp,pca9670"; 114 reg = <0x27>; 115 gpio-controller; 116 #gpio-cells = <2>; 117 pinctrl-names = "default"; 118 pinctrl-0 = <&pca9670_resetn>; 119 reset-gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_LOW>; 120 }; 121}; 122 123&mipidcphy0 { 124 status = "okay"; 125}; 126 127&pinctrl { 128 pca9670 { 129 pca9670_resetn: pca9670-resetn { 130 rockchip,pins = <3 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>; 131 }; 132 }; 133 134 touch { 135 touch_int: touch-int { 136 rockchip,pins = <3 RK_PC3 RK_FUNC_GPIO &pcfg_pull_none>; 137 }; 138 }; 139}; 140 141&pwm0 { 142 status = "okay"; 143}; 144 145&vp3 { 146 #address-cells = <1>; 147 #size-cells = <0>; 148 149 vp3_out_dsi0: endpoint@ROCKCHIP_VOP2_EP_MIPI0 { 150 reg = <ROCKCHIP_VOP2_EP_MIPI0>; 151 remote-endpoint = <&dsi0_in_vp3>; 152 }; 153};
~/
Read-only file preview.