除了硬件上飞线,PE3接TP_INT,设备数怎么修改?
离线
离线
tsc2007@48 {
compatible = "ti,tsc2007";
reg = <0x48>;
interrupt-parent = <&gpio1>;
interrupts = <0x2 0x8>; 0x2 为什么要这样填?
gpios = <&gpio1 2 0>;
ti,x-plate-ohms = <660>;
};
如果使用PE0作为中断引脚,中断号应该怎么填?
离线
离线
buildroot-tiny200 (F1C100/200s) 开发包近期更新内容 * 已支持DVP摄像头 *
http://whycan.com/t_5221.html
(出处:哇酷开发者社区)请参考这个帖子
还是不懂,ns2009只有两个脚PE11 P12接主芯片,对应的是SWI0口。也就是I2C0?
另外一个TP_INT没接,我手动把它跳到PE0,现在不知道软件上应该怎么改?
不知是不是这样改
&i2c0 {
status = "okay";
tsc2007: tsc2007@48 {
compatible = "ti,tsc2007";
reg = <0x48>;
nterrupt-parent = <&gpio1>;
interrupts = <0x2 0x8>;
gpios = <&gpio1 2 0>;
ti,x-plate-ohms = <660>;
status = "okay";
};
};
离线
&i2c0 {
pinctrl-names = "default";
pinctrl-0 = <&i2c0_pd_pins>;
status = "okay";
rtp@48 {
compatible = "ti,tsc2007";
reg = <0x48>;
interrupt-parent = <&pio>;
interrupts = <4 12 IRQ_TYPE_EDGE_FALLING>;
gpios = <&pio 4 12 GPIO_ACTIVE_LOW>;
pendown-gpio = <&pio 4 12 GPIO_ACTIVE_LOW>;
ti,x-plate-ohms = <660>;
wakeup-source;
status = "disabled";
};
这里面的12都改成0即可。
离线