Skip to content

Commit aa3f38f

Browse files
sverdlininochisa
authored andcommitted
arm64: dts: sophgo: Add Duo Module 01 Evaluation Board
Duo Module 01 Evaluation Board contains Sophgo Duo Module 01 SMD SoM, Ethernet+USB switch, microSD slot, etc... Add only support for UART0 (console) and microSD slot. Signed-off-by: Alexander Sverdlin <[email protected]> Reviewed-by: Inochi Amaoto <[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 cccac52 commit aa3f38f

File tree

3 files changed

+79
-0
lines changed

3 files changed

+79
-0
lines changed

arch/arm64/boot/dts/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ subdir-y += realtek
2828
subdir-y += renesas
2929
subdir-y += rockchip
3030
subdir-y += socionext
31+
subdir-y += sophgo
3132
subdir-y += sprd
3233
subdir-y += st
3334
subdir-y += synaptics

arch/arm64/boot/dts/sophgo/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
dtb-$(CONFIG_ARCH_SOPHGO) += sg2000-milkv-duo-module-01-evb.dtb
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2+
3+
/dts-v1/;
4+
5+
#include "sg2000-milkv-duo-module-01.dtsi"
6+
7+
/ {
8+
model = "Milk-V Duo Module 01 Evaluation Board";
9+
compatible = "milkv,duo-module-01-evb", "milkv,duo-module-01", "sophgo,sg2000";
10+
11+
chosen {
12+
stdout-path = "serial0:115200n8";
13+
};
14+
};
15+
16+
&pinctrl {
17+
sdhci0_cfg: sdhci0-cfg {
18+
sdhci0-cd-pins {
19+
pinmux = <PINMUX(PIN_SD0_CD, 0)>;
20+
bias-pull-up;
21+
drive-strength-microamp = <10800>;
22+
power-source = <3300>;
23+
};
24+
25+
sdhci0-clk-pins {
26+
pinmux = <PINMUX(PIN_SD0_CLK, 0)>;
27+
bias-pull-up;
28+
drive-strength-microamp = <16100>;
29+
power-source = <3300>;
30+
};
31+
32+
sdhci0-cmd-pins {
33+
pinmux = <PINMUX(PIN_SD0_CMD, 0)>;
34+
bias-pull-up;
35+
drive-strength-microamp = <10800>;
36+
power-source = <3300>;
37+
};
38+
39+
sdhci0-data-pins {
40+
pinmux = <PINMUX(PIN_SD0_D0, 0)>,
41+
<PINMUX(PIN_SD0_D1, 0)>,
42+
<PINMUX(PIN_SD0_D2, 0)>,
43+
<PINMUX(PIN_SD0_D3, 0)>;
44+
bias-pull-up;
45+
drive-strength-microamp = <10800>;
46+
power-source = <3300>;
47+
};
48+
};
49+
50+
uart0_cfg: uart0-cfg {
51+
uart0-pins {
52+
pinmux = <PINMUX(PIN_UART0_TX, 0)>,
53+
<PINMUX(PIN_UART0_RX, 0)>;
54+
bias-pull-up;
55+
drive-strength-microamp = <10800>;
56+
power-source = <3300>;
57+
};
58+
};
59+
};
60+
61+
&uart0 {
62+
pinctrl-0 = <&uart0_cfg>;
63+
pinctrl-names = "default";
64+
status = "okay";
65+
};
66+
67+
&sdhci0 {
68+
bus-width = <4>;
69+
no-1-8-v;
70+
no-mmc;
71+
no-sdio;
72+
disable-wp;
73+
pinctrl-0 = <&sdhci0_cfg>;
74+
pinctrl-names = "default";
75+
status = "okay";
76+
};

0 commit comments

Comments
 (0)