Merge tag 'f2fs-for-6.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeu...
[linux.git] / arch / loongarch / boot / dts / loongson-2k1000-ref.dts
blob23cf26cc3e5f19703220bd20a8e12e1e61a1e941
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Copyright (C) 2023 Loongson Technology Corporation Limited
4  */
6 /dts-v1/;
8 #include "loongson-2k1000.dtsi"
10 / {
11         compatible = "loongson,ls2k1000-ref", "loongson,ls2k1000";
12         model = "Loongson-2K1000 Reference Board";
14         aliases {
15                 serial0 = &uart0;
16         };
18         chosen {
19                 stdout-path = "serial0:115200n8";
20         };
22         memory@200000 {
23                 device_type = "memory";
24                 reg = <0x0 0x00200000 0x0 0x06e00000>,
25                       <0x0 0x08000000 0x0 0x07000000>,
26                       <0x0 0x90000000 0x1 0xe0000000>;
27         };
29         reserved-memory {
30                 #address-cells = <2>;
31                 #size-cells = <2>;
32                 ranges;
34                 linux,cma {
35                         compatible = "shared-dma-pool";
36                         reusable;
37                         size = <0x0 0x2000000>;
38                         linux,cma-default;
39                 };
40         };
43 &gmac0 {
44         status = "okay";
46         phy-mode = "rgmii-id";
47         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         };
58 &gmac1 {
59         status = "okay";
61         phy-mode = "rgmii-id";
62         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         };
73 &i2c2 {
74         status = "okay";
76         pinctrl-0 = <&i2c0_pins_default>;
77         pinctrl-names = "default";
79         #address-cells = <1>;
80         #size-cells = <0>;
81         eeprom@57 {
82                 compatible = "atmel,24c16";
83                 reg = <0x57>;
84                 pagesize = <16>;
85         };
88 &spi0 {
89         status = "okay";
91         #address-cells = <1>;
92         #size-cells = <0>;
93         spidev@0 {
94                 compatible = "rohm,dh2228fv";
95                 spi-max-frequency = <100000000>;
96                 reg = <0>;
97         };
100 &ehci0 {
101         status = "okay";
104 &ohci0 {
105         status = "okay";
108 &sata {
109         status = "okay";
112 &uart0 {
113         status = "okay";
116 &rtc0 {
117         status = "okay";
120 &pctrl {
121         status = "okay";
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         };
134         pwm1_pins_default: pwm1-pins {
135                 pinmux {
136                         groups = "pwm1";
137                         function = "pwm1";
138                 };
139         };
141         pwm0_pins_default: pwm0-pins {
142                 pinmux {
143                         groups = "pwm0";
144                         function = "pwm0";
145                 };
146         };
148         i2c1_pins_default: i2c1-pins {
149                 pinmux {
150                         groups = "i2c1";
151                         function = "i2c1";
152                 };
153         };
155         i2c0_pins_default: i2c0-pins {
156                 pinmux {
157                         groups = "i2c0";
158                         function = "i2c0";
159                 };
160         };
162         nand_pins_default: nand-pins {
163                 pinmux {
164                         groups = "nand";
165                         function = "nand";
166                 };
167         };
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         };