diff mbox series

[v3,3/4] MIPS: Loongson64: DTS: Add SPI support to LS7A

Message ID 1607925534-8312-3-git-send-email-zhangqing@loongson.cn
State Superseded
Headers show
Series None | expand

Commit Message

Qing Zhang Dec. 14, 2020, 5:58 a.m. UTC
add spi support.

Signed-off-by: Qing Zhang <zhangqing@loongson.cn>
---

v2:
- Add spi about pci device DT

v3:
- Remove spiflash node

---
 arch/mips/boot/dts/loongson/ls7a-pch.dtsi | 12 ++++++++++++
 1 file changed, 12 insertions(+)
diff mbox series

Patch

diff --git a/arch/mips/boot/dts/loongson/ls7a-pch.dtsi b/arch/mips/boot/dts/loongson/ls7a-pch.dtsi
index f99a7a1..d91857c 100644
--- a/arch/mips/boot/dts/loongson/ls7a-pch.dtsi
+++ b/arch/mips/boot/dts/loongson/ls7a-pch.dtsi
@@ -405,6 +405,18 @@ 
 				interrupt-map-mask = <0 0 0 0>;
 				interrupt-map = <0 0 0 0 &pic 39 IRQ_TYPE_LEVEL_HIGH>;
 			};
+
+			spi@16,0 {
+				compatible = "pci0014,7a0b.0",
+						"pci0014,7a0b",
+						"pciclass088000",
+						"pciclass0880";
+
+				reg = <0xb000 0x0 0x0 0x0 0x0>;
+				#address-cells = <1>;
+				#size-cells = <0>;
+				num-chipselects = <0>;
+			};
 		};
 
 		isa {