xref: /linux/scripts/dtc/include-prefixes/arm/aspeed/aspeed-bmc-opp-lanyang.dts (revision 3a39d672e7f48b8d6b91a09afa4b55352773b4b5)
1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0+
2*724ba675SRob Herring// Copyright (c) 2018 Inventec Corporation
3*724ba675SRob Herring/dts-v1/;
4*724ba675SRob Herring
5*724ba675SRob Herring#include "aspeed-g5.dtsi"
6*724ba675SRob Herring#include <dt-bindings/gpio/aspeed-gpio.h>
7*724ba675SRob Herring
8*724ba675SRob Herring/ {
9*724ba675SRob Herring	model = "Lanyang BMC";
10*724ba675SRob Herring	compatible = "inventec,lanyang-bmc", "aspeed,ast2500";
11*724ba675SRob Herring
12*724ba675SRob Herring	chosen {
13*724ba675SRob Herring		stdout-path = &uart5;
14*724ba675SRob Herring		bootargs = "console=ttyS4,115200 earlycon";
15*724ba675SRob Herring	};
16*724ba675SRob Herring
17*724ba675SRob Herring	memory@80000000 {
18*724ba675SRob Herring		reg = <0x80000000 0x40000000>;
19*724ba675SRob Herring	};
20*724ba675SRob Herring
21*724ba675SRob Herring	reserved-memory {
22*724ba675SRob Herring		#address-cells = <1>;
23*724ba675SRob Herring		#size-cells = <1>;
24*724ba675SRob Herring		ranges;
25*724ba675SRob Herring
26*724ba675SRob Herring		flash_memory: region@98000000 {
27*724ba675SRob Herring			no-map;
28*724ba675SRob Herring			reg = <0x98000000 0x04000000>; /* 64M */
29*724ba675SRob Herring		};
30*724ba675SRob Herring	};
31*724ba675SRob Herring
32*724ba675SRob Herring	leds {
33*724ba675SRob Herring		compatible = "gpio-leds";
34*724ba675SRob Herring
35*724ba675SRob Herring		sys_boot_status {
36*724ba675SRob Herring			label = "System_boot_status";
37*724ba675SRob Herring			gpios = <&gpio ASPEED_GPIO(B, 6) GPIO_ACTIVE_LOW>;
38*724ba675SRob Herring		};
39*724ba675SRob Herring
40*724ba675SRob Herring		attention {
41*724ba675SRob Herring			label = "Attention_locator";
42*724ba675SRob Herring			gpios = <&gpio ASPEED_GPIO(B, 7) GPIO_ACTIVE_HIGH>;
43*724ba675SRob Herring		};
44*724ba675SRob Herring
45*724ba675SRob Herring		plt_fault {
46*724ba675SRob Herring			label = "Platform_fault";
47*724ba675SRob Herring			gpios = <&gpio ASPEED_GPIO(B, 1) GPIO_ACTIVE_HIGH>;
48*724ba675SRob Herring		};
49*724ba675SRob Herring
50*724ba675SRob Herring		hdd_fault {
51*724ba675SRob Herring			label = "Onboard_drive_fault";
52*724ba675SRob Herring			gpios = <&gpio ASPEED_GPIO(B, 3) GPIO_ACTIVE_HIGH>;
53*724ba675SRob Herring		};
54*724ba675SRob Herring		bmc_err {
55*724ba675SRob Herring			lable = "BMC_fault";
56*724ba675SRob Herring			gpios = <&gpio ASPEED_GPIO(H, 6) GPIO_ACTIVE_HIGH>;
57*724ba675SRob Herring		};
58*724ba675SRob Herring
59*724ba675SRob Herring		sys_err {
60*724ba675SRob Herring			lable = "Sys_fault";
61*724ba675SRob Herring			gpios = <&gpio ASPEED_GPIO(H, 7) GPIO_ACTIVE_HIGH>;
62*724ba675SRob Herring		};
63*724ba675SRob Herring	};
64*724ba675SRob Herring
65*724ba675SRob Herring	fsi: gpio-fsi {
66*724ba675SRob Herring		compatible = "fsi-master-gpio", "fsi-master";
67*724ba675SRob Herring		#address-cells = <2>;
68*724ba675SRob Herring		#size-cells = <0>;
69*724ba675SRob Herring
70*724ba675SRob Herring		clock-gpios = <&gpio ASPEED_GPIO(J, 0) GPIO_ACTIVE_HIGH>;
71*724ba675SRob Herring		data-gpios = <&gpio ASPEED_GPIO(J, 1) GPIO_ACTIVE_HIGH>;
72*724ba675SRob Herring		trans-gpios = <&gpio ASPEED_GPIO(D, 5) GPIO_ACTIVE_HIGH>;
73*724ba675SRob Herring		enable-gpios = <&gpio ASPEED_GPIO(D, 0) GPIO_ACTIVE_HIGH>;
74*724ba675SRob Herring		mux-gpios = <&gpio ASPEED_GPIO(H, 2) GPIO_ACTIVE_HIGH>;
75*724ba675SRob Herring	};
76*724ba675SRob Herring
77*724ba675SRob Herring	iio-hwmon {
78*724ba675SRob Herring		compatible = "iio-hwmon";
79*724ba675SRob Herring		io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>,
80*724ba675SRob Herring			<&adc 4>, <&adc 5>, <&adc 6>, <&adc 7>,
81*724ba675SRob Herring			<&adc 8>, <&adc 9>, <&adc 10>, <&adc 11>,
82*724ba675SRob Herring			<&adc 13>, <&adc 14>, <&adc 15>;
83*724ba675SRob Herring	};
84*724ba675SRob Herring
85*724ba675SRob Herring	iio-hwmon-battery {
86*724ba675SRob Herring		compatible = "iio-hwmon";
87*724ba675SRob Herring		io-channels = <&adc 12>;
88*724ba675SRob Herring	};
89*724ba675SRob Herring};
90*724ba675SRob Herring
91*724ba675SRob Herring&pwm_tacho {
92*724ba675SRob Herring	status = "okay";
93*724ba675SRob Herring	pinctrl-names = "default";
94*724ba675SRob Herring	pinctrl-0 = <&pinctrl_pwm0_default &pinctrl_pwm1_default
95*724ba675SRob Herring		&pinctrl_pwm2_default &pinctrl_pwm3_default>;
96*724ba675SRob Herring
97*724ba675SRob Herring	fan@0 {
98*724ba675SRob Herring		reg = <0x00>;
99*724ba675SRob Herring		aspeed,fan-tach-ch = /bits/ 8 <0x00>;
100*724ba675SRob Herring	};
101*724ba675SRob Herring
102*724ba675SRob Herring	fan@1 {
103*724ba675SRob Herring		reg = <0x01>;
104*724ba675SRob Herring		aspeed,fan-tach-ch = /bits/ 8 <0x01>;
105*724ba675SRob Herring	};
106*724ba675SRob Herring
107*724ba675SRob Herring	fan@2 {
108*724ba675SRob Herring		reg = <0x02>;
109*724ba675SRob Herring		aspeed,fan-tach-ch = /bits/ 8 <0x02>;
110*724ba675SRob Herring	};
111*724ba675SRob Herring
112*724ba675SRob Herring	fan@3 {
113*724ba675SRob Herring		reg = <0x03>;
114*724ba675SRob Herring		aspeed,fan-tach-ch = /bits/ 8 <0x03>;
115*724ba675SRob Herring	};
116*724ba675SRob Herring};
117*724ba675SRob Herring
118*724ba675SRob Herring&fmc {
119*724ba675SRob Herring	status = "okay";
120*724ba675SRob Herring	flash@0 {
121*724ba675SRob Herring		status = "okay";
122*724ba675SRob Herring		m25p,fast-read;
123*724ba675SRob Herring		label = "bmc";
124*724ba675SRob Herring#include "openbmc-flash-layout.dtsi"
125*724ba675SRob Herring	};
126*724ba675SRob Herring};
127*724ba675SRob Herring
128*724ba675SRob Herring&spi1 {
129*724ba675SRob Herring	status = "okay";
130*724ba675SRob Herring	pinctrl-names = "default";
131*724ba675SRob Herring	pinctrl-0 = <&pinctrl_spi1_default>;
132*724ba675SRob Herring
133*724ba675SRob Herring	flash@0 {
134*724ba675SRob Herring		status = "okay";
135*724ba675SRob Herring		label = "pnor";
136*724ba675SRob Herring		m25p,fast-read;
137*724ba675SRob Herring	};
138*724ba675SRob Herring};
139*724ba675SRob Herring
140*724ba675SRob Herring&spi2 {
141*724ba675SRob Herring	status = "okay";
142*724ba675SRob Herring	pinctrl-names = "default";
143*724ba675SRob Herring	pinctrl-0 = <&pinctrl_spi2ck_default
144*724ba675SRob Herring		     &pinctrl_spi2cs0_default
145*724ba675SRob Herring		     &pinctrl_spi2cs1_default
146*724ba675SRob Herring		     &pinctrl_spi2miso_default
147*724ba675SRob Herring		     &pinctrl_spi2mosi_default>;
148*724ba675SRob Herring
149*724ba675SRob Herring	flash@0 {
150*724ba675SRob Herring		status = "okay";
151*724ba675SRob Herring	};
152*724ba675SRob Herring};
153*724ba675SRob Herring
154*724ba675SRob Herring&uart1 {
155*724ba675SRob Herring	status = "okay";
156*724ba675SRob Herring	pinctrl-names = "default";
157*724ba675SRob Herring	pinctrl-0 = <&pinctrl_txd1_default
158*724ba675SRob Herring		     &pinctrl_rxd1_default>;
159*724ba675SRob Herring};
160*724ba675SRob Herring
161*724ba675SRob Herring&lpc_ctrl {
162*724ba675SRob Herring	status = "okay";
163*724ba675SRob Herring	memory-region = <&flash_memory>;
164*724ba675SRob Herring	flash = <&spi1>;
165*724ba675SRob Herring};
166*724ba675SRob Herring
167*724ba675SRob Herring&lpc_snoop {
168*724ba675SRob Herring	status = "okay";
169*724ba675SRob Herring	snoop-ports = <0x80>;
170*724ba675SRob Herring};
171*724ba675SRob Herring
172*724ba675SRob Herring&uart5 {
173*724ba675SRob Herring	status = "okay";
174*724ba675SRob Herring};
175*724ba675SRob Herring
176*724ba675SRob Herring&mac0 {
177*724ba675SRob Herring	status = "okay";
178*724ba675SRob Herring
179*724ba675SRob Herring	pinctrl-names = "default";
180*724ba675SRob Herring	pinctrl-0 = <&pinctrl_rmii1_default>;
181*724ba675SRob Herring	clocks = <&syscon ASPEED_CLK_GATE_MAC1CLK>,
182*724ba675SRob Herring		 <&syscon ASPEED_CLK_MAC1RCLK>;
183*724ba675SRob Herring	clock-names = "MACCLK", "RCLK";
184*724ba675SRob Herring	use-ncsi;
185*724ba675SRob Herring};
186*724ba675SRob Herring
187*724ba675SRob Herring&mac1 {
188*724ba675SRob Herring	status = "okay";
189*724ba675SRob Herring
190*724ba675SRob Herring	pinctrl-names = "default";
191*724ba675SRob Herring	pinctrl-0 = <&pinctrl_rgmii2_default &pinctrl_mdio2_default>;
192*724ba675SRob Herring};
193*724ba675SRob Herring
194*724ba675SRob Herring&i2c0 {
195*724ba675SRob Herring	status = "okay";
196*724ba675SRob Herring
197*724ba675SRob Herring	eeprom@55 {
198*724ba675SRob Herring		compatible = "atmel,24c64";
199*724ba675SRob Herring		reg = <0x55>;
200*724ba675SRob Herring		pagesize = <32>;
201*724ba675SRob Herring	};
202*724ba675SRob Herring
203*724ba675SRob Herring	rtc@68 {
204*724ba675SRob Herring		compatible = "nxp,pcf8523";
205*724ba675SRob Herring		reg = <0x68>;
206*724ba675SRob Herring	};
207*724ba675SRob Herring
208*724ba675SRob Herring	tmp75@48 {
209*724ba675SRob Herring		compatible = "ti,tmp75";
210*724ba675SRob Herring		reg = <0x48>;
211*724ba675SRob Herring	};
212*724ba675SRob Herring};
213*724ba675SRob Herring
214*724ba675SRob Herring&i2c1 {
215*724ba675SRob Herring	status = "okay";
216*724ba675SRob Herring};
217*724ba675SRob Herring
218*724ba675SRob Herring&i2c2 {
219*724ba675SRob Herring	status = "okay";
220*724ba675SRob Herring};
221*724ba675SRob Herring
222*724ba675SRob Herring&i2c3 {
223*724ba675SRob Herring	status = "okay";
224*724ba675SRob Herring};
225*724ba675SRob Herring
226*724ba675SRob Herring&i2c4 {
227*724ba675SRob Herring	status = "okay";
228*724ba675SRob Herring};
229*724ba675SRob Herring
230*724ba675SRob Herring&i2c5 {
231*724ba675SRob Herring	status = "okay";
232*724ba675SRob Herring};
233*724ba675SRob Herring
234*724ba675SRob Herring&i2c6 {
235*724ba675SRob Herring	status = "okay";
236*724ba675SRob Herring};
237*724ba675SRob Herring
238*724ba675SRob Herring&i2c7 {
239*724ba675SRob Herring	status = "okay";
240*724ba675SRob Herring};
241*724ba675SRob Herring
242*724ba675SRob Herring&i2c8 {
243*724ba675SRob Herring	status = "okay";
244*724ba675SRob Herring};
245*724ba675SRob Herring
246*724ba675SRob Herring&i2c9 {
247*724ba675SRob Herring	status = "okay";
248*724ba675SRob Herring};
249*724ba675SRob Herring
250*724ba675SRob Herring&i2c10 {
251*724ba675SRob Herring	status = "okay";
252*724ba675SRob Herring};
253*724ba675SRob Herring
254*724ba675SRob Herring&i2c11 {
255*724ba675SRob Herring	status = "okay";
256*724ba675SRob Herring};
257*724ba675SRob Herring
258*724ba675SRob Herring&vuart {
259*724ba675SRob Herring	status = "okay";
260*724ba675SRob Herring};
261*724ba675SRob Herring
262*724ba675SRob Herring&gfx {
263*724ba675SRob Herring	status = "okay";
264*724ba675SRob Herring};
265*724ba675SRob Herring
266*724ba675SRob Herring&gpio {
267*724ba675SRob Herring	pin_gpio_b0 {
268*724ba675SRob Herring		gpio-hog;
269*724ba675SRob Herring		gpios = <ASPEED_GPIO(B, 0) GPIO_ACTIVE_HIGH>;
270*724ba675SRob Herring		output-high;
271*724ba675SRob Herring		line-name = "BMC_HDD1_PWR_EN";
272*724ba675SRob Herring	};
273*724ba675SRob Herring
274*724ba675SRob Herring	pin_gpio_b5 {
275*724ba675SRob Herring		gpio-hog;
276*724ba675SRob Herring		gpios = <ASPEED_GPIO(B, 5) GPIO_ACTIVE_HIGH>;
277*724ba675SRob Herring		input;
278*724ba675SRob Herring		line-name = "BMC_USB1_OCI2";
279*724ba675SRob Herring	};
280*724ba675SRob Herring
281*724ba675SRob Herring	pin_gpio_h5 {
282*724ba675SRob Herring		gpio-hog;
283*724ba675SRob Herring		gpios = <ASPEED_GPIO(H, 5) GPIO_ACTIVE_HIGH>;
284*724ba675SRob Herring		output-high;
285*724ba675SRob Herring		line-name = "BMC_CP0_PERST_ENABLE_R";
286*724ba675SRob Herring	};
287*724ba675SRob Herring
288*724ba675SRob Herring	pin_gpio_z2 {
289*724ba675SRob Herring		gpio-hog;
290*724ba675SRob Herring		gpios = <ASPEED_GPIO(Z, 2) GPIO_ACTIVE_HIGH>;
291*724ba675SRob Herring		output-high;
292*724ba675SRob Herring		line-name = "RST_PCA9546_U177_N";
293*724ba675SRob Herring	};
294*724ba675SRob Herring
295*724ba675SRob Herring	pin_gpio_aa6 {
296*724ba675SRob Herring		gpio-hog;
297*724ba675SRob Herring		gpios = <ASPEED_GPIO(AA, 6) GPIO_ACTIVE_HIGH>;
298*724ba675SRob Herring		output-high;
299*724ba675SRob Herring		line-name = "BMC_CP0_RESET_N";
300*724ba675SRob Herring	};
301*724ba675SRob Herring
302*724ba675SRob Herring	pin_gpio_aa7 {
303*724ba675SRob Herring		gpio-hog;
304*724ba675SRob Herring		gpios = <ASPEED_GPIO(AA, 7) GPIO_ACTIVE_HIGH>;
305*724ba675SRob Herring		output-high;
306*724ba675SRob Herring		line-name = "BMC_TPM_RESET_N";
307*724ba675SRob Herring	};
308*724ba675SRob Herring
309*724ba675SRob Herring	pin_gpio_ab0 {
310*724ba675SRob Herring		gpio-hog;
311*724ba675SRob Herring		gpios = <ASPEED_GPIO(AB, 0) GPIO_ACTIVE_LOW>;
312*724ba675SRob Herring		output-high;
313*724ba675SRob Herring		line-name = "BMC_USB_PWRON_N";
314*724ba675SRob Herring	};
315*724ba675SRob Herring};
316*724ba675SRob Herring
317*724ba675SRob Herring&ibt {
318*724ba675SRob Herring	status = "okay";
319*724ba675SRob Herring};
320*724ba675SRob Herring
321*724ba675SRob Herring&adc {
322*724ba675SRob Herring	status = "okay";
323*724ba675SRob Herring};
324*724ba675SRob Herring
325*724ba675SRob Herring#include "ibm-power9-dual.dtsi"
326