blob: 23cf26cc3e5f19703220bd20a8e12e1e61a1e941 [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-2k1000.dtsi"
9
10/ {
11 compatible = "loongson,ls2k1000-ref", "loongson,ls2k1000";
12 model = "Loongson-2K1000 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 0x06e00000>,
25 <0x0 0x08000000 0x0 0x07000000>,
26 <0x0 0x90000000 0x1 0xe0000000>;
27 };
28
29 reserved-memory {
30 #address-cells = <2>;
31 #size-cells = <2>;
32 ranges;
33
34 linux,cma {
35 compatible = "shared-dma-pool";
36 reusable;
37 size = <0x0 0x2000000>;
38 linux,cma-default;
39 };
40 };
41};
42
43&gmac0 {
44 status = "okay";
45
Tom Rini762f85b2024-07-20 11:15:10 -060046 phy-mode = "rgmii-id";
Tom Rini93743d22024-04-01 09:08:13 -040047 phy-handle = <&phy0>;
48 mdio {
49 compatible = "snps,dwmac-mdio";
50 #address-cells = <1>;
51 #size-cells = <0>;
52 phy0: ethernet-phy@0 {
53 reg = <0>;
54 };
55 };
56};
57
58&gmac1 {
59 status = "okay";
60
Tom Rini762f85b2024-07-20 11:15:10 -060061 phy-mode = "rgmii-id";
Tom Rini93743d22024-04-01 09:08:13 -040062 phy-handle = <&phy1>;
63 mdio {
64 compatible = "snps,dwmac-mdio";
65 #address-cells = <1>;
66 #size-cells = <0>;
67 phy1: ethernet-phy@1 {
68 reg = <16>;
69 };
70 };
71};
72
73&i2c2 {
74 status = "okay";
75
76 pinctrl-0 = <&i2c0_pins_default>;
77 pinctrl-names = "default";
78
79 #address-cells = <1>;
80 #size-cells = <0>;
81 eeprom@57 {
82 compatible = "atmel,24c16";
83 reg = <0x57>;
84 pagesize = <16>;
85 };
86};
87
88&spi0 {
89 status = "okay";
90
91 #address-cells = <1>;
92 #size-cells = <0>;
93 spidev@0 {
94 compatible = "rohm,dh2228fv";
95 spi-max-frequency = <100000000>;
96 reg = <0>;
97 };
98};
99
100&ehci0 {
101 status = "okay";
102};
103
104&ohci0 {
105 status = "okay";
106};
107
108&sata {
109 status = "okay";
110};
111
112&uart0 {
113 status = "okay";
114};
115
Tom Rini93743d22024-04-01 09:08:13 -0400116&rtc0 {
117 status = "okay";
118};
119
120&pctrl {
121 status = "okay";
122
123 sdio_pins_default: sdio-pins {
124 sdio-pinmux {
125 groups = "sdio";
126 function = "sdio";
127 };
128 sdio-det-pinmux {
129 groups = "pwm2";
130 function = "gpio";
131 };
132 };
133
134 pwm1_pins_default: pwm1-pins {
135 pinmux {
136 groups = "pwm1";
137 function = "pwm1";
138 };
139 };
140
141 pwm0_pins_default: pwm0-pins {
142 pinmux {
143 groups = "pwm0";
144 function = "pwm0";
145 };
146 };
147
148 i2c1_pins_default: i2c1-pins {
149 pinmux {
150 groups = "i2c1";
151 function = "i2c1";
152 };
153 };
154
155 i2c0_pins_default: i2c0-pins {
156 pinmux {
157 groups = "i2c0";
158 function = "i2c0";
159 };
160 };
161
162 nand_pins_default: nand-pins {
163 pinmux {
164 groups = "nand";
165 function = "nand";
166 };
167 };
168
169 hda_pins_default: hda-pins {
170 grp0-pinmux {
171 groups = "hda";
172 function = "hda";
173 };
174 grp1-pinmux {
175 groups = "i2s";
176 function = "gpio";
177 };
178 };
179};