Other Parts Discussed in Thread: TLV320AIC3106
Tool/software: Linux
Hello everyone, we use
[GPMC_CLK/LCD_MEMORY_CLK/GPMC_WAIT1/MMC2_CLK/PR1_MII1_CRS/PR1_MDIO_MDCLK/MCASP0_FSR/GPIO2_1] GPIO2_1 as goodix gt9271 reset pin
[GMII1_TXD2/DCAN0_RX/RGMII1_TD2/UART4_TXD/MCASP1_AXR0/MMC2_DAT2/MCASP0_AHCLKX/GPIO0_17] GPIO0_17 as goodix gt9271 int pin
The following is our dts configuration
gt9271_ts_pins: pinmux_gt9271_ts_pins {
pinctrl-single,pins = <
AM33XX_IOPAD(0x88c, PIN_INPUT_PULLUP | MUX_MODE7) /* gpmc_clk.gpio2_1 */
AM33XX_IOPAD(0x92c, PIN_INPUT_PULLUP | MUX_MODE7) /* gmii1_txd2.gpio0_17 */
>;
};
&i2c2 {
pinctrl-names = "default";
pinctrl-0 = <&i2c2_pins>;
status = "okay";
clock-frequency = <100000>;
tlv320aic3106: tlv320aic3106@1b {
#sound-dai-cells = <0>;
compatible = "ti,tlv320aic3106";
reg = <0x1b>;
status = "okay";
/* Regulators */
AVDD-supply = <&vaux2_reg>;
IOVDD-supply = <&vaux2_reg>;
DRVDD-supply = <&vaux2_reg>;
DVDD-supply = <&vbat>;
};
gt9271@5d {
compatible = "goodix,gt9271";
pinctrl-names = "default";
pinctrl-0 = <>9271_ts_pins>;
reg = <0x5d>;
interrupt-parent = <&gpio0>;
interrupts = <97 0>;
irq-gpios = <&gpio0 17 0>;
reset-gpios = <&gpio2 1 0>;
touchscreen-size-x = <1280>;
touchscreen-size-y = <800>;
touchscreen-swap = <1>;
touchscreen-revert-x = <1>;
touchscreen-revert-y = <1>;
};
}
The touch screen does not work now. I don't know how to configure these parameters. Can you help me explain it?
interrupt-parent = <&gpio0>; //gpio0 is right?
interrupts = <97 0>; //I see the trm,96 GPIOINT0A GPIO 0 POINTRPEND1 97 GPIOINT0B GPIO 0 POINTRPEND2,so i set the 97,is right?
irq-gpios = <&gpio0 17 0>; //is right?
reset-gpios = <&gpio2 1 0>; //is right?