blob: 8aefb0c126722980a345062cae02a6127c02b52e [file] [log] [blame]
Tom Rini93743d22024-04-01 09:08:13 -04001// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2023 Loongson Technology Corporation Limited
4 */
5
6/dts-v1/;
7
8#include "loongson-2k0500.dtsi"
9
10/ {
11 compatible = "loongson,ls2k0500-ref", "loongson,ls2k0500";
12 model = "Loongson-2K0500 Reference Board";
13
14 aliases {
15 ethernet0 = &gmac0;
16 ethernet1 = &gmac1;
17 serial0 = &uart0;
18 };
19
20 chosen {
21 stdout-path = "serial0:115200n8";
22 };
23
24 memory@200000 {
25 device_type = "memory";
26 reg = <0x0 0x00200000 0x0 0x0ee00000>,
27 <0x0 0x90000000 0x0 0x60000000>;
28 };
29
30 reserved-memory {
31 #address-cells = <2>;
32 #size-cells = <2>;
33 ranges;
34
35 linux,cma {
36 compatible = "shared-dma-pool";
37 reusable;
38 size = <0x0 0x2000000>;
39 linux,cma-default;
40 };
41 };
42};
43
44&gmac0 {
45 status = "okay";
46
47 phy-mode = "rgmii";
48 bus_id = <0x0>;
49};
50
51&gmac1 {
52 status = "okay";
53
54 phy-mode = "rgmii";
55 bus_id = <0x1>;
56};
57
58&i2c0 {
59 status = "okay";
60
61 #address-cells = <1>;
62 #size-cells = <0>;
63 eeprom@57 {
64 compatible = "atmel,24c16";
65 reg = <0x57>;
66 pagesize = <16>;
67 };
68};
69
70&ehci0 {
71 status = "okay";
72};
73
74&ohci0 {
75 status = "okay";
76};
77
78&sata {
79 status = "okay";
80};
81
82&uart0 {
83 status = "okay";
84};
85
86&rtc0 {
87 status = "okay";
88};