Skip to content

Commit 9770e13

Browse files
authored
Add patch of SONiC Linux kernel DTS file to support Supermicro SSE-G3748 board. (sonic-net#394)
Signed-off-by: Erich Yen <[email protected]>
1 parent f182d03 commit 9770e13

File tree

2 files changed

+151
-0
lines changed

2 files changed

+151
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
From d1a0b114b178ff3949afc23f69053618dfaf581a Mon Sep 17 00:00:00 2001
2+
From: Erich Yen <[email protected]>
3+
Date: Tue, 21 May 2024 20:41:37 +0000
4+
Subject: [PATCH] arm64: dts: marvell: Add Supermicro SSE-G3748 board
5+
6+
This change adds device tree files for Supermicro SSE-G3748 board.
7+
This dts file is derived from Marvell RD-AC5X board.
8+
SPI flash partitions and i2c1 configurations are modified to match with SSE-G3748 board.
9+
---
10+
arch/arm64/boot/dts/marvell/Makefile | 1 +
11+
arch/arm64/boot/dts/marvell/smc_sse-g3748.dts | 118 ++++++++++++++++++
12+
2 files changed, 119 insertions(+)
13+
create mode 100644 arch/arm64/boot/dts/marvell/smc_sse-g3748.dts
14+
15+
diff --git a/arch/arm64/boot/dts/marvell/Makefile b/arch/arm64/boot/dts/marvell/Makefile
16+
index 310b57e47..88cef592e 100644
17+
--- a/arch/arm64/boot/dts/marvell/Makefile
18+
+++ b/arch/arm64/boot/dts/marvell/Makefile
19+
@@ -28,3 +28,4 @@ dtb-$(CONFIG_ARCH_MVEBU) += cn9130-crb-B.dtb
20+
dtb-$(CONFIG_ARCH_MVEBU) += ac5-98dx35xx-rd.dtb
21+
dtb-$(CONFIG_ARCH_MVEBU) += armada-7020-comexpress.dtb
22+
dtb-$(CONFIG_ARCH_MVEBU) += 7215-ixs-a1.dtb
23+
+dtb-$(CONFIG_ARCH_MVEBU) += smc_sse-g3748.dtb
24+
diff --git a/arch/arm64/boot/dts/marvell/smc_sse-g3748.dts b/arch/arm64/boot/dts/marvell/smc_sse-g3748.dts
25+
new file mode 100644
26+
index 000000000..00fc581d7
27+
--- /dev/null
28+
+++ b/arch/arm64/boot/dts/marvell/smc_sse-g3748.dts
29+
@@ -0,0 +1,118 @@
30+
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
31+
+/*
32+
+ * Device Tree For Supermicro SSE-G3748.
33+
+ *
34+
+ * Copyright (C) 2021 Marvell
35+
+ * Copyright (C) 2022 Allied Telesis Labs
36+
+ * Copyright (C) 2023 Supermicro
37+
+ */
38+
+
39+
+/dts-v1/;
40+
+
41+
+#include "ac5-98dx35xx.dtsi"
42+
+
43+
+/ {
44+
+ model = "Supermicro SSE-G3748 Board";
45+
+ compatible = "marvell,rd-ac5x", "marvell,ac5x", "marvell,ac5";
46+
+
47+
+ aliases {
48+
+ serial0 = &uart0;
49+
+ spiflash0 = &spiflash0;
50+
+ gpio0 = &gpio0;
51+
+ ethernet0 = &eth0;
52+
+ ethernet1 = &eth1;
53+
+ };
54+
+
55+
+ memory@0 {
56+
+ device_type = "memory";
57+
+ reg = <0x2 0x00000000 0x0 0x40000000>;
58+
+ };
59+
+
60+
+ usb1phy: usb-phy {
61+
+ compatible = "usb-nop-xceiv";
62+
+ #phy-cells = <0>;
63+
+ };
64+
+};
65+
+
66+
+&mdio {
67+
+ status = "okay";
68+
+ pinctrl-names = "default";
69+
+ phy0: ethernet-phy@0 {
70+
+ reg = <0>;
71+
+ };
72+
+};
73+
+
74+
+&i2c0 {
75+
+ status = "okay";
76+
+};
77+
+
78+
+&i2c1 {
79+
+ /delete-property/ pinctrl-names;
80+
+ /delete-property/ pinctrl-0;
81+
+ /delete-property/ pinctrl-1;
82+
+ /delete-property/ scl-gpios;
83+
+ /delete-property/ sda-gpios;
84+
+ status = "okay";
85+
+};
86+
+
87+
+&eth0 {
88+
+ status = "okay";
89+
+ phy-mode = "sgmii";
90+
+ phy-handle = <&phy0>;
91+
+};
92+
+
93+
+/* USB0 is a host USB */
94+
+&usb0 {
95+
+ status = "okay";
96+
+};
97+
+
98+
+/* USB1 is a peripheral USB */
99+
+&usb1 {
100+
+ status = "okay";
101+
+ phys = <&usb1phy>;
102+
+ phy-names = "usb-phy";
103+
+ dr_mode = "peripheral";
104+
+};
105+
+
106+
+&spi0 {
107+
+ status = "okay";
108+
+
109+
+ spiflash0: flash@0 {
110+
+ compatible = "jedec,spi-nor";
111+
+ spi-max-frequency = <50000000>;
112+
+ spi-tx-bus-width = <1>; /* 1-single, 2-dual, 4-quad */
113+
+ spi-rx-bus-width = <1>; /* 1-single, 2-dual, 4-quad */
114+
+ reg = <0>;
115+
+
116+
+ #address-cells = <1>;
117+
+ #size-cells = <1>;
118+
+
119+
+ partition@0 {
120+
+ label = "spi_flash_part0";
121+
+ reg = <0x0 0x200000>;
122+
+ };
123+
+
124+
+ parition@1 {
125+
+ label = "spi_flash_part1";
126+
+ reg = <0x200000 0x10000>;
127+
+ };
128+
+
129+
+ parition@2 {
130+
+ label = "spi_flash_part2";
131+
+ reg = <0x210000 0xC00000>;
132+
+ };
133+
+
134+
+ parition@3 {
135+
+ label = "spi_flash_part3";
136+
+ reg = <0xE10000 0x1F0000>;
137+
+ };
138+
+ };
139+
+};
140+
+
141+
+/{
142+
+ sdma_drv {
143+
+ compatible = "marvell,mvppnd";
144+
+ interrupts = <GIC_SPI 0x23 IRQ_TYPE_LEVEL_HIGH>;
145+
+ status = "okay";
146+
+ };
147+
+};
148+
--
149+
2.25.1
150+

patch/series

+1
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ cisco-npu-disable-other-bars.patch
171171
0012-net-mvpp2-clear-BM-pool-before-initialization.patch
172172
0013-mmc-sdhci-xenon-fix-PHY-init-clock-stability.patch
173173
0014-mmc-sdhci-xenon-add-timeout-for-PHY-init-complete.patch
174+
0015-arm64-dts-marvell-Add-Supermicro-SSE-G3748-board.patch
174175

175176
# amd-pensando elba support
176177
0000-Add-support-for-the-TI-TPS53659.patch

0 commit comments

Comments
 (0)