Merge tag 'armsoc-defconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / aspeed-bmc-opp-vesnin.dts
1 // SPDX-License-Identifier: GPL-2.0+
2 // Copyright 2019 YADRO
3 /dts-v1/;
4
5 #include "aspeed-g4.dtsi"
6 #include <dt-bindings/gpio/aspeed-gpio.h>
7
8 / {
9         model = "Vesnin BMC";
10         compatible = "yadro,vesnin-bmc", "aspeed,ast2400";
11
12         chosen {
13                 stdout-path = &uart5;
14                 bootargs = "console=ttyS4,115200 earlyprintk";
15         };
16
17         memory {
18                 reg = <0x40000000 0x20000000>;
19         };
20
21         reserved-memory {
22                 #address-cells = <1>;
23                 #size-cells = <1>;
24                 ranges;
25
26                 vga_memory: framebuffer@5f000000 {
27                         no-map;
28                         reg = <0x5f000000 0x01000000>; /* 16MB */
29                 };
30                 flash_memory: region@5c000000 {
31                         no-map;
32                         reg = <0x5c000000 0x02000000>; /* 32M */
33                 };
34         };
35
36         leds {
37                 compatible = "gpio-leds";
38
39                 heartbeat {
40                         gpios = <&gpio ASPEED_GPIO(R, 4) GPIO_ACTIVE_LOW>;
41                 };
42                 power_red {
43                         gpios = <&gpio ASPEED_GPIO(N, 1) GPIO_ACTIVE_LOW>;
44                 };
45
46                 id_blue {
47                         gpios = <&gpio ASPEED_GPIO(O, 0) GPIO_ACTIVE_LOW>;
48                 };
49
50                 alarm_red {
51                         gpios = <&gpio ASPEED_GPIO(N, 6) GPIO_ACTIVE_LOW>;
52                 };
53
54                 alarm_yel {
55                         gpios = <&gpio ASPEED_GPIO(N, 7) GPIO_ACTIVE_HIGH>;
56                 };
57         };
58
59         gpio-keys {
60                 compatible = "gpio-keys";
61
62                 button_checkstop {
63                         label = "checkstop";
64                         linux,code = <74>;
65                         gpios = <&gpio ASPEED_GPIO(P, 5) GPIO_ACTIVE_LOW>;
66                 };
67
68                 button_identify {
69                         label = "identify";
70                         linux,code = <152>;
71                         gpios = <&gpio ASPEED_GPIO(O, 7) GPIO_ACTIVE_LOW>;
72                 };
73         };
74 };
75
76 &fmc {
77         status = "okay";
78         flash@0 {
79                 status = "okay";
80                 m25p,fast-read;
81         label = "bmc";
82 #include "openbmc-flash-layout.dtsi"
83         };
84 };
85
86 &spi {
87         status = "okay";
88         pinctrl-names = "default";
89         pinctrl-0 = <&pinctrl_spi1debug_default>;
90
91         flash@0 {
92                 status = "okay";
93                 label = "pnor";
94                 m25p,fast-read;
95         };
96 };
97
98 &mac0 {
99         status = "okay";
100
101         use-ncsi;
102         no-hw-checksum;
103
104         pinctrl-names = "default";
105         pinctrl-0 = <&pinctrl_rmii1_default>;
106 };
107
108
109 &uart5 {
110         status = "okay";
111 };
112
113 &lpc_ctrl {
114         status = "okay";
115         memory-region = <&flash_memory>;
116         flash = <&spi>;
117 };
118
119 &ibt {
120         status = "okay";
121 };
122
123 &uart3 {
124         status = "okay";
125         pinctrl-names = "default";
126         pinctrl-0 = <&pinctrl_txd2_default &pinctrl_rxd2_default>;
127 };
128
129 &i2c0 {
130         status = "okay";
131
132         eeprom@50 {
133                 compatible = "atmel,24c256";
134                 reg = <0x50>;
135                 pagesize = <64>;
136         };
137 };
138
139 &i2c1 {
140         status = "okay";
141
142         tmp75@49 {
143                 compatible = "ti,tmp75";
144                 reg = <0x49>;
145         };
146 };
147
148 &i2c2 {
149         status = "okay";
150 };
151
152 &i2c3 {
153         status = "okay";
154 };
155
156 &i2c4 {
157         status = "okay";
158
159         occ-hwmon@50 {
160                 compatible = "ibm,p8-occ-hwmon";
161                 reg = <0x50>;
162         };
163 };
164
165 &i2c5 {
166         status = "okay";
167
168         occ-hwmon@51 {
169                 compatible = "ibm,p8-occ-hwmon";
170                 reg = <0x51>;
171         };
172 };
173
174 &i2c6 {
175         status = "okay";
176
177         w83795g@2f {
178                 compatible = "nuvoton,w83795g";
179                 reg = <0x2f>;
180         };
181 };
182
183 &i2c7 {
184         status = "okay";
185
186         occ-hwmon@56 {
187                 compatible = "ibm,p8-occ-hwmon";
188                 reg = <0x56>;
189         };
190 };
191
192 &i2c9 {
193         status = "okay";
194 };
195
196 &i2c10 {
197         status = "okay";
198 };
199
200 &i2c11 {
201         status = "okay";
202
203         occ-hwmon@57 {
204                 compatible = "ibm,p8-occ-hwmon";
205                 reg = <0x57>;
206         };
207 };
208
209 &i2c12 {
210         status = "okay";
211
212         rtc@68 {
213                 compatible = "maxim,ds3231";
214                 reg = <0x68>;
215         };
216 };
217
218 &i2c13 {
219         status = "okay";
220 };
221
222 &vuart {
223         status = "okay";
224 };