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