support touchscreen for duos 8inch panel
Signed-off-by: carbon <carbon@milkv.io>
This commit is contained in:
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user