1*724ba675SRob Herring//SPDX-License-Identifier: GPL-2.0+
2*724ba675SRob Herring
3*724ba675SRob Herring/dts-v1/;
4*724ba675SRob Herring
5*724ba675SRob Herring#include "aspeed-g4.dtsi"
6*724ba675SRob Herring#include <dt-bindings/gpio/aspeed-gpio.h>
7*724ba675SRob Herring
8*724ba675SRob Herring/ {
9*724ba675SRob Herring	model = "Olympus BMC";
10*724ba675SRob Herring	compatible = "microsoft,olympus-bmc", "aspeed,ast2400";
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@40000000 {
18*724ba675SRob Herring		reg = <0x40000000 0x20000000>;
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		vga_memory: framebuffer@5f000000 {
27*724ba675SRob Herring			no-map;
28*724ba675SRob Herring			reg = <0x5f000000 0x01000000>; /* 16M */
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		bmc_heartbeat {
36*724ba675SRob Herring			gpios = <&gpio ASPEED_GPIO(B, 0) GPIO_ACTIVE_LOW>;
37*724ba675SRob Herring		};
38*724ba675SRob Herring
39*724ba675SRob Herring		power_green {
40*724ba675SRob Herring			gpios = <&gpio ASPEED_GPIO(U, 2) GPIO_ACTIVE_HIGH>;
41*724ba675SRob Herring		};
42*724ba675SRob Herring
43*724ba675SRob Herring		power_amber {
44*724ba675SRob Herring			gpios = <&gpio ASPEED_GPIO(U, 3) GPIO_ACTIVE_HIGH>;
45*724ba675SRob Herring		};
46*724ba675SRob Herring
47*724ba675SRob Herring		identify {
48*724ba675SRob Herring			gpios = <&gpio ASPEED_GPIO(Q, 5) GPIO_ACTIVE_LOW>;
49*724ba675SRob Herring		};
50*724ba675SRob Herring
51*724ba675SRob Herring		fault {
52*724ba675SRob Herring			gpios = <&gpio ASPEED_GPIO(A, 1) GPIO_ACTIVE_LOW>;
53*724ba675SRob Herring		};
54*724ba675SRob Herring	};
55*724ba675SRob Herring
56*724ba675SRob Herring
57*724ba675SRob Herring	iio-hwmon {
58*724ba675SRob Herring		compatible = "iio-hwmon";
59*724ba675SRob Herring		io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>,
60*724ba675SRob Herring		<&adc 4>, <&adc 5>, <&adc 6>, <&adc 7>;
61*724ba675SRob Herring	};
62*724ba675SRob Herring};
63*724ba675SRob Herring
64*724ba675SRob Herring&adc {
65*724ba675SRob Herring	status = "okay";
66*724ba675SRob Herring	pinctrl-names = "default";
67*724ba675SRob Herring	pinctrl-0 =    <&pinctrl_adc0_default
68*724ba675SRob Herring			&pinctrl_adc1_default
69*724ba675SRob Herring			&pinctrl_adc2_default
70*724ba675SRob Herring			&pinctrl_adc3_default
71*724ba675SRob Herring			&pinctrl_adc4_default
72*724ba675SRob Herring			&pinctrl_adc5_default
73*724ba675SRob Herring			&pinctrl_adc6_default
74*724ba675SRob Herring			&pinctrl_adc7_default>;
75*724ba675SRob Herring};
76*724ba675SRob Herring
77*724ba675SRob Herring&fmc {
78*724ba675SRob Herring	status = "okay";
79*724ba675SRob Herring
80*724ba675SRob Herring	flash@0 {
81*724ba675SRob Herring		status = "okay";
82*724ba675SRob Herring		m25p,fast-read;
83*724ba675SRob Herring		label = "bmc";
84*724ba675SRob Herring#include "openbmc-flash-layout.dtsi"
85*724ba675SRob Herring	};
86*724ba675SRob Herring};
87*724ba675SRob Herring
88*724ba675SRob Herring&spi {
89*724ba675SRob Herring	status = "okay";
90*724ba675SRob Herring	pinctrl-names = "default";
91*724ba675SRob Herring	pinctrl-0 = <&pinctrl_spi1_default>;
92*724ba675SRob Herring
93*724ba675SRob Herring	flash@0 {
94*724ba675SRob Herring		status = "okay";
95*724ba675SRob Herring		m25p,fast-read;
96*724ba675SRob Herring		label = "pnor";
97*724ba675SRob Herring	};
98*724ba675SRob Herring};
99*724ba675SRob Herring
100*724ba675SRob Herring&uart5 {
101*724ba675SRob Herring	status = "okay";
102*724ba675SRob Herring};
103*724ba675SRob Herring
104*724ba675SRob Herring&mac0 {
105*724ba675SRob Herring	status = "okay";
106*724ba675SRob Herring
107*724ba675SRob Herring	pinctrl-names = "default";
108*724ba675SRob Herring	pinctrl-0 = <&pinctrl_rgmii1_default &pinctrl_mdio1_default>;
109*724ba675SRob Herring};
110*724ba675SRob Herring
111*724ba675SRob Herring&i2c0 {
112*724ba675SRob Herring	status = "okay";
113*724ba675SRob Herring};
114*724ba675SRob Herring
115*724ba675SRob Herring&i2c1 {
116*724ba675SRob Herring	status = "okay";
117*724ba675SRob Herring
118*724ba675SRob Herring	tmp421@4c {
119*724ba675SRob Herring		compatible = "ti,tmp421";
120*724ba675SRob Herring		reg = <0x4c>;
121*724ba675SRob Herring	};
122*724ba675SRob Herring};
123*724ba675SRob Herring
124*724ba675SRob Herring&i2c2 {
125*724ba675SRob Herring	status = "okay";
126*724ba675SRob Herring};
127*724ba675SRob Herring
128*724ba675SRob Herring&i2c3 {
129*724ba675SRob Herring	status = "okay";
130*724ba675SRob Herring};
131*724ba675SRob Herring
132*724ba675SRob Herring&i2c4 {
133*724ba675SRob Herring	status = "okay";
134*724ba675SRob Herring	clock-frequency = <100000>;
135*724ba675SRob Herring};
136*724ba675SRob Herring
137*724ba675SRob Herring&i2c5 {
138*724ba675SRob Herring	status = "okay";
139*724ba675SRob Herring};
140*724ba675SRob Herring
141*724ba675SRob Herring&i2c6 {
142*724ba675SRob Herring	status = "okay";
143*724ba675SRob Herring
144*724ba675SRob Herring	tmp421@4c {
145*724ba675SRob Herring		compatible = "ti,tmp421";
146*724ba675SRob Herring		reg = <0x4c>;
147*724ba675SRob Herring	};
148*724ba675SRob Herring};
149*724ba675SRob Herring
150*724ba675SRob Herring&i2c7 {
151*724ba675SRob Herring	status = "okay";
152*724ba675SRob Herring};
153*724ba675SRob Herring
154*724ba675SRob Herring&vuart {
155*724ba675SRob Herring	status = "okay";
156*724ba675SRob Herring};
157*724ba675SRob Herring
158*724ba675SRob Herring&wdt2 {
159*724ba675SRob Herring	status = "okay";
160*724ba675SRob Herring};
161*724ba675SRob Herring
162*724ba675SRob Herring&lpc_ctrl {
163*724ba675SRob Herring	status = "okay";
164*724ba675SRob Herring};
165*724ba675SRob Herring
166*724ba675SRob Herring&pwm_tacho {
167*724ba675SRob Herring	status = "okay";
168*724ba675SRob Herring	pinctrl-names = "default";
169*724ba675SRob Herring	pinctrl-0 =    <&pinctrl_pwm0_default
170*724ba675SRob Herring			&pinctrl_pwm1_default
171*724ba675SRob Herring			&pinctrl_pwm2_default
172*724ba675SRob Herring			&pinctrl_pwm3_default
173*724ba675SRob Herring			&pinctrl_pwm4_default
174*724ba675SRob Herring			&pinctrl_pwm5_default
175*724ba675SRob Herring			&pinctrl_pwm6_default>;
176*724ba675SRob Herring
177*724ba675SRob Herring	fan@0 {
178*724ba675SRob Herring		reg = <0x00>;
179*724ba675SRob Herring		aspeed,fan-tach-ch = /bits/ 8 <0x00>;
180*724ba675SRob Herring	};
181*724ba675SRob Herring
182*724ba675SRob Herring	fan@1 {
183*724ba675SRob Herring		reg = <0x01>;
184*724ba675SRob Herring		aspeed,fan-tach-ch = /bits/ 8 <0x01>;
185*724ba675SRob Herring	};
186*724ba675SRob Herring
187*724ba675SRob Herring	fan@2 {
188*724ba675SRob Herring		reg = <0x02>;
189*724ba675SRob Herring		aspeed,fan-tach-ch = /bits/ 8 <0x02>;
190*724ba675SRob Herring	};
191*724ba675SRob Herring
192*724ba675SRob Herring	fan@3 {
193*724ba675SRob Herring		reg = <0x03>;
194*724ba675SRob Herring		aspeed,fan-tach-ch = /bits/ 8 <0x03>;
195*724ba675SRob Herring	};
196*724ba675SRob Herring
197*724ba675SRob Herring	fan@4 {
198*724ba675SRob Herring		reg = <0x04>;
199*724ba675SRob Herring		aspeed,fan-tach-ch = /bits/ 8 <0x04>;
200*724ba675SRob Herring	};
201*724ba675SRob Herring
202*724ba675SRob Herring	fan@5 {
203*724ba675SRob Herring		reg = <0x05>;
204*724ba675SRob Herring		aspeed,fan-tach-ch = /bits/ 8 <0x05>;
205*724ba675SRob Herring	};
206*724ba675SRob Herring
207*724ba675SRob Herring};
208