xref: /linux/scripts/dtc/include-prefixes/arm/aspeed/aspeed-bmc-opp-palmetto.dts (revision cdd5b5a9761fd66d17586e4f4ba6588c70e640ea)
1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0+
2*724ba675SRob Herring/dts-v1/;
3*724ba675SRob Herring
4*724ba675SRob Herring#include "aspeed-g4.dtsi"
5*724ba675SRob Herring#include <dt-bindings/gpio/aspeed-gpio.h>
6*724ba675SRob Herring
7*724ba675SRob Herring/ {
8*724ba675SRob Herring	model = "Palmetto BMC";
9*724ba675SRob Herring	compatible = "tyan,palmetto-bmc", "aspeed,ast2400";
10*724ba675SRob Herring
11*724ba675SRob Herring	chosen {
12*724ba675SRob Herring		stdout-path = &uart5;
13*724ba675SRob Herring		bootargs = "console=ttyS4,115200 earlycon";
14*724ba675SRob Herring	};
15*724ba675SRob Herring
16*724ba675SRob Herring	memory@40000000 {
17*724ba675SRob Herring		reg = <0x40000000 0x20000000>;
18*724ba675SRob Herring	};
19*724ba675SRob Herring
20*724ba675SRob Herring	reserved-memory {
21*724ba675SRob Herring		#address-cells = <1>;
22*724ba675SRob Herring		#size-cells = <1>;
23*724ba675SRob Herring		ranges;
24*724ba675SRob Herring
25*724ba675SRob Herring		vga_memory: framebuffer@5f000000 {
26*724ba675SRob Herring			no-map;
27*724ba675SRob Herring			reg = <0x5f000000 0x01000000>; /* 16M */
28*724ba675SRob Herring		};
29*724ba675SRob Herring
30*724ba675SRob Herring		coldfire_memory: codefire_memory@5ee00000 {
31*724ba675SRob Herring			reg = <0x5ee00000 0x00200000>;
32*724ba675SRob Herring			no-map;
33*724ba675SRob Herring		};
34*724ba675SRob Herring
35*724ba675SRob Herring		flash_memory: region@5c000000 {
36*724ba675SRob Herring			no-map;
37*724ba675SRob Herring			reg = <0x5C000000 0x02000000>; /* 32MB */
38*724ba675SRob Herring		};
39*724ba675SRob Herring	};
40*724ba675SRob Herring
41*724ba675SRob Herring	leds {
42*724ba675SRob Herring		compatible = "gpio-leds";
43*724ba675SRob Herring
44*724ba675SRob Herring		heartbeat {
45*724ba675SRob Herring			gpios = <&gpio ASPEED_GPIO(R, 4) GPIO_ACTIVE_LOW>;
46*724ba675SRob Herring		};
47*724ba675SRob Herring
48*724ba675SRob Herring		power {
49*724ba675SRob Herring			gpios = <&gpio ASPEED_GPIO(R, 5) GPIO_ACTIVE_LOW>;
50*724ba675SRob Herring		};
51*724ba675SRob Herring
52*724ba675SRob Herring		identify {
53*724ba675SRob Herring			gpios = <&gpio ASPEED_GPIO(A, 2) GPIO_ACTIVE_LOW>;
54*724ba675SRob Herring		};
55*724ba675SRob Herring	};
56*724ba675SRob Herring
57*724ba675SRob Herring	fsi: gpio-fsi {
58*724ba675SRob Herring		compatible = "aspeed,ast2400-cf-fsi-master", "fsi-master";
59*724ba675SRob Herring		#address-cells = <2>;
60*724ba675SRob Herring		#size-cells = <0>;
61*724ba675SRob Herring
62*724ba675SRob Herring		memory-region = <&coldfire_memory>;
63*724ba675SRob Herring		aspeed,sram = <&sram>;
64*724ba675SRob Herring		aspeed,cvic = <&cvic>;
65*724ba675SRob Herring
66*724ba675SRob Herring		clock-gpios = <&gpio ASPEED_GPIO(A, 4) GPIO_ACTIVE_HIGH>;
67*724ba675SRob Herring		data-gpios = <&gpio ASPEED_GPIO(A, 5) GPIO_ACTIVE_HIGH>;
68*724ba675SRob Herring		mux-gpios = <&gpio ASPEED_GPIO(A, 6) GPIO_ACTIVE_HIGH>;
69*724ba675SRob Herring		enable-gpios = <&gpio ASPEED_GPIO(D, 0) GPIO_ACTIVE_HIGH>;
70*724ba675SRob Herring		trans-gpios = <&gpio ASPEED_GPIO(H, 6) GPIO_ACTIVE_HIGH>;
71*724ba675SRob Herring	};
72*724ba675SRob Herring
73*724ba675SRob Herring	gpio-keys {
74*724ba675SRob Herring		compatible = "gpio-keys";
75*724ba675SRob Herring
76*724ba675SRob Herring		event-checkstop {
77*724ba675SRob Herring			label = "checkstop";
78*724ba675SRob Herring			gpios = <&gpio ASPEED_GPIO(P, 5) GPIO_ACTIVE_LOW>;
79*724ba675SRob Herring			linux,code = <ASPEED_GPIO(P, 5)>;
80*724ba675SRob Herring		};
81*724ba675SRob Herring	};
82*724ba675SRob Herring};
83*724ba675SRob Herring
84*724ba675SRob Herring&fmc {
85*724ba675SRob Herring	status = "okay";
86*724ba675SRob Herring	flash@0 {
87*724ba675SRob Herring		status = "okay";
88*724ba675SRob Herring		m25p,fast-read;
89*724ba675SRob Herring		label = "bmc";
90*724ba675SRob Herring		spi-max-frequency = <50000000>;
91*724ba675SRob Herring#include "openbmc-flash-layout.dtsi"
92*724ba675SRob Herring	};
93*724ba675SRob Herring};
94*724ba675SRob Herring
95*724ba675SRob Herring&spi {
96*724ba675SRob Herring	status = "okay";
97*724ba675SRob Herring	pinctrl-names = "default";
98*724ba675SRob Herring	pinctrl-0 = <&pinctrl_spi1debug_default>;
99*724ba675SRob Herring
100*724ba675SRob Herring	flash@0 {
101*724ba675SRob Herring		status = "okay";
102*724ba675SRob Herring		m25p,fast-read;
103*724ba675SRob Herring		spi-max-frequency = <50000000>;
104*724ba675SRob Herring		label = "pnor";
105*724ba675SRob Herring	};
106*724ba675SRob Herring};
107*724ba675SRob Herring
108*724ba675SRob Herring&pinctrl {
109*724ba675SRob Herring	pinctrl-names = "default";
110*724ba675SRob Herring	pinctrl-0 = <&pinctrl_flbusy_default &pinctrl_flwp_default
111*724ba675SRob Herring
112*724ba675SRob Herring			&pinctrl_vgahs_default &pinctrl_vgavs_default
113*724ba675SRob Herring			&pinctrl_ddcclk_default &pinctrl_ddcdat_default>;
114*724ba675SRob Herring};
115*724ba675SRob Herring
116*724ba675SRob Herring&uart1 {
117*724ba675SRob Herring	/* Rear RS-232 connector */
118*724ba675SRob Herring	status = "okay";
119*724ba675SRob Herring
120*724ba675SRob Herring	pinctrl-names = "default";
121*724ba675SRob Herring	pinctrl-0 = <&pinctrl_txd1_default
122*724ba675SRob Herring			&pinctrl_rxd1_default
123*724ba675SRob Herring			&pinctrl_nrts1_default
124*724ba675SRob Herring			&pinctrl_ndtr1_default
125*724ba675SRob Herring			&pinctrl_ndsr1_default
126*724ba675SRob Herring			&pinctrl_ncts1_default
127*724ba675SRob Herring			&pinctrl_ndcd1_default
128*724ba675SRob Herring			&pinctrl_nri1_default>;
129*724ba675SRob Herring};
130*724ba675SRob Herring
131*724ba675SRob Herring&uart5 {
132*724ba675SRob Herring	status = "okay";
133*724ba675SRob Herring};
134*724ba675SRob Herring
135*724ba675SRob Herring&mac0 {
136*724ba675SRob Herring	status = "okay";
137*724ba675SRob Herring
138*724ba675SRob Herring	use-ncsi;
139*724ba675SRob Herring
140*724ba675SRob Herring	pinctrl-names = "default";
141*724ba675SRob Herring	pinctrl-0 = <&pinctrl_rmii1_default>;
142*724ba675SRob Herring};
143*724ba675SRob Herring
144*724ba675SRob Herring&i2c0 {
145*724ba675SRob Herring	status = "okay";
146*724ba675SRob Herring
147*724ba675SRob Herring	eeprom@50 {
148*724ba675SRob Herring		compatible = "atmel,24c256";
149*724ba675SRob Herring		reg = <0x50>;
150*724ba675SRob Herring		pagesize = <64>;
151*724ba675SRob Herring	};
152*724ba675SRob Herring
153*724ba675SRob Herring	rtc@68 {
154*724ba675SRob Herring		compatible = "dallas,ds3231";
155*724ba675SRob Herring		reg = <0x68>;
156*724ba675SRob Herring	};
157*724ba675SRob Herring};
158*724ba675SRob Herring
159*724ba675SRob Herring&i2c1 {
160*724ba675SRob Herring	status = "okay";
161*724ba675SRob Herring};
162*724ba675SRob Herring
163*724ba675SRob Herring&i2c2 {
164*724ba675SRob Herring	status = "okay";
165*724ba675SRob Herring
166*724ba675SRob Herring	tmp423@4c {
167*724ba675SRob Herring		compatible = "ti,tmp423";
168*724ba675SRob Herring		reg = <0x4c>;
169*724ba675SRob Herring	};
170*724ba675SRob Herring};
171*724ba675SRob Herring
172*724ba675SRob Herring&i2c3 {
173*724ba675SRob Herring	status = "okay";
174*724ba675SRob Herring
175*724ba675SRob Herring	occ-hwmon@50 {
176*724ba675SRob Herring		compatible = "ibm,p8-occ-hwmon";
177*724ba675SRob Herring		reg = <0x50>;
178*724ba675SRob Herring	};
179*724ba675SRob Herring};
180*724ba675SRob Herring
181*724ba675SRob Herring&i2c4 {
182*724ba675SRob Herring	status = "okay";
183*724ba675SRob Herring};
184*724ba675SRob Herring
185*724ba675SRob Herring&i2c5 {
186*724ba675SRob Herring	status = "okay";
187*724ba675SRob Herring};
188*724ba675SRob Herring
189*724ba675SRob Herring&i2c6 {
190*724ba675SRob Herring	status = "okay";
191*724ba675SRob Herring};
192*724ba675SRob Herring
193*724ba675SRob Herring&i2c7 {
194*724ba675SRob Herring	status = "okay";
195*724ba675SRob Herring};
196*724ba675SRob Herring
197*724ba675SRob Herring&vuart {
198*724ba675SRob Herring	status = "okay";
199*724ba675SRob Herring};
200*724ba675SRob Herring
201*724ba675SRob Herring&ibt {
202*724ba675SRob Herring	status = "okay";
203*724ba675SRob Herring};
204*724ba675SRob Herring
205*724ba675SRob Herring&lpc_ctrl {
206*724ba675SRob Herring	status = "okay";
207*724ba675SRob Herring	memory-region = <&flash_memory>;
208*724ba675SRob Herring	flash = <&spi>;
209*724ba675SRob Herring};
210*724ba675SRob Herring
211*724ba675SRob Herring&gpio {
212*724ba675SRob Herring	pin_func_mode0 {
213*724ba675SRob Herring		gpio-hog;
214*724ba675SRob Herring		gpios = <ASPEED_GPIO(C, 4) GPIO_ACTIVE_HIGH>;
215*724ba675SRob Herring		output-low;
216*724ba675SRob Herring		line-name = "func_mode0";
217*724ba675SRob Herring	};
218*724ba675SRob Herring
219*724ba675SRob Herring	pin_func_mode1 {
220*724ba675SRob Herring		gpio-hog;
221*724ba675SRob Herring		gpios = <ASPEED_GPIO(C, 5)  GPIO_ACTIVE_HIGH>;
222*724ba675SRob Herring		output-low;
223*724ba675SRob Herring		line-name = "func_mode1";
224*724ba675SRob Herring	};
225*724ba675SRob Herring
226*724ba675SRob Herring	pin_func_mode2 {
227*724ba675SRob Herring		gpio-hog;
228*724ba675SRob Herring		gpios = <ASPEED_GPIO(C, 6) GPIO_ACTIVE_HIGH>;
229*724ba675SRob Herring		output-low;
230*724ba675SRob Herring		line-name = "func_mode2";
231*724ba675SRob Herring	};
232*724ba675SRob Herring
233*724ba675SRob Herring	pin_gpio_a0 {
234*724ba675SRob Herring		gpio-hog;
235*724ba675SRob Herring		gpios = <ASPEED_GPIO(A, 0) GPIO_ACTIVE_HIGH>;
236*724ba675SRob Herring		input;
237*724ba675SRob Herring		line-name = "BMC_FAN_RESERVED_N";
238*724ba675SRob Herring	};
239*724ba675SRob Herring
240*724ba675SRob Herring	pin_gpio_a1 {
241*724ba675SRob Herring		gpio-hog;
242*724ba675SRob Herring		gpios = <ASPEED_GPIO(A, 1) GPIO_ACTIVE_HIGH>;
243*724ba675SRob Herring		output-high;
244*724ba675SRob Herring		line-name = "APSS_WDT_N";
245*724ba675SRob Herring	};
246*724ba675SRob Herring
247*724ba675SRob Herring	pin_gpio_b1 {
248*724ba675SRob Herring		gpio-hog;
249*724ba675SRob Herring		gpios = <ASPEED_GPIO(B, 1) GPIO_ACTIVE_HIGH>;
250*724ba675SRob Herring		output-high;
251*724ba675SRob Herring		line-name = "APSS_BOOT_MODE";
252*724ba675SRob Herring	};
253*724ba675SRob Herring
254*724ba675SRob Herring	pin_gpio_b2 {
255*724ba675SRob Herring		gpio-hog;
256*724ba675SRob Herring		gpios = <ASPEED_GPIO(B, 2) GPIO_ACTIVE_HIGH>;
257*724ba675SRob Herring		output-high;
258*724ba675SRob Herring		line-name = "APSS_RESET_N";
259*724ba675SRob Herring	};
260*724ba675SRob Herring
261*724ba675SRob Herring	pin_gpio_b7 {
262*724ba675SRob Herring		gpio-hog;
263*724ba675SRob Herring		gpios = <ASPEED_GPIO(B, 7) GPIO_ACTIVE_HIGH>;
264*724ba675SRob Herring		output-high;
265*724ba675SRob Herring		line-name = "SPIVID_STBY_RESET_N";
266*724ba675SRob Herring	};
267*724ba675SRob Herring
268*724ba675SRob Herring	pin_gpio_d1 {
269*724ba675SRob Herring		gpio-hog;
270*724ba675SRob Herring		gpios = <ASPEED_GPIO(D, 1) GPIO_ACTIVE_HIGH>;
271*724ba675SRob Herring		output-high;
272*724ba675SRob Herring		line-name = "BMC_POWER_UP";
273*724ba675SRob Herring	};
274*724ba675SRob Herring
275*724ba675SRob Herring	pin_gpio_f1 {
276*724ba675SRob Herring		gpio-hog;
277*724ba675SRob Herring		gpios = <ASPEED_GPIO(F, 1) GPIO_ACTIVE_HIGH>;
278*724ba675SRob Herring		input;
279*724ba675SRob Herring		line-name = "BMC_BATTERY_TEST";
280*724ba675SRob Herring	};
281*724ba675SRob Herring
282*724ba675SRob Herring	pin_gpio_f4 {
283*724ba675SRob Herring		gpio-hog;
284*724ba675SRob Herring		gpios = <ASPEED_GPIO(F, 4) GPIO_ACTIVE_HIGH>;
285*724ba675SRob Herring		input;
286*724ba675SRob Herring		line-name = "AST_HW_FAULT_N";
287*724ba675SRob Herring	};
288*724ba675SRob Herring
289*724ba675SRob Herring	pin_gpio_f5 {
290*724ba675SRob Herring		gpio-hog;
291*724ba675SRob Herring		gpios = <ASPEED_GPIO(F, 5) GPIO_ACTIVE_HIGH>;
292*724ba675SRob Herring		input;
293*724ba675SRob Herring		line-name = "AST_SYS_FAULT_N";
294*724ba675SRob Herring	};
295*724ba675SRob Herring
296*724ba675SRob Herring	pin_gpio_f7 {
297*724ba675SRob Herring		gpio-hog;
298*724ba675SRob Herring		gpios = <ASPEED_GPIO(F, 7) GPIO_ACTIVE_HIGH>;
299*724ba675SRob Herring		output-high;
300*724ba675SRob Herring		line-name = "BMC_FULL_SPEED_N";
301*724ba675SRob Herring	};
302*724ba675SRob Herring
303*724ba675SRob Herring	pin_gpio_g3 {
304*724ba675SRob Herring		gpio-hog;
305*724ba675SRob Herring		gpios = <ASPEED_GPIO(G, 3) GPIO_ACTIVE_HIGH>;
306*724ba675SRob Herring		output-high;
307*724ba675SRob Herring		line-name = "BMC_FAN_ERROR_N";
308*724ba675SRob Herring	};
309*724ba675SRob Herring
310*724ba675SRob Herring	pin_gpio_g4 {
311*724ba675SRob Herring		gpio-hog;
312*724ba675SRob Herring		gpios = <ASPEED_GPIO(G, 4) GPIO_ACTIVE_HIGH>;
313*724ba675SRob Herring		input;
314*724ba675SRob Herring		line-name = "BMC_WDT_RST1_P";
315*724ba675SRob Herring	};
316*724ba675SRob Herring
317*724ba675SRob Herring	pin_gpio_g5 {
318*724ba675SRob Herring		gpio-hog;
319*724ba675SRob Herring		gpios = <ASPEED_GPIO(G, 5) GPIO_ACTIVE_HIGH>;
320*724ba675SRob Herring		input;
321*724ba675SRob Herring		line-name = "BMC_WDT_RST2_P";
322*724ba675SRob Herring	};
323*724ba675SRob Herring
324*724ba675SRob Herring	pin_gpio_h0 {
325*724ba675SRob Herring		gpio-hog;
326*724ba675SRob Herring		gpios = <ASPEED_GPIO(H, 0) GPIO_ACTIVE_HIGH>;
327*724ba675SRob Herring		input;
328*724ba675SRob Herring		line-name = "PE_SLOT_TEST_EN_N";
329*724ba675SRob Herring	};
330*724ba675SRob Herring
331*724ba675SRob Herring	pin_gpio_h1 {
332*724ba675SRob Herring		gpio-hog;
333*724ba675SRob Herring		gpios = <ASPEED_GPIO(H, 1) GPIO_ACTIVE_HIGH>;
334*724ba675SRob Herring		input;
335*724ba675SRob Herring		line-name = "BMC_RTCRST_N";
336*724ba675SRob Herring	};
337*724ba675SRob Herring
338*724ba675SRob Herring	pin_gpio_h2 {
339*724ba675SRob Herring		gpio-hog;
340*724ba675SRob Herring		gpios = <ASPEED_GPIO(H, 2) GPIO_ACTIVE_HIGH>;
341*724ba675SRob Herring		output-high;
342*724ba675SRob Herring		line-name = "SYS_PWROK_BMC";
343*724ba675SRob Herring	};
344*724ba675SRob Herring
345*724ba675SRob Herring	pin_gpio_h7 {
346*724ba675SRob Herring		gpio-hog;
347*724ba675SRob Herring		gpios = <ASPEED_GPIO(H, 7) GPIO_ACTIVE_HIGH>;
348*724ba675SRob Herring		output-high;
349*724ba675SRob Herring		line-name = "BMC_TPM_INT_N";
350*724ba675SRob Herring	};
351*724ba675SRob Herring};
352*724ba675SRob Herring
353*724ba675SRob Herring&fsi {
354*724ba675SRob Herring	cfam@0,0 {
355*724ba675SRob Herring		reg = <0 0>;
356*724ba675SRob Herring		#address-cells = <1>;
357*724ba675SRob Herring		#size-cells = <1>;
358*724ba675SRob Herring		chip-id = <0>;
359*724ba675SRob Herring
360*724ba675SRob Herring		scom@1000 {
361*724ba675SRob Herring			compatible = "ibm,fsi2pib";
362*724ba675SRob Herring			reg = <0x1000 0x400>;
363*724ba675SRob Herring		};
364*724ba675SRob Herring
365*724ba675SRob Herring		fsi_hub0: hub@3400 {
366*724ba675SRob Herring			compatible = "ibm,fsi-master-hub";
367*724ba675SRob Herring			reg = <0x3400 0x400>;
368*724ba675SRob Herring			#address-cells = <2>;
369*724ba675SRob Herring			#size-cells = <0>;
370*724ba675SRob Herring			no-scan-on-init;
371*724ba675SRob Herring		};
372*724ba675SRob Herring	};
373*724ba675SRob Herring};
374