Skip to content

Commit 73ab31a

Browse files
sycamoremooninochisa
authored andcommitted
riscv: sophgo: dts: Add spi controller for SG2042
Add spi controllers for SG2042. SG2042 uses the upstreamed Synopsys DW SPI IP. Signed-off-by: Zixian Zeng <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Inochi Amaoto <[email protected]> Signed-off-by: Chen Wang <[email protected]> Signed-off-by: Chen Wang <[email protected]>
1 parent 1cb666e commit 73ab31a

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

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

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,32 @@
543543
status = "disabled";
544544
};
545545

546+
spi0: spi@7040004000 {
547+
compatible = "sophgo,sg2042-spi", "snps,dw-apb-ssi";
548+
reg = <0x70 0x40004000 0x00 0x1000>;
549+
clocks = <&clkgen GATE_CLK_APB_SPI>;
550+
interrupt-parent = <&intc>;
551+
interrupts = <110 IRQ_TYPE_LEVEL_HIGH>;
552+
#address-cells = <1>;
553+
#size-cells = <0>;
554+
num-cs = <2>;
555+
resets = <&rstgen RST_SPI0>;
556+
status = "disabled";
557+
};
558+
559+
spi1: spi@7040005000 {
560+
compatible = "sophgo,sg2042-spi", "snps,dw-apb-ssi";
561+
reg = <0x70 0x40005000 0x00 0x1000>;
562+
clocks = <&clkgen GATE_CLK_APB_SPI>;
563+
interrupt-parent = <&intc>;
564+
interrupts = <111 IRQ_TYPE_LEVEL_HIGH>;
565+
#address-cells = <1>;
566+
#size-cells = <0>;
567+
num-cs = <2>;
568+
resets = <&rstgen RST_SPI1>;
569+
status = "disabled";
570+
};
571+
546572
emmc: mmc@704002a000 {
547573
compatible = "sophgo,sg2042-dwcmshc";
548574
reg = <0x70 0x4002a000 0x0 0x1000>;

0 commit comments

Comments
 (0)