Skip to content

Commit 21dd0ec

Browse files
peda-ralexandrebelloni
authored andcommitted
ARM: dts: at91: add devicetree for the Axentia TSE-850
The Axentia TSE-850 is a SAMA5D3-based device designed to generate FM subcarrier signals. Signed-off-by: Peter Rosin <peda@axentia.se> Acked-by: Rob Herring <robh@kernel.org> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
1 parent 5347d80 commit 21dd0ec

5 files changed

Lines changed: 351 additions & 0 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Device tree bindings for Axentia ARM devices
2+
============================================
3+
4+
Linea CPU module
5+
----------------
6+
7+
Required root node properties:
8+
compatible = "axentia,linea",
9+
"atmel,sama5d31", "atmel,sama5d3", "atmel,sama5";
10+
and following the rules from atmel-at91.txt for a sama5d31 SoC.
11+
12+
13+
TSE-850 v3 board
14+
----------------
15+
16+
Required root node properties:
17+
compatible = "axentia,tse850v3", "axentia,linea",
18+
"atmel,sama5d31", "atmel,sama5d3", "atmel,sama5";
19+
and following the rules from above for the axentia,linea CPU module.

‎MAINTAINERS‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2353,6 +2353,14 @@ S: Maintained
23532353
F: Documentation/devicetree/bindings/sound/axentia,*
23542354
F: sound/soc/atmel/tse850-pcm5142.c
23552355

2356+
AXENTIA ARM DEVICES
2357+
M: Peter Rosin <peda@axentia.se>
2358+
L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers)
2359+
S: Maintained
2360+
F: Documentation/devicetree/bindings/arm/axentia.txt
2361+
F: arch/arm/boot/dts/at91-linea.dtsi
2362+
F: arch/arm/boot/dts/at91-tse850-3.dts
2363+
23562364
AZ6007 DVB DRIVER
23572365
M: Mauro Carvalho Chehab <mchehab@s-opensource.com>
23582366
M: Mauro Carvalho Chehab <mchehab@kernel.org>

‎arch/arm/boot/dts/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ dtb-$(CONFIG_SOC_SAM_V7) += \
4848
at91-kizbox2.dtb \
4949
at91-sama5d2_xplained.dtb \
5050
at91-sama5d3_xplained.dtb \
51+
at91-tse850-3.dtb \
5152
sama5d31ek.dtb \
5253
sama5d33ek.dtb \
5354
sama5d34ek.dtb \

‎arch/arm/boot/dts/at91-linea.dtsi‎

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
/*
2+
* at91-linea.dtsi - Device Tree Include file for the Axentia Linea Module.
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+
11+
#include "sama5d31.dtsi"
12+
13+
/ {
14+
compatible = "axentia,linea",
15+
"atmel,sama5d31", "atmel,sama5d3", "atmel,sama5";
16+
17+
memory {
18+
reg = <0x20000000 0x4000000>;
19+
};
20+
};
21+
22+
&slow_xtal {
23+
clock-frequency = <32768>;
24+
};
25+
26+
&main_xtal {
27+
clock-frequency = <12000000>;
28+
};
29+
30+
&i2c0 {
31+
status = "okay";
32+
33+
eeprom@51 {
34+
compatible = "st,24c64";
35+
reg = <0x51>;
36+
pagesize = <32>;
37+
};
38+
};
39+
40+
&nand0 {
41+
status = "okay";
42+
43+
nand-bus-width = <8>;
44+
nand-ecc-mode = "hw";
45+
atmel,has-pmecc;
46+
atmel,pmecc-cap = <4>;
47+
atmel,pmecc-sector-size = <512>;
48+
nand-on-flash-bbt;
49+
};
Lines changed: 274 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,274 @@
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+
envelope-detector {
90+
compatible = "axentia,tse850-envelope-detector";
91+
io-channels = <&dac 0>;
92+
io-channel-names = "dac";
93+
94+
interrupt-parent = <&pioA>;
95+
interrupts = <3 IRQ_TYPE_EDGE_RISING>;
96+
interrupt-names = "comp";
97+
};
98+
99+
leds {
100+
compatible = "gpio-leds";
101+
102+
ch1-red {
103+
label = "ch-1:red";
104+
gpios = <&pioA 23 GPIO_ACTIVE_LOW>;
105+
};
106+
ch1-green {
107+
label = "ch-1:green";
108+
gpios = <&pioA 22 GPIO_ACTIVE_LOW>;
109+
};
110+
ch2-red {
111+
label = "ch-2:red";
112+
gpios = <&pioA 21 GPIO_ACTIVE_LOW>;
113+
};
114+
ch2-green {
115+
label = "ch-2:green";
116+
gpios = <&pioA 20 GPIO_ACTIVE_LOW>;
117+
};
118+
data-red {
119+
label = "data:red";
120+
gpios = <&pioA 19 GPIO_ACTIVE_LOW>;
121+
};
122+
data-green {
123+
label = "data:green";
124+
gpios = <&pioA 18 GPIO_ACTIVE_LOW>;
125+
};
126+
alarm-red {
127+
label = "alarm:red";
128+
gpios = <&pioA 17 GPIO_ACTIVE_LOW>;
129+
};
130+
alarm-green {
131+
label = "alarm:green";
132+
gpios = <&pioA 16 GPIO_ACTIVE_LOW>;
133+
};
134+
};
135+
};
136+
137+
&nand0 {
138+
at91bootstrap@0 {
139+
label = "at91bootstrap";
140+
reg = <0x0 0x40000>;
141+
};
142+
143+
barebox@40000 {
144+
label = "bootloader";
145+
reg = <0x40000 0x60000>;
146+
};
147+
148+
bareboxenv@c0000 {
149+
label = "bareboxenv";
150+
reg = <0xc0000 0x40000>;
151+
};
152+
153+
bareboxenv2@100000 {
154+
label = "bareboxenv2";
155+
reg = <0x100000 0x40000>;
156+
};
157+
158+
oftree@180000 {
159+
label = "oftree";
160+
reg = <0x180000 0x20000>;
161+
};
162+
163+
kernel@200000 {
164+
label = "kernel";
165+
reg = <0x200000 0x500000>;
166+
};
167+
168+
rootfs@800000 {
169+
label = "rootfs";
170+
reg = <0x800000 0x0f800000>;
171+
};
172+
173+
ovlfs@10000000 {
174+
label = "ovlfs";
175+
reg = <0x10000000 0x10000000>;
176+
};
177+
};
178+
179+
&ssc0 {
180+
#sound-dai-cells = <0>;
181+
182+
status = "okay";
183+
};
184+
185+
&i2c0 {
186+
status = "okay";
187+
188+
jc42@18 {
189+
compatible = "nxp,se97b", "jedec,jc-42.4-temp";
190+
reg = <0x18>;
191+
};
192+
193+
dpot: mcp4651-104@28 {
194+
compatible = "microchip,mcp4651-104";
195+
reg = <0x28>;
196+
#io-channel-cells = <1>;
197+
};
198+
199+
pcm5142: pcm5142@4c {
200+
compatible = "ti,pcm5142";
201+
202+
reg = <0x4c>;
203+
204+
AVDD-supply = <&reg_3v3>;
205+
DVDD-supply = <&reg_3v3>;
206+
CPVDD-supply = <&reg_3v3>;
207+
208+
clocks = <&sck>;
209+
210+
pll-in = <3>;
211+
pll-out = <6>;
212+
};
213+
214+
eeprom@50 {
215+
compatible = "nxp,24c02";
216+
reg = <0x50>;
217+
pagesize = <16>;
218+
};
219+
};
220+
221+
&usart0 {
222+
status = "okay";
223+
224+
atmel,use-dma-rx;
225+
};
226+
227+
&pwm0 {
228+
status = "okay";
229+
230+
pinctrl-0 = <&pinctrl_pwm0_pwml2_1>;
231+
pinctrl-names = "default";
232+
};
233+
234+
&macb1 {
235+
status = "okay";
236+
237+
phy-mode = "rgmii";
238+
239+
#address-cells = <1>;
240+
#size-cells = <0>;
241+
242+
phy0: ethernet-phy@3 {
243+
reg = <3>;
244+
245+
interrupt-parent = <&pioE>;
246+
interrupts = <31 IRQ_TYPE_EDGE_FALLING>;
247+
};
248+
};
249+
250+
&usb0 {
251+
status = "okay";
252+
253+
pinctrl-names = "default";
254+
pinctrl-0 = <&pinctrl_usba_vbus>;
255+
atmel,vbus-gpio = <&pioC 31 GPIO_ACTIVE_HIGH>;
256+
};
257+
258+
&usb1 {
259+
status = "okay";
260+
261+
num-ports = <1>;
262+
atmel,vbus-gpio = <&pioD 29 GPIO_ACTIVE_HIGH>;
263+
atmel,oc-gpio = <&pioC 15 GPIO_ACTIVE_LOW>;
264+
};
265+
266+
&usb2 {
267+
status = "okay";
268+
};
269+
270+
&dbgu {
271+
status = "okay";
272+
273+
dmas = <0>, <0>; /* Do not use DMA for dbgu */
274+
};

0 commit comments

Comments
 (0)