Linux Audio

Check our new training course

Loading...
v4.17
 
  1/*
  2 * at91-tse850-3.dts - Device Tree file for the Axentia TSE-850 3.0 board
  3 *
  4 * Copyright (C) 2017 Axentia Technologies AB
  5 *
  6 * Author: Peter Rosin <peda@axentia.se>
  7 *
  8 * Licensed under GPLv2 or later.
  9 */
 10/dts-v1/;
 11#include <dt-bindings/pwm/pwm.h>
 12#include "at91-linea.dtsi"
 13
 14/ {
 15	model = "Axentia TSE-850 3.0";
 16	compatible = "axentia,tse850v3", "axentia,linea",
 17		     "atmel,sama5d31", "atmel,sama5d3", "atmel,sama5";
 18
 19	ahb {
 20		apb {
 21			pinctrl@fffff200 {
 22				tse850 {
 23					pinctrl_usba_vbus: usba-vbus {
 24						atmel,pins =
 25							<AT91_PIOC 31
 26							 AT91_PERIPH_GPIO
 27							 AT91_PINCTRL_DEGLITCH>;
 28					};
 29				};
 30			};
 31
 32			watchdog@fffffe40 {
 33				status = "okay";
 34			};
 35		};
 36	};
 37
 38	sck: oscillator {
 39		compatible = "fixed-clock";
 40
 41		#clock-cells = <0>;
 42		clock-frequency = <16000000>;
 43		clock-output-names = "sck";
 44	};
 45
 46	reg_3v3: regulator {
 47		compatible = "regulator-fixed";
 48
 49		regulator-name = "3v3-supply";
 50		regulator-min-microvolt = <3300000>;
 51		regulator-max-microvolt = <3300000>;
 52	};
 53
 54	ana: reg-ana {
 55		compatible = "pwm-regulator";
 56
 57		regulator-name = "ANA";
 58
 59		pwms = <&pwm0 2 1000 PWM_POLARITY_INVERTED>;
 60		pwm-dutycycle-unit = <1000>;
 61		pwm-dutycycle-range = <100 1000>;
 62
 63		regulator-min-microvolt = <2000000>;
 64		regulator-max-microvolt = <20000000>;
 65		regulator-ramp-delay = <1000>;
 66	};
 67
 68	sound {
 69		compatible = "axentia,tse850-pcm5142";
 70
 71		axentia,cpu-dai = <&ssc0>;
 72		axentia,audio-codec = <&pcm5142>;
 73
 74		axentia,add-gpios = <&pioA 8 GPIO_ACTIVE_LOW>;
 75		axentia,loop1-gpios = <&pioA 10 GPIO_ACTIVE_LOW>;
 76		axentia,loop2-gpios = <&pioA 11 GPIO_ACTIVE_LOW>;
 77
 78		axentia,ana-supply = <&ana>;
 79	};
 80
 81	dac: dpot-dac {
 82		compatible = "dpot-dac";
 83		vref-supply = <&reg_3v3>;
 84		io-channels = <&dpot 0>;
 85		io-channel-names = "dpot";
 86		#io-channel-cells = <1>;
 87	};
 88
 89	env_det: envelope-detector {
 90		compatible = "axentia,tse850-envelope-detector";
 91		io-channels = <&dac 0>;
 92		io-channel-names = "dac";
 93		#io-channel-cells = <1>;
 94
 95		interrupt-parent = <&pioA>;
 96		interrupts = <3 IRQ_TYPE_EDGE_RISING>;
 97		interrupt-names = "comp";
 98	};
 99
100	mux: mux-controller {
101		compatible = "gpio-mux";
102		#mux-control-cells = <0>;
103
104		mux-gpios = <&pioA 0 GPIO_ACTIVE_HIGH>,
105			    <&pioA 1 GPIO_ACTIVE_HIGH>,
106			    <&pioA 2 GPIO_ACTIVE_HIGH>;
107		idle-state = <0>;
108	};
109
110	envelope-detector-mux {
111		compatible = "io-channel-mux";
112		io-channels = <&env_det 0>;
113		io-channel-names = "parent";
114
115		mux-controls = <&mux>;
116
117		channels = "", "",
118			 "sync-1",
119			 "in",
120			 "out",
121			 "sync-2",
122			 "sys-reg",
123			 "ana-reg";
124	};
125
126	leds {
127		compatible = "gpio-leds";
128
129		ch1-red {
130			label = "ch-1:red";
131			gpios = <&pioA 23 GPIO_ACTIVE_LOW>;
132		};
133		ch1-green {
134			label = "ch-1:green";
135			gpios = <&pioA 22 GPIO_ACTIVE_LOW>;
136		};
137		ch2-red {
138			label = "ch-2:red";
139			gpios = <&pioA 21 GPIO_ACTIVE_LOW>;
140		};
141		ch2-green {
142			label = "ch-2:green";
143			gpios = <&pioA 20 GPIO_ACTIVE_LOW>;
144		};
145		data-red {
146			label = "data:red";
147			gpios = <&pioA 19 GPIO_ACTIVE_LOW>;
148		};
149		data-green {
150			label = "data:green";
151			gpios = <&pioA 18 GPIO_ACTIVE_LOW>;
152		};
153		alarm-red {
154			label = "alarm:red";
155			gpios = <&pioA 17 GPIO_ACTIVE_LOW>;
156		};
157		alarm-green {
158			label = "alarm:green";
159			gpios = <&pioA 16 GPIO_ACTIVE_LOW>;
160		};
161	};
162};
163
164&nand {
165	partitions {
166		compatible = "fixed-partitions";
167		#address-cells = <1>;
168		#size-cells = <1>;
169
170		at91bootstrap@0 {
171			label = "at91bootstrap";
172			reg = <0x0 0x40000>;
173		};
174
175		barebox@40000 {
176			label = "bootloader";
177			reg = <0x40000 0x60000>;
178		};
179
180		bareboxenv@c0000 {
181			label = "bareboxenv";
182			reg = <0xc0000 0x40000>;
183		};
184
185		bareboxenv2@100000 {
186			label = "bareboxenv2";
187			reg = <0x100000 0x40000>;
188		};
189
190		oftree@180000 {
191			label = "oftree";
192			reg = <0x180000 0x20000>;
193		};
194
195		kernel@200000 {
196			label = "kernel";
197			reg = <0x200000 0x500000>;
198		};
199
200		rootfs@800000 {
201			label = "rootfs";
202			reg = <0x800000 0x0f800000>;
203		};
204
205		ovlfs@10000000 {
206			label = "ovlfs";
207			reg = <0x10000000 0x10000000>;
208		};
209	};
210};
211
212&ssc0 {
213	#sound-dai-cells = <0>;
214
215	status = "okay";
216};
217
218&i2c0 {
219	status = "okay";
220
221	jc42@18 {
222		compatible = "nxp,se97b", "jedec,jc-42.4-temp";
223		reg = <0x18>;
224		smbus-timeout-disable;
225	};
226
227	dpot: mcp4651-104@28 {
228		compatible = "microchip,mcp4651-104";
229		reg = <0x28>;
230		#io-channel-cells = <1>;
231	};
232
233	pcm5142: pcm5142@4c {
234		compatible = "ti,pcm5142";
235
236		reg = <0x4c>;
237		#sound-dai-cells = <0>;
238
239		AVDD-supply = <&reg_3v3>;
240		DVDD-supply = <&reg_3v3>;
241		CPVDD-supply = <&reg_3v3>;
242
243		clocks = <&sck>;
244
245		pll-in = <3>;
246		pll-out = <6>;
247	};
248
249	eeprom@50 {
250		compatible = "nxp,se97b", "atmel,24c02";
251		reg = <0x50>;
252		pagesize = <16>;
253	};
 
 
 
 
 
 
 
 
 
 
 
 
 
254};
255
256&usart0 {
257	status = "okay";
258
259	atmel,use-dma-rx;
260};
261
262&pwm0 {
263	status = "okay";
264
265	pinctrl-0 = <&pinctrl_pwm0_pwml2_1>;
266	pinctrl-names = "default";
267};
268
269&macb1 {
270	status = "okay";
271
272	phy-mode = "rgmii";
273
274	#address-cells = <1>;
275	#size-cells = <0>;
276
277	phy0: ethernet-phy@3 {
278		reg = <3>;
279
280		interrupt-parent = <&pioE>;
281		interrupts = <31 IRQ_TYPE_EDGE_FALLING>;
282	};
283};
284
285&usb0 {
286	status = "okay";
287
288	pinctrl-names = "default";
289	pinctrl-0 = <&pinctrl_usba_vbus>;
290	atmel,vbus-gpio = <&pioC 31 GPIO_ACTIVE_HIGH>;
291};
292
293&usb1 {
294	status = "okay";
295
296	num-ports = <1>;
297	atmel,vbus-gpio = <&pioD 29 GPIO_ACTIVE_HIGH>;
298	atmel,oc-gpio = <&pioC 15 GPIO_ACTIVE_LOW>;
299};
300
301&usb2 {
302	status = "okay";
303};
304
305&dbgu {
306	status = "okay";
307
308	dmas = <0>, <0>;	/*  Do not use DMA for dbgu */
309};
v5.4
  1// SPDX-License-Identifier: GPL-2.0-or-later
  2/*
  3 * at91-tse850-3.dts - Device Tree file for the Axentia TSE-850 3.0 board
  4 *
  5 * Copyright (C) 2017 Axentia Technologies AB
  6 *
  7 * Author: Peter Rosin <peda@axentia.se>
 
 
  8 */
  9/dts-v1/;
 10#include <dt-bindings/pwm/pwm.h>
 11#include "at91-linea.dtsi"
 12
 13/ {
 14	model = "Axentia TSE-850 3.0";
 15	compatible = "axentia,tse850v3", "axentia,linea",
 16		     "atmel,sama5d31", "atmel,sama5d3", "atmel,sama5";
 17
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 18	sck: oscillator {
 19		compatible = "fixed-clock";
 20
 21		#clock-cells = <0>;
 22		clock-frequency = <16000000>;
 23		clock-output-names = "sck";
 24	};
 25
 26	reg_3v3: regulator {
 27		compatible = "regulator-fixed";
 28
 29		regulator-name = "3v3-supply";
 30		regulator-min-microvolt = <3300000>;
 31		regulator-max-microvolt = <3300000>;
 32	};
 33
 34	ana: reg-ana {
 35		compatible = "pwm-regulator";
 36
 37		regulator-name = "ANA";
 38
 39		pwms = <&pwm0 2 1000 PWM_POLARITY_INVERTED>;
 40		pwm-dutycycle-unit = <1000>;
 41		pwm-dutycycle-range = <100 1000>;
 42
 43		regulator-min-microvolt = <2000000>;
 44		regulator-max-microvolt = <20000000>;
 45		regulator-ramp-delay = <1000>;
 46	};
 47
 48	sound {
 49		compatible = "axentia,tse850-pcm5142";
 50
 51		axentia,cpu-dai = <&ssc0>;
 52		axentia,audio-codec = <&pcm5142>;
 53
 54		axentia,add-gpios = <&pioA 8 GPIO_ACTIVE_LOW>;
 55		axentia,loop1-gpios = <&pioA 10 GPIO_ACTIVE_LOW>;
 56		axentia,loop2-gpios = <&pioA 11 GPIO_ACTIVE_LOW>;
 57
 58		axentia,ana-supply = <&ana>;
 59	};
 60
 61	dac: dpot-dac {
 62		compatible = "dpot-dac";
 63		vref-supply = <&reg_3v3>;
 64		io-channels = <&dpot 0>;
 65		io-channel-names = "dpot";
 66		#io-channel-cells = <1>;
 67	};
 68
 69	env_det: envelope-detector {
 70		compatible = "axentia,tse850-envelope-detector";
 71		io-channels = <&dac 0>;
 72		io-channel-names = "dac";
 73		#io-channel-cells = <1>;
 74
 75		interrupt-parent = <&pioA>;
 76		interrupts = <3 IRQ_TYPE_EDGE_RISING>;
 77		interrupt-names = "comp";
 78	};
 79
 80	mux: mux-controller {
 81		compatible = "gpio-mux";
 82		#mux-control-cells = <0>;
 83
 84		mux-gpios = <&pioA 0 GPIO_ACTIVE_HIGH>,
 85			    <&pioA 1 GPIO_ACTIVE_HIGH>,
 86			    <&pioA 2 GPIO_ACTIVE_HIGH>;
 87		idle-state = <0>;
 88	};
 89
 90	envelope-detector-mux {
 91		compatible = "io-channel-mux";
 92		io-channels = <&env_det 0>;
 93		io-channel-names = "parent";
 94
 95		mux-controls = <&mux>;
 96
 97		channels = "", "",
 98			 "sync-1",
 99			 "in",
100			 "out",
101			 "sync-2",
102			 "sys-reg",
103			 "ana-reg";
104	};
105
106	leds {
107		compatible = "gpio-leds";
108
109		ch1-red {
110			label = "ch-1:red";
111			gpios = <&pioA 23 GPIO_ACTIVE_LOW>;
112		};
113		ch1-green {
114			label = "ch-1:green";
115			gpios = <&pioA 22 GPIO_ACTIVE_LOW>;
116		};
117		ch2-red {
118			label = "ch-2:red";
119			gpios = <&pioA 21 GPIO_ACTIVE_LOW>;
120		};
121		ch2-green {
122			label = "ch-2:green";
123			gpios = <&pioA 20 GPIO_ACTIVE_LOW>;
124		};
125		data-red {
126			label = "data:red";
127			gpios = <&pioA 19 GPIO_ACTIVE_LOW>;
128		};
129		data-green {
130			label = "data:green";
131			gpios = <&pioA 18 GPIO_ACTIVE_LOW>;
132		};
133		alarm-red {
134			label = "alarm:red";
135			gpios = <&pioA 17 GPIO_ACTIVE_LOW>;
136		};
137		alarm-green {
138			label = "alarm:green";
139			gpios = <&pioA 16 GPIO_ACTIVE_LOW>;
140		};
141	};
142};
143
144&nand {
145	partitions {
146		compatible = "fixed-partitions";
147		#address-cells = <1>;
148		#size-cells = <1>;
149
150		at91bootstrap@0 {
151			label = "at91bootstrap";
152			reg = <0x0 0x40000>;
153		};
154
155		barebox@40000 {
156			label = "bootloader";
157			reg = <0x40000 0x60000>;
158		};
159
160		bareboxenv@c0000 {
161			label = "bareboxenv";
162			reg = <0xc0000 0x40000>;
163		};
164
165		bareboxenv2@100000 {
166			label = "bareboxenv2";
167			reg = <0x100000 0x40000>;
168		};
169
170		oftree@180000 {
171			label = "oftree";
172			reg = <0x180000 0x20000>;
173		};
174
175		kernel@200000 {
176			label = "kernel";
177			reg = <0x200000 0x500000>;
178		};
179
180		rootfs@800000 {
181			label = "rootfs";
182			reg = <0x800000 0x0f800000>;
183		};
184
185		ovlfs@10000000 {
186			label = "ovlfs";
187			reg = <0x10000000 0x10000000>;
188		};
189	};
190};
191
192&ssc0 {
193	#sound-dai-cells = <0>;
194
195	status = "okay";
196};
197
198&i2c0 {
199	status = "okay";
200
201	jc42@18 {
202		compatible = "nxp,se97b", "jedec,jc-42.4-temp";
203		reg = <0x18>;
204		smbus-timeout-disable;
205	};
206
207	dpot: mcp4651-104@28 {
208		compatible = "microchip,mcp4651-104";
209		reg = <0x28>;
210		#io-channel-cells = <1>;
211	};
212
213	pcm5142: pcm5142@4c {
214		compatible = "ti,pcm5142";
215
216		reg = <0x4c>;
217		#sound-dai-cells = <0>;
218
219		AVDD-supply = <&reg_3v3>;
220		DVDD-supply = <&reg_3v3>;
221		CPVDD-supply = <&reg_3v3>;
222
223		clocks = <&sck>;
224
225		pll-in = <3>;
226		pll-out = <6>;
227	};
228
229	eeprom@50 {
230		compatible = "nxp,se97b", "atmel,24c02";
231		reg = <0x50>;
232		pagesize = <16>;
233	};
234};
235
236&pinctrl {
237	tse850 {
238		pinctrl_usba_vbus: usba-vbus {
239			atmel,pins = <AT91_PIOC 31 AT91_PERIPH_GPIO
240				      AT91_PINCTRL_DEGLITCH>;
241		};
242	};
243};
244
245&watchdog {
246	status = "okay";
247};
248
249&usart0 {
250	status = "okay";
251
252	atmel,use-dma-rx;
253};
254
255&pwm0 {
256	status = "okay";
257
258	pinctrl-0 = <&pinctrl_pwm0_pwml2_1>;
259	pinctrl-names = "default";
260};
261
262&macb1 {
263	status = "okay";
264
265	phy-mode = "rgmii";
266
267	#address-cells = <1>;
268	#size-cells = <0>;
269
270	phy0: ethernet-phy@3 {
271		reg = <3>;
272
273		interrupt-parent = <&pioE>;
274		interrupts = <31 IRQ_TYPE_EDGE_FALLING>;
275	};
276};
277
278&usb0 {
279	status = "okay";
280
281	pinctrl-names = "default";
282	pinctrl-0 = <&pinctrl_usba_vbus>;
283	atmel,vbus-gpio = <&pioC 31 GPIO_ACTIVE_HIGH>;
284};
285
286&usb1 {
287	status = "okay";
288
289	num-ports = <1>;
290	atmel,vbus-gpio = <&pioD 29 GPIO_ACTIVE_HIGH>;
291	atmel,oc-gpio = <&pioC 15 GPIO_ACTIVE_LOW>;
292};
293
294&usb2 {
295	status = "okay";
296};
297
298&dbgu {
299	status = "okay";
300
301	dmas = <0>, <0>;	/*  Do not use DMA for dbgu */
302};