xref: /linux/arch/loongarch/boot/dts/loongson-2k2000-ref.dts (revision 6e9a12f85a7567bb9a41d5230468886bd6a27b20)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2023 Loongson Technology Corporation Limited
4 */
5
6/dts-v1/;
7
8#include "loongson-2k2000.dtsi"
9
10/ {
11	compatible = "loongson,ls2k2000-ref", "loongson,ls2k2000";
12	model = "Loongson-2K2000 Reference Board";
13
14	aliases {
15		serial0 = &uart0;
16	};
17
18	chosen {
19		stdout-path = "serial0:115200n8";
20	};
21
22	memory@200000 {
23		device_type = "memory";
24		reg = <0x0 0x00200000 0x0 0x0ee00000>,
25		      <0x0 0x90000000 0x0 0x70000000>;
26	};
27
28	reserved-memory {
29		#address-cells = <2>;
30		#size-cells = <2>;
31		ranges;
32
33		linux,cma {
34			compatible = "shared-dma-pool";
35			reusable;
36			size = <0x0 0x2000000>;
37			linux,cma-default;
38		};
39	};
40};
41
42&emmc {
43	status = "okay";
44
45	bus-width = <8>;
46	cap-mmc-highspeed;
47	mmc-hs200-1_8v;
48	no-sd;
49	no-sdio;
50};
51
52&sata {
53	status = "okay";
54};
55
56&uart0 {
57	status = "okay";
58};
59
60&rtc0 {
61	status = "okay";
62};
63
64&xhci0 {
65	status = "okay";
66};
67
68&xhci1 {
69	status = "okay";
70};
71
72&gmac0 {
73	status = "okay";
74
75	phy-mode = "gmii";
76	phy-handle = <&phy0>;
77	mdio {
78		compatible = "snps,dwmac-mdio";
79		#address-cells = <1>;
80		#size-cells = <0>;
81		phy0: ethernet-phy@0 {
82			reg = <2>;
83		};
84	};
85};
86
87&gmac1 {
88	status = "okay";
89
90	phy-mode = "gmii";
91	phy-handle = <&phy1>;
92	mdio {
93		compatible = "snps,dwmac-mdio";
94		#address-cells = <1>;
95		#size-cells = <0>;
96		phy1: ethernet-phy@1 {
97			reg = <2>;
98		};
99	};
100};
101
102&gmac2 {
103	status = "okay";
104
105	phy-mode = "rgmii-id";
106	phy-handle = <&phy2>;
107	mdio {
108		compatible = "snps,dwmac-mdio";
109		#address-cells = <1>;
110		#size-cells = <0>;
111		phy2: ethernet-phy@2 {
112			reg = <0>;
113		};
114	};
115};
116