[LEDE-DEV] devicetree question
Giuseppe Lippolis
giu.lippolis at gmail.com
Mon Feb 6 12:46:24 PST 2017
Hi all,
I need to describe the following hw layout in the DT for the DWR-512:
+---------------+
| si3210 |
| |
|-------+-------|
| Audio |CTRL |
+---------------+
| PCM | SPI |-----------+
+---------------+ |
^ ^ |
| | |PIN1
+---------------+ +------+
| |<------| GPIO |
| uP | IRQ +------+
+---------------+
Is the following dt update correct?
#include "rt5350.dtsi"
&pcm {
status = "enabled";
si3210 at 1 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "siliconlabs,si3210";
}
}
&spi1 {
status = "okay";
si3210 at 1 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "siliconlabs,si3210";
interrupt-parent = <&gpio0>;
interrupts = <1 2>;
irq-gpio = <&gpio0 1 2>;
reg = <0>;
spi-max-frequency = <1000000>;
};
};
What means the last number in the interrupts and irq-gpio field?
Thanks,
Bye.
More information about the Lede-dev
mailing list