xref: /freebsd-src/sys/contrib/device-tree/src/arm/aspeed/aspeed-bmc-inventec-transformers.dts (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-or-later
2f126890aSEmmanuel Vadot// Copyright 2021 Inventec Corp.
3f126890aSEmmanuel Vadot
4f126890aSEmmanuel Vadot/dts-v1/;
5f126890aSEmmanuel Vadot
6f126890aSEmmanuel Vadot#include "aspeed-g6.dtsi"
7f126890aSEmmanuel Vadot#include "aspeed-g6-pinctrl.dtsi"
8f126890aSEmmanuel Vadot#include <dt-bindings/i2c/i2c.h>
9f126890aSEmmanuel Vadot#include <dt-bindings/gpio/aspeed-gpio.h>
10f126890aSEmmanuel Vadot
11f126890aSEmmanuel Vadot/ {
12f126890aSEmmanuel Vadot       model = "TRANSFORMERS BMC";
13f126890aSEmmanuel Vadot       compatible = "inventec,transformer-bmc", "aspeed,ast2600";
14f126890aSEmmanuel Vadot
15f126890aSEmmanuel Vadot       aliases {
16f126890aSEmmanuel Vadot               serial4 = &uart5;
17f126890aSEmmanuel Vadot       };
18f126890aSEmmanuel Vadot
19f126890aSEmmanuel Vadot       chosen {
20f126890aSEmmanuel Vadot               stdout-path = &uart5;
21f126890aSEmmanuel Vadot               bootargs = "console=ttyS4,115200n8";
22f126890aSEmmanuel Vadot       };
23f126890aSEmmanuel Vadot
24f126890aSEmmanuel Vadot       memory@80000000 {
25f126890aSEmmanuel Vadot               device_type = "memory";
26f126890aSEmmanuel Vadot               reg = <0x80000000 0x80000000>;
27f126890aSEmmanuel Vadot       };
28f126890aSEmmanuel Vadot
29f126890aSEmmanuel Vadot       leds {
30f126890aSEmmanuel Vadot               compatible = "gpio-leds";
31f126890aSEmmanuel Vadot
32f126890aSEmmanuel Vadot               // UID led
33f126890aSEmmanuel Vadot               uid {
34f126890aSEmmanuel Vadot                       label = "UID_LED";
35f126890aSEmmanuel Vadot                       gpios = <&gpio0 ASPEED_GPIO(X, 0) GPIO_ACTIVE_LOW>;
36f126890aSEmmanuel Vadot               };
37f126890aSEmmanuel Vadot
38f126890aSEmmanuel Vadot               // Heart beat led
39f126890aSEmmanuel Vadot               heartbeat {
40f126890aSEmmanuel Vadot                       label = "HB_LED";
41f126890aSEmmanuel Vadot                       gpios = <&gpio0 ASPEED_GPIO(P, 7) GPIO_ACTIVE_LOW>;
42f126890aSEmmanuel Vadot               };
43f126890aSEmmanuel Vadot       };
44f126890aSEmmanuel Vadot};
45f126890aSEmmanuel Vadot
46f126890aSEmmanuel Vadot&mdio0 {
47f126890aSEmmanuel Vadot       status = "okay";
48f126890aSEmmanuel Vadot
49f126890aSEmmanuel Vadot       ethphy0: ethernet-phy@0 {
50f126890aSEmmanuel Vadot               compatible = "ethernet-phy-ieee802.3-c22";
51f126890aSEmmanuel Vadot               reg = <1>;
52f126890aSEmmanuel Vadot       };
53f126890aSEmmanuel Vadot};
54f126890aSEmmanuel Vadot
55f126890aSEmmanuel Vadot&mac3 {
56f126890aSEmmanuel Vadot       status = "okay";
57f126890aSEmmanuel Vadot       phy-mode = "rgmii";
58f126890aSEmmanuel Vadot       phy-handle = <&ethphy0>;
59f126890aSEmmanuel Vadot       pinctrl-names = "default";
60f126890aSEmmanuel Vadot       pinctrl-0 = <&pinctrl_rgmii4_default>;
61f126890aSEmmanuel Vadot};
62f126890aSEmmanuel Vadot
63f126890aSEmmanuel Vadot&fmc {
64f126890aSEmmanuel Vadot       status = "okay";
65f126890aSEmmanuel Vadot
66f126890aSEmmanuel Vadot       flash@0 {
67f126890aSEmmanuel Vadot               status = "okay";
68f126890aSEmmanuel Vadot               m25p,fast-read;
69f126890aSEmmanuel Vadot               label = "bmc";
70f126890aSEmmanuel Vadot               spi-max-frequency = <33000000>;
71f126890aSEmmanuel Vadot               spi-tx-bus-width = <2>;
72f126890aSEmmanuel Vadot               spi-rx-bus-width = <2>;
73f126890aSEmmanuel Vadot#include "openbmc-flash-layout.dtsi"
74f126890aSEmmanuel Vadot       };
75f126890aSEmmanuel Vadot
76f126890aSEmmanuel Vadot       flash@1 {
77f126890aSEmmanuel Vadot               status = "okay";
78f126890aSEmmanuel Vadot               m25p,fast-read;
79f126890aSEmmanuel Vadot               label = "bmc2";
80f126890aSEmmanuel Vadot               spi-max-frequency = <33000000>;
81f126890aSEmmanuel Vadot               spi-tx-bus-width = <2>;
82f126890aSEmmanuel Vadot               spi-rx-bus-width = <2>;
83f126890aSEmmanuel Vadot       };
84f126890aSEmmanuel Vadot};
85f126890aSEmmanuel Vadot
86f126890aSEmmanuel Vadot&spi1 {
87f126890aSEmmanuel Vadot       status = "okay";
88f126890aSEmmanuel Vadot       pinctrl-names = "default";
89f126890aSEmmanuel Vadot       pinctrl-0 = <&pinctrl_spi1_default>;
90f126890aSEmmanuel Vadot
91f126890aSEmmanuel Vadot       flash@0 {
92f126890aSEmmanuel Vadot               status = "okay";
93f126890aSEmmanuel Vadot               m25p,fast-read;
94f126890aSEmmanuel Vadot               label = "bios";
95f126890aSEmmanuel Vadot               spi-max-frequency = <33000000>;
96f126890aSEmmanuel Vadot               spi-tx-bus-width = <1>;
97f126890aSEmmanuel Vadot               spi-rx-bus-width = <1>;
98f126890aSEmmanuel Vadot       };
99f126890aSEmmanuel Vadot};
100f126890aSEmmanuel Vadot
101f126890aSEmmanuel Vadot&wdt1 {
102f126890aSEmmanuel Vadot       status = "okay";
103f126890aSEmmanuel Vadot};
104f126890aSEmmanuel Vadot
105f126890aSEmmanuel Vadot&uart1 {
106f126890aSEmmanuel Vadot       status = "okay";
107f126890aSEmmanuel Vadot};
108f126890aSEmmanuel Vadot
109f126890aSEmmanuel Vadot&uart5 {
110f126890aSEmmanuel Vadot       status = "okay";
111f126890aSEmmanuel Vadot};
112f126890aSEmmanuel Vadot
113f126890aSEmmanuel Vadot&i2c0 {
114f126890aSEmmanuel Vadot       status = "okay";
115f126890aSEmmanuel Vadot
116f126890aSEmmanuel Vadot       //Set bmc' slave address;
117f126890aSEmmanuel Vadot       bmc_slave@10 {
118f126890aSEmmanuel Vadot               compatible = "ipmb-dev";
119f126890aSEmmanuel Vadot               reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>;
120f126890aSEmmanuel Vadot               i2c-protocol;
121f126890aSEmmanuel Vadot       };
122f126890aSEmmanuel Vadot};
123f126890aSEmmanuel Vadot
124f126890aSEmmanuel Vadot&i2c2 {
125f126890aSEmmanuel Vadot       status = "okay";
126f126890aSEmmanuel Vadot};
127f126890aSEmmanuel Vadot
128f126890aSEmmanuel Vadot&i2c3 {
129f126890aSEmmanuel Vadot       // FRU AT24C512C-SSHM-T
130f126890aSEmmanuel Vadot       status = "okay";
131f126890aSEmmanuel Vadot       eeprom@50 {
132f126890aSEmmanuel Vadot               compatible = "atmel,24c512";
133f126890aSEmmanuel Vadot               reg = <0x50>;
134f126890aSEmmanuel Vadot               pagesize = <128>;
135f126890aSEmmanuel Vadot       };
136f126890aSEmmanuel Vadot};
137f126890aSEmmanuel Vadot
138f126890aSEmmanuel Vadot&i2c5 {
139f126890aSEmmanuel Vadot       status = "okay";
140f126890aSEmmanuel Vadot};
141f126890aSEmmanuel Vadot
142f126890aSEmmanuel Vadot&i2c6 {
143f126890aSEmmanuel Vadot       status = "okay";
144f126890aSEmmanuel Vadot
145f126890aSEmmanuel Vadot       tmp75@49 {
146f126890aSEmmanuel Vadot               compatible = "ti,tmp75";
147f126890aSEmmanuel Vadot               reg = <0x49>;
148f126890aSEmmanuel Vadot       };
149f126890aSEmmanuel Vadot
150f126890aSEmmanuel Vadot       tmp75@4f {
151f126890aSEmmanuel Vadot               compatible = "ti,tmp75";
152f126890aSEmmanuel Vadot               reg = <0x4f>;
153f126890aSEmmanuel Vadot       };
154f126890aSEmmanuel Vadot
155f126890aSEmmanuel Vadot       tmp468@48 {
156f126890aSEmmanuel Vadot               compatible = "ti,tmp468";
157f126890aSEmmanuel Vadot               reg = <0x48>;
158f126890aSEmmanuel Vadot       };
159f126890aSEmmanuel Vadot};
160f126890aSEmmanuel Vadot
161f126890aSEmmanuel Vadot&i2c7 {
162f126890aSEmmanuel Vadot       status = "okay";
163f126890aSEmmanuel Vadot       adm1278@40 {
164f126890aSEmmanuel Vadot               compatible = "adi,adm1278";
165f126890aSEmmanuel Vadot               reg = <0x40>;
166f126890aSEmmanuel Vadot       };
167f126890aSEmmanuel Vadot};
168f126890aSEmmanuel Vadot
169f126890aSEmmanuel Vadot
170f126890aSEmmanuel Vadot&i2c8 {
171f126890aSEmmanuel Vadot       // FRU AT24C512C-SSHM-T
172f126890aSEmmanuel Vadot       status = "okay";
173f126890aSEmmanuel Vadot
174f126890aSEmmanuel Vadot       eeprom@51 {
175f126890aSEmmanuel Vadot               compatible = "atmel,24c512";
176f126890aSEmmanuel Vadot               reg = <0x51>;
177f126890aSEmmanuel Vadot               pagesize = <128>;
178f126890aSEmmanuel Vadot       };
179f126890aSEmmanuel Vadot
180f126890aSEmmanuel Vadot       eeprom@53 {
181f126890aSEmmanuel Vadot               compatible = "atmel,24c512";
182f126890aSEmmanuel Vadot               reg = <0x53>;
183f126890aSEmmanuel Vadot               pagesize = <128>;
184f126890aSEmmanuel Vadot       };
185f126890aSEmmanuel Vadot};
186f126890aSEmmanuel Vadot
187f126890aSEmmanuel Vadot&i2c9 {
188f126890aSEmmanuel Vadot       // M.2
189f126890aSEmmanuel Vadot       status = "okay";
190f126890aSEmmanuel Vadot};
191f126890aSEmmanuel Vadot
192f126890aSEmmanuel Vadot&i2c10 {
193f126890aSEmmanuel Vadot       // I2C EXPANDER
194f126890aSEmmanuel Vadot       status = "okay";
195f126890aSEmmanuel Vadot
196*aa1a8ff2SEmmanuel Vadot       i2c-mux@71 {
197f126890aSEmmanuel Vadot               compatible = "nxp,pca9544";
198f126890aSEmmanuel Vadot               #address-cells = <1>;
199f126890aSEmmanuel Vadot               #size-cells = <0>;
200f126890aSEmmanuel Vadot               reg = <0x71>;
201f126890aSEmmanuel Vadot       };
202f126890aSEmmanuel Vadot
203*aa1a8ff2SEmmanuel Vadot       i2c-mux@73 {
204f126890aSEmmanuel Vadot               compatible = "nxp,pca9544";
205f126890aSEmmanuel Vadot               #address-cells = <1>;
206f126890aSEmmanuel Vadot               #size-cells = <0>;
207f126890aSEmmanuel Vadot               reg = <0x73>;
208f126890aSEmmanuel Vadot       };
209f126890aSEmmanuel Vadot};
210f126890aSEmmanuel Vadot
211f126890aSEmmanuel Vadot&i2c11 {
212f126890aSEmmanuel Vadot       // I2C EXPANDER
213f126890aSEmmanuel Vadot       status = "okay";
214f126890aSEmmanuel Vadot
215*aa1a8ff2SEmmanuel Vadot       i2c-mux@70 {
216f126890aSEmmanuel Vadot               compatible = "nxp,pca9544";
217f126890aSEmmanuel Vadot               #address-cells = <1>;
218f126890aSEmmanuel Vadot               #size-cells = <0>;
219f126890aSEmmanuel Vadot               reg = <0x70>;
220f126890aSEmmanuel Vadot
221f126890aSEmmanuel Vadot               pcie_eeprom_riser1: i2c@0 {
222f126890aSEmmanuel Vadot                       #address-cells = <1>;
223f126890aSEmmanuel Vadot                       #size-cells = <0>;
224f126890aSEmmanuel Vadot                       reg = <0>;
225f126890aSEmmanuel Vadot
226f126890aSEmmanuel Vadot                       eeprom@55 {
227f126890aSEmmanuel Vadot                               compatible = "atmel,24c512";
228f126890aSEmmanuel Vadot                               reg = <0x55>;
229f126890aSEmmanuel Vadot                               pagesize = <128>;
230f126890aSEmmanuel Vadot                       };
231f126890aSEmmanuel Vadot               };
232f126890aSEmmanuel Vadot
233f126890aSEmmanuel Vadot               pcie_eeprom_riser2: i2c@1 {
234f126890aSEmmanuel Vadot                       #address-cells = <1>;
235f126890aSEmmanuel Vadot                       #size-cells = <0>;
236f126890aSEmmanuel Vadot                       reg = <1>;
237f126890aSEmmanuel Vadot
238f126890aSEmmanuel Vadot                       eeprom@55 {
239f126890aSEmmanuel Vadot                               compatible = "atmel,24c512";
240f126890aSEmmanuel Vadot                               reg = <0x55>;
241f126890aSEmmanuel Vadot                               pagesize = <128>;
242f126890aSEmmanuel Vadot                       };
243f126890aSEmmanuel Vadot               };
244f126890aSEmmanuel Vadot
245f126890aSEmmanuel Vadot               pcie_eeprom_riser3: i2c@2 {
246f126890aSEmmanuel Vadot                       #address-cells = <1>;
247f126890aSEmmanuel Vadot                       #size-cells = <0>;
248f126890aSEmmanuel Vadot                       reg = <2>;
249f126890aSEmmanuel Vadot
250f126890aSEmmanuel Vadot                       eeprom@55 {
251f126890aSEmmanuel Vadot                               compatible = "atmel,24c512";
252f126890aSEmmanuel Vadot                               reg = <0x55>;
253f126890aSEmmanuel Vadot                               pagesize = <128>;
254f126890aSEmmanuel Vadot                       };
255f126890aSEmmanuel Vadot               };
256f126890aSEmmanuel Vadot       };
257f126890aSEmmanuel Vadot};
258f126890aSEmmanuel Vadot
259f126890aSEmmanuel Vadot&i2c12 {
260f126890aSEmmanuel Vadot       status = "okay";
261f126890aSEmmanuel Vadot
262f126890aSEmmanuel Vadot       psu0:psu0@58 {
263f126890aSEmmanuel Vadot               compatible = "pmbus";
264f126890aSEmmanuel Vadot               reg = <0x58>;
265f126890aSEmmanuel Vadot       };
266f126890aSEmmanuel Vadot};
267f126890aSEmmanuel Vadot
268f126890aSEmmanuel Vadot&gpio0 {
269f126890aSEmmanuel Vadot       status = "okay";
270f126890aSEmmanuel Vadot       gpio-line-names =
271f126890aSEmmanuel Vadot       /*A0-A7*/   "","","","","","","","",
272f126890aSEmmanuel Vadot       /*B0-B7*/   "presence-ps0","power-chassis-good","","","","","presence-ps1","",
273f126890aSEmmanuel Vadot       /*C0-C7*/   "","","","","","","","",
274f126890aSEmmanuel Vadot       /*D0-D7*/   "","","","","","","","",
275f126890aSEmmanuel Vadot       /*E0-E7*/   "","","","","","","","",
276f126890aSEmmanuel Vadot       /*F0-F7*/   "","","","","power-chassis-control","","","",
277f126890aSEmmanuel Vadot       /*G0-G7*/   "","","jtag-mux","","","","","",
278f126890aSEmmanuel Vadot       /*H0-H7*/   "","","","","reset-button","power-button","","",
279f126890aSEmmanuel Vadot       /*I0-I7*/   "","","","","","","","",
280f126890aSEmmanuel Vadot       /*J0-J7*/   "","","","","","","","",
281f126890aSEmmanuel Vadot       /*K0-K7*/   "","","","","","","","",
282f126890aSEmmanuel Vadot       /*L0-L7*/   "","","","","","","","",
283f126890aSEmmanuel Vadot       /*M0-M7*/   "","","","","","","","",
284f126890aSEmmanuel Vadot       /*N0-N7*/   "","","","","","","","",
285f126890aSEmmanuel Vadot       /*O0-O7*/   "","","","","","","","",
286f126890aSEmmanuel Vadot       /*P0-P7*/   "","","","tck-mux","","","","",
287f126890aSEmmanuel Vadot       /*Q0-Q7*/   "","","","","","","","",
288f126890aSEmmanuel Vadot       /*R0-R7*/   "","","","","","","","",
289f126890aSEmmanuel Vadot       /*S0-S7*/   "","","","","","","","",
290f126890aSEmmanuel Vadot       /*T0-T7*/   "","","","","","","","",
291f126890aSEmmanuel Vadot       /*U0-U7*/   "","nmi-button","","","","","","",
292f126890aSEmmanuel Vadot       /*V0-V7*/   "","","","","power-config-full-load","","","",
293f126890aSEmmanuel Vadot       /*W0-W7*/   "","","","","","","","",
294f126890aSEmmanuel Vadot       /*X0-X7*/   "","","","","","","","",
295f126890aSEmmanuel Vadot       /*Y0-Y7*/   "","","","","","","","",
296f126890aSEmmanuel Vadot       /*Z0-Z7*/   "","","","","","","","",
297f126890aSEmmanuel Vadot       /*AA0-AA7*/ "","","","","","","","",
298f126890aSEmmanuel Vadot       /*AB0-AB7*/ "","","","","","","","",
299f126890aSEmmanuel Vadot       /*AC0-AC7*/ "","","","","","","","";
300f126890aSEmmanuel Vadot};
301f126890aSEmmanuel Vadot
302f126890aSEmmanuel Vadot&lpc_snoop {
303f126890aSEmmanuel Vadot       status = "okay";
304f126890aSEmmanuel Vadot       snoop-ports = <0x80>;
305f126890aSEmmanuel Vadot};
306f126890aSEmmanuel Vadot
307f126890aSEmmanuel Vadot&emmc_controller {
308f126890aSEmmanuel Vadot       status = "okay";
309f126890aSEmmanuel Vadot};
310f126890aSEmmanuel Vadot
311f126890aSEmmanuel Vadot&emmc {
312f126890aSEmmanuel Vadot       status = "okay";
313f126890aSEmmanuel Vadot       non-removable;
314f126890aSEmmanuel Vadot       max-frequency = <52000000>;
315f126890aSEmmanuel Vadot       bus-width = <8>;
316f126890aSEmmanuel Vadot};
317f126890aSEmmanuel Vadot
318f126890aSEmmanuel Vadot&vhub {
319f126890aSEmmanuel Vadot       status = "okay";
320f126890aSEmmanuel Vadot       aspeed,vhub-downstream-ports = <7>;
321f126890aSEmmanuel Vadot       aspeed,vhub-generic-endpoints = <21>;
322f126890aSEmmanuel Vadot       pinctrl-names = "default";
323f126890aSEmmanuel Vadot       pinctrl-0 = <&pinctrl_usb2ad_default>;
324f126890aSEmmanuel Vadot};
325f126890aSEmmanuel Vadot
326f126890aSEmmanuel Vadot&rtc {
327f126890aSEmmanuel Vadot       status = "okay";
328f126890aSEmmanuel Vadot};
329