xref: /linux/scripts/dtc/include-prefixes/arm/aspeed/aspeed-bmc-ufispace-ncplite.dts (revision cdd5b5a9761fd66d17586e4f4ba6588c70e640ea)
1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0-or-later
2*724ba675SRob Herring// Copyright (c) 2022 Ufispace Co., Ltd.
3*724ba675SRob Herring/dts-v1/;
4*724ba675SRob Herring
5*724ba675SRob Herring#include "aspeed-g6.dtsi"
6*724ba675SRob Herring#include <dt-bindings/i2c/i2c.h>
7*724ba675SRob Herring#include <dt-bindings/gpio/aspeed-gpio.h>
8*724ba675SRob Herring
9*724ba675SRob Herring/ {
10*724ba675SRob Herring	model = "Ufispace NCPLite BMC";
11*724ba675SRob Herring	compatible = "ufispace,ncplite-bmc", "aspeed,ast2600";
12*724ba675SRob Herring
13*724ba675SRob Herring	aliases {
14*724ba675SRob Herring		serial4 = &uart5;
15*724ba675SRob Herring	};
16*724ba675SRob Herring
17*724ba675SRob Herring	chosen {
18*724ba675SRob Herring		stdout-path = &uart5;
19*724ba675SRob Herring		bootargs = "console=ttyS4,115200n8 earlycon";
20*724ba675SRob Herring	};
21*724ba675SRob Herring
22*724ba675SRob Herring	memory@80000000 {
23*724ba675SRob Herring		device_type = "memory";
24*724ba675SRob Herring		reg = <0x80000000 0x80000000>;
25*724ba675SRob Herring	};
26*724ba675SRob Herring
27*724ba675SRob Herring	iio-hwmon {
28*724ba675SRob Herring		compatible = "iio-hwmon";
29*724ba675SRob Herring		io-channels = <&adc0 0>, <&adc0 1>, <&adc0 2>, <&adc0 3>,
30*724ba675SRob Herring			      <&adc0 4>, <&adc0 5>, <&adc0 6>, <&adc0 7>,
31*724ba675SRob Herring			      <&adc1 0>, <&adc1 1>, <&adc1 2>, <&adc1 3>,
32*724ba675SRob Herring			      <&adc1 4>, <&adc1 5>, <&adc1 6>, <&adc1 7>;
33*724ba675SRob Herring	};
34*724ba675SRob Herring
35*724ba675SRob Herring	gpio-keys {
36*724ba675SRob Herring		compatible = "gpio-keys";
37*724ba675SRob Herring
38*724ba675SRob Herring		fan-status-int-l {
39*724ba675SRob Herring			label = "fan-status-int-l";
40*724ba675SRob Herring			gpios = <&gpio0 ASPEED_GPIO(M, 2) GPIO_ACTIVE_LOW>;
41*724ba675SRob Herring			linux,code = <ASPEED_GPIO(M, 2)>;
42*724ba675SRob Herring		};
43*724ba675SRob Herring
44*724ba675SRob Herring		allpwr-good {
45*724ba675SRob Herring			label = "allpwr-good";
46*724ba675SRob Herring			gpios = <&gpio0 ASPEED_GPIO(V, 4) GPIO_ACTIVE_HIGH>;
47*724ba675SRob Herring			linux,code = <ASPEED_GPIO(V, 4)>;
48*724ba675SRob Herring		};
49*724ba675SRob Herring
50*724ba675SRob Herring		psu0-alert-n {
51*724ba675SRob Herring			label = "psu0-alert-n";
52*724ba675SRob Herring			gpios = <&gpio0 ASPEED_GPIO(V, 1) GPIO_ACTIVE_LOW>;
53*724ba675SRob Herring			linux,code = <ASPEED_GPIO(V, 1)>;
54*724ba675SRob Herring		};
55*724ba675SRob Herring
56*724ba675SRob Herring		psu1-alert-n {
57*724ba675SRob Herring			label = "psu1-alert-n";
58*724ba675SRob Herring			gpios = <&gpio0 ASPEED_GPIO(V, 2) GPIO_ACTIVE_LOW>;
59*724ba675SRob Herring			linux,code = <ASPEED_GPIO(V, 2)>;
60*724ba675SRob Herring		};
61*724ba675SRob Herring
62*724ba675SRob Herring		int-thermal-alert {
63*724ba675SRob Herring			label = "int-thermal-alert";
64*724ba675SRob Herring			gpios = <&gpio0 ASPEED_GPIO(P, 2) GPIO_ACTIVE_LOW>;
65*724ba675SRob Herring			linux,code = <ASPEED_GPIO(P, 2)>;
66*724ba675SRob Herring		};
67*724ba675SRob Herring
68*724ba675SRob Herring		cpu-caterr-l {
69*724ba675SRob Herring			label = "cpu-caterr-l";
70*724ba675SRob Herring			gpios = <&gpio0 ASPEED_GPIO(N, 3) GPIO_ACTIVE_LOW>;
71*724ba675SRob Herring			linux,code = <ASPEED_GPIO(N, 3)>;
72*724ba675SRob Herring		};
73*724ba675SRob Herring
74*724ba675SRob Herring		cpu-thermtrip-l {
75*724ba675SRob Herring			label = "cpu-thermtrip-l";
76*724ba675SRob Herring			gpios = <&gpio0 ASPEED_GPIO(V, 5) GPIO_ACTIVE_LOW>;
77*724ba675SRob Herring			linux,code = <ASPEED_GPIO(V, 5)>;
78*724ba675SRob Herring		};
79*724ba675SRob Herring
80*724ba675SRob Herring		psu0-presence-l {
81*724ba675SRob Herring			label = "psu0-presence-l";
82*724ba675SRob Herring			gpios = <&gpio0 ASPEED_GPIO(F, 6) GPIO_ACTIVE_LOW>;
83*724ba675SRob Herring			linux,code = <ASPEED_GPIO(F, 6)>;
84*724ba675SRob Herring		};
85*724ba675SRob Herring
86*724ba675SRob Herring		psu1-presence-l {
87*724ba675SRob Herring			label = "psu1-presence-l";
88*724ba675SRob Herring			gpios = <&gpio0 ASPEED_GPIO(F, 7) GPIO_ACTIVE_LOW>;
89*724ba675SRob Herring			linux,code = <ASPEED_GPIO(F, 7)>;
90*724ba675SRob Herring		};
91*724ba675SRob Herring
92*724ba675SRob Herring		psu0-power-ok {
93*724ba675SRob Herring			label = "psu0-power-ok";
94*724ba675SRob Herring			gpios = <&gpio0 ASPEED_GPIO(M, 4) GPIO_ACTIVE_HIGH>;
95*724ba675SRob Herring			linux,code = <ASPEED_GPIO(M, 4)>;
96*724ba675SRob Herring		};
97*724ba675SRob Herring
98*724ba675SRob Herring		psu1-power-ok {
99*724ba675SRob Herring			label = "psu1-power-ok";
100*724ba675SRob Herring			gpios = <&gpio0 ASPEED_GPIO(M, 5) GPIO_ACTIVE_HIGH>;
101*724ba675SRob Herring			linux,code = <ASPEED_GPIO(M, 5)>;
102*724ba675SRob Herring		};
103*724ba675SRob Herring	};
104*724ba675SRob Herring
105*724ba675SRob Herring	gpio-keys-polled {
106*724ba675SRob Herring		compatible = "gpio-keys-polled";
107*724ba675SRob Herring		#address-cells = <1>;
108*724ba675SRob Herring		#size-cells = <0>;
109*724ba675SRob Herring		poll-interval = <1000>;
110*724ba675SRob Herring
111*724ba675SRob Herring		fan0-presence {
112*724ba675SRob Herring			label = "fan0-presence";
113*724ba675SRob Herring			gpios = <&fan_ioexp 2 GPIO_ACTIVE_LOW>;
114*724ba675SRob Herring			linux,code = <2>;
115*724ba675SRob Herring		};
116*724ba675SRob Herring
117*724ba675SRob Herring		fan1-presence {
118*724ba675SRob Herring			label = "fan1-presence";
119*724ba675SRob Herring			gpios = <&fan_ioexp 6 GPIO_ACTIVE_LOW>;
120*724ba675SRob Herring			linux,code = <6>;
121*724ba675SRob Herring		};
122*724ba675SRob Herring
123*724ba675SRob Herring		fan2-presence {
124*724ba675SRob Herring			label = "fan2-presence";
125*724ba675SRob Herring			gpios = <&fan_ioexp 10 GPIO_ACTIVE_LOW>;
126*724ba675SRob Herring			linux,code = <10>;
127*724ba675SRob Herring		};
128*724ba675SRob Herring
129*724ba675SRob Herring		fan3-presence {
130*724ba675SRob Herring			label = "fan3-presence";
131*724ba675SRob Herring			gpios = <&fan_ioexp 14 GPIO_ACTIVE_LOW>;
132*724ba675SRob Herring			linux,code = <14>;
133*724ba675SRob Herring		};
134*724ba675SRob Herring	};
135*724ba675SRob Herring};
136*724ba675SRob Herring
137*724ba675SRob Herring&mac2 {
138*724ba675SRob Herring	status = "okay";
139*724ba675SRob Herring	use-ncsi;
140*724ba675SRob Herring
141*724ba675SRob Herring	pinctrl-names = "default";
142*724ba675SRob Herring	pinctrl-0 = <&pinctrl_rmii3_default>;
143*724ba675SRob Herring	clocks = <&syscon ASPEED_CLK_GATE_MAC3CLK>,
144*724ba675SRob Herring		 <&syscon ASPEED_CLK_MAC3RCLK>;
145*724ba675SRob Herring	clock-names = "MACCLK", "RCLK";
146*724ba675SRob Herring};
147*724ba675SRob Herring
148*724ba675SRob Herring&fmc {
149*724ba675SRob Herring	status = "okay";
150*724ba675SRob Herring	flash@0 {
151*724ba675SRob Herring		status = "okay";
152*724ba675SRob Herring		m25p,fast-read;
153*724ba675SRob Herring		label = "bmc";
154*724ba675SRob Herring		spi-max-frequency = <50000000>;
155*724ba675SRob Herring#include "openbmc-flash-layout-64.dtsi"
156*724ba675SRob Herring	};
157*724ba675SRob Herring
158*724ba675SRob Herring	flash@1 {
159*724ba675SRob Herring		status = "okay";
160*724ba675SRob Herring		m25p,fast-read;
161*724ba675SRob Herring		label = "alt-bmc";
162*724ba675SRob Herring		spi-max-frequency = <50000000>;
163*724ba675SRob Herring#include "openbmc-flash-layout-64-alt.dtsi"
164*724ba675SRob Herring	};
165*724ba675SRob Herring};
166*724ba675SRob Herring
167*724ba675SRob Herring&uart1 {
168*724ba675SRob Herring	status = "okay";
169*724ba675SRob Herring};
170*724ba675SRob Herring
171*724ba675SRob Herring&uart4 {
172*724ba675SRob Herring	status = "okay";
173*724ba675SRob Herring};
174*724ba675SRob Herring
175*724ba675SRob Herring&uart5 {
176*724ba675SRob Herring	status = "okay";
177*724ba675SRob Herring};
178*724ba675SRob Herring
179*724ba675SRob Herring&kcs3 {
180*724ba675SRob Herring	status = "okay";
181*724ba675SRob Herring	aspeed,lpc-io-reg = <0xca2>;
182*724ba675SRob Herring};
183*724ba675SRob Herring
184*724ba675SRob Herring&lpc_reset {
185*724ba675SRob Herring	status = "okay";
186*724ba675SRob Herring};
187*724ba675SRob Herring
188*724ba675SRob Herring&lpc_ctrl {
189*724ba675SRob Herring	status = "okay";
190*724ba675SRob Herring};
191*724ba675SRob Herring
192*724ba675SRob Herring&uart_routing {
193*724ba675SRob Herring	status = "okay";
194*724ba675SRob Herring};
195*724ba675SRob Herring
196*724ba675SRob Herring&wdt1 {
197*724ba675SRob Herring	status = "okay";
198*724ba675SRob Herring};
199*724ba675SRob Herring
200*724ba675SRob Herring&wdt2 {
201*724ba675SRob Herring	status = "okay";
202*724ba675SRob Herring};
203*724ba675SRob Herring
204*724ba675SRob Herring&peci0 {
205*724ba675SRob Herring	status = "okay";
206*724ba675SRob Herring};
207*724ba675SRob Herring
208*724ba675SRob Herring&udc {
209*724ba675SRob Herring	status = "okay";
210*724ba675SRob Herring};
211*724ba675SRob Herring
212*724ba675SRob Herring&adc0 {
213*724ba675SRob Herring	vref = <2500>;
214*724ba675SRob Herring	status = "okay";
215*724ba675SRob Herring
216*724ba675SRob Herring	pinctrl-names = "default";
217*724ba675SRob Herring	pinctrl-0 = <&pinctrl_adc0_default &pinctrl_adc1_default
218*724ba675SRob Herring		&pinctrl_adc2_default &pinctrl_adc3_default
219*724ba675SRob Herring		&pinctrl_adc4_default &pinctrl_adc5_default
220*724ba675SRob Herring		&pinctrl_adc6_default &pinctrl_adc7_default>;
221*724ba675SRob Herring};
222*724ba675SRob Herring
223*724ba675SRob Herring&adc1 {
224*724ba675SRob Herring	vref = <2500>;
225*724ba675SRob Herring	status = "okay";
226*724ba675SRob Herring
227*724ba675SRob Herring	pinctrl-names = "default";
228*724ba675SRob Herring	pinctrl-0 = <&pinctrl_adc8_default &pinctrl_adc9_default
229*724ba675SRob Herring		&pinctrl_adc10_default &pinctrl_adc11_default
230*724ba675SRob Herring		&pinctrl_adc12_default &pinctrl_adc13_default
231*724ba675SRob Herring		&pinctrl_adc14_default &pinctrl_adc15_default>;
232*724ba675SRob Herring};
233*724ba675SRob Herring
234*724ba675SRob Herring&i2c0 {
235*724ba675SRob Herring	status = "okay";
236*724ba675SRob Herring};
237*724ba675SRob Herring
238*724ba675SRob Herring&i2c1 {
239*724ba675SRob Herring	status = "okay";
240*724ba675SRob Herring
241*724ba675SRob Herring	lm75@48 {
242*724ba675SRob Herring		compatible = "national,lm75";
243*724ba675SRob Herring		reg = <0x48>;
244*724ba675SRob Herring	};
245*724ba675SRob Herring
246*724ba675SRob Herring	lm75@49 {
247*724ba675SRob Herring		compatible = "national,lm75";
248*724ba675SRob Herring		reg = <0x49>;
249*724ba675SRob Herring	};
250*724ba675SRob Herring
251*724ba675SRob Herring	lm86@4c {
252*724ba675SRob Herring		compatible = "national,lm86";
253*724ba675SRob Herring		reg = <0x4c>;
254*724ba675SRob Herring	};
255*724ba675SRob Herring};
256*724ba675SRob Herring
257*724ba675SRob Herring&i2c2 {
258*724ba675SRob Herring	status = "okay";
259*724ba675SRob Herring
260*724ba675SRob Herring	lm75@4f {
261*724ba675SRob Herring		cpmpatible = "national,lm75";
262*724ba675SRob Herring		reg = <0x4f>;
263*724ba675SRob Herring	};
264*724ba675SRob Herring
265*724ba675SRob Herring	fan_ioexp: pca9535@20 {
266*724ba675SRob Herring		compatible = "nxp,pca9535";
267*724ba675SRob Herring		reg = <0x20>;
268*724ba675SRob Herring		#address-cells = <1>;
269*724ba675SRob Herring		#size-cells = <0>;
270*724ba675SRob Herring		gpio-controller;
271*724ba675SRob Herring		#gpio-cells = <2>;
272*724ba675SRob Herring
273*724ba675SRob Herring		gpio-line-names =
274*724ba675SRob Herring		"","","presence-fan0","",
275*724ba675SRob Herring		"","","presence-fan1","",
276*724ba675SRob Herring		"","","presence-fan2","",
277*724ba675SRob Herring		"","","presence-fan3","";
278*724ba675SRob Herring	};
279*724ba675SRob Herring};
280*724ba675SRob Herring
281*724ba675SRob Herring&i2c3 {
282*724ba675SRob Herring	status = "okay";
283*724ba675SRob Herring
284*724ba675SRob Herring	eeprom@50 {
285*724ba675SRob Herring		compatible = "atmel,24c128";
286*724ba675SRob Herring		reg = <0x50>;
287*724ba675SRob Herring		pagesize = <64>;
288*724ba675SRob Herring	};
289*724ba675SRob Herring};
290*724ba675SRob Herring
291*724ba675SRob Herring&i2c4 {
292*724ba675SRob Herring	status = "okay";
293*724ba675SRob Herring
294*724ba675SRob Herring	psu@58 {
295*724ba675SRob Herring		compatible = "pmbus";
296*724ba675SRob Herring		reg = <0x58>;
297*724ba675SRob Herring	};
298*724ba675SRob Herring
299*724ba675SRob Herring	eeprom@50 {
300*724ba675SRob Herring		compatible = "atmel,24c02";
301*724ba675SRob Herring		reg = <0x50>;
302*724ba675SRob Herring		pagesize = <1>;
303*724ba675SRob Herring	};
304*724ba675SRob Herring};
305*724ba675SRob Herring
306*724ba675SRob Herring&i2c5 {
307*724ba675SRob Herring	status = "okay";
308*724ba675SRob Herring
309*724ba675SRob Herring	psu@58 {
310*724ba675SRob Herring		compatible = "pmbus";
311*724ba675SRob Herring		reg = <0x58>;
312*724ba675SRob Herring	};
313*724ba675SRob Herring
314*724ba675SRob Herring	eeprom@50 {
315*724ba675SRob Herring		compatible = "atmel,24c02";
316*724ba675SRob Herring		reg = <0x50>;
317*724ba675SRob Herring		pagesize = <1>;
318*724ba675SRob Herring	};
319*724ba675SRob Herring};
320*724ba675SRob Herring
321*724ba675SRob Herring&i2c8 {
322*724ba675SRob Herring	status = "okay";
323*724ba675SRob Herring};
324*724ba675SRob Herring
325*724ba675SRob Herring&i2c10 {
326*724ba675SRob Herring	status = "okay";
327*724ba675SRob Herring
328*724ba675SRob Herring	lm75@4d {
329*724ba675SRob Herring		compatible = "national,lm75";
330*724ba675SRob Herring		reg = <0x4d>;
331*724ba675SRob Herring	};
332*724ba675SRob Herring};
333*724ba675SRob Herring
334*724ba675SRob Herring&gpio0 {
335*724ba675SRob Herring	status = "okay";
336*724ba675SRob Herring
337*724ba675SRob Herring	gpio-line-names =
338*724ba675SRob Herring	/*A0-A7*/	"","","","","","","","",
339*724ba675SRob Herring	/*B0-B7*/	"","","","","","","","",
340*724ba675SRob Herring	/*C0-C7*/	"","","","","","","","",
341*724ba675SRob Herring	/*D0-D7*/	"","","","","","","","",
342*724ba675SRob Herring	/*E0-E7*/	"","","","","","","","",
343*724ba675SRob Herring	/*F0-F7*/	"CPU_PWRGD","","","power-button","host0-ready","","presence-ps0","presence-ps1",
344*724ba675SRob Herring	/*G0-G7*/	"","","","","","","","",
345*724ba675SRob Herring	/*H0-H7*/	"","","","","","","","",
346*724ba675SRob Herring	/*I0-I7*/	"","","","","","reset-button","","",
347*724ba675SRob Herring	/*J0-J7*/	"","","","","","","","",
348*724ba675SRob Herring	/*K0-K7*/	"","","","","","","","",
349*724ba675SRob Herring	/*L0-L7*/	"","","","","","","","",
350*724ba675SRob Herring	/*M0-M7*/	"","","","","","","","",
351*724ba675SRob Herring	/*N0-N7*/	"power-chassis-control0","power-chassis-control1","","","","","","",
352*724ba675SRob Herring	/*O0-O7*/	"","","","","","","","",
353*724ba675SRob Herring	/*P0-P7*/	"","","","","","","","",
354*724ba675SRob Herring	/*Q0-Q7*/	"","","","","","","","",
355*724ba675SRob Herring	/*R0-R7*/	"","","","","","","","",
356*724ba675SRob Herring	/*S0-S7*/	"","","","","","","","",
357*724ba675SRob Herring	/*T0-T7*/	"","","","","","","","",
358*724ba675SRob Herring	/*U0-U7*/	"","","","","","","","",
359*724ba675SRob Herring	/*V0-V7*/	"","","","","power-chassis-good","","","";
360*724ba675SRob Herring};
361