Skip to content

Commit 162b265

Browse files
looongbininochisa
authored andcommitted
riscv: dts: sophgo: add SG2044 SPI NOR controller driver
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>
1 parent c20e152 commit 162b265

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

arch/riscv/boot/dts/sophgo/sg2044.dtsi

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,30 @@
3232
#size-cells = <2>;
3333
ranges;
3434

35+
spifmc0: spi@7001000000 {
36+
compatible = "sophgo,sg2044-spifmc-nor";
37+
reg = <0x70 0x01000000 0x0 0x4000000>;
38+
#address-cells = <1>;
39+
#size-cells = <0>;
40+
clocks = <&clk CLK_GATE_AHB_SPIFMC>;
41+
interrupt-parent = <&intc>;
42+
interrupts = <37 IRQ_TYPE_LEVEL_HIGH>;
43+
resets = <&rst RST_SPIFMC0>;
44+
status = "disabled";
45+
};
46+
47+
spifmc1: spi@7005000000 {
48+
compatible = "sophgo,sg2044-spifmc-nor";
49+
reg = <0x70 0x05000000 0x0 0x4000000>;
50+
#address-cells = <1>;
51+
#size-cells = <0>;
52+
clocks = <&clk CLK_GATE_AHB_SPIFMC>;
53+
interrupt-parent = <&intc>;
54+
interrupts = <38 IRQ_TYPE_LEVEL_HIGH>;
55+
resets = <&rst RST_SPIFMC1>;
56+
status = "disabled";
57+
};
58+
3559
dmac0: dma-controller@7020000000 {
3660
compatible = "snps,axi-dma-1.01a";
3761
reg = <0x70 0x20000000 0x0 0x10000>;

0 commit comments

Comments
 (0)