1// SPDX-License-Identifier: GPL-2.0
2// Copyright (c) 2020 Super Micro Computer, Inc
3
4/dts-v1/;
5
6#include "aspeed-g5.dtsi"
7
8/ {
9	model = "X11SPI BMC";
10	compatible = "supermicro,x11spi-bmc", "aspeed,ast2500";
11
12	chosen {
13		stdout-path = &uart5;
14		bootargs = "earlycon";
15	};
16
17	memory@80000000 {
18		reg = <0x80000000 0x20000000>;
19	};
20
21	reserved-memory {
22		#address-cells = <1>;
23		#size-cells = <1>;
24		ranges;
25
26		vga_memory: framebuffer@7f000000 {
27			no-map;
28			reg = <0x7f000000 0x01000000>;
29		};
30	};
31
32	iio-hwmon {
33		compatible = "iio-hwmon";
34		io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>,
35			<&adc 4>, <&adc 5>, <&adc 6>, <&adc 7>,
36			<&adc 8>, <&adc 9>, <&adc 10>, <&adc 11>,
37			<&adc 12>, <&adc 13>, <&adc 14>, <&adc 15>;
38	};
39
40};
41
42&gpio {
43    status = "okay";
44};
45
46&fmc {
47	status = "okay";
48	flash@0 {
49		status = "okay";
50		m25p,fast-read;
51		label = "bmc";
52#include "openbmc-flash-layout.dtsi"
53	};
54};
55
56&spi1 {
57	status = "okay";
58	pinctrl-names = "default";
59	pinctrl-0 = <&pinctrl_spi1_default>;
60
61	flash@0 {
62		status = "okay";
63		m25p,fast-read;
64		label = "pnor";
65	};
66};
67
68&uart5 {
69	status = "okay";
70};
71
72&mac0 {
73    status = "okay";
74
75    pinctrl-names = "default";
76    pinctrl-0 = <&pinctrl_rmii1_default>;
77    clocks = <&syscon ASPEED_CLK_GATE_MAC1CLK>,
78           <&syscon ASPEED_CLK_MAC1RCLK>;
79    clock-names = "MACCLK", "RCLK";
80    use-ncsi;
81};
82
83&mac1 {
84	status = "okay";
85
86	pinctrl-names = "default";
87	pinctrl-0 = <&pinctrl_rgmii2_default &pinctrl_mdio2_default>;
88};
89
90&i2c1 {
91	status = "okay";
92};
93
94&i2c2 {
95	status = "okay";
96};
97
98&i2c3 {
99	status = "okay";
100};
101
102&i2c4 {
103	status = "okay";
104};
105
106&i2c5 {
107	status = "okay";
108};
109
110&i2c6 {
111	status = "okay";
112};
113
114&i2c7 {
115	status = "okay";
116};
117
118&i2c13 {
119	status = "okay";
120};
121
122&gfx {
123	status = "okay";
124};
125
126&pinctrl {
127	aspeed,external-nodes = <&gfx &lhc>;
128};
129
130&pwm_tacho {
131	status = "okay";
132	pinctrl-names = "default";
133	pinctrl-0 = <&pinctrl_pwm0_default &pinctrl_pwm1_default
134			 &pinctrl_pwm2_default &pinctrl_pwm3_default
135			 &pinctrl_pwm4_default &pinctrl_pwm5_default
136			 &pinctrl_pwm6_default &pinctrl_pwm7_default>;
137};
138