迅为RK3568开发板Android11触摸移植-配置设备树

在 kernel/arch/arm64/boot/dts/rockchip/topeet_rk3568_lcds.dtsi 设备树中配置

ft5x06 节点。

FT5x06 用到了 4 个 IO,一个复位 IO,一个中断 IO,I2C1 的 SCL 和 SDA,

所以我们需要先在设备树中添加 IO 相关的信息。

&i2c1 {

status = "okay";

ft5x06@38 {

status = "okay";

compatible = "edt,edt-ft5306";

reg = <0x38>;

touch-gpio = <&gpio0 RK_PB5 IRQ_TYPE_EDGE_RISING>;

interrupt-parent = <&gpio0>;

interrupts = ;

reset-gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_LOW>;

touchscreen-size-x = <800>;

touchscreen-size-y = <1280>;

touch_type = <1>;

};

我们来解释一下

status = "okay";设置节点为 OK

compatible = "edt,edt-ft5306";与驱动匹配的值

reg = <0x38>;触摸屏所使用的 FT5x06 芯片挂载在啊 I2c1 上,器件地址是 0x38

touch-gpio = <&gpio0 RK_PB5 IRQ_TYPE_EDGE_RISING>; 配置触摸 GPIO

interrupt-parent = <&gpio0>;

interrupts = ; 配置中断

reset-gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_LOW>;配置复位 GPIO

touchscreen-size-x = <800>;

touchscreen-size-y = <1280>; 配置触摸屏的分辨率

touch_type = <1>;

更多内容可以了解迅为RK3568开发板:

你可能感兴趣的:(RK3568开发板,RK3568)