本实验选用 4.3 寸液晶屏 800x480。控制芯片为:gt9147。
一、实验测试
1. 修改设备树
1.1 添加 gt9147 节点
在 &i2c2 下添加节点:
gt9147:gt9147@14 {
compatible = "goodix,gt9147", "goodix,gt9xx";
reg = <0x14>;
pinctrl-names = "default";
status = "okay";
interrupt-parent = <&gpio1>;
interrupts = <9 0>;
pinctrl-0 = <&pinctrl_tsc>;
reset-gpios= <&gpio5 9 GPIO_ACTIVE_LOW>;
interrupt-gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
};
1.2 添加 IO
&iomuxc{
ts_int_pin: ts_int_pin_mux {
fsl,pins = <
MX6UL_PAD_GPIO1_IO09__GPIO1_IO09 0x49
>;
};
}
&iomuxc_snvs{
ts_reset_pin: ts_reset_pin_mux {
fsl,pins = <
MX6ULL_P