就是塔塔的个人空间 https://www.eechina.com/space-uid-136863.html [收藏] [复制] [RSS]

博客

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

已有 745 次阅读2022-8-8 15:35

在 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开发板:


路过

鸡蛋

鲜花

握手

雷人

评论 (0 个评论)

facelist

您需要登录后才可以评论 登录 | 立即注册

关于我们  -  服务条款  -  使用指南  -  站点地图  -  友情链接  -  联系我们
电子工程网 © 版权所有   京ICP备16069177号 | 京公网安备11010502021702
返回顶部