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
|
// SPDX-License-Identifier: (GPL-2.0-or-later OR MIT)
/*
* Device tree overlay base for the WolfVision PF5 displays.
*
* Copyright (C) 2024 WolfVision GmbH.
*/
/dts-v1/;
/plugin/;
#include <dt-bindings/clock/rk3568-cru.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/pinctrl/rockchip.h>
#include <dt-bindings/soc/rockchip,vop2.h>
&{/} {
display_backlight: backlight {
compatible = "pwm-backlight";
brightness-levels = <0 255>;
default-brightness-level = <255>;
num-interpolated-steps = <255>;
power-supply = <&vcc3v3_sd>;
pwms = <&pwm10 0 1000000 0>;
};
display_spi: spi {
compatible = "spi-gpio";
#address-cells = <1>;
#size-cells = <0>;
cs-gpios = <&gpio3 RK_PA2 GPIO_ACTIVE_LOW>;
miso-gpios = <&gpio3 RK_PA1 GPIO_ACTIVE_HIGH>;
mosi-gpios = <&gpio3 RK_PB2 GPIO_ACTIVE_HIGH>;
num-chipselects = <1>;
pinctrl-names = "default";
pinctrl-0 = <&lcd_spi>;
sck-gpios = <&gpio3 RK_PB1 GPIO_ACTIVE_HIGH>;
st7789: panel@0 {
compatible = "sitronix,st7789v";
reg = <0>;
assigned-clocks = <&cru PLL_VPLL>;
assigned-clock-rates = <700000000>;
backlight = <&display_backlight>;
pinctrl-names = "default";
pinctrl-0 = <&lcdc_clock &lcdc_data18 &lcd_rstn>;
power-supply = <&vcc3v3_sw>;
reset-gpios = <&gpio3 RK_PC4 GPIO_ACTIVE_LOW>;
spi-max-frequency = <100000>;
port {
panel_in_vp2: endpoint {
remote-endpoint = <&vp2_out_rgb>;
};
};
};
};
};
&i2c1 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
st1624: touchscreen@55 {
compatible = "sitronix,st1624", "sitronix,st1633";
reg = <0x55>;
interrupt-parent = <&gpio0>;
interrupts = <RK_PB5 IRQ_TYPE_EDGE_FALLING>;
gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
pinctrl-names = "default";
pinctrl-0 = <&touch_int &touch_rstn>;
wakeup-source;
};
};
&pinctrl {
display: display-pinctrl {
lcd_rstn: lcd-rstn-pinctrl {
rockchip,pins = <3 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>;
};
lcd_spi: lcd-spi-pinctrl {
rockchip,pins =
/* lcd_sdo */
<3 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>,
/* lcd_csn */
<3 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>,
/* lcd_scl */
<3 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>,
/* lcd_sdi */
<3 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
touchscreen: touchscreen-pinctrl {
touch_int: touch-int-pinctrl {
rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>;
};
touch_rstn: touch-rstn-pinctrl {
rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
};
&pwm10 {
pinctrl-names = "default";
pinctrl-0 = <&pwm10m1_pins>;
status = "okay";
};
&vp2 {
#address-cells = <1>;
#size-cells = <0>;
vp2_out_rgb: endpoint@ROCKCHIP_VOP2_EP_RGB0 {
reg = <ROCKCHIP_VOP2_EP_RGB0>;
remote-endpoint = <&panel_in_vp2>;
};
};
|