Skip to content

Commit 6be0992

Browse files
committed
Update Aiot-rk3588a device tree: refine GPIO and I2C configurations
1 parent b894049 commit 6be0992

File tree

1 file changed

+39
-28
lines changed

1 file changed

+39
-28
lines changed

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

Lines changed: 39 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,8 @@
2020
gpio_leds: gpio-leds {
2121
compatible = "gpio-leds";
2222
led_work_heartbeat: work_heartbeat {
23-
gpios = <&gpio4 RK_PA4 GPIO_ACTIVE_HIGH>;
2423
linux,default-trigger = "heartbeat";
25-
};
26-
led_work_default_on: work_default_on {
2724
gpios = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>;
28-
linux,default-trigger = "default-on";
2925
};
3026
};
3127

@@ -64,7 +60,7 @@
6460

6561
uboot_key: key-uboot {
6662
label = "uboot key";
67-
linux,code = <KEY_VOLUMEUP>; /* U-Boot 一般也用 VUP */
63+
linux,code = <KEY_VOLUMEUP>;
6864
press-threshold-microvolt = <0x30d40>;
6965
};
7066
};
@@ -106,6 +102,7 @@
106102
vcc3v3_lcd: vcc3v3-lcd {
107103
compatible = "regulator-fixed";
108104
regulator-name = "vcc3v3_lcd";
105+
gpio = <&gpio1 RK_PB3 GPIO_ACTIVE_HIGH>;
109106
vin-supply = <&vcc_3v3_s0>;
110107
};
111108

@@ -164,66 +161,81 @@
164161
regulator-max-microvolt = <0xb71b00>;
165162
};
166163
};
164+
167165
&pinctrl {
168166
mcu {
169-
mcum0_pins:mcum0-pins {
170-
rockchip,pins = <0x04 0x1c 0x05 0x1a3 0x04 0x1d 0x05 0x1a3>;
167+
mcum0_pins: mcum0-pins {
168+
rockchip,pins =
169+
<4 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>,
170+
<4 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
171171
};
172172

173-
mcum1_pins:mcum1-pins {
174-
rockchip,pins = <0x03 0x1c 0x06 0x1a3 0x03 0x1d 0x06 0x1a3>;
173+
mcum1_pins: mcum1-pins {
174+
rockchip,pins =
175+
<3 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>,
176+
<3 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
175177
};
176178
};
177179

178180
usb-typec {
179-
usbc0_int:usbc0-int {
180-
rockchip,pins = <0x00 0x1b 0x00 0x1a8>;
181+
usbc0_int: usbc0-int {
182+
rockchip,pins = <4 RK_PB3 RK_FUNC_GPIO &pcfg_pull_up>;
181183
};
182184

183-
typec5v_pwren:typec5v-pwren {
184-
rockchip,pins = <0x04 0x01 0x00 0x1a3>;
185+
typec5v_pwren: typec5v-pwren {
186+
rockchip,pins =
187+
<4 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>;
185188
};
186189
};
187190

188191
usb {
189-
vcc5v0_host_en:vcc5v0-host-en {
190-
rockchip,pins = <0x04 0x08 0x00 0x1a3>;
192+
vcc5v0_peripherals_en: vcc5v0-peripherals-en {
193+
rockchip,pins =
194+
<3 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
191195
};
196+
};
197+
};
192198

193-
vcc5v0_peripherals_en:vcc5v0-peripherals-en {
194-
rockchip,pins = <0x03 0x1d 0x00 0x1a3>;
195-
};
199+
&i2c5 {
200+
status = "okay";
201+
gt1x: gt1x@14 {
202+
compatible = "goodix,gt1x";
203+
reg = <0x14>;
204+
pinctrl-names = "default";
205+
pinctrl-0 = <&touch_gpio>;
206+
status = "disabled";
207+
goodix,rst-gpio = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>;
208+
goodix,irq-gpio = <&gpio3 RK_PC0 IRQ_TYPE_LEVEL_LOW>;
209+
power-supply = <&vcc3v3_lcd_n>;
196210
};
197211
};
198212

213+
199214
&i2c6 {
200215
status = "okay";
201-
pinctrl-names = "default";
202-
pinctrl-0 = <&i2c6m0_xfer>;
203216

204217
nca9555: nca9555@20 {
205218
reg = <0x20>;
206-
compatible = "novosense,nca9555","nxp,pca9555";
219+
compatible = "nxp,pca9555";
207220
status = "okay";
208221
gpio-controller;
209222
#gpio-cells = <2>;
210-
//可选:如果连接了 INT 引脚
211223
};
212224

213225
mcuinf: mcuinf@62 {
214226
compatible = "smdtmcu,STM8S00K3";
215-
status = "disabled";
227+
status = "okay";
216228
reg = <0x62>;
217229
#pwm-cells = <2>;
218230
/* MCU interrupt pin: GPIO0_B0 */
219-
// int-gpio = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>;
231+
int-gpio = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>;
220232
};
221233

222234
usbc0: fusb302@22 {
223235
compatible = "fcs,fusb302";
224236
reg = <0x22>;
225237
interrupt-parent = <&gpio0>;
226-
interrupts = <RK_PD3 IRQ_TYPE_LEVEL_LOW>;
238+
interrupts = <RK_PD3 IRQ_TYPE_EDGE_FALLING>;
227239
int-n-gpios = <&gpio0 RK_PD3 GPIO_ACTIVE_LOW>;
228240
pinctrl-names = "default";
229241
pinctrl-0 = <&usbc0_int>;
@@ -288,6 +300,8 @@
288300

289301
};
290302

303+
304+
291305
&usbdrd_dwc3_0 {
292306
dr_mode = "otg";
293307
usb-role-switch;
@@ -334,9 +348,6 @@
334348
status = "okay";
335349
};
336350

337-
&hym8563 {
338-
status = "disabled";
339-
};
340351

341352
&dp0 {
342353
status = "disabled";

0 commit comments

Comments
 (0)