xref: /freebsd-src/sys/contrib/device-tree/src/arm/aspeed/aspeed-bmc-amd-daytonax.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0
2*f126890aSEmmanuel Vadot/dts-v1/;
3*f126890aSEmmanuel Vadot
4*f126890aSEmmanuel Vadot#include "aspeed-g5.dtsi"
5*f126890aSEmmanuel Vadot#include <dt-bindings/gpio/aspeed-gpio.h>
6*f126890aSEmmanuel Vadot#include <dt-bindings/interrupt-controller/irq.h>
7*f126890aSEmmanuel Vadot
8*f126890aSEmmanuel Vadot/ {
9*f126890aSEmmanuel Vadot	model = "AMD DaytonaX BMC";
10*f126890aSEmmanuel Vadot	compatible = "amd,daytonax-bmc", "aspeed,ast2500";
11*f126890aSEmmanuel Vadot
12*f126890aSEmmanuel Vadot	memory@80000000 {
13*f126890aSEmmanuel Vadot		reg = <0x80000000 0x20000000>;
14*f126890aSEmmanuel Vadot	};
15*f126890aSEmmanuel Vadot
16*f126890aSEmmanuel Vadot	reserved-memory {
17*f126890aSEmmanuel Vadot		#address-cells = <1>;
18*f126890aSEmmanuel Vadot		#size-cells = <1>;
19*f126890aSEmmanuel Vadot		ranges;
20*f126890aSEmmanuel Vadot
21*f126890aSEmmanuel Vadot		video_engine_memory: jpegbuffer {
22*f126890aSEmmanuel Vadot			size = <0x02000000>;	/* 32M */
23*f126890aSEmmanuel Vadot			alignment = <0x01000000>;
24*f126890aSEmmanuel Vadot			compatible = "shared-dma-pool";
25*f126890aSEmmanuel Vadot			reusable;
26*f126890aSEmmanuel Vadot		};
27*f126890aSEmmanuel Vadot	};
28*f126890aSEmmanuel Vadot
29*f126890aSEmmanuel Vadot	aliases {
30*f126890aSEmmanuel Vadot		serial0 = &uart1;
31*f126890aSEmmanuel Vadot		serial4 = &uart5;
32*f126890aSEmmanuel Vadot	};
33*f126890aSEmmanuel Vadot
34*f126890aSEmmanuel Vadot	chosen {
35*f126890aSEmmanuel Vadot		stdout-path = &uart5;
36*f126890aSEmmanuel Vadot		bootargs = "console=ttyS4,115200";
37*f126890aSEmmanuel Vadot	};
38*f126890aSEmmanuel Vadot
39*f126890aSEmmanuel Vadot	leds {
40*f126890aSEmmanuel Vadot		compatible = "gpio-leds";
41*f126890aSEmmanuel Vadot
42*f126890aSEmmanuel Vadot		led-fault {
43*f126890aSEmmanuel Vadot			gpios = <&gpio ASPEED_GPIO(A, 2) GPIO_ACTIVE_LOW>;
44*f126890aSEmmanuel Vadot		};
45*f126890aSEmmanuel Vadot
46*f126890aSEmmanuel Vadot		led-identify {
47*f126890aSEmmanuel Vadot			gpios = <&gpio ASPEED_GPIO(A, 3) GPIO_ACTIVE_LOW>;
48*f126890aSEmmanuel Vadot		};
49*f126890aSEmmanuel Vadot	};
50*f126890aSEmmanuel Vadot
51*f126890aSEmmanuel Vadot	iio-hwmon {
52*f126890aSEmmanuel Vadot		compatible = "iio-hwmon";
53*f126890aSEmmanuel Vadot		io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>, <&adc 4>,
54*f126890aSEmmanuel Vadot			<&adc 5>, <&adc 6>, <&adc 7>, <&adc 8>, <&adc 9>,
55*f126890aSEmmanuel Vadot			<&adc 10>, <&adc 11>, <&adc 12>, <&adc 13>, <&adc 14>,
56*f126890aSEmmanuel Vadot			<&adc 15>;
57*f126890aSEmmanuel Vadot	};
58*f126890aSEmmanuel Vadot};
59*f126890aSEmmanuel Vadot
60*f126890aSEmmanuel Vadot&fmc {
61*f126890aSEmmanuel Vadot	status = "okay";
62*f126890aSEmmanuel Vadot	flash@0 {
63*f126890aSEmmanuel Vadot		status = "okay";
64*f126890aSEmmanuel Vadot		m25p,fast-read;
65*f126890aSEmmanuel Vadot		label = "bmc";
66*f126890aSEmmanuel Vadot		#include "openbmc-flash-layout.dtsi"
67*f126890aSEmmanuel Vadot	};
68*f126890aSEmmanuel Vadot};
69*f126890aSEmmanuel Vadot
70*f126890aSEmmanuel Vadot&mac0 {
71*f126890aSEmmanuel Vadot	status = "okay";
72*f126890aSEmmanuel Vadot	pinctrl-names = "default";
73*f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_rgmii1_default &pinctrl_mdio1_default>;
74*f126890aSEmmanuel Vadot};
75*f126890aSEmmanuel Vadot
76*f126890aSEmmanuel Vadot&uart1 {
77*f126890aSEmmanuel Vadot	//Host Console
78*f126890aSEmmanuel Vadot	status = "okay";
79*f126890aSEmmanuel Vadot	pinctrl-names = "default";
80*f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_txd1_default
81*f126890aSEmmanuel Vadot		&pinctrl_rxd1_default
82*f126890aSEmmanuel Vadot		&pinctrl_nrts1_default
83*f126890aSEmmanuel Vadot		&pinctrl_ndtr1_default
84*f126890aSEmmanuel Vadot		&pinctrl_ndsr1_default
85*f126890aSEmmanuel Vadot		&pinctrl_ncts1_default
86*f126890aSEmmanuel Vadot		&pinctrl_ndcd1_default
87*f126890aSEmmanuel Vadot		&pinctrl_nri1_default>;
88*f126890aSEmmanuel Vadot};
89*f126890aSEmmanuel Vadot
90*f126890aSEmmanuel Vadot&uart5 {
91*f126890aSEmmanuel Vadot	//BMC Console
92*f126890aSEmmanuel Vadot	status = "okay";
93*f126890aSEmmanuel Vadot};
94*f126890aSEmmanuel Vadot
95*f126890aSEmmanuel Vadot&vuart {
96*f126890aSEmmanuel Vadot	status = "okay";
97*f126890aSEmmanuel Vadot	aspeed,lpc-io-reg = <0x3f8>;
98*f126890aSEmmanuel Vadot	aspeed,lpc-interrupts = <4 IRQ_TYPE_LEVEL_HIGH>;
99*f126890aSEmmanuel Vadot};
100*f126890aSEmmanuel Vadot
101*f126890aSEmmanuel Vadot&adc {
102*f126890aSEmmanuel Vadot	status = "okay";
103*f126890aSEmmanuel Vadot	pinctrl-names = "default";
104*f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_adc0_default
105*f126890aSEmmanuel Vadot		&pinctrl_adc1_default
106*f126890aSEmmanuel Vadot		&pinctrl_adc2_default
107*f126890aSEmmanuel Vadot		&pinctrl_adc3_default
108*f126890aSEmmanuel Vadot		&pinctrl_adc4_default
109*f126890aSEmmanuel Vadot		&pinctrl_adc5_default
110*f126890aSEmmanuel Vadot		&pinctrl_adc6_default
111*f126890aSEmmanuel Vadot		&pinctrl_adc7_default
112*f126890aSEmmanuel Vadot		&pinctrl_adc8_default
113*f126890aSEmmanuel Vadot		&pinctrl_adc9_default
114*f126890aSEmmanuel Vadot		&pinctrl_adc10_default
115*f126890aSEmmanuel Vadot		&pinctrl_adc11_default
116*f126890aSEmmanuel Vadot		&pinctrl_adc12_default
117*f126890aSEmmanuel Vadot		&pinctrl_adc13_default
118*f126890aSEmmanuel Vadot		&pinctrl_adc14_default
119*f126890aSEmmanuel Vadot		&pinctrl_adc15_default>;
120*f126890aSEmmanuel Vadot};
121*f126890aSEmmanuel Vadot
122*f126890aSEmmanuel Vadot&gpio {
123*f126890aSEmmanuel Vadot	status = "okay";
124*f126890aSEmmanuel Vadot	gpio-line-names =
125*f126890aSEmmanuel Vadot	/*A0-A7*/	"","","led-fault","led-identify","","","","",
126*f126890aSEmmanuel Vadot	/*B0-B7*/	"","","","","","","","",
127*f126890aSEmmanuel Vadot	/*C0-C7*/	"id-button","","","","","","","",
128*f126890aSEmmanuel Vadot	/*D0-D7*/	"","","ASSERT_BMC_READY","","","","","",
129*f126890aSEmmanuel Vadot	/*E0-E7*/	"reset-button","reset-control","power-button","power-control","",
130*f126890aSEmmanuel Vadot			"power-good","power-ok","",
131*f126890aSEmmanuel Vadot	/*F0-F7*/	"","","","","","","BATTERY_DETECT","",
132*f126890aSEmmanuel Vadot	/*G0-G7*/	"","","","","","","","",
133*f126890aSEmmanuel Vadot	/*H0-H7*/	"","","","","","","","",
134*f126890aSEmmanuel Vadot	/*I0-I7*/	"","","","","","","","",
135*f126890aSEmmanuel Vadot	/*J0-J7*/	"","","","","","","","",
136*f126890aSEmmanuel Vadot	/*K0-K7*/	"","","","","","","","",
137*f126890aSEmmanuel Vadot	/*L0-L7*/	"","","","","","","","",
138*f126890aSEmmanuel Vadot	/*M0-M7*/	"","","","","","","","",
139*f126890aSEmmanuel Vadot	/*N0-N7*/	"","","","","","","","",
140*f126890aSEmmanuel Vadot	/*O0-O7*/	"","","","","","","","",
141*f126890aSEmmanuel Vadot	/*P0-P7*/	"","","","","","","","",
142*f126890aSEmmanuel Vadot	/*Q0-Q7*/	"","","","","","","","",
143*f126890aSEmmanuel Vadot	/*R0-R7*/	"","","","","","","","",
144*f126890aSEmmanuel Vadot	/*S0-S7*/	"","","","","","","","",
145*f126890aSEmmanuel Vadot	/*T0-T7*/	"","","","","","","","",
146*f126890aSEmmanuel Vadot	/*U0-U7*/	"","","","","","","","",
147*f126890aSEmmanuel Vadot	/*V0-V7*/	"","","","","","","","",
148*f126890aSEmmanuel Vadot	/*W0-W7*/	"","","","","","","","",
149*f126890aSEmmanuel Vadot	/*X0-X7*/	"","","","","","","","",
150*f126890aSEmmanuel Vadot	/*Y0-Y7*/	"","","","","","","","",
151*f126890aSEmmanuel Vadot	/*Z0-Z7*/	"","","","","","","","",
152*f126890aSEmmanuel Vadot	/*AA0-AA7*/	"","","","","","","","",
153*f126890aSEmmanuel Vadot	/*AB0-AB7*/	"FM_BMC_READ_SPD_TEMP","","","","","","","",
154*f126890aSEmmanuel Vadot	/*AC0-AC7*/	"","","","","","","","";
155*f126890aSEmmanuel Vadot};
156*f126890aSEmmanuel Vadot
157*f126890aSEmmanuel Vadot&i2c0 {
158*f126890aSEmmanuel Vadot	status = "okay";
159*f126890aSEmmanuel Vadot};
160*f126890aSEmmanuel Vadot
161*f126890aSEmmanuel Vadot&i2c1 {
162*f126890aSEmmanuel Vadot	status = "okay";
163*f126890aSEmmanuel Vadot};
164*f126890aSEmmanuel Vadot
165*f126890aSEmmanuel Vadot&i2c2 {
166*f126890aSEmmanuel Vadot	status = "okay";
167*f126890aSEmmanuel Vadot};
168*f126890aSEmmanuel Vadot
169*f126890aSEmmanuel Vadot&i2c3 {
170*f126890aSEmmanuel Vadot	status = "okay";
171*f126890aSEmmanuel Vadot};
172*f126890aSEmmanuel Vadot
173*f126890aSEmmanuel Vadot&i2c4 {
174*f126890aSEmmanuel Vadot	status = "okay";
175*f126890aSEmmanuel Vadot};
176*f126890aSEmmanuel Vadot
177*f126890aSEmmanuel Vadot&i2c5 {
178*f126890aSEmmanuel Vadot	status = "okay";
179*f126890aSEmmanuel Vadot};
180*f126890aSEmmanuel Vadot
181*f126890aSEmmanuel Vadot&i2c6 {
182*f126890aSEmmanuel Vadot	status = "okay";
183*f126890aSEmmanuel Vadot};
184*f126890aSEmmanuel Vadot
185*f126890aSEmmanuel Vadot&i2c7 {
186*f126890aSEmmanuel Vadot	status = "okay";
187*f126890aSEmmanuel Vadot};
188*f126890aSEmmanuel Vadot
189*f126890aSEmmanuel Vadot&i2c8 {
190*f126890aSEmmanuel Vadot	status = "okay";
191*f126890aSEmmanuel Vadot};
192*f126890aSEmmanuel Vadot
193*f126890aSEmmanuel Vadot&i2c10 {
194*f126890aSEmmanuel Vadot	status = "okay";
195*f126890aSEmmanuel Vadot};
196*f126890aSEmmanuel Vadot
197*f126890aSEmmanuel Vadot&i2c11 {
198*f126890aSEmmanuel Vadot	status = "okay";
199*f126890aSEmmanuel Vadot};
200*f126890aSEmmanuel Vadot
201*f126890aSEmmanuel Vadot&i2c12 {
202*f126890aSEmmanuel Vadot	status = "okay";
203*f126890aSEmmanuel Vadot};
204*f126890aSEmmanuel Vadot
205*f126890aSEmmanuel Vadot&kcs3 {
206*f126890aSEmmanuel Vadot	status = "okay";
207*f126890aSEmmanuel Vadot	aspeed,lpc-io-reg = <0xca2>;
208*f126890aSEmmanuel Vadot};
209*f126890aSEmmanuel Vadot
210*f126890aSEmmanuel Vadot&lpc_snoop {
211*f126890aSEmmanuel Vadot	status = "okay";
212*f126890aSEmmanuel Vadot	snoop-ports = <0x80>, <0x81>;
213*f126890aSEmmanuel Vadot};
214*f126890aSEmmanuel Vadot
215*f126890aSEmmanuel Vadot&lpc_ctrl {
216*f126890aSEmmanuel Vadot	status = "okay";
217*f126890aSEmmanuel Vadot};
218*f126890aSEmmanuel Vadot
219*f126890aSEmmanuel Vadot&pwm_tacho {
220*f126890aSEmmanuel Vadot	status = "okay";
221*f126890aSEmmanuel Vadot	pinctrl-names = "default";
222*f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_pwm0_default
223*f126890aSEmmanuel Vadot		&pinctrl_pwm1_default
224*f126890aSEmmanuel Vadot		&pinctrl_pwm2_default
225*f126890aSEmmanuel Vadot		&pinctrl_pwm3_default
226*f126890aSEmmanuel Vadot		&pinctrl_pwm4_default
227*f126890aSEmmanuel Vadot		&pinctrl_pwm5_default
228*f126890aSEmmanuel Vadot		&pinctrl_pwm6_default
229*f126890aSEmmanuel Vadot		&pinctrl_pwm7_default>;
230*f126890aSEmmanuel Vadot
231*f126890aSEmmanuel Vadot	fan@0 {
232*f126890aSEmmanuel Vadot		reg = <0x00>;
233*f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x00>;
234*f126890aSEmmanuel Vadot	};
235*f126890aSEmmanuel Vadot
236*f126890aSEmmanuel Vadot	fan@1 {
237*f126890aSEmmanuel Vadot		reg = <0x00>;
238*f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x01>;
239*f126890aSEmmanuel Vadot	};
240*f126890aSEmmanuel Vadot
241*f126890aSEmmanuel Vadot	fan@2 {
242*f126890aSEmmanuel Vadot		reg = <0x01>;
243*f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x02>;
244*f126890aSEmmanuel Vadot	};
245*f126890aSEmmanuel Vadot
246*f126890aSEmmanuel Vadot	fan@3 {
247*f126890aSEmmanuel Vadot		reg = <0x01>;
248*f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x03>;
249*f126890aSEmmanuel Vadot	};
250*f126890aSEmmanuel Vadot
251*f126890aSEmmanuel Vadot	fan@4 {
252*f126890aSEmmanuel Vadot		reg = <0x02>;
253*f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x04>;
254*f126890aSEmmanuel Vadot	};
255*f126890aSEmmanuel Vadot
256*f126890aSEmmanuel Vadot	fan@5 {
257*f126890aSEmmanuel Vadot		reg = <0x02>;
258*f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x05>;
259*f126890aSEmmanuel Vadot	};
260*f126890aSEmmanuel Vadot
261*f126890aSEmmanuel Vadot	fan@6 {
262*f126890aSEmmanuel Vadot		reg = <0x03>;
263*f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x06>;
264*f126890aSEmmanuel Vadot	};
265*f126890aSEmmanuel Vadot
266*f126890aSEmmanuel Vadot	fan@7 {
267*f126890aSEmmanuel Vadot		reg = <0x03>;
268*f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x07>;
269*f126890aSEmmanuel Vadot	};
270*f126890aSEmmanuel Vadot
271*f126890aSEmmanuel Vadot	fan@8 {
272*f126890aSEmmanuel Vadot		reg = <0x04>;
273*f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x08>;
274*f126890aSEmmanuel Vadot	};
275*f126890aSEmmanuel Vadot
276*f126890aSEmmanuel Vadot	fan@9 {
277*f126890aSEmmanuel Vadot		reg = <0x04>;
278*f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x09>;
279*f126890aSEmmanuel Vadot	};
280*f126890aSEmmanuel Vadot
281*f126890aSEmmanuel Vadot	fan@10 {
282*f126890aSEmmanuel Vadot		reg = <0x05>;
283*f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x0a>;
284*f126890aSEmmanuel Vadot	};
285*f126890aSEmmanuel Vadot
286*f126890aSEmmanuel Vadot	fan@11 {
287*f126890aSEmmanuel Vadot		reg = <0x05>;
288*f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x0b>;
289*f126890aSEmmanuel Vadot	};
290*f126890aSEmmanuel Vadot
291*f126890aSEmmanuel Vadot	fan@12 {
292*f126890aSEmmanuel Vadot		reg = <0x06>;
293*f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x0c>;
294*f126890aSEmmanuel Vadot	};
295*f126890aSEmmanuel Vadot
296*f126890aSEmmanuel Vadot	fan@13 {
297*f126890aSEmmanuel Vadot		reg = <0x06>;
298*f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x0d>;
299*f126890aSEmmanuel Vadot	};
300*f126890aSEmmanuel Vadot
301*f126890aSEmmanuel Vadot	fan@14 {
302*f126890aSEmmanuel Vadot		reg = <0x07>;
303*f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x0e>;
304*f126890aSEmmanuel Vadot	};
305*f126890aSEmmanuel Vadot
306*f126890aSEmmanuel Vadot	fan@15 {
307*f126890aSEmmanuel Vadot		reg = <0x07>;
308*f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x0f>;
309*f126890aSEmmanuel Vadot	};
310*f126890aSEmmanuel Vadot};
311*f126890aSEmmanuel Vadot
312*f126890aSEmmanuel Vadot&video {
313*f126890aSEmmanuel Vadot	status = "okay";
314*f126890aSEmmanuel Vadot	memory-region = <&video_engine_memory>;
315*f126890aSEmmanuel Vadot};
316*f126890aSEmmanuel Vadot
317*f126890aSEmmanuel Vadot&vhub {
318*f126890aSEmmanuel Vadot	status = "okay";
319*f126890aSEmmanuel Vadot};
320