查看F1C的源代码
←
F1C
跳转到:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您刚才请求的操作只有这个用户组中的用户才能使用:
用户
您可以查看并复制此页面的源代码:
=== 电容触摸屏的支持 === 电容触摸屏的控制芯片为 GT911 使用 I2C 接口,我们要在 suniv-f1c100s-*.dts 文件中添加节点: <source lang=bash> #include <dt-bindings/input/input.h> #include <dt-bindings/interrupt-controller/irq.h> /* 添加引用 */ &i2c0 { pinctrl-0 = <&i2c0_pins>; pinctrl-names = "default"; status = "okay"; gt911: touchscreen@14 { compatible = "goodix,gt911"; reg = <0x14>; interrupt-parent = <&pio>; interrupts = <4 10 IRQ_TYPE_EDGE_FALLING>; /* (PE10) */ pinctrl-names = "default"; pinctrl-0 = <&ts_reset_pin>; irq-gpios = <&pio 4 10 GPIO_ACTIVE_HIGH>; /* (PE10) */ reset-gpios = <&pio 4 9 GPIO_ACTIVE_HIGH>; /* RST (PE9) */ /* touchscreen-swapped-x-y */ }; }; &pio { ts_reset_pin: ts_reset_pin@0 { pins = "PE9"; function = "gpio_out"; }; }; </source> 若测试的触摸屏的 xy 方向颠倒,请添加或去掉 gt911 节点下的 touchscreen-swapped-x-y 属性。 [https://item.taobao.com/item.htm?spm=a230r.1.14.87.57863beca0zG7h&id=589629409888&ns=1&abbucket=8#detail iTop 4412] <br>
返回到
F1C
。
个人工具
登录
名字空间
页面
讨论
变换
查看
阅读
查看源代码
查看历史
操作
搜索
导航
首页
社区专页
新闻动态
最近更改
随机页面
帮助
工具箱
链入页面
相关更改
特殊页面