xref: /freebsd/sys/contrib/device-tree/src/arm/aspeed/aspeed-bmc-asrock-romed8hm3.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 = "ASRock ROMED8HM3 BMC v1.00";
10*f126890aSEmmanuel Vadot	compatible = "asrock,romed8hm3-bmc", "aspeed,ast2500";
11*f126890aSEmmanuel Vadot
12*f126890aSEmmanuel Vadot	aliases {
13*f126890aSEmmanuel Vadot		serial4 = &uart5;
14*f126890aSEmmanuel Vadot	};
15*f126890aSEmmanuel Vadot
16*f126890aSEmmanuel Vadot	chosen {
17*f126890aSEmmanuel Vadot		stdout-path = &uart5;
18*f126890aSEmmanuel Vadot		bootargs = "console=tty0 console=ttyS4,115200 earlycon";
19*f126890aSEmmanuel Vadot	};
20*f126890aSEmmanuel Vadot
21*f126890aSEmmanuel Vadot	memory@80000000 {
22*f126890aSEmmanuel Vadot		reg = <0x80000000 0x20000000>;
23*f126890aSEmmanuel Vadot	};
24*f126890aSEmmanuel Vadot
25*f126890aSEmmanuel Vadot	leds {
26*f126890aSEmmanuel Vadot		compatible = "gpio-leds";
27*f126890aSEmmanuel Vadot
28*f126890aSEmmanuel Vadot		heartbeat {
29*f126890aSEmmanuel Vadot			gpios = <&gpio ASPEED_GPIO(H, 6) GPIO_ACTIVE_LOW>;
30*f126890aSEmmanuel Vadot			linux,default-trigger = "timer";
31*f126890aSEmmanuel Vadot		};
32*f126890aSEmmanuel Vadot
33*f126890aSEmmanuel Vadot		system-fault {
34*f126890aSEmmanuel Vadot			gpios = <&gpio ASPEED_GPIO(Z, 2) GPIO_ACTIVE_HIGH>;
35*f126890aSEmmanuel Vadot			panic-indicator;
36*f126890aSEmmanuel Vadot		};
37*f126890aSEmmanuel Vadot	};
38*f126890aSEmmanuel Vadot
39*f126890aSEmmanuel Vadot	iio-hwmon {
40*f126890aSEmmanuel Vadot		compatible = "iio-hwmon";
41*f126890aSEmmanuel Vadot		io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>,
42*f126890aSEmmanuel Vadot			<&adc 4>, <&adc 5>, <&adc 6>, <&adc 7>,
43*f126890aSEmmanuel Vadot			<&adc 8>, <&adc 9>, <&adc 10>, <&adc 11>,
44*f126890aSEmmanuel Vadot			<&adc 12>, <&adc 13>, <&adc 14>, <&adc 15>;
45*f126890aSEmmanuel Vadot	};
46*f126890aSEmmanuel Vadot};
47*f126890aSEmmanuel Vadot
48*f126890aSEmmanuel Vadot&fmc {
49*f126890aSEmmanuel Vadot	status = "okay";
50*f126890aSEmmanuel Vadot	flash@0 {
51*f126890aSEmmanuel Vadot		status = "okay";
52*f126890aSEmmanuel Vadot		m25p,fast-read;
53*f126890aSEmmanuel Vadot		label = "bmc";
54*f126890aSEmmanuel Vadot		spi-max-frequency = <50000000>; /* 50 MHz */
55*f126890aSEmmanuel Vadot#include "openbmc-flash-layout-64.dtsi"
56*f126890aSEmmanuel Vadot	};
57*f126890aSEmmanuel Vadot};
58*f126890aSEmmanuel Vadot
59*f126890aSEmmanuel Vadot&uart5 {
60*f126890aSEmmanuel Vadot	status = "okay";
61*f126890aSEmmanuel Vadot};
62*f126890aSEmmanuel Vadot
63*f126890aSEmmanuel Vadot&vuart {
64*f126890aSEmmanuel Vadot	status = "okay";
65*f126890aSEmmanuel Vadot	aspeed,lpc-io-reg = <0x2f8>;
66*f126890aSEmmanuel Vadot	aspeed,lpc-interrupts = <3 IRQ_TYPE_LEVEL_HIGH>;
67*f126890aSEmmanuel Vadot};
68*f126890aSEmmanuel Vadot
69*f126890aSEmmanuel Vadot&mac0 {
70*f126890aSEmmanuel Vadot	status = "okay";
71*f126890aSEmmanuel Vadot
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&i2c0 {
77*f126890aSEmmanuel Vadot	status = "okay";
78*f126890aSEmmanuel Vadot
79*f126890aSEmmanuel Vadot	/* inlet temp sensor */
80*f126890aSEmmanuel Vadot	w83773g@4c {
81*f126890aSEmmanuel Vadot		compatible = "nuvoton,w83773g";
82*f126890aSEmmanuel Vadot		reg = <0x4c>;
83*f126890aSEmmanuel Vadot	};
84*f126890aSEmmanuel Vadot};
85*f126890aSEmmanuel Vadot
86*f126890aSEmmanuel Vadot&i2c1 {
87*f126890aSEmmanuel Vadot	status = "okay";
88*f126890aSEmmanuel Vadot};
89*f126890aSEmmanuel Vadot
90*f126890aSEmmanuel Vadot&i2c2 {
91*f126890aSEmmanuel Vadot	status = "okay";
92*f126890aSEmmanuel Vadot
93*f126890aSEmmanuel Vadot	/* IPB temp sensor */
94*f126890aSEmmanuel Vadot	w83773g@4c {
95*f126890aSEmmanuel Vadot		compatible = "nuvoton,w83773g";
96*f126890aSEmmanuel Vadot		reg = <0x4c>;
97*f126890aSEmmanuel Vadot	};
98*f126890aSEmmanuel Vadot
99*f126890aSEmmanuel Vadot	/* IPB PMIC */
100*f126890aSEmmanuel Vadot	lm25066@40 {
101*f126890aSEmmanuel Vadot		compatible = "lm25066";
102*f126890aSEmmanuel Vadot		reg = <0x40>;
103*f126890aSEmmanuel Vadot		shunt-resistor-micro-ohms = <1000>;
104*f126890aSEmmanuel Vadot	};
105*f126890aSEmmanuel Vadot
106*f126890aSEmmanuel Vadot	/* 12VSB PMIC */
107*f126890aSEmmanuel Vadot	lm25066@41 {
108*f126890aSEmmanuel Vadot		compatible = "lm25066";
109*f126890aSEmmanuel Vadot		reg = <0x41>;
110*f126890aSEmmanuel Vadot		shunt-resistor-micro-ohms = <10000>;
111*f126890aSEmmanuel Vadot	};
112*f126890aSEmmanuel Vadot};
113*f126890aSEmmanuel Vadot
114*f126890aSEmmanuel Vadot&i2c4 {
115*f126890aSEmmanuel Vadot	status = "okay";
116*f126890aSEmmanuel Vadot};
117*f126890aSEmmanuel Vadot
118*f126890aSEmmanuel Vadot&i2c5 {
119*f126890aSEmmanuel Vadot	status = "okay";
120*f126890aSEmmanuel Vadot};
121*f126890aSEmmanuel Vadot
122*f126890aSEmmanuel Vadot&i2c6 {
123*f126890aSEmmanuel Vadot	status = "okay";
124*f126890aSEmmanuel Vadot};
125*f126890aSEmmanuel Vadot
126*f126890aSEmmanuel Vadot&i2c7 {
127*f126890aSEmmanuel Vadot	status = "okay";
128*f126890aSEmmanuel Vadot
129*f126890aSEmmanuel Vadot	/* Baseboard FRU eeprom */
130*f126890aSEmmanuel Vadot	eeprom@50 {
131*f126890aSEmmanuel Vadot		compatible = "st,24c128", "atmel,24c128";
132*f126890aSEmmanuel Vadot		reg = <0x50>;
133*f126890aSEmmanuel Vadot		pagesize = <16>;
134*f126890aSEmmanuel Vadot	};
135*f126890aSEmmanuel Vadot};
136*f126890aSEmmanuel Vadot
137*f126890aSEmmanuel Vadot&i2c8 {
138*f126890aSEmmanuel Vadot	status = "okay";
139*f126890aSEmmanuel Vadot};
140*f126890aSEmmanuel Vadot
141*f126890aSEmmanuel Vadot&i2c9 {
142*f126890aSEmmanuel Vadot	status = "okay";
143*f126890aSEmmanuel Vadot};
144*f126890aSEmmanuel Vadot
145*f126890aSEmmanuel Vadot&video {
146*f126890aSEmmanuel Vadot	status = "okay";
147*f126890aSEmmanuel Vadot};
148*f126890aSEmmanuel Vadot
149*f126890aSEmmanuel Vadot&vhub {
150*f126890aSEmmanuel Vadot	status = "okay";
151*f126890aSEmmanuel Vadot};
152*f126890aSEmmanuel Vadot
153*f126890aSEmmanuel Vadot&lpc_ctrl {
154*f126890aSEmmanuel Vadot	status = "okay";
155*f126890aSEmmanuel Vadot};
156*f126890aSEmmanuel Vadot
157*f126890aSEmmanuel Vadot&lpc_snoop {
158*f126890aSEmmanuel Vadot	status = "okay";
159*f126890aSEmmanuel Vadot	snoop-ports = <0x80>;
160*f126890aSEmmanuel Vadot};
161*f126890aSEmmanuel Vadot
162*f126890aSEmmanuel Vadot&kcs3 {
163*f126890aSEmmanuel Vadot	status = "okay";
164*f126890aSEmmanuel Vadot	aspeed,lpc-io-reg = <0xca2>;
165*f126890aSEmmanuel Vadot};
166*f126890aSEmmanuel Vadot
167*f126890aSEmmanuel Vadot&pwm_tacho {
168*f126890aSEmmanuel Vadot	status = "okay";
169*f126890aSEmmanuel Vadot	pinctrl-names = "default";
170*f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_pwm3_default
171*f126890aSEmmanuel Vadot		&pinctrl_pwm4_default
172*f126890aSEmmanuel Vadot		&pinctrl_pwm5_default
173*f126890aSEmmanuel Vadot		&pinctrl_pwm6_default>;
174*f126890aSEmmanuel Vadot
175*f126890aSEmmanuel Vadot	fan@3 {
176*f126890aSEmmanuel Vadot		reg = <0x03>;
177*f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x03 0x0b>;
178*f126890aSEmmanuel Vadot	};
179*f126890aSEmmanuel Vadot
180*f126890aSEmmanuel Vadot	fan@4 {
181*f126890aSEmmanuel Vadot		reg = <0x04>;
182*f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x04 0x0c>;
183*f126890aSEmmanuel Vadot	};
184*f126890aSEmmanuel Vadot
185*f126890aSEmmanuel Vadot	fan@5 {
186*f126890aSEmmanuel Vadot		reg = <0x05>;
187*f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x05 0x0d>;
188*f126890aSEmmanuel Vadot	};
189*f126890aSEmmanuel Vadot
190*f126890aSEmmanuel Vadot	fan@6 {
191*f126890aSEmmanuel Vadot		reg = <0x06>;
192*f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x06 0x0e>;
193*f126890aSEmmanuel Vadot	};
194*f126890aSEmmanuel Vadot};
195*f126890aSEmmanuel Vadot
196*f126890aSEmmanuel Vadot&gpio {
197*f126890aSEmmanuel Vadot	status = "okay";
198*f126890aSEmmanuel Vadot	gpio-line-names =
199*f126890aSEmmanuel Vadot		/*  A */ "LOCATORLED_STATUS_N", "BMC_MAC2_INTB", "NMI_BTN_N", "BMC_NMI",
200*f126890aSEmmanuel Vadot			"", "", "", "",
201*f126890aSEmmanuel Vadot		/*  B */ "POST_COMPLETE_N", "", "", "", "", "", "", "",
202*f126890aSEmmanuel Vadot		/*  C */ "", "", "", "", "PCIE_HP_SEL_N", "PCIE_SATA_SEL_N", "LOCATORBTN", "",
203*f126890aSEmmanuel Vadot		/*  D */ "BMC_PSIN", "BMC_PSOUT", "BMC_RESETCON", "RESETCON",
204*f126890aSEmmanuel Vadot			"", "", "", "PSU_FAN_FAIL_N",
205*f126890aSEmmanuel Vadot		/*  E */ "", "", "", "", "", "", "", "",
206*f126890aSEmmanuel Vadot		/*  F */ "NIC_PWR_GOOD", "PRSNTB0", "PRSNTB1", "PRSNTB2",
207*f126890aSEmmanuel Vadot			"PRSNTB3", "", "3VSB_PCIE1_PG", "12V_PCIE1_PG",
208*f126890aSEmmanuel Vadot		/*  G */ "HWM_BAT_EN", "CHASSIS_ID0", "CHASSIS_ID1", "CHASSIS_ID2",
209*f126890aSEmmanuel Vadot			"BMC_ALERT1_N_R", "BMC_ALERT2_N_R", "BMC_ALERT3_N", "BMC_ALERT4_N",
210*f126890aSEmmanuel Vadot		/*  H */ "X24_C1_PRSNT", "X24_C2_PRSNT", "X24_C3_PRSNT", "FM_MEM_THERM_EVENT_BMC_R_N",
211*f126890aSEmmanuel Vadot			"FACMODE", "BMC_RTCRST", "BMC_HB_LED_N", "BMC_CASEOPEN",
212*f126890aSEmmanuel Vadot		/*  I */ "", "", "", "", "", "", "", "",
213*f126890aSEmmanuel Vadot		/*  J */ "BMC_READY", "BMC_PCH_BIOS_CS_N", "", "P0_MA_DDR_QS_CS_N",
214*f126890aSEmmanuel Vadot			"", "", "", "",
215*f126890aSEmmanuel Vadot		/*  K */ "", "", "", "", "", "", "", "",
216*f126890aSEmmanuel Vadot		/*  L */ "", "", "", "", "", "", "", "",
217*f126890aSEmmanuel Vadot		/*  M */ "", "", "MEZZ_PWRBRK_N", "OCP_HP_RST_EN",
218*f126890aSEmmanuel Vadot			"MAIN_PWR_EN_G", "BMC_MAIN_EN", "AUX_PWR_EN_G", "BMC_AUX_EN",
219*f126890aSEmmanuel Vadot		/*  N */ "", "", "", "", "", "", "", "",
220*f126890aSEmmanuel Vadot		/*  O */ "", "", "", "", "", "", "", "",
221*f126890aSEmmanuel Vadot		/*  P */ "", "", "", "", "", "", "", "",
222*f126890aSEmmanuel Vadot		/*  Q */ "", "", "", "",
223*f126890aSEmmanuel Vadot			"BMC_SMB_PRESENT_1_N", "BMC_SMB_PRESENT_2_N",
224*f126890aSEmmanuel Vadot			"BMC_SMB_PRESENT_3_N", "BMC_PCIE_WAKE_N",
225*f126890aSEmmanuel Vadot		/*  R */ "", "", "THERMALTRIP_CLEAR_N", "", "", "", "", "",
226*f126890aSEmmanuel Vadot		/*  S */ "", "", "", "", "", "", "", "",
227*f126890aSEmmanuel Vadot		/*  T */ "", "", "", "", "", "", "", "",
228*f126890aSEmmanuel Vadot		/*  U */ "", "", "", "", "", "", "", "",
229*f126890aSEmmanuel Vadot		/*  V */ "", "", "", "", "", "", "", "",
230*f126890aSEmmanuel Vadot		/*  W */ "", "", "", "", "", "", "", "",
231*f126890aSEmmanuel Vadot		/*  X */ "", "", "", "", "", "", "", "",
232*f126890aSEmmanuel Vadot		/*  Y */ "SLP_S3", "SLP_S4_S5", "NODE_ID_1", "NODE_ID_2", "", "", "", "",
233*f126890aSEmmanuel Vadot		/*  Z */ "", "", "SYSTEM_FAULT_LED_N", "FAST_THROTTLE_N",
234*f126890aSEmmanuel Vadot			"", "", "", "",
235*f126890aSEmmanuel Vadot		/* AA */ "FM_CPU0_IBMC_THERMTRIP_N", "", "PROCHOT_L_G", "",
236*f126890aSEmmanuel Vadot			"", "", "", "",
237*f126890aSEmmanuel Vadot		/* AB */ "BMC_FORCE_SELFREFRESH", "PWRGD_OUT", "", "IRQ_BMC_PCH_SMI_LPC_N",
238*f126890aSEmmanuel Vadot			"", "", "", "",
239*f126890aSEmmanuel Vadot		/* AC */ "", "", "", "", "", "", "", "";
240*f126890aSEmmanuel Vadot};
241*f126890aSEmmanuel Vadot
242*f126890aSEmmanuel Vadot&adc {
243*f126890aSEmmanuel Vadot	status = "okay";
244*f126890aSEmmanuel Vadot	pinctrl-names = "default";
245*f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_adc0_default
246*f126890aSEmmanuel Vadot		&pinctrl_adc1_default
247*f126890aSEmmanuel Vadot		&pinctrl_adc2_default
248*f126890aSEmmanuel Vadot		&pinctrl_adc3_default
249*f126890aSEmmanuel Vadot		&pinctrl_adc4_default
250*f126890aSEmmanuel Vadot		&pinctrl_adc5_default
251*f126890aSEmmanuel Vadot		&pinctrl_adc6_default
252*f126890aSEmmanuel Vadot		&pinctrl_adc7_default
253*f126890aSEmmanuel Vadot		&pinctrl_adc8_default
254*f126890aSEmmanuel Vadot		&pinctrl_adc9_default
255*f126890aSEmmanuel Vadot		&pinctrl_adc10_default
256*f126890aSEmmanuel Vadot		&pinctrl_adc11_default
257*f126890aSEmmanuel Vadot		&pinctrl_adc12_default
258*f126890aSEmmanuel Vadot		&pinctrl_adc13_default
259*f126890aSEmmanuel Vadot		&pinctrl_adc14_default
260*f126890aSEmmanuel Vadot		&pinctrl_adc15_default>;
261*f126890aSEmmanuel Vadot};
262