blob: b8636fcb4f3921fa6bcfd0162b50241bbe1ee630 (
plain)
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
|
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (C) 2024 Cherry Embedded Solutions GmbH
*
* DEVKIT ADDON CAM-TS-A01
* https://embedded.cherry.de/product/development-kit/
*
* DT-overlay for the camera / DSI demo appliance for Haikou boards.
* In the flavour for use with a Tiger system-on-module.
*/
/dts-v1/;
/plugin/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/pinctrl/rockchip.h>
#include <dt-bindings/soc/rockchip,vop2.h>
&{/} {
backlight: backlight {
compatible = "pwm-backlight";
power-supply = <&dc_12v>;
pwms = <&pwm0 0 25000 0>;
};
vcc1v8_video: regulator-vcc1v8-video {
compatible = "regulator-fixed";
regulator-name = "vcc1v8-video";
regulator-always-on;
regulator-boot-on;
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
vin-supply = <&vcc3v3_baseboard>;
};
vcc2v8_video: regulator-vcc2v8-video {
compatible = "regulator-fixed";
regulator-name = "vcc2v8-video";
regulator-always-on;
regulator-boot-on;
regulator-min-microvolt = <2800000>;
regulator-max-microvolt = <2800000>;
vin-supply = <&vcc3v3_baseboard>;
};
video-adapter-leds {
compatible = "gpio-leds";
video-adapter-led {
color = <LED_COLOR_ID_BLUE>;
gpios = <&pca9670 7 GPIO_ACTIVE_HIGH>;
label = "video-adapter-led";
linux,default-trigger = "none";
};
};
};
&dsi0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
panel@0 {
compatible = "leadtek,ltk050h3148w";
reg = <0>;
backlight = <&backlight>;
iovcc-supply = <&vcc1v8_video>;
reset-gpios = <&pca9670 0 GPIO_ACTIVE_LOW>;
vci-supply = <&vcc2v8_video>;
port {
mipi_panel_in: endpoint {
remote-endpoint = <&dsi0_out_panel>;
};
};
};
};
&dsi0_in {
dsi0_in_vp3: endpoint {
remote-endpoint = <&vp3_out_dsi0>;
};
};
&dsi0_out {
dsi0_out_panel: endpoint {
remote-endpoint = <&mipi_panel_in>;
};
};
&i2c6 {
/* OV5675, GT911, DW9714 are limited to 400KHz */
clock-frequency = <400000>;
#address-cells = <1>;
#size-cells = <0>;
touchscreen@14 {
compatible = "goodix,gt911";
reg = <0x14>;
interrupt-parent = <&gpio3>;
interrupts = <RK_PC3 IRQ_TYPE_LEVEL_LOW>;
irq-gpios = <&gpio3 RK_PC3 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&touch_int>;
reset-gpios = <&pca9670 1 GPIO_ACTIVE_HIGH>;
AVDD28-supply = <&vcc2v8_video>;
VDDIO-supply = <&vcc3v3_baseboard>;
};
pca9670: gpio@27 {
compatible = "nxp,pca9670";
reg = <0x27>;
gpio-controller;
#gpio-cells = <2>;
pinctrl-names = "default";
pinctrl-0 = <&pca9670_resetn>;
reset-gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_LOW>;
};
};
&mipidcphy0 {
status = "okay";
};
&pinctrl {
pca9670 {
pca9670_resetn: pca9670-resetn {
rockchip,pins = <3 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
touch {
touch_int: touch-int {
rockchip,pins = <3 RK_PC3 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
};
&pwm0 {
status = "okay";
};
&vp3 {
#address-cells = <1>;
#size-cells = <0>;
vp3_out_dsi0: endpoint@ROCKCHIP_VOP2_EP_MIPI0 {
reg = <ROCKCHIP_VOP2_EP_MIPI0>;
remote-endpoint = <&dsi0_in_vp3>;
};
};
|