]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
riscv: dts: sophgo: add SG2044 SPI NOR controller driver
authorLongbin Li <looong.bin@gmail.com>
Sun, 8 Jun 2025 23:28:34 +0000 (07:28 +0800)
committerInochi Amaoto <inochiama@gmail.com>
Wed, 23 Jul 2025 01:55:14 +0000 (09:55 +0800)
Add SPI NOR device node for SG2044.

Signed-off-by: Longbin Li <looong.bin@gmail.com>
Link: https://lore.kernel.org/r/20250608232836.784737-11-inochiama@gmail.com
Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
Signed-off-by: Chen Wang <wangchen20@iscas.ac.cn>
arch/riscv/boot/dts/sophgo/sg2044.dtsi

index be20efd8e2ac6b6b87127e2b844612a7773411ff..b65e491deb8ff1a5b77d057618a190e846ccff3e 100644 (file)
                #size-cells = <2>;
                ranges;
 
+               spifmc0: spi@7001000000 {
+                       compatible = "sophgo,sg2044-spifmc-nor";
+                       reg = <0x70 0x01000000 0x0 0x4000000>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       clocks = <&clk CLK_GATE_AHB_SPIFMC>;
+                       interrupt-parent = <&intc>;
+                       interrupts = <37 IRQ_TYPE_LEVEL_HIGH>;
+                       resets = <&rst RST_SPIFMC0>;
+                       status = "disabled";
+               };
+
+               spifmc1: spi@7005000000 {
+                       compatible = "sophgo,sg2044-spifmc-nor";
+                       reg = <0x70 0x05000000 0x0 0x4000000>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       clocks = <&clk CLK_GATE_AHB_SPIFMC>;
+                       interrupt-parent = <&intc>;
+                       interrupts = <38 IRQ_TYPE_LEVEL_HIGH>;
+                       resets = <&rst RST_SPIFMC1>;
+                       status = "disabled";
+               };
+
                dmac0: dma-controller@7020000000 {
                        compatible = "snps,axi-dma-1.01a";
                        reg = <0x70 0x20000000 0x0 0x10000>;