Merge tag 'kvm-ppc-next-4.18-2' of git://git.kernel.org/pub/scm/linux/kernel/git...
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / aspeed-bmc-portwell-neptune.dts
1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (c) 2017 Facebook Inc.
3 /dts-v1/;
4
5 #include "aspeed-g5.dtsi"
6 #include <dt-bindings/gpio/aspeed-gpio.h>
7
8 / {
9         model = "Portwell Neptune BMC";
10         compatible = "portwell,neptune-bmc", "aspeed,ast2500";
11         aliases {
12                 serial0 = &uart1;
13                 serial4 = &uart5;
14         };
15         chosen {
16                 stdout-path = &uart5;
17                 bootargs = "console=ttyS4,115200 earlyprintk";
18         };
19
20         memory {
21                 reg = <0x80000000 0x20000000>;
22         };
23
24         leds {
25                 compatible = "gpio-leds";
26                 postcode0 {
27                         label="BMC_UP";
28                         gpios = <&gpio ASPEED_GPIO(H, 0) GPIO_ACTIVE_HIGH>;
29                         default-state = "on";
30                 };
31                 postcode1 {
32                         label="BMC_HB";
33                         gpios = <&gpio ASPEED_GPIO(H, 1) GPIO_ACTIVE_HIGH>;
34                         linux,default-trigger = "heartbeat";
35                 };
36                 postcode2 {
37                         label="FAULT";
38                         gpios = <&gpio ASPEED_GPIO(H, 2) GPIO_ACTIVE_HIGH>;
39                 };
40                 // postcode3-7 are GPIOH3-H7
41         };
42 };
43
44 &fmc {
45         status = "okay";
46         flash@0 {
47                 status = "okay";
48                 m25p,fast-read;
49 #include "openbmc-flash-layout.dtsi"
50         };
51 };
52
53 &spi1 {
54         status = "okay";
55         pinctrl-names = "default";
56         pinctrl-0 = <&pinctrl_spi1_default>;
57         flash@0 {
58                 status = "okay";
59                 m25p,fast-read;
60                 label = "pnor";
61         };
62 };
63
64 &uart1 {
65         // Host Console
66         status = "okay";
67         pinctrl-names = "default";
68         pinctrl-0 = <&pinctrl_txd1_default
69                      &pinctrl_rxd1_default>;
70 };
71
72 &uart5 {
73         // BMC Console
74         status = "okay";
75 };
76
77 &mac0 {
78         status = "okay";
79
80         pinctrl-names = "default";
81         pinctrl-0 = <&pinctrl_rmii1_default
82                      &pinctrl_mdio1_default>;
83 };
84
85 &mac1 {
86         status = "okay";
87         pinctrl-names = "default";
88         pinctrl-0 = <&pinctrl_rmii2_default>;
89         use-ncsi;
90 };
91
92 &i2c1 {
93         status = "okay";
94         // To PCIe slot SMBUS
95 };
96
97 &i2c2 {
98         status = "okay";
99         // To LAN I210
100 };
101
102 &i2c3 {
103         status = "okay";
104         // SMBus to COMe AB
105 };
106
107 &i2c4 {
108         status = "okay";
109         // I2C to COMe AB
110 };
111
112 &i2c5 {
113         status = "okay";
114 //      USB Debug card
115         pca9555@27 {
116                 compatible = "nxp,pca9555";
117                 reg = <0x27>;
118         };
119 };
120
121 &i2c6 {
122         status = "okay";
123         tpm@20 {
124                 compatible = "infineon,slb9645tt";
125                 reg = <0x20>;
126         };
127         tmp421@4e {
128                 compatible = "ti,tmp421";
129                 reg = <0x4e>;
130         };
131         tmp421@4f {
132                 compatible = "ti,tmp421";
133                 reg = <0x4f>;
134         };
135 };
136
137 &i2c8 {
138         status = "okay";
139         eeprom@51 {
140                 compatible = "atmel,24c128";
141                 reg = <0x51>;
142                 pagesize = <32>;
143         };
144 };
145
146 &pwm_tacho {
147         status = "okay";
148         pinctrl-names = "default";
149         pinctrl-0 = <&pinctrl_pwm0_default &pinctrl_pwm1_default>;
150         fan@0 {
151                 reg = <0x00>;
152                 aspeed,fan-tach-ch = /bits/ 8 <0x00>;
153         };
154
155         fan@1 {
156                 reg = <0x00>;
157                 aspeed,fan-tach-ch = /bits/ 8 <0x01>;
158         };
159 };