- 积分
- 2202
贡献8439
飞刀3311 FD
注册时间2019-10-15
在线时间772 小时
|
发表于 2021-8-2 17:46:29
|
显示全部楼层
您可以参考这个(kernel/linux-4.9/arch/arm64/boot/dts/sunxi/OKT507-C-Common.dtsi),您参考这个例子写中断
twi4: twi@0x05003000{
clock-frequency = <200000>;
status = "okay";
gt911: gt911_ts@5d {
compatible = "goodix,gt911";
reg = <0x5D>;
goodix,irq-gpio = <&pio PE 13 6 0xffffffff 0xffffffff 0>;
goodix,rst-gpio = <&pio PE 14 1 0xffffffff 0xffffffff 1>;
goodix,panel-width = <1024>;
status = "okay";
};
gt928: gt928_ts@14 {
compatible = "goodix,gt928";
reg = <0x14>;
goodix,irq-gpio = <&pio PE 13 6 0xffffffff 0xffffffff 0>;
goodix,rst-gpio = <&pio PE 14 1 0xffffffff 0xffffffff 1>;
status = "disabled";
};
tsc2007: tsc2007@48 {
compatible = "ti,tsc2007";
reg = <0x48>;
interrupt-parent = <&pio>;
interrupts = <PE 12 IRQ_TYPE_LEVEL_LOW>;
gpios = <&pio PE 12 6 0xffffffff 0xffffffff 0>;
ti,x-plate-ohms = <180>;
status = "disabled";
};
}; |
|