Part Number: PROCESSOR-SDK-DRA7X
Tool/software: Linux
Hallo,
I configured a device to use an interrupt and I ask you to proof my configuration, please. I'm a newbie in this.
In the schematic of the board I the GPIO a wanted to use is GP6[20]. So I think this GPIO is 6x32+20 = 212, right?
Devcie Tree: (Node of the device)
qca7000@0 {
compatible = "qca,qca7000";
reg = <0>;
interrupt-parent = <&gpio6>;
interrupts = <20 1>;
spi-cpha;
spi-cpol;
spi-max-frequency = <8000000>;
local-mac-address = [ FA DB 12 79 8C 9D ];
/*qca,legacy-mode;*/
};
This device is on CS0 of SPI1. SPI1 works. I tested this with spidev_test by connecting MISO and MOSI.
Is the the right interrupt configuration in the Device Tree?
cat /proc/interrupts: (eth2 is the device from above)
223: 876 0 4805d000.gpio 20 Edge eth2
This is the GPIO-Bank:
gpio6: gpio@4805d000 {
compatible = "ti,omap4-gpio";
reg = <0x4805d000 0x200>;
interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
ti,hwmods = "gpio6";
gpio-controller;
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
};
So. In my opinion the interrupt was correctly configured, right?
Thanks.