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