【发布时间】:2019-01-10 14:34:52
【问题描述】:
我正在查看 Beagle Bone Black 的设备树,并从 am57xx-beagle-x15.dts 开始。深入到dra7.dtsi 我发现gpio1:
gpio1: gpio@4ae10000 {
compatible = "ti,omap4-gpio";
reg = <0x4ae10000 0x200>;
interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
ti,hwmods = "gpio1";
gpio-controller;
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
};
我读过#interrupt-cells 给出了interrupts 列表中的项目中预期的u32 或单元格的数量。但是当我查看interrupts 时,我看到了一个三元组:<GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>。很想知道,为什么它包含 3 个细胞而不是 2 个?
【问题讨论】:
-
请注意,
am57xx-beagle-x15.dts不是与 BBB 相关的文件。这是为 BeagleBoard X15 准备的! -
@TBR - 谢谢!好吧,我什至没有找对地方:'(虽然仍然对中断单元的数量感到困惑....
标签: linux beagleboneblack beagleboard