Linux Audio

Check our new training course

Loading...
v5.14.15
  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 earlycon";
 15	};
 16
 17	memory@40000000 {
 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		power_green {
 47			gpios = <&gpio ASPEED_GPIO(F, 1) GPIO_ACTIVE_LOW>;
 48		};
 49
 50		id_blue {
 51			gpios = <&gpio ASPEED_GPIO(O, 0) GPIO_ACTIVE_LOW>;
 52		};
 53
 54		alarm_red {
 55			gpios = <&gpio ASPEED_GPIO(N, 6) GPIO_ACTIVE_LOW>;
 56		};
 57
 58		alarm_yel {
 59			gpios = <&gpio ASPEED_GPIO(N, 7) GPIO_ACTIVE_HIGH>;
 60		};
 61	};
 62
 63	gpio-keys {
 64		compatible = "gpio-keys";
 65
 66		button_checkstop {
 67			label = "checkstop";
 68			linux,code = <74>;
 69			gpios = <&gpio ASPEED_GPIO(P, 5) GPIO_ACTIVE_LOW>;
 70		};
 71
 72		button_identify {
 73			label = "identify";
 74			linux,code = <152>;
 75			gpios = <&gpio ASPEED_GPIO(O, 7) GPIO_ACTIVE_LOW>;
 76		};
 77	};
 78};
 79
 80&fmc {
 81	status = "okay";
 82	flash@0 {
 83		status = "okay";
 84		m25p,fast-read;
 85        label = "bmc";
 86#include "openbmc-flash-layout.dtsi"
 87	};
 88
 89	flash@1 {
 90		status = "okay";
 91		m25p,fast-read;
 92		label = "alt";
 93	};
 94};
 95
 96&spi {
 97	status = "okay";
 98	pinctrl-names = "default";
 99	pinctrl-0 = <&pinctrl_spi1debug_default>;
100
101	flash@0 {
102		status = "okay";
103		label = "pnor";
104		m25p,fast-read;
105	};
106};
107
108&mac0 {
109	status = "okay";
 
110	use-ncsi;
 
 
111	pinctrl-names = "default";
112	pinctrl-0 = <&pinctrl_rmii1_default>;
113};
114
115
116&uart5 {
117	status = "okay";
118};
119
120&lpc_ctrl {
121	status = "okay";
122	memory-region = <&flash_memory>;
123	flash = <&spi>;
124};
125
126&ibt {
127	status = "okay";
128};
129
130&uart3 {
131	status = "okay";
132	pinctrl-names = "default";
133	pinctrl-0 = <&pinctrl_txd2_default &pinctrl_rxd2_default>;
134};
135
136&i2c0 {
137	status = "okay";
138
139	eeprom@50 {
140		compatible = "atmel,24c256";
141		reg = <0x50>;
142		pagesize = <64>;
143	};
144};
145
146&i2c1 {
147	status = "okay";
148
149	tmp75@49 {
150		compatible = "ti,tmp75";
151		reg = <0x49>;
152	};
153};
154
155&i2c2 {
156	status = "okay";
157};
158
159&i2c3 {
160	status = "okay";
161};
162
163&i2c4 {
164	status = "okay";
165
166	occ-hwmon@50 {
167		compatible = "ibm,p8-occ-hwmon";
168		reg = <0x50>;
169	};
170};
171
172&i2c5 {
173	status = "okay";
174
175	occ-hwmon@51 {
176		compatible = "ibm,p8-occ-hwmon";
177		reg = <0x51>;
178	};
179};
180
181&i2c6 {
182	status = "okay";
183
184	w83795g@2f {
185		compatible = "nuvoton,w83795g";
186		reg = <0x2f>;
187	};
188};
189
190&i2c7 {
191	status = "okay";
192
193	occ-hwmon@56 {
194		compatible = "ibm,p8-occ-hwmon";
195		reg = <0x56>;
196	};
197};
198
199&i2c9 {
200	status = "okay";
201};
202
203&i2c10 {
204	status = "okay";
205};
206
207&i2c11 {
208	status = "okay";
209
210	occ-hwmon@57 {
211		compatible = "ibm,p8-occ-hwmon";
212		reg = <0x57>;
213	};
214};
215
216&i2c12 {
217	status = "okay";
218
219	rtc@68 {
220		compatible = "maxim,ds3231";
221		reg = <0x68>;
222	};
223};
224
225&i2c13 {
226	status = "okay";
227};
228
229&vuart {
230	status = "okay";
231};
232
233&wdt2 {
234	aspeed,alt-boot;
235};
236
237&sdmmc {
238	status = "okay";
239};
240
241&sdhci1 {
242	status = "okay";
243
244	pinctrl-names = "default";
245	pinctrl-0 = <&pinctrl_sd2_default>;
246	cd-inverted;
247	disable-wp;
248};
v5.4
  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	flash@1 {
 86		status = "okay";
 87		m25p,fast-read;
 88		label = "alt";
 89	};
 90};
 91
 92&spi {
 93	status = "okay";
 94	pinctrl-names = "default";
 95	pinctrl-0 = <&pinctrl_spi1debug_default>;
 96
 97	flash@0 {
 98		status = "okay";
 99		label = "pnor";
100		m25p,fast-read;
101	};
102};
103
104&mac0 {
105	status = "okay";
106
107	use-ncsi;
108	no-hw-checksum;
109
110	pinctrl-names = "default";
111	pinctrl-0 = <&pinctrl_rmii1_default>;
112};
113
114
115&uart5 {
116	status = "okay";
117};
118
119&lpc_ctrl {
120	status = "okay";
121	memory-region = <&flash_memory>;
122	flash = <&spi>;
123};
124
125&ibt {
126	status = "okay";
127};
128
129&uart3 {
130	status = "okay";
131	pinctrl-names = "default";
132	pinctrl-0 = <&pinctrl_txd2_default &pinctrl_rxd2_default>;
133};
134
135&i2c0 {
136	status = "okay";
137
138	eeprom@50 {
139		compatible = "atmel,24c256";
140		reg = <0x50>;
141		pagesize = <64>;
142	};
143};
144
145&i2c1 {
146	status = "okay";
147
148	tmp75@49 {
149		compatible = "ti,tmp75";
150		reg = <0x49>;
151	};
152};
153
154&i2c2 {
155	status = "okay";
156};
157
158&i2c3 {
159	status = "okay";
160};
161
162&i2c4 {
163	status = "okay";
164
165	occ-hwmon@50 {
166		compatible = "ibm,p8-occ-hwmon";
167		reg = <0x50>;
168	};
169};
170
171&i2c5 {
172	status = "okay";
173
174	occ-hwmon@51 {
175		compatible = "ibm,p8-occ-hwmon";
176		reg = <0x51>;
177	};
178};
179
180&i2c6 {
181	status = "okay";
182
183	w83795g@2f {
184		compatible = "nuvoton,w83795g";
185		reg = <0x2f>;
186	};
187};
188
189&i2c7 {
190	status = "okay";
191
192	occ-hwmon@56 {
193		compatible = "ibm,p8-occ-hwmon";
194		reg = <0x56>;
195	};
196};
197
198&i2c9 {
199	status = "okay";
200};
201
202&i2c10 {
203	status = "okay";
204};
205
206&i2c11 {
207	status = "okay";
208
209	occ-hwmon@57 {
210		compatible = "ibm,p8-occ-hwmon";
211		reg = <0x57>;
212	};
213};
214
215&i2c12 {
216	status = "okay";
217
218	rtc@68 {
219		compatible = "maxim,ds3231";
220		reg = <0x68>;
221	};
222};
223
224&i2c13 {
225	status = "okay";
226};
227
228&vuart {
229	status = "okay";
230};
231
232&wdt2 {
233	aspeed,alt-boot;
 
 
 
 
 
 
 
 
 
 
 
 
 
234};