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