Skip to content

Commit 06bff69

Browse files
committed
Add ADC keys and EDP panel configuration for Aiot-rk3588a device tree
1 parent 2d52df7 commit 06bff69

File tree

1 file changed

+141
-1
lines changed

1 file changed

+141
-1
lines changed

patch/kernel/rk35xx-vendor-6.1/dt/rk3588-aiot-rk3588a.dts

Lines changed: 141 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,84 @@
3636
int-gpio = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>;
3737
};
3838

39+
adc-keys {
40+
compatible = "adc-keys";
41+
io-channels = <0x1d5 0x01>;
42+
io-channel-names = "buttons";
43+
keyup-threshold-microvolt = <0x1b7740>;
44+
poll-interval = <0x64>;
45+
status = "okay";
46+
47+
vol-up-key {
48+
label = "volume up";
49+
linux,code = <0x73>;
50+
press-threshold-microvolt = <0x4268>;
51+
};
52+
53+
vol-down-key {
54+
label = "volume down";
55+
linux,code = <0x72>;
56+
press-threshold-microvolt = <0x65ce8>;
57+
};
58+
59+
menu-key {
60+
label = "menu";
61+
linux,code = <0x8b>;
62+
press-threshold-microvolt = <0xd9490>;
63+
};
64+
65+
back-key {
66+
label = "back";
67+
linux,code = <0x9e>;
68+
press-threshold-microvolt = <0x12d838>;
69+
};
70+
71+
uboot-key {
72+
label = "uboot key";
73+
linux,code = <0x73>;
74+
press-threshold-microvolt = <0x30d40>;
75+
};
76+
};
77+
78+
panel-edp0 {
79+
compatible = "simple-panel";
80+
backlight = <&backlight>;
81+
power-supply = <&vcc3v3_lcd>;
82+
prepare-delay-ms = <120>;
83+
enable-delay-ms = <120>;
84+
unprepare-delay-ms = <120>;
85+
disable-delay-ms = <120>;
86+
width-mm = <217>; // 四舍五入物理尺寸
87+
height-mm = <136>;
88+
89+
panel-timing {
90+
clock-frequency = <154000000>; // eDP 时钟,约 154 MHz,可根据屏幕 datasheet 微调
91+
hactive = <1920>;
92+
vactive = <1200>;
93+
hfront-porch = <48>;
94+
hsync-len = <32>;
95+
hback-porch = <80>;
96+
vfront-porch = <3>;
97+
vsync-len = <5>;
98+
vback-porch = <15>;
99+
hsync-active = <0>;
100+
vsync-active = <0>;
101+
de-active = <0>;
102+
pixelclk-active = <0>;
103+
};
104+
105+
port {
106+
panel_in_edp0: endpoint {
107+
remote-endpoint = <&edp0_out_panel>;
108+
};
109+
};
110+
};
111+
112+
vcc3v3_lcd: vcc3v3-lcd {
113+
compatible = "regulator-fixed";
114+
regulator-name = "vcc3v3_lcd";
115+
vin-supply = <&vcc_3v3_s0>;
116+
};
39117
};
40118

41119
&pinctrl {
@@ -55,20 +133,69 @@
55133
status = "disabled";
56134
};
57135

136+
&hdmi0 {
137+
status = "disabled";
138+
};
139+
140+
&route_hdmi0 {
141+
status = "disabled";
142+
};
143+
144+
145+
&hdptxphy_hdmi0 {
146+
status = "disabled";
147+
};
148+
149+
&hdmi1 {
150+
status = "okay";
151+
};
152+
153+
&route_hdmi1 {
154+
status = "okay";
155+
};
156+
58157
&dp1 {
59158
status = "disabled";
60159
};
61160

62161
&edp0 {
162+
force-hpd;
163+
phys = <&combphy2_psu PHY_TYPE_DP>;
164+
phy-names = "dp";
63165
status = "okay";
166+
ports {
167+
port@2 {
168+
reg = <1>;
169+
170+
edp0_out_panel: endpoint {
171+
remote-endpoint = <&panel_in_edp0>;
172+
};
173+
};
174+
};
64175
};
65176

66177
&edp1 {
67178
status = "disabled";
68179
};
69180

181+
&route_edp0 {
182+
status = "okay";
183+
connect = <&vp2_out_edp0>;
184+
};
185+
186+
&edp0_in_vp2 {
187+
status = "okay";
188+
};
189+
190+
&dp0_in_vp2 {
191+
status = "okay";
192+
};
193+
194+
&dp1_in_vp2 {
195+
status = "disabled";
196+
};
197+
70198
&pcie2x1l0 {
71-
reset-gpios = <&gpio1 RK_PB4 GPIO_ACTIVE_HIGH>;
72199
status = "disabled";
73200
};
74201

@@ -79,3 +206,16 @@
79206
&pcie3x4 {
80207
status = "disabled";
81208
};
209+
210+
211+
&u2phy1_otg {
212+
status = "okay";
213+
};
214+
215+
&u2phy2_host {
216+
status = "okay";
217+
};
218+
219+
&u2phy3_host {
220+
status = "okay";
221+
};

0 commit comments

Comments
 (0)