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