打印
[嵌入式linux]

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

[复制链接]
1382|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
linzhao789|  楼主 | 2022-8-8 15:48 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
在 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 = <RK_PB5 IRQ_TYPE_LEVEL_LOW>;
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 = <RK_PB5 IRQ_TYPE_LEVEL_LOW>; 配置中断
reset-gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_LOW>;配置复位 GPIO
touchscreen-size-x = <800>;
touchscreen-size-y = <1280>; 配置触摸屏的分辨率
touch_type = <1>;

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

使用特权

评论回复

相关帖子

发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

634

主题

714

帖子

1

粉丝