summaryrefslogtreecommitdiff
path: root/target/linux/lantiq/dts/ar9.dtsi
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2016-01-17 19:56:03 +0000
committerFelix Fietkau <nbd@openwrt.org>2016-01-17 19:56:03 +0000
commit04ad02d132fb14d509d14054313405f24cf1e8ff (patch)
tree16125f54abdb72ee2e51331839e70eb651d5d8fd /target/linux/lantiq/dts/ar9.dtsi
parent5985c56ec6ba696bf8cc9f0eb90bd498b4bb46a1 (diff)
downloadmtk-20170518-04ad02d132fb14d509d14054313405f24cf1e8ff.zip
mtk-20170518-04ad02d132fb14d509d14054313405f24cf1e8ff.tar.gz
mtk-20170518-04ad02d132fb14d509d14054313405f24cf1e8ff.tar.bz2
lantiq: Switch to the new SPI driver
Compared to the "old" driver: - Each device must assign a pinctrl setting to the SPI node to allow the new SPI driver to configure the SPI pins. While here we are also using separate input and output settings so we are independent of whether the bootloader configures the pins correctly. - We use the new "compatible" strings to make the driver choose the correct number of chip-selects for each SoC. - The new driver starts counting the chip-selects at 1 (instead of 0, like the old one did). Thus we have to adjust the devices accordingly. Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> SVN-Revision: 48293
Diffstat (limited to 'target/linux/lantiq/dts/ar9.dtsi')
-rw-r--r--target/linux/lantiq/dts/ar9.dtsi4
1 files changed, 3 insertions, 1 deletions
diff --git a/target/linux/lantiq/dts/ar9.dtsi b/target/linux/lantiq/dts/ar9.dtsi
index 25b8346..0be95c3 100644
--- a/target/linux/lantiq/dts/ar9.dtsi
+++ b/target/linux/lantiq/dts/ar9.dtsi
@@ -101,10 +101,12 @@
};
spi: spi@E100800 {
- compatible = "lantiq,spi-xway";
+ compatible = "lantiq,xrx100-spi";
reg = <0xE100800 0x100>;
interrupt-parent = <&icu0>;
interrupts = <22 23 24>;
+ interrupt-names = "spi_rx", "spi_tx", "spi_err",
+ "spi_frm";
#address-cells = <1>;
#size-cells = <1>;
status = "disabled";