support touchscreen for duos 8inch panel

Signed-off-by: carbon <carbon@milkv.io>
This commit is contained in:
carbon
2024-06-29 15:27:40 +08:00
parent 3bd12daea0
commit 203905854c
4 changed files with 42 additions and 0 deletions

View File

@ -12,6 +12,18 @@
};
};
&i2c4 {
status = "okay";
gt9xx: gt9xx@14 {
compatible = "goodix,gt9xx";
reg = <0x14>;
goodix,irq-gpio = <&porta 18 0>;
goodix,rst-gpio = <&porta 19 GPIO_ACTIVE_HIGH>;
status = "okay";
};
};
&dac {
/delete-property/ mute-gpio-l;
/delete-property/ mute-gpio-r;

View File

@ -14,6 +14,15 @@ int cvi_board_init(void)
// USB
PINMUX_CONFIG(USB_VBUS_EN, XGPIOB_5);
// I2C4 for TP
PINMUX_CONFIG(VIVO_D1, IIC4_SCL);
PINMUX_CONFIG(VIVO_D0, IIC4_SDA);
// TP INT
PINMUX_CONFIG(JTAG_CPU_TCK, XGPIOA_18);
// TP Reset
PINMUX_CONFIG(JTAG_CPU_TMS, XGPIOA_19);
set_rtc_register_for_power();
return 0;

View File

@ -8,6 +8,18 @@
model = "Milk-V DuoS";
};
&i2c4 {
status = "okay";
gt9xx: gt9xx@14 {
compatible = "goodix,gt9xx";
reg = <0x14>;
goodix,irq-gpio = <&porta 18 0>;
goodix,rst-gpio = <&porta 19 GPIO_ACTIVE_HIGH>;
status = "okay";
};
};
&dac {
/delete-property/ mute-gpio-l;
/delete-property/ mute-gpio-r;

View File

@ -14,6 +14,15 @@ int cvi_board_init(void)
// USB
PINMUX_CONFIG(USB_VBUS_EN, XGPIOB_5);
// I2C4 for TP
PINMUX_CONFIG(VIVO_D1, IIC4_SCL);
PINMUX_CONFIG(VIVO_D0, IIC4_SDA);
// TP INT
PINMUX_CONFIG(JTAG_CPU_TCK, XGPIOA_18);
// TP Reset
PINMUX_CONFIG(JTAG_CPU_TMS, XGPIOA_19);
set_rtc_register_for_power();
return 0;