1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0+
2f126890aSEmmanuel Vadot/*
3f126890aSEmmanuel Vadot * Device Tree file for Lenovo Hr855xg2 platform
4f126890aSEmmanuel Vadot *
5f126890aSEmmanuel Vadot * Copyright (C) 2019-present Lenovo
6f126890aSEmmanuel Vadot */
7f126890aSEmmanuel Vadot
8f126890aSEmmanuel Vadot/dts-v1/;
9f126890aSEmmanuel Vadot
10f126890aSEmmanuel Vadot#include "aspeed-g5.dtsi"
11f126890aSEmmanuel Vadot#include <dt-bindings/gpio/aspeed-gpio.h>
12f126890aSEmmanuel Vadot
13f126890aSEmmanuel Vadot/ {
14f126890aSEmmanuel Vadot	model = "HR855XG2 BMC";
15f126890aSEmmanuel Vadot	compatible = "lenovo,hr855xg2-bmc", "aspeed,ast2500";
16f126890aSEmmanuel Vadot
17f126890aSEmmanuel Vadot	aliases {
18f126890aSEmmanuel Vadot		i2c14 = &i2c_riser1;
19f126890aSEmmanuel Vadot		i2c15 = &i2c_riser2;
20f126890aSEmmanuel Vadot		i2c16 = &i2c_riser3;
21f126890aSEmmanuel Vadot		i2c17 = &i2c_M2;
22f126890aSEmmanuel Vadot		i2c18 = &channel_0;
23f126890aSEmmanuel Vadot		i2c19 = &channel_1;
24f126890aSEmmanuel Vadot		i2c20 = &channel_2;
25f126890aSEmmanuel Vadot		i2c21 = &channel_3;
26f126890aSEmmanuel Vadot	};
27f126890aSEmmanuel Vadot
28f126890aSEmmanuel Vadot	chosen {
29f126890aSEmmanuel Vadot		stdout-path = &uart5;
30f126890aSEmmanuel Vadot		bootargs = "console=tty0 console=ttyS4,115200 earlycon";
31f126890aSEmmanuel Vadot	};
32f126890aSEmmanuel Vadot
33f126890aSEmmanuel Vadot	memory@80000000 {
34f126890aSEmmanuel Vadot		device_type = "memory";
35f126890aSEmmanuel Vadot		reg = <0x80000000 0x20000000>;
36f126890aSEmmanuel Vadot	};
37f126890aSEmmanuel Vadot
38f126890aSEmmanuel Vadot	reserved-memory {
39f126890aSEmmanuel Vadot		#address-cells = <1>;
40f126890aSEmmanuel Vadot		#size-cells = <1>;
41f126890aSEmmanuel Vadot		ranges;
42f126890aSEmmanuel Vadot
43f126890aSEmmanuel Vadot		flash_memory: region@98000000 {
44f126890aSEmmanuel Vadot			no-map;
45f126890aSEmmanuel Vadot			reg = <0x98000000 0x00100000>; /* 1M */
46f126890aSEmmanuel Vadot		};
47f126890aSEmmanuel Vadot
48f126890aSEmmanuel Vadot		gfx_memory: framebuffer {
49f126890aSEmmanuel Vadot			size = <0x01000000>;
50f126890aSEmmanuel Vadot			alignment = <0x01000000>;
51f126890aSEmmanuel Vadot			compatible = "shared-dma-pool";
52f126890aSEmmanuel Vadot			reusable;
53f126890aSEmmanuel Vadot		};
54f126890aSEmmanuel Vadot	};
55f126890aSEmmanuel Vadot
56f126890aSEmmanuel Vadot	leds {
57f126890aSEmmanuel Vadot		compatible = "gpio-leds";
58f126890aSEmmanuel Vadot
59f126890aSEmmanuel Vadot		heartbeat {
60f126890aSEmmanuel Vadot			gpios = <&gpio ASPEED_GPIO(C, 7) GPIO_ACTIVE_LOW>;
61f126890aSEmmanuel Vadot		};
62f126890aSEmmanuel Vadot
63f126890aSEmmanuel Vadot		fault {
64f126890aSEmmanuel Vadot			gpios = <&gpio ASPEED_GPIO(G, 3) GPIO_ACTIVE_LOW>;
65f126890aSEmmanuel Vadot		};
66f126890aSEmmanuel Vadot	};
67f126890aSEmmanuel Vadot
68f126890aSEmmanuel Vadot	iio-hwmon {
69f126890aSEmmanuel Vadot		compatible = "iio-hwmon";
70f126890aSEmmanuel Vadot		io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>,
71f126890aSEmmanuel Vadot		<&adc 4>, <&adc 5>, <&adc 6>, <&adc 7>,
72f126890aSEmmanuel Vadot		<&adc 8>, <&adc 9>, <&adc 10>,<&adc 11>,
73f126890aSEmmanuel Vadot		<&adc 12>,<&adc 13>,<&adc 14>;
74f126890aSEmmanuel Vadot	};
75f126890aSEmmanuel Vadot
76f126890aSEmmanuel Vadot	iio-hwmon-battery {
77f126890aSEmmanuel Vadot		compatible = "iio-hwmon";
78f126890aSEmmanuel Vadot		io-channels = <&adc 15>;
79f126890aSEmmanuel Vadot	};
80f126890aSEmmanuel Vadot
81f126890aSEmmanuel Vadot};
82f126890aSEmmanuel Vadot
83f126890aSEmmanuel Vadot&fmc {
84f126890aSEmmanuel Vadot	status = "okay";
85f126890aSEmmanuel Vadot	flash@0 {
86f126890aSEmmanuel Vadot		status = "okay";
87f126890aSEmmanuel Vadot		m25p,fast-read;
88f126890aSEmmanuel Vadot		label = "bmc";
89f126890aSEmmanuel Vadot		spi-max-frequency = <50000000>;
90f126890aSEmmanuel Vadot#include "openbmc-flash-layout.dtsi"
91f126890aSEmmanuel Vadot	};
92f126890aSEmmanuel Vadot};
93f126890aSEmmanuel Vadot
94f126890aSEmmanuel Vadot&lpc_ctrl {
95f126890aSEmmanuel Vadot	status = "okay";
96f126890aSEmmanuel Vadot	memory-region = <&flash_memory>;
97f126890aSEmmanuel Vadot	flash = <&spi1>;
98f126890aSEmmanuel Vadot};
99f126890aSEmmanuel Vadot
100f126890aSEmmanuel Vadot&lpc_snoop {
101f126890aSEmmanuel Vadot	status = "okay";
102f126890aSEmmanuel Vadot	snoop-ports = <0x80>;
103f126890aSEmmanuel Vadot};
104f126890aSEmmanuel Vadot
105f126890aSEmmanuel Vadot&uart1 {
106f126890aSEmmanuel Vadot	status = "okay";
107f126890aSEmmanuel Vadot	pinctrl-names = "default";
108f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_txd1_default
109f126890aSEmmanuel Vadot			&pinctrl_rxd1_default>;
110f126890aSEmmanuel Vadot};
111f126890aSEmmanuel Vadot
112f126890aSEmmanuel Vadot&uart2 {
113f126890aSEmmanuel Vadot	/* Rear RS-232 connector */
114f126890aSEmmanuel Vadot	status = "okay";
115f126890aSEmmanuel Vadot	pinctrl-names = "default";
116f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_txd2_default
117f126890aSEmmanuel Vadot			&pinctrl_rxd2_default
118f126890aSEmmanuel Vadot			&pinctrl_nrts2_default
119f126890aSEmmanuel Vadot			&pinctrl_ndtr2_default
120f126890aSEmmanuel Vadot			&pinctrl_ndsr2_default
121f126890aSEmmanuel Vadot			&pinctrl_ncts2_default
122f126890aSEmmanuel Vadot			&pinctrl_ndcd2_default
123f126890aSEmmanuel Vadot			&pinctrl_nri2_default>;
124f126890aSEmmanuel Vadot};
125f126890aSEmmanuel Vadot
126f126890aSEmmanuel Vadot&uart3 {
127f126890aSEmmanuel Vadot	status = "okay";
128f126890aSEmmanuel Vadot};
129f126890aSEmmanuel Vadot
130f126890aSEmmanuel Vadot&uart5 {
131f126890aSEmmanuel Vadot	status = "okay";
132f126890aSEmmanuel Vadot};
133f126890aSEmmanuel Vadot
134f126890aSEmmanuel Vadot&ibt {
135f126890aSEmmanuel Vadot	status = "okay";
136f126890aSEmmanuel Vadot};
137f126890aSEmmanuel Vadot
138f126890aSEmmanuel Vadot&mac0 {
139f126890aSEmmanuel Vadot	status = "okay";
140f126890aSEmmanuel Vadot	pinctrl-names = "default";
141f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_rmii1_default>;
142f126890aSEmmanuel Vadot	clocks = <&syscon ASPEED_CLK_GATE_MAC1CLK>,
143f126890aSEmmanuel Vadot		 <&syscon ASPEED_CLK_MAC1RCLK>;
144f126890aSEmmanuel Vadot	clock-names = "MACCLK", "RCLK";
145f126890aSEmmanuel Vadot	use-ncsi;
146f126890aSEmmanuel Vadot};
147f126890aSEmmanuel Vadot
148f126890aSEmmanuel Vadot&mac1 {
149f126890aSEmmanuel Vadot	status = "okay";
150f126890aSEmmanuel Vadot	pinctrl-names = "default";
151f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_rgmii2_default &pinctrl_mdio2_default>;
152f126890aSEmmanuel Vadot};
153f126890aSEmmanuel Vadot
154f126890aSEmmanuel Vadot&adc{
155f126890aSEmmanuel Vadot	status = "okay";
156f126890aSEmmanuel Vadot	pinctrl-names = "default";
157f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_adc0_default
158f126890aSEmmanuel Vadot			&pinctrl_adc1_default
159f126890aSEmmanuel Vadot			&pinctrl_adc2_default
160f126890aSEmmanuel Vadot			&pinctrl_adc3_default
161f126890aSEmmanuel Vadot			&pinctrl_adc4_default
162f126890aSEmmanuel Vadot			&pinctrl_adc5_default
163f126890aSEmmanuel Vadot			&pinctrl_adc6_default
164f126890aSEmmanuel Vadot			&pinctrl_adc7_default
165f126890aSEmmanuel Vadot			&pinctrl_adc8_default
166f126890aSEmmanuel Vadot			&pinctrl_adc9_default
167f126890aSEmmanuel Vadot			&pinctrl_adc10_default
168f126890aSEmmanuel Vadot			&pinctrl_adc11_default
169f126890aSEmmanuel Vadot			&pinctrl_adc12_default
170f126890aSEmmanuel Vadot			&pinctrl_adc13_default
171f126890aSEmmanuel Vadot			&pinctrl_adc14_default
172f126890aSEmmanuel Vadot			&pinctrl_adc15_default>;
173f126890aSEmmanuel Vadot};
174f126890aSEmmanuel Vadot
175f126890aSEmmanuel Vadot&i2c0 {
176f126890aSEmmanuel Vadot	status = "okay";
177f126890aSEmmanuel Vadot
178*aa1a8ff2SEmmanuel Vadot	i2c-mux@70 {
179f126890aSEmmanuel Vadot		compatible = "nxp,pca9545";
180f126890aSEmmanuel Vadot		reg = <0x70>;
181f126890aSEmmanuel Vadot		#address-cells = <1>;
182f126890aSEmmanuel Vadot		#size-cells = <0>;
183f126890aSEmmanuel Vadot
184f126890aSEmmanuel Vadot		i2c_riser1: i2c@0 {
185f126890aSEmmanuel Vadot			#address-cells = <1>;
186f126890aSEmmanuel Vadot			#size-cells = <0>;
187f126890aSEmmanuel Vadot			reg = <0>;
188f126890aSEmmanuel Vadot		};
189f126890aSEmmanuel Vadot
190f126890aSEmmanuel Vadot		i2c_riser2: i2c@1 {
191f126890aSEmmanuel Vadot			#address-cells = <1>;
192f126890aSEmmanuel Vadot			#size-cells = <0>;
193f126890aSEmmanuel Vadot			reg = <1>;
194f126890aSEmmanuel Vadot		};
195f126890aSEmmanuel Vadot
196f126890aSEmmanuel Vadot		i2c_riser3: i2c@2 {
197f126890aSEmmanuel Vadot			#address-cells = <1>;
198f126890aSEmmanuel Vadot			#size-cells = <0>;
199f126890aSEmmanuel Vadot			reg = <2>;
200f126890aSEmmanuel Vadot		};
201f126890aSEmmanuel Vadot
202f126890aSEmmanuel Vadot		i2c_M2: i2c@3 {
203f126890aSEmmanuel Vadot			#address-cells = <1>;
204f126890aSEmmanuel Vadot			#size-cells = <0>;
205f126890aSEmmanuel Vadot			reg = <3>;
206f126890aSEmmanuel Vadot		};
207f126890aSEmmanuel Vadot	};
208f126890aSEmmanuel Vadot};
209f126890aSEmmanuel Vadot
210f126890aSEmmanuel Vadot&i2c1 {
211f126890aSEmmanuel Vadot	status = "okay";
212f126890aSEmmanuel Vadot	bus-frequency = <90000>;
213f126890aSEmmanuel Vadot	HotSwap@10 {
214f126890aSEmmanuel Vadot		compatible = "adm1272";
215f126890aSEmmanuel Vadot		reg = <0x10>;
216f126890aSEmmanuel Vadot	};
217f126890aSEmmanuel Vadot
218f126890aSEmmanuel Vadot	VR@45 {
219f126890aSEmmanuel Vadot		compatible = "pmbus";
220f126890aSEmmanuel Vadot		reg = <0x45>;
221f126890aSEmmanuel Vadot	};
222f126890aSEmmanuel Vadot};
223f126890aSEmmanuel Vadot
224f126890aSEmmanuel Vadot&i2c2 {
225f126890aSEmmanuel Vadot	status = "okay";
226f126890aSEmmanuel Vadot};
227f126890aSEmmanuel Vadot
228f126890aSEmmanuel Vadot&i2c3 {
229f126890aSEmmanuel Vadot	status = "okay";
230*aa1a8ff2SEmmanuel Vadot	i2c-mux@70 {
231f126890aSEmmanuel Vadot		compatible = "nxp,pca9546";
232f126890aSEmmanuel Vadot		reg = <0x70>;
233f126890aSEmmanuel Vadot		#address-cells = <1>;
234f126890aSEmmanuel Vadot		#size-cells = <0>;
235f126890aSEmmanuel Vadot
236f126890aSEmmanuel Vadot		channel_0: i2c@0 {
237f126890aSEmmanuel Vadot			#address-cells = <1>;
238f126890aSEmmanuel Vadot			#size-cells = <0>;
239f126890aSEmmanuel Vadot			reg = <0>;
240f126890aSEmmanuel Vadot		};
241f126890aSEmmanuel Vadot
242f126890aSEmmanuel Vadot		channel_1: i2c@1 {
243f126890aSEmmanuel Vadot			#address-cells = <1>;
244f126890aSEmmanuel Vadot			#size-cells = <0>;
245f126890aSEmmanuel Vadot			reg = <1>;
246f126890aSEmmanuel Vadot		};
247f126890aSEmmanuel Vadot
248f126890aSEmmanuel Vadot		channel_2: i2c@2 {
249f126890aSEmmanuel Vadot			#address-cells = <1>;
250f126890aSEmmanuel Vadot			#size-cells = <0>;
251f126890aSEmmanuel Vadot			reg = <2>;
252f126890aSEmmanuel Vadot		};
253f126890aSEmmanuel Vadot
254f126890aSEmmanuel Vadot		channel_3: i2c@3 {
255f126890aSEmmanuel Vadot			#address-cells = <1>;
256f126890aSEmmanuel Vadot			#size-cells = <0>;
257f126890aSEmmanuel Vadot			reg = <3>;
258f126890aSEmmanuel Vadot		};
259f126890aSEmmanuel Vadot	};
260f126890aSEmmanuel Vadot};
261f126890aSEmmanuel Vadot
262f126890aSEmmanuel Vadot&i2c4 {
263f126890aSEmmanuel Vadot	status = "okay";
264f126890aSEmmanuel Vadot};
265f126890aSEmmanuel Vadot
266f126890aSEmmanuel Vadot&i2c5 {
267f126890aSEmmanuel Vadot	status = "okay";
268f126890aSEmmanuel Vadot};
269f126890aSEmmanuel Vadot
270f126890aSEmmanuel Vadot&i2c6 {
271f126890aSEmmanuel Vadot	status = "okay";
272f126890aSEmmanuel Vadot	/* temp1 */
273f126890aSEmmanuel Vadot	tmp75@49 {
274f126890aSEmmanuel Vadot		compatible = "national,lm75";
275f126890aSEmmanuel Vadot		reg = <0x49>;
276f126890aSEmmanuel Vadot	};
277f126890aSEmmanuel Vadot
278f126890aSEmmanuel Vadot	/* temp2 */
279f126890aSEmmanuel Vadot	tmp75@4d {
280f126890aSEmmanuel Vadot		compatible = "national,lm75";
281f126890aSEmmanuel Vadot		reg = <0x4d>;
282f126890aSEmmanuel Vadot	};
283f126890aSEmmanuel Vadot
284f126890aSEmmanuel Vadot	eeprom@54 {
285f126890aSEmmanuel Vadot		compatible = "atmel,24c256";
286f126890aSEmmanuel Vadot		reg = <0x54>;
287f126890aSEmmanuel Vadot		pagesize = <16>;
288f126890aSEmmanuel Vadot	};
289f126890aSEmmanuel Vadot};
290f126890aSEmmanuel Vadot
291f126890aSEmmanuel Vadot&i2c7 {
292f126890aSEmmanuel Vadot	status = "okay";
293f126890aSEmmanuel Vadot};
294f126890aSEmmanuel Vadot
295f126890aSEmmanuel Vadot&i2c8 {
296f126890aSEmmanuel Vadot	status = "okay";
297f126890aSEmmanuel Vadot};
298f126890aSEmmanuel Vadot
299f126890aSEmmanuel Vadot&i2c9 {
300f126890aSEmmanuel Vadot	status = "okay";
301f126890aSEmmanuel Vadot};
302f126890aSEmmanuel Vadot
303f126890aSEmmanuel Vadot&i2c10 {
304f126890aSEmmanuel Vadot	status = "okay";
305f126890aSEmmanuel Vadot};
306f126890aSEmmanuel Vadot
307f126890aSEmmanuel Vadot&i2c11 {
308f126890aSEmmanuel Vadot	status = "okay";
309f126890aSEmmanuel Vadot};
310f126890aSEmmanuel Vadot
311f126890aSEmmanuel Vadot&i2c13 {
312f126890aSEmmanuel Vadot	status = "okay";
313f126890aSEmmanuel Vadot};
314f126890aSEmmanuel Vadot
315f126890aSEmmanuel Vadot&ehci1 {
316f126890aSEmmanuel Vadot	status = "okay";
317f126890aSEmmanuel Vadot};
318f126890aSEmmanuel Vadot
319f126890aSEmmanuel Vadot&uhci {
320f126890aSEmmanuel Vadot	status = "okay";
321f126890aSEmmanuel Vadot};
322f126890aSEmmanuel Vadot
323f126890aSEmmanuel Vadot&gfx {
324f126890aSEmmanuel Vadot	status = "okay";
325f126890aSEmmanuel Vadot	memory-region = <&gfx_memory>;
326f126890aSEmmanuel Vadot};
327f126890aSEmmanuel Vadot
328f126890aSEmmanuel Vadot&pwm_tacho {
329f126890aSEmmanuel Vadot	status = "okay";
330f126890aSEmmanuel Vadot	pinctrl-names = "default";
331f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_pwm0_default
332f126890aSEmmanuel Vadot	&pinctrl_pwm1_default
333f126890aSEmmanuel Vadot	&pinctrl_pwm2_default
334f126890aSEmmanuel Vadot	&pinctrl_pwm3_default
335f126890aSEmmanuel Vadot	&pinctrl_pwm4_default
336f126890aSEmmanuel Vadot	&pinctrl_pwm5_default
337f126890aSEmmanuel Vadot	&pinctrl_pwm6_default
338f126890aSEmmanuel Vadot	&pinctrl_pwm7_default>;
339f126890aSEmmanuel Vadot
340f126890aSEmmanuel Vadot	fan@0 {
341f126890aSEmmanuel Vadot		reg = <0x00>;
342f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x00>;
343f126890aSEmmanuel Vadot	};
344f126890aSEmmanuel Vadot
345f126890aSEmmanuel Vadot	fan@1 {
346f126890aSEmmanuel Vadot		reg = <0x00>;
347f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x01>;
348f126890aSEmmanuel Vadot	};
349f126890aSEmmanuel Vadot
350f126890aSEmmanuel Vadot	fan@2 {
351f126890aSEmmanuel Vadot		reg = <0x01>;
352f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x02>;
353f126890aSEmmanuel Vadot	};
354f126890aSEmmanuel Vadot
355f126890aSEmmanuel Vadot	fan@3 {
356f126890aSEmmanuel Vadot		reg = <0x01>;
357f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x03>;
358f126890aSEmmanuel Vadot	};
359f126890aSEmmanuel Vadot
360f126890aSEmmanuel Vadot	fan@4 {
361f126890aSEmmanuel Vadot		reg = <0x02>;
362f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x04>;
363f126890aSEmmanuel Vadot	};
364f126890aSEmmanuel Vadot
365f126890aSEmmanuel Vadot	fan@5 {
366f126890aSEmmanuel Vadot		reg = <0x02>;
367f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x05>;
368f126890aSEmmanuel Vadot	};
369f126890aSEmmanuel Vadot
370f126890aSEmmanuel Vadot	fan@6 {
371f126890aSEmmanuel Vadot		reg = <0x03>;
372f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x06>;
373f126890aSEmmanuel Vadot	};
374f126890aSEmmanuel Vadot
375f126890aSEmmanuel Vadot	fan@7 {
376f126890aSEmmanuel Vadot		reg = <0x03>;
377f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x07>;
378f126890aSEmmanuel Vadot	};
379f126890aSEmmanuel Vadot
380f126890aSEmmanuel Vadot	fan@8 {
381f126890aSEmmanuel Vadot		reg = <0x04>;
382f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x08>;
383f126890aSEmmanuel Vadot	};
384f126890aSEmmanuel Vadot
385f126890aSEmmanuel Vadot	fan@9 {
386f126890aSEmmanuel Vadot		reg = <0x04>;
387f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x09>;
388f126890aSEmmanuel Vadot	};
389f126890aSEmmanuel Vadot
390f126890aSEmmanuel Vadot	fan@10 {
391f126890aSEmmanuel Vadot		reg = <0x05>;
392f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x0a>;
393f126890aSEmmanuel Vadot	};
394f126890aSEmmanuel Vadot
395f126890aSEmmanuel Vadot	fan@11 {
396f126890aSEmmanuel Vadot		reg = <0x05>;
397f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x0b>;
398f126890aSEmmanuel Vadot	};
399f126890aSEmmanuel Vadot
400f126890aSEmmanuel Vadot	fan@12 {
401f126890aSEmmanuel Vadot		reg = <0x06>;
402f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x0c>;
403f126890aSEmmanuel Vadot	};
404f126890aSEmmanuel Vadot
405f126890aSEmmanuel Vadot	fan@13 {
406f126890aSEmmanuel Vadot		reg = <0x06>;
407f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x0d>;
408f126890aSEmmanuel Vadot	};
409f126890aSEmmanuel Vadot
410f126890aSEmmanuel Vadot	fan@14 {
411f126890aSEmmanuel Vadot		reg = <0x07>;
412f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x0e>;
413f126890aSEmmanuel Vadot	};
414f126890aSEmmanuel Vadot
415f126890aSEmmanuel Vadot	fan@15 {
416f126890aSEmmanuel Vadot		reg = <0x07>;
417f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x0f>;
418f126890aSEmmanuel Vadot	};
419f126890aSEmmanuel Vadot
420f126890aSEmmanuel Vadot	fan@16 {
421f126890aSEmmanuel Vadot		reg = <0x07>;
422f126890aSEmmanuel Vadot		aspeed,fan-tach-ch = /bits/ 8 <0x0f>;
423f126890aSEmmanuel Vadot	};
424f126890aSEmmanuel Vadot};
425f126890aSEmmanuel Vadot
426f126890aSEmmanuel Vadot&gpio {
427f126890aSEmmanuel Vadot
428f126890aSEmmanuel Vadot	pin_gpio_a1 {
429f126890aSEmmanuel Vadot		gpio-hog;
430f126890aSEmmanuel Vadot		gpios = <ASPEED_GPIO(A, 1) GPIO_ACTIVE_LOW>;
431f126890aSEmmanuel Vadot		output-high;
432f126890aSEmmanuel Vadot		line-name = "BMC_EMMC_RST_N";
433f126890aSEmmanuel Vadot	};
434f126890aSEmmanuel Vadot
435f126890aSEmmanuel Vadot	pin_gpio_a3 {
436f126890aSEmmanuel Vadot		gpio-hog;
437f126890aSEmmanuel Vadot		gpios = <ASPEED_GPIO(A, 3) GPIO_ACTIVE_LOW>;
438f126890aSEmmanuel Vadot		output-high;
439f126890aSEmmanuel Vadot		line-name = "PCH_PWROK_BMC_FPGA";
440f126890aSEmmanuel Vadot	};
441f126890aSEmmanuel Vadot
442f126890aSEmmanuel Vadot	pin_gpio_b5 {
443f126890aSEmmanuel Vadot		gpio-hog;
444f126890aSEmmanuel Vadot		gpios = <ASPEED_GPIO(B, 5) GPIO_ACTIVE_HIGH>;
445f126890aSEmmanuel Vadot		output-high;
446f126890aSEmmanuel Vadot		line-name = "IRQ_BMC_PCH_SMI_LPC_N";
447f126890aSEmmanuel Vadot	};
448f126890aSEmmanuel Vadot
449f126890aSEmmanuel Vadot	pin_gpio_b7 {
450f126890aSEmmanuel Vadot		gpio-hog;
451f126890aSEmmanuel Vadot		gpios = <ASPEED_GPIO(B, 7) GPIO_ACTIVE_LOW>;
452f126890aSEmmanuel Vadot		output-low;
453f126890aSEmmanuel Vadot		line-name = "CPU_SM_WP";
454f126890aSEmmanuel Vadot	};
455f126890aSEmmanuel Vadot
456f126890aSEmmanuel Vadot	pin_gpio_e0 {
457f126890aSEmmanuel Vadot		gpio-hog;
458f126890aSEmmanuel Vadot		gpios = <ASPEED_GPIO(E, 0) GPIO_ACTIVE_HIGH>;
459f126890aSEmmanuel Vadot		input;
460f126890aSEmmanuel Vadot		line-name = "PDB_PSU_SEL";
461f126890aSEmmanuel Vadot	};
462f126890aSEmmanuel Vadot
463f126890aSEmmanuel Vadot	pin_gpio_e2 {
464f126890aSEmmanuel Vadot		gpio-hog;
465f126890aSEmmanuel Vadot		gpios = <ASPEED_GPIO(E, 2) GPIO_ACTIVE_HIGH>;
466f126890aSEmmanuel Vadot		output-high;
467f126890aSEmmanuel Vadot		line-name = "LOCATOR_LED_N";
468f126890aSEmmanuel Vadot	};
469f126890aSEmmanuel Vadot
470f126890aSEmmanuel Vadot	pin_gpio_e5 {
471f126890aSEmmanuel Vadot		gpio-hog;
472f126890aSEmmanuel Vadot		gpios = <ASPEED_GPIO(E, 5) GPIO_ACTIVE_HIGH>;
473f126890aSEmmanuel Vadot		output-high;
474f126890aSEmmanuel Vadot		line-name = "FM_BMC_DBP_PRESENT_R1_N";
475f126890aSEmmanuel Vadot	};
476f126890aSEmmanuel Vadot
477f126890aSEmmanuel Vadot	pin_gpio_e6 {
478f126890aSEmmanuel Vadot		gpio-hog;
479f126890aSEmmanuel Vadot		gpios = <ASPEED_GPIO(E, 6) GPIO_ACTIVE_HIGH>;
480f126890aSEmmanuel Vadot		output-high;
481f126890aSEmmanuel Vadot		line-name = "BMC_ME_SECURITY_OVERRIDE_N";
482f126890aSEmmanuel Vadot	};
483f126890aSEmmanuel Vadot
484f126890aSEmmanuel Vadot	pin_gpio_f0 {
485f126890aSEmmanuel Vadot		gpio-hog;
486f126890aSEmmanuel Vadot		gpios = <ASPEED_GPIO(F, 0) GPIO_ACTIVE_HIGH>;
487f126890aSEmmanuel Vadot		output-high;
488f126890aSEmmanuel Vadot		line-name = "IRQ_BMC_PCH_NMI_R";
489f126890aSEmmanuel Vadot	};
490f126890aSEmmanuel Vadot
491f126890aSEmmanuel Vadot	pin_gpio_f1 {
492f126890aSEmmanuel Vadot		gpio-hog;
493f126890aSEmmanuel Vadot		gpios = <ASPEED_GPIO(F, 1) GPIO_ACTIVE_HIGH>;
494f126890aSEmmanuel Vadot		input;
495f126890aSEmmanuel Vadot		line-name = "CPU2_PROCDIS_BMC_N";
496f126890aSEmmanuel Vadot	};
497f126890aSEmmanuel Vadot
498f126890aSEmmanuel Vadot	pin_gpio_f2 {
499f126890aSEmmanuel Vadot		gpio-hog;
500f126890aSEmmanuel Vadot		gpios = <ASPEED_GPIO(F, 2) GPIO_ACTIVE_HIGH>;
501f126890aSEmmanuel Vadot		output-high;
502f126890aSEmmanuel Vadot		line-name = "RM_THROTTLE_EN_N";
503f126890aSEmmanuel Vadot	};
504f126890aSEmmanuel Vadot
505f126890aSEmmanuel Vadot	pin_gpio_f3 {
506f126890aSEmmanuel Vadot		gpio-hog;
507f126890aSEmmanuel Vadot		gpios = <ASPEED_GPIO(F, 3) GPIO_ACTIVE_HIGH>;
508f126890aSEmmanuel Vadot		output-low;
509f126890aSEmmanuel Vadot		line-name = "FM_PMBUS_ALERT_B_EN";
510f126890aSEmmanuel Vadot	};
511f126890aSEmmanuel Vadot
512f126890aSEmmanuel Vadot	pin_gpio_f4 {
513f126890aSEmmanuel Vadot		gpio-hog;
514f126890aSEmmanuel Vadot		gpios = <ASPEED_GPIO(F, 4) GPIO_ACTIVE_HIGH>;
515f126890aSEmmanuel Vadot		output-high;
516f126890aSEmmanuel Vadot		line-name = "BMC_FORCE_NM_THROTTLE_N";
517f126890aSEmmanuel Vadot	};
518f126890aSEmmanuel Vadot
519f126890aSEmmanuel Vadot	pin_gpio_f6 {
520f126890aSEmmanuel Vadot		gpio-hog;
521f126890aSEmmanuel Vadot		gpios = <ASPEED_GPIO(F, 6) GPIO_ACTIVE_HIGH>;
522f126890aSEmmanuel Vadot		output-high;
523f126890aSEmmanuel Vadot		line-name = "FM_BMC_CPU_PWR_DEBUG_N";
524f126890aSEmmanuel Vadot	};
525f126890aSEmmanuel Vadot
526f126890aSEmmanuel Vadot	pin_gpio_g7 {
527f126890aSEmmanuel Vadot		gpio-hog;
528f126890aSEmmanuel Vadot		gpios = <ASPEED_GPIO(G, 7) GPIO_ACTIVE_HIGH>;
529f126890aSEmmanuel Vadot		output-high;
530f126890aSEmmanuel Vadot		line-name = "BMC_PCIE_I2C_MUX_RST_N";
531f126890aSEmmanuel Vadot	};
532f126890aSEmmanuel Vadot
533f126890aSEmmanuel Vadot	pin_gpio_h6 {
534f126890aSEmmanuel Vadot		gpio-hog;
535f126890aSEmmanuel Vadot		gpios = <ASPEED_GPIO(H, 6) GPIO_ACTIVE_HIGH>;
536f126890aSEmmanuel Vadot		output-high;
537f126890aSEmmanuel Vadot		line-name = "FM_BMC_DBP_PRESENT_R2_N";
538f126890aSEmmanuel Vadot	};
539f126890aSEmmanuel Vadot
540f126890aSEmmanuel Vadot	pin_gpio_i3 {
541f126890aSEmmanuel Vadot		gpio-hog;
542f126890aSEmmanuel Vadot		gpios = <ASPEED_GPIO(I, 3) GPIO_ACTIVE_HIGH>;
543f126890aSEmmanuel Vadot		output-high;
544f126890aSEmmanuel Vadot		line-name = "SPI_BMC_BIOS_WP_N";
545f126890aSEmmanuel Vadot	};
546f126890aSEmmanuel Vadot
547f126890aSEmmanuel Vadot	pin_gpio_j1 {
548f126890aSEmmanuel Vadot		gpio-hog;
549f126890aSEmmanuel Vadot		gpios = <ASPEED_GPIO(J, 1) GPIO_ACTIVE_HIGH>;
550f126890aSEmmanuel Vadot		output-high;
551f126890aSEmmanuel Vadot		line-name = "BMC_USB_SEL";
552f126890aSEmmanuel Vadot	};
553f126890aSEmmanuel Vadot
554f126890aSEmmanuel Vadot	pin_gpio_j2 {
555f126890aSEmmanuel Vadot		gpio-hog;
556f126890aSEmmanuel Vadot		gpios = <ASPEED_GPIO(J, 2) GPIO_ACTIVE_HIGH>;
557f126890aSEmmanuel Vadot		output-high;
558f126890aSEmmanuel Vadot		line-name = "PDB_SMB_RST_N";
559f126890aSEmmanuel Vadot	};
560f126890aSEmmanuel Vadot
561f126890aSEmmanuel Vadot	pin_gpio_j3 {
562f126890aSEmmanuel Vadot		gpio-hog;
563f126890aSEmmanuel Vadot		gpios = <ASPEED_GPIO(J, 3) GPIO_ACTIVE_HIGH>;
564f126890aSEmmanuel Vadot		output-high;
565f126890aSEmmanuel Vadot		line-name = "SPI_BMC_BIOS_HOLD_N";
566f126890aSEmmanuel Vadot	};
567f126890aSEmmanuel Vadot
568f126890aSEmmanuel Vadot	pin_gpio_l0 {
569f126890aSEmmanuel Vadot		gpio-hog;
570f126890aSEmmanuel Vadot		gpios = <ASPEED_GPIO(L, 0) GPIO_ACTIVE_HIGH>;
571f126890aSEmmanuel Vadot		output-high;
572f126890aSEmmanuel Vadot		line-name = "PDB_FAN_TACH_SEL";
573f126890aSEmmanuel Vadot	};
574f126890aSEmmanuel Vadot
575f126890aSEmmanuel Vadot	pin_gpio_l1 {
576f126890aSEmmanuel Vadot		gpio-hog;
577f126890aSEmmanuel Vadot		gpios = <ASPEED_GPIO(L, 1) GPIO_ACTIVE_HIGH>;
578f126890aSEmmanuel Vadot		output-high;
579f126890aSEmmanuel Vadot		line-name = "SYS_RESET_BMC_FPGA_N";
580f126890aSEmmanuel Vadot	};
581f126890aSEmmanuel Vadot
582f126890aSEmmanuel Vadot	pin_gpio_l4 {
583f126890aSEmmanuel Vadot		gpio-hog;
584f126890aSEmmanuel Vadot		gpios = <ASPEED_GPIO(L, 4) GPIO_ACTIVE_HIGH>;
585f126890aSEmmanuel Vadot		output-high;
586f126890aSEmmanuel Vadot		line-name = "FM_EFUSE_FAN_G1_EN";
587f126890aSEmmanuel Vadot	};
588f126890aSEmmanuel Vadot
589f126890aSEmmanuel Vadot	pin_gpio_l5 {
590f126890aSEmmanuel Vadot		gpio-hog;
591f126890aSEmmanuel Vadot		gpios = <ASPEED_GPIO(L, 5) GPIO_ACTIVE_HIGH>;
592f126890aSEmmanuel Vadot		output-high;
593f126890aSEmmanuel Vadot		line-name = "FM_EFUSE_FAN_G2_EN";
594f126890aSEmmanuel Vadot	};
595f126890aSEmmanuel Vadot
596f126890aSEmmanuel Vadot	pin_gpio_r6 {
597f126890aSEmmanuel Vadot		gpio-hog;
598f126890aSEmmanuel Vadot		gpios = <ASPEED_GPIO(R, 6) GPIO_ACTIVE_HIGH>;
599f126890aSEmmanuel Vadot		input;
600f126890aSEmmanuel Vadot		line-name = "CPU3_PROCDIS_BMC_N";
601f126890aSEmmanuel Vadot	};
602f126890aSEmmanuel Vadot
603f126890aSEmmanuel Vadot	pin_gpio_r7 {
604f126890aSEmmanuel Vadot		gpio-hog;
605f126890aSEmmanuel Vadot		gpios = <ASPEED_GPIO(R, 7) GPIO_ACTIVE_HIGH>;
606f126890aSEmmanuel Vadot		input;
607f126890aSEmmanuel Vadot		line-name = "CPU4_PROCDIS_BMC_N";
608f126890aSEmmanuel Vadot	};
609f126890aSEmmanuel Vadot
610f126890aSEmmanuel Vadot	pin_gpio_s1 {
611f126890aSEmmanuel Vadot		gpio-hog;
612f126890aSEmmanuel Vadot		gpios = <ASPEED_GPIO(S, 1) GPIO_ACTIVE_HIGH>;
613f126890aSEmmanuel Vadot		output-low;
614f126890aSEmmanuel Vadot		line-name = "DBP_SYSPWROK_BMC";
615f126890aSEmmanuel Vadot	};
616f126890aSEmmanuel Vadot
617f126890aSEmmanuel Vadot	pin_gpio_s2 {
618f126890aSEmmanuel Vadot		gpio-hog;
619f126890aSEmmanuel Vadot		gpios = <ASPEED_GPIO(S, 2) GPIO_ACTIVE_HIGH>;
620f126890aSEmmanuel Vadot		output-high;
621f126890aSEmmanuel Vadot		line-name = "PCH_RST_RSMRST_N";
622f126890aSEmmanuel Vadot	};
623f126890aSEmmanuel Vadot
624f126890aSEmmanuel Vadot	pin_gpio_s6 {
625f126890aSEmmanuel Vadot		gpio-hog;
626f126890aSEmmanuel Vadot		gpios = <ASPEED_GPIO(S, 6) GPIO_ACTIVE_HIGH>;
627f126890aSEmmanuel Vadot		output-high;
628f126890aSEmmanuel Vadot		line-name = "BMC_HW_STRAP_5";
629f126890aSEmmanuel Vadot	};
630f126890aSEmmanuel Vadot
631f126890aSEmmanuel Vadot	pin_gpio_z3 {
632f126890aSEmmanuel Vadot		gpio-hog;
633f126890aSEmmanuel Vadot		gpios = <ASPEED_GPIO(Z, 3) GPIO_ACTIVE_HIGH>;
634f126890aSEmmanuel Vadot		output-high;
635f126890aSEmmanuel Vadot		line-name = "FM_BMC_PCH_SCI_LPC_N";
636f126890aSEmmanuel Vadot	};
637f126890aSEmmanuel Vadot
638f126890aSEmmanuel Vadot	pin_gpio_aa0 {
639f126890aSEmmanuel Vadot		gpio-hog;
640f126890aSEmmanuel Vadot		gpios = <ASPEED_GPIO(AA, 0) GPIO_ACTIVE_HIGH>;
641f126890aSEmmanuel Vadot		output-low;
642f126890aSEmmanuel Vadot		line-name = "FW_PSU_ALERT_EN_N";
643f126890aSEmmanuel Vadot	};
644f126890aSEmmanuel Vadot
645f126890aSEmmanuel Vadot	pin_gpio_aa4 {
646f126890aSEmmanuel Vadot		gpio-hog;
647f126890aSEmmanuel Vadot		gpios = <ASPEED_GPIO(AA, 4) GPIO_ACTIVE_HIGH>;
648f126890aSEmmanuel Vadot		output-high;
649f126890aSEmmanuel Vadot		line-name = "DBP_CPU_PREQ_N";
650f126890aSEmmanuel Vadot	};
651f126890aSEmmanuel Vadot
652f126890aSEmmanuel Vadot	pin_gpio_ab3 {
653f126890aSEmmanuel Vadot		gpio-hog;
654f126890aSEmmanuel Vadot		gpios = <ASPEED_GPIO(AB, 3) GPIO_ACTIVE_HIGH>;
655f126890aSEmmanuel Vadot		output-low;
656f126890aSEmmanuel Vadot		line-name = "BMC_WDTRST";
657f126890aSEmmanuel Vadot	};
658f126890aSEmmanuel Vadot
659f126890aSEmmanuel Vadot	pin_gpio_ac6 {
660f126890aSEmmanuel Vadot		gpio-hog;
661f126890aSEmmanuel Vadot		gpios = <ASPEED_GPIO(AC, 6) GPIO_ACTIVE_HIGH>;
662f126890aSEmmanuel Vadot		output-high;
663f126890aSEmmanuel Vadot		line-name = "ESPI_BMC_ALERT_N";
664f126890aSEmmanuel Vadot	};
665f126890aSEmmanuel Vadot
666f126890aSEmmanuel Vadot};
667