Code: Select all
spi1: spi@f8008000 {
cs-gpios = <&pioC 25 0>, <0>, <0>, <&pioD 16 0>;
status = "okay";
device@0{
compatible="spidev";
reg=<0>;
spi-max-frequency=<5000000>;
interrupts = <6 IRQ_TYPE_LEVEL_HIGH 0>;//here
};
};
in spi.c,spi->irq = irq_of_parse_and_map(nc, 0); this func get the interrupt,how can i do?