Skip to content

Commit ab968b1

Browse files
sycamoremoonRevySR
authored andcommitted
FROMLIST: riscv: dts: sophgo: Add SPI NOR node for SG2042
Add SPI NOR controller node for SG2042 Reviewed-by: Chen Wang <[email protected]> Tested-by: Chen Wang <[email protected]> Signed-off-by: Zixian Zeng <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Han Gao <[email protected]>
1 parent a86bc18 commit ab968b1

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,30 @@
4848
interrupt-parent = <&intc>;
4949
ranges;
5050

51+
spifmc0: spi@7000180000 {
52+
compatible = "sophgo,sg2042-spifmc-nor";
53+
reg = <0x70 0x00180000 0x0 0x1000000>;
54+
#address-cells = <1>;
55+
#size-cells = <0>;
56+
clocks = <&clkgen GATE_CLK_AHB_SF>;
57+
interrupt-parent = <&intc>;
58+
interrupts = <108 IRQ_TYPE_LEVEL_HIGH>;
59+
resets = <&rstgen RST_SF0>;
60+
status = "disabled";
61+
};
62+
63+
spifmc1: spi@7002180000 {
64+
compatible = "sophgo,sg2042-spifmc-nor";
65+
reg = <0x70 0x02180000 0x0 0x1000000>;
66+
#address-cells = <1>;
67+
#size-cells = <0>;
68+
clocks = <&clkgen GATE_CLK_AHB_SF>;
69+
interrupt-parent = <&intc>;
70+
interrupts = <109 IRQ_TYPE_LEVEL_HIGH>;
71+
resets = <&rstgen RST_SF1>;
72+
status = "disabled";
73+
};
74+
5175
i2c0: i2c@7030005000 {
5276
compatible = "snps,designware-i2c";
5377
reg = <0x70 0x30005000 0x0 0x1000>;

0 commit comments

Comments
 (0)