xref: /freebsd-src/sys/contrib/device-tree/src/arm/aspeed/aspeed-bmc-vegman.dtsi (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0+
2*f126890aSEmmanuel Vadot// Copyright (C) 2021 YADRO
3*f126890aSEmmanuel Vadot
4*f126890aSEmmanuel Vadot#include "aspeed-g5.dtsi"
5*f126890aSEmmanuel Vadot#include <dt-bindings/gpio/aspeed-gpio.h>
6*f126890aSEmmanuel Vadot
7*f126890aSEmmanuel Vadot/ {
8*f126890aSEmmanuel Vadot	aliases {
9*f126890aSEmmanuel Vadot		serial4 = &uart5;
10*f126890aSEmmanuel Vadot	};
11*f126890aSEmmanuel Vadot
12*f126890aSEmmanuel Vadot	chosen {
13*f126890aSEmmanuel Vadot		stdout-path = &uart5;
14*f126890aSEmmanuel Vadot		bootargs = "console=ttyS4,115200 earlyprintk";
15*f126890aSEmmanuel Vadot	};
16*f126890aSEmmanuel Vadot
17*f126890aSEmmanuel Vadot	memory@80000000 {
18*f126890aSEmmanuel Vadot		reg = <0x80000000 0x20000000>;
19*f126890aSEmmanuel Vadot	};
20*f126890aSEmmanuel Vadot
21*f126890aSEmmanuel Vadot	reserved-memory {
22*f126890aSEmmanuel Vadot		#address-cells = <1>;
23*f126890aSEmmanuel Vadot		#size-cells = <1>;
24*f126890aSEmmanuel Vadot		ranges;
25*f126890aSEmmanuel Vadot
26*f126890aSEmmanuel Vadot		video_engine_memory: jpegbuffer {
27*f126890aSEmmanuel Vadot			size = <0x02000000>;	/* 32M */
28*f126890aSEmmanuel Vadot			alignment = <0x01000000>;
29*f126890aSEmmanuel Vadot			compatible = "shared-dma-pool";
30*f126890aSEmmanuel Vadot			reusable;
31*f126890aSEmmanuel Vadot		};
32*f126890aSEmmanuel Vadot
33*f126890aSEmmanuel Vadot		ramoops@9eff0000{
34*f126890aSEmmanuel Vadot			compatible = "ramoops";
35*f126890aSEmmanuel Vadot			reg = <0x9eff0000 0x10000>;
36*f126890aSEmmanuel Vadot			record-size = <0x2000>;
37*f126890aSEmmanuel Vadot			console-size = <0x2000>;
38*f126890aSEmmanuel Vadot		};
39*f126890aSEmmanuel Vadot	};
40*f126890aSEmmanuel Vadot
41*f126890aSEmmanuel Vadot	iio-hwmon {
42*f126890aSEmmanuel Vadot		compatible = "iio-hwmon";
43*f126890aSEmmanuel Vadot		io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>,
44*f126890aSEmmanuel Vadot			<&adc 4>, <&adc 5>, <&adc 6>, <&adc 7>,
45*f126890aSEmmanuel Vadot			<&adc 8>, <&adc 9>, <&adc 10>, <&adc 11>,
46*f126890aSEmmanuel Vadot			<&adc 12>, <&adc 13>, <&adc 14>, <&adc 15>;
47*f126890aSEmmanuel Vadot	};
48*f126890aSEmmanuel Vadot
49*f126890aSEmmanuel Vadot	leds {
50*f126890aSEmmanuel Vadot		compatible = "gpio-leds";
51*f126890aSEmmanuel Vadot
52*f126890aSEmmanuel Vadot		identify {
53*f126890aSEmmanuel Vadot			label = "platform:blue:indicator";
54*f126890aSEmmanuel Vadot			linux,default-trigger = "heartbeat";
55*f126890aSEmmanuel Vadot			gpios = <&gpio ASPEED_GPIO(S, 6) GPIO_ACTIVE_LOW>;
56*f126890aSEmmanuel Vadot		};
57*f126890aSEmmanuel Vadot
58*f126890aSEmmanuel Vadot		status_amber {
59*f126890aSEmmanuel Vadot			label = "platform:red:status";
60*f126890aSEmmanuel Vadot			default-state = "off";
61*f126890aSEmmanuel Vadot			gpios = <&gpio ASPEED_GPIO(S, 5) GPIO_ACTIVE_LOW>;
62*f126890aSEmmanuel Vadot		};
63*f126890aSEmmanuel Vadot
64*f126890aSEmmanuel Vadot		status_green {
65*f126890aSEmmanuel Vadot			label = "platform:green:status";
66*f126890aSEmmanuel Vadot			default-state = "off";
67*f126890aSEmmanuel Vadot			gpios = <&gpio ASPEED_GPIO(S, 4) GPIO_ACTIVE_LOW>;
68*f126890aSEmmanuel Vadot		};
69*f126890aSEmmanuel Vadot
70*f126890aSEmmanuel Vadot		power_fault {
71*f126890aSEmmanuel Vadot			label = "platform:red:power";
72*f126890aSEmmanuel Vadot			default-state = "off";
73*f126890aSEmmanuel Vadot			gpios = <&gpio ASPEED_GPIO(AA, 4) GPIO_ACTIVE_LOW>;
74*f126890aSEmmanuel Vadot		};
75*f126890aSEmmanuel Vadot
76*f126890aSEmmanuel Vadot		power_ok {
77*f126890aSEmmanuel Vadot			label = "platform:green:power";
78*f126890aSEmmanuel Vadot			default-state = "off";
79*f126890aSEmmanuel Vadot			gpios = <&gpio ASPEED_GPIO(AA, 5) GPIO_ACTIVE_LOW>;
80*f126890aSEmmanuel Vadot		};
81*f126890aSEmmanuel Vadot	};
82*f126890aSEmmanuel Vadot
83*f126890aSEmmanuel Vadot	beeper {
84*f126890aSEmmanuel Vadot		compatible = "pwm-beeper";
85*f126890aSEmmanuel Vadot		pwms = <&timer 5 1000000 0>;
86*f126890aSEmmanuel Vadot	};
87*f126890aSEmmanuel Vadot};
88*f126890aSEmmanuel Vadot
89*f126890aSEmmanuel Vadot&fmc {
90*f126890aSEmmanuel Vadot	status = "okay";
91*f126890aSEmmanuel Vadot	flash@0 {
92*f126890aSEmmanuel Vadot		status = "okay";
93*f126890aSEmmanuel Vadot		label = "bmc";
94*f126890aSEmmanuel Vadot		m25p,fast-read;
95*f126890aSEmmanuel Vadot#include "openbmc-flash-layout-64.dtsi"
96*f126890aSEmmanuel Vadot	};
97*f126890aSEmmanuel Vadot};
98*f126890aSEmmanuel Vadot
99*f126890aSEmmanuel Vadot&spi2 {
100*f126890aSEmmanuel Vadot	status = "okay";
101*f126890aSEmmanuel Vadot	pinctrl-names = "default";
102*f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_spi2ck_default
103*f126890aSEmmanuel Vadot			&pinctrl_spi2miso_default
104*f126890aSEmmanuel Vadot			&pinctrl_spi2mosi_default
105*f126890aSEmmanuel Vadot			&pinctrl_spi2cs0_default>;
106*f126890aSEmmanuel Vadot	flash@0 {
107*f126890aSEmmanuel Vadot		status = "okay";
108*f126890aSEmmanuel Vadot		label = "bios";
109*f126890aSEmmanuel Vadot		m25p,fast-read;
110*f126890aSEmmanuel Vadot	};
111*f126890aSEmmanuel Vadot};
112*f126890aSEmmanuel Vadot
113*f126890aSEmmanuel Vadot&mac0 {
114*f126890aSEmmanuel Vadot	status = "okay";
115*f126890aSEmmanuel Vadot	use-ncsi;
116*f126890aSEmmanuel Vadot
117*f126890aSEmmanuel Vadot	pinctrl-names = "default";
118*f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_rmii1_default>;
119*f126890aSEmmanuel Vadot};
120*f126890aSEmmanuel Vadot
121*f126890aSEmmanuel Vadot&mac1 {
122*f126890aSEmmanuel Vadot	status = "okay";
123*f126890aSEmmanuel Vadot
124*f126890aSEmmanuel Vadot	pinctrl-names = "default";
125*f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_rgmii2_default &pinctrl_mdio2_default>;
126*f126890aSEmmanuel Vadot
127*f126890aSEmmanuel Vadot	phy-mode = "rgmii";
128*f126890aSEmmanuel Vadot	phy-handle = <&phy>;
129*f126890aSEmmanuel Vadot	mdio {
130*f126890aSEmmanuel Vadot		#address-cells = <1>;
131*f126890aSEmmanuel Vadot		#size-cells = <0>;
132*f126890aSEmmanuel Vadot
133*f126890aSEmmanuel Vadot		phy: ethernet-phy@1 {
134*f126890aSEmmanuel Vadot			/* KSZ9131 */
135*f126890aSEmmanuel Vadot			compatible = "ethernet-phy-id0022.1640";
136*f126890aSEmmanuel Vadot			reg = <1>;
137*f126890aSEmmanuel Vadot
138*f126890aSEmmanuel Vadot			micrel,led-mode = <0>;
139*f126890aSEmmanuel Vadot		};
140*f126890aSEmmanuel Vadot	};
141*f126890aSEmmanuel Vadot};
142*f126890aSEmmanuel Vadot
143*f126890aSEmmanuel Vadot&vhub {
144*f126890aSEmmanuel Vadot	status = "okay";
145*f126890aSEmmanuel Vadot};
146*f126890aSEmmanuel Vadot
147*f126890aSEmmanuel Vadot&adc {
148*f126890aSEmmanuel Vadot	status = "okay";
149*f126890aSEmmanuel Vadot};
150*f126890aSEmmanuel Vadot
151*f126890aSEmmanuel Vadot&video {
152*f126890aSEmmanuel Vadot	status = "okay";
153*f126890aSEmmanuel Vadot	memory-region = <&video_engine_memory>;
154*f126890aSEmmanuel Vadot};
155*f126890aSEmmanuel Vadot
156*f126890aSEmmanuel Vadot&sdmmc {
157*f126890aSEmmanuel Vadot	status = "okay";
158*f126890aSEmmanuel Vadot};
159*f126890aSEmmanuel Vadot
160*f126890aSEmmanuel Vadot&sdhci1 {
161*f126890aSEmmanuel Vadot	status = "okay";
162*f126890aSEmmanuel Vadot
163*f126890aSEmmanuel Vadot	pinctrl-names = "default";
164*f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_sd2_default>;
165*f126890aSEmmanuel Vadot	disable-wp;
166*f126890aSEmmanuel Vadot};
167*f126890aSEmmanuel Vadot
168*f126890aSEmmanuel Vadot&timer {
169*f126890aSEmmanuel Vadot	fttmr010,pwm-outputs = <5>;
170*f126890aSEmmanuel Vadot	pinctrl-names = "default";
171*f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_timer5_default>;
172*f126890aSEmmanuel Vadot	#pwm-cells = <3>;
173*f126890aSEmmanuel Vadot	status = "okay";
174*f126890aSEmmanuel Vadot};
175*f126890aSEmmanuel Vadot
176*f126890aSEmmanuel Vadot&uart1 {
177*f126890aSEmmanuel Vadot	status = "okay";
178*f126890aSEmmanuel Vadot	pinctrl-names = "default";
179*f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_txd1_default
180*f126890aSEmmanuel Vadot			&pinctrl_rxd1_default
181*f126890aSEmmanuel Vadot			&pinctrl_nrts1_default
182*f126890aSEmmanuel Vadot			&pinctrl_ndtr1_default
183*f126890aSEmmanuel Vadot			&pinctrl_ndsr1_default
184*f126890aSEmmanuel Vadot			&pinctrl_ncts1_default
185*f126890aSEmmanuel Vadot			&pinctrl_ndcd1_default
186*f126890aSEmmanuel Vadot			&pinctrl_nri1_default>;
187*f126890aSEmmanuel Vadot};
188*f126890aSEmmanuel Vadot
189*f126890aSEmmanuel Vadot&uart5 {
190*f126890aSEmmanuel Vadot	status = "okay";
191*f126890aSEmmanuel Vadot};
192*f126890aSEmmanuel Vadot
193*f126890aSEmmanuel Vadot&vuart {
194*f126890aSEmmanuel Vadot	status = "okay";
195*f126890aSEmmanuel Vadot};
196*f126890aSEmmanuel Vadot
197*f126890aSEmmanuel Vadot&kcs3 {
198*f126890aSEmmanuel Vadot	aspeed,lpc-io-reg = <0xCA2>;
199*f126890aSEmmanuel Vadot	status = "okay";
200*f126890aSEmmanuel Vadot};
201*f126890aSEmmanuel Vadot
202*f126890aSEmmanuel Vadot&kcs4 {
203*f126890aSEmmanuel Vadot	aspeed,lpc-io-reg = <0xCA4>;
204*f126890aSEmmanuel Vadot	status = "okay";
205*f126890aSEmmanuel Vadot};
206*f126890aSEmmanuel Vadot
207*f126890aSEmmanuel Vadot&lpc_snoop {
208*f126890aSEmmanuel Vadot	snoop-ports = <0x80>;
209*f126890aSEmmanuel Vadot	status = "okay";
210*f126890aSEmmanuel Vadot};
211*f126890aSEmmanuel Vadot
212*f126890aSEmmanuel Vadot&uart_routing {
213*f126890aSEmmanuel Vadot	status = "okay";
214*f126890aSEmmanuel Vadot};
215*f126890aSEmmanuel Vadot
216*f126890aSEmmanuel Vadot&uart2 {
217*f126890aSEmmanuel Vadot	status = "okay";
218*f126890aSEmmanuel Vadot	pinctrl-names = "default";
219*f126890aSEmmanuel Vadot	pinctrl-0 = <>;
220*f126890aSEmmanuel Vadot};
221*f126890aSEmmanuel Vadot
222*f126890aSEmmanuel Vadot&uart3 {
223*f126890aSEmmanuel Vadot	status = "okay";
224*f126890aSEmmanuel Vadot	pinctrl-names = "default";
225*f126890aSEmmanuel Vadot	pinctrl-0 = <>;
226*f126890aSEmmanuel Vadot};
227*f126890aSEmmanuel Vadot
228*f126890aSEmmanuel Vadot&uart4 {
229*f126890aSEmmanuel Vadot	status = "okay";
230*f126890aSEmmanuel Vadot	pinctrl-names = "default";
231*f126890aSEmmanuel Vadot	pinctrl-0 = <>;
232*f126890aSEmmanuel Vadot};
233*f126890aSEmmanuel Vadot
234*f126890aSEmmanuel Vadot&i2c0 {
235*f126890aSEmmanuel Vadot	/* SMB_IPMB_STBY_LVC3 */
236*f126890aSEmmanuel Vadot	multi-master;
237*f126890aSEmmanuel Vadot	status = "okay";
238*f126890aSEmmanuel Vadot};
239*f126890aSEmmanuel Vadot
240*f126890aSEmmanuel Vadot&i2c1 {
241*f126890aSEmmanuel Vadot	/* SMB_CHASSENSOR_STBY_LVC3 */
242*f126890aSEmmanuel Vadot	status = "okay";
243*f126890aSEmmanuel Vadot};
244*f126890aSEmmanuel Vadot
245*f126890aSEmmanuel Vadot&i2c2 {
246*f126890aSEmmanuel Vadot	/* SMB_PCIE_STBY_LVC3 */
247*f126890aSEmmanuel Vadot	status = "okay";
248*f126890aSEmmanuel Vadot};
249*f126890aSEmmanuel Vadot
250*f126890aSEmmanuel Vadot&i2c3 {
251*f126890aSEmmanuel Vadot	/* SMB_HOST_STBY_LVC3 */
252*f126890aSEmmanuel Vadot	multi-master;
253*f126890aSEmmanuel Vadot	status = "okay";
254*f126890aSEmmanuel Vadot};
255*f126890aSEmmanuel Vadot
256*f126890aSEmmanuel Vadot&i2c4 {
257*f126890aSEmmanuel Vadot	/* BMC_PMBUS2_STBY */
258*f126890aSEmmanuel Vadot	status = "okay";
259*f126890aSEmmanuel Vadot};
260*f126890aSEmmanuel Vadot
261*f126890aSEmmanuel Vadot&i2c5 {
262*f126890aSEmmanuel Vadot	/* SMB_SMLINK0_STBY_LVC3 */
263*f126890aSEmmanuel Vadot	bus-frequency = <1000000>;
264*f126890aSEmmanuel Vadot	multi-master;
265*f126890aSEmmanuel Vadot	status = "okay";
266*f126890aSEmmanuel Vadot};
267*f126890aSEmmanuel Vadot
268*f126890aSEmmanuel Vadot&i2c6 {
269*f126890aSEmmanuel Vadot	/* SMB_TEMPSENSOR_STBY_LVC3 */
270*f126890aSEmmanuel Vadot	multi-master;
271*f126890aSEmmanuel Vadot	status = "okay";
272*f126890aSEmmanuel Vadot};
273*f126890aSEmmanuel Vadot
274*f126890aSEmmanuel Vadot&i2c7 {
275*f126890aSEmmanuel Vadot	/* SMB_SM_PMB1_SML1_STBY_LVC3 */
276*f126890aSEmmanuel Vadot	multi-master;
277*f126890aSEmmanuel Vadot	status = "okay";
278*f126890aSEmmanuel Vadot};
279*f126890aSEmmanuel Vadot
280*f126890aSEmmanuel Vadot&i2c9 {
281*f126890aSEmmanuel Vadot	/* SMB_BMC_ETH3_LVC3 */
282*f126890aSEmmanuel Vadot	status = "okay";
283*f126890aSEmmanuel Vadot};
284*f126890aSEmmanuel Vadot
285*f126890aSEmmanuel Vadot&i2c10 {
286*f126890aSEmmanuel Vadot	/* SMB_BMC_ETH2_LVC3 */
287*f126890aSEmmanuel Vadot	status = "okay";
288*f126890aSEmmanuel Vadot};
289*f126890aSEmmanuel Vadot
290*f126890aSEmmanuel Vadot&i2c11 {
291*f126890aSEmmanuel Vadot	/* SMB_BMC_MGMT_LVC3 */
292*f126890aSEmmanuel Vadot	status = "okay";
293*f126890aSEmmanuel Vadot
294*f126890aSEmmanuel Vadot	at24@50 {
295*f126890aSEmmanuel Vadot		compatible = "atmel,24c64";
296*f126890aSEmmanuel Vadot		reg = <0x50>;
297*f126890aSEmmanuel Vadot		pagesize = <32>;
298*f126890aSEmmanuel Vadot		size = <8192>;
299*f126890aSEmmanuel Vadot		address-width = <16>;
300*f126890aSEmmanuel Vadot	};
301*f126890aSEmmanuel Vadot};
302*f126890aSEmmanuel Vadot
303*f126890aSEmmanuel Vadot&i2c12 {
304*f126890aSEmmanuel Vadot	/* SMB_BMC_FAULT_EXP_LVC3 */
305*f126890aSEmmanuel Vadot	status = "okay";
306*f126890aSEmmanuel Vadot};
307*f126890aSEmmanuel Vadot
308*f126890aSEmmanuel Vadot&i2c13 {
309*f126890aSEmmanuel Vadot	/* SMB_PCIE2_STBY_LVC3 */
310*f126890aSEmmanuel Vadot	status = "okay";
311*f126890aSEmmanuel Vadot};
312