]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/gnu/dts/arm/aspeed-bmc-opp-vesnin.dts
Merge ^/vendor/llvm-project/release-10.x up to its last change (upstream
[FreeBSD/FreeBSD.git] / sys / gnu / dts / arm / aspeed-bmc-opp-vesnin.dts
1 // SPDX-License-Identifier: GPL-2.0+
2 // Copyright 2019 YADRO
3 /dts-v1/;
4
5 #include "aspeed-g4.dtsi"
6 #include <dt-bindings/gpio/aspeed-gpio.h>
7
8 / {
9         model = "Vesnin BMC";
10         compatible = "yadro,vesnin-bmc", "aspeed,ast2400";
11
12         chosen {
13                 stdout-path = &uart5;
14                 bootargs = "console=ttyS4,115200 earlyprintk";
15         };
16
17         memory {
18                 reg = <0x40000000 0x20000000>;
19         };
20
21         reserved-memory {
22                 #address-cells = <1>;
23                 #size-cells = <1>;
24                 ranges;
25
26                 vga_memory: framebuffer@5f000000 {
27                         no-map;
28                         reg = <0x5f000000 0x01000000>; /* 16MB */
29                 };
30                 flash_memory: region@5c000000 {
31                         no-map;
32                         reg = <0x5c000000 0x02000000>; /* 32M */
33                 };
34         };
35
36         leds {
37                 compatible = "gpio-leds";
38
39                 heartbeat {
40                         gpios = <&gpio ASPEED_GPIO(R, 4) GPIO_ACTIVE_LOW>;
41                 };
42                 power_red {
43                         gpios = <&gpio ASPEED_GPIO(N, 1) GPIO_ACTIVE_LOW>;
44                 };
45
46                 power_green {
47                         gpios = <&gpio ASPEED_GPIO(F, 1) GPIO_ACTIVE_LOW>;
48                 };
49
50                 id_blue {
51                         gpios = <&gpio ASPEED_GPIO(O, 0) GPIO_ACTIVE_LOW>;
52                 };
53
54                 alarm_red {
55                         gpios = <&gpio ASPEED_GPIO(N, 6) GPIO_ACTIVE_LOW>;
56                 };
57
58                 alarm_yel {
59                         gpios = <&gpio ASPEED_GPIO(N, 7) GPIO_ACTIVE_HIGH>;
60                 };
61         };
62
63         gpio-keys {
64                 compatible = "gpio-keys";
65
66                 button_checkstop {
67                         label = "checkstop";
68                         linux,code = <74>;
69                         gpios = <&gpio ASPEED_GPIO(P, 5) GPIO_ACTIVE_LOW>;
70                 };
71
72                 button_identify {
73                         label = "identify";
74                         linux,code = <152>;
75                         gpios = <&gpio ASPEED_GPIO(O, 7) GPIO_ACTIVE_LOW>;
76                 };
77         };
78 };
79
80 &fmc {
81         status = "okay";
82         flash@0 {
83                 status = "okay";
84                 m25p,fast-read;
85         label = "bmc";
86 #include "openbmc-flash-layout.dtsi"
87         };
88
89         flash@1 {
90                 status = "okay";
91                 m25p,fast-read;
92                 label = "alt";
93         };
94 };
95
96 &spi {
97         status = "okay";
98         pinctrl-names = "default";
99         pinctrl-0 = <&pinctrl_spi1debug_default>;
100
101         flash@0 {
102                 status = "okay";
103                 label = "pnor";
104                 m25p,fast-read;
105         };
106 };
107
108 &mac0 {
109         status = "okay";
110
111         use-ncsi;
112         no-hw-checksum;
113
114         pinctrl-names = "default";
115         pinctrl-0 = <&pinctrl_rmii1_default>;
116 };
117
118
119 &uart5 {
120         status = "okay";
121 };
122
123 &lpc_ctrl {
124         status = "okay";
125         memory-region = <&flash_memory>;
126         flash = <&spi>;
127 };
128
129 &ibt {
130         status = "okay";
131 };
132
133 &uart3 {
134         status = "okay";
135         pinctrl-names = "default";
136         pinctrl-0 = <&pinctrl_txd2_default &pinctrl_rxd2_default>;
137 };
138
139 &i2c0 {
140         status = "okay";
141
142         eeprom@50 {
143                 compatible = "atmel,24c256";
144                 reg = <0x50>;
145                 pagesize = <64>;
146         };
147 };
148
149 &i2c1 {
150         status = "okay";
151
152         tmp75@49 {
153                 compatible = "ti,tmp75";
154                 reg = <0x49>;
155         };
156 };
157
158 &i2c2 {
159         status = "okay";
160 };
161
162 &i2c3 {
163         status = "okay";
164 };
165
166 &i2c4 {
167         status = "okay";
168
169         occ-hwmon@50 {
170                 compatible = "ibm,p8-occ-hwmon";
171                 reg = <0x50>;
172         };
173 };
174
175 &i2c5 {
176         status = "okay";
177
178         occ-hwmon@51 {
179                 compatible = "ibm,p8-occ-hwmon";
180                 reg = <0x51>;
181         };
182 };
183
184 &i2c6 {
185         status = "okay";
186
187         w83795g@2f {
188                 compatible = "nuvoton,w83795g";
189                 reg = <0x2f>;
190         };
191 };
192
193 &i2c7 {
194         status = "okay";
195
196         occ-hwmon@56 {
197                 compatible = "ibm,p8-occ-hwmon";
198                 reg = <0x56>;
199         };
200 };
201
202 &i2c9 {
203         status = "okay";
204 };
205
206 &i2c10 {
207         status = "okay";
208 };
209
210 &i2c11 {
211         status = "okay";
212
213         occ-hwmon@57 {
214                 compatible = "ibm,p8-occ-hwmon";
215                 reg = <0x57>;
216         };
217 };
218
219 &i2c12 {
220         status = "okay";
221
222         rtc@68 {
223                 compatible = "maxim,ds3231";
224                 reg = <0x68>;
225         };
226 };
227
228 &i2c13 {
229         status = "okay";
230 };
231
232 &vuart {
233         status = "okay";
234 };
235
236 &wdt2 {
237         aspeed,alt-boot;
238 };