xref: /linux/arch/riscv/boot/dts/sophgo/sg2044-sophgo-srd3-10.dts (revision 5f5598d945e2a69f764aa5c2074dad73e23bcfcb)
1// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2/*
3 * Copyright (C) 2025 Inochi Amaoto <inochiama@gmail.com>
4 */
5
6/dts-v1/;
7
8#include "sg2044.dtsi"
9
10/ {
11	model = "Sophgo SG2044 SRD3-10";
12	compatible = "sophgo,srd3-10", "sophgo,sg2044";
13
14	aliases {
15		serial0 = &uart0;
16		serial1 = &uart1;
17		serial2 = &uart2;
18		serial3 = &uart3;
19	};
20
21	chosen {
22		stdout-path = "serial1:115200n8";
23	};
24};
25
26&osc {
27	clock-frequency = <25000000>;
28};
29
30&emmc {
31	bus-width = <4>;
32	no-sdio;
33	no-sd;
34	non-removable;
35	wp-inverted;
36	status = "okay";
37};
38
39&gmac0 {
40	phy-handle = <&phy0>;
41	phy-mode = "rgmii-id";
42	status = "okay";
43
44	mdio {
45		phy0: phy@0 {
46			compatible = "ethernet-phy-ieee802.3-c22";
47			reg = <0>;
48			reset-gpios = <&porta 28 GPIO_ACTIVE_LOW>;
49			reset-assert-us = <10000>;
50			reset-deassert-us = <10000>;
51			rx-internal-delay-ps = <2050>;
52		};
53	};
54};
55
56&i2c1 {
57	status = "okay";
58
59	mcu: syscon@17 {
60		compatible = "sophgo,sg2044-hwmon-mcu", "sophgo,sg2042-hwmon-mcu";
61		reg = <0x17>;
62		#thermal-sensor-cells = <1>;
63	};
64};
65
66&msi {
67	status = "okay";
68};
69
70&pcie0 {
71	bus-range = <0x00 0xff>;
72	linux,pci-domain = <1>;
73	status = "okay";
74};
75
76&pcie1 {
77	bus-range = <0x00 0xff>;
78	linux,pci-domain = <0>;
79	status = "okay";
80};
81
82&pcie2 {
83	bus-range = <0x00 0xff>;
84	linux,pci-domain = <3>;
85	status = "okay";
86};
87
88&pcie3 {
89	bus-range = <0x00 0xff>;
90	linux,pci-domain = <2>;
91	status = "okay";
92};
93
94&pcie4 {
95	bus-range = <0x00 0xff>;
96	linux,pci-domain = <4>;
97	status = "okay";
98};
99
100&pwm {
101	status = "okay";
102};
103
104&sd {
105	bus-width = <4>;
106	no-sdio;
107	no-mmc;
108	wp-inverted;
109	status = "okay";
110};
111
112&uart0 {
113	/* for firmware */
114	status = "reserved";
115};
116
117&uart1 {
118	status = "okay";
119};
120