Skip to content

Commit b0412c3

Browse files
committed
Added device tree for BeagleBoard-X15 and CTAG face2|4 Audio Card
1 parent 463cf8a commit b0412c3

File tree

2 files changed

+86
-0
lines changed

2 files changed

+86
-0
lines changed

arch/arm/boot/dts/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,7 @@ dtb-$(CONFIG_SOC_DRA7XX) += \
473473
dra72-evm-lcd-lg.dtb \
474474
dra72-evm-lcd-osd.dtb \
475475
am57xx-beagle-x15.dtb \
476+
am57xx-beagle-x15-ctag.dtb \
476477
am57xx-beagle-x15-es2plus.dtb \
477478
dra72-evm.dtb \
478479
am57xx-evm.dtb \
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
/*
2+
* Device tree for BeagleBoard-X15 with CTAG face2|4 Audio Card
3+
*
4+
* Author: Henrik Langer <henni19790@googlemail.com>
5+
*
6+
* This program is free software; you can redistribute it and/or modify
7+
* it under the terms of the GNU General Public License version 2 as
8+
* published by the Free Software Foundation.
9+
*/
10+
11+
#include "am57xx-beagle-x15.dts"
12+
13+
/ {
14+
sound2: sound@2 {
15+
compatible = "ctag,face-2-4";
16+
model = "CTAG face-2-4 8CH";
17+
audio-codec = <&ad193x>;
18+
mcasp-controller = <&mcasp2>;
19+
audiocard-tdm-slots = <8>;
20+
codec-clock-rate = <24576000>;
21+
bb-device = <1>; //0 = BBB/BBG, 1 = BB-X15
22+
cpu-clock-rate = <22579200>;
23+
audio-routing =
24+
"Line Out", "DAC1OUT",
25+
"Line Out", "DAC2OUT",
26+
"Line Out", "DAC3OUT",
27+
"Line Out", "DAC4OUT",
28+
"ADC1IN", "Line In",
29+
"ADC2IN", "Line In";
30+
};
31+
};
32+
33+
&dra7_pmx_core {
34+
mcasp2_pins_default: mcasp2_pins_default {
35+
pinctrl-single,pins = <
36+
0x2F8 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp2_fsx | P17.52 */
37+
0x2F4 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp2_aclkx | P17.21 */
38+
0x300 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp2_fsr | P17.57 */
39+
0x2FC (PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp2_aclkr | P17.44 */
40+
0x30C (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mcasp2_axr2 | P17.18 */
41+
0x304 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp2_axr0 | P17.54 */
42+
>;
43+
};
44+
45+
mcspi3_pins_default: mcspi3_pins_default {
46+
pinctrl-single,pins = <
47+
0x2E0 (PIN_OUTPUT_PULLUP | MUX_MODE3) /* spi3_cs0 | P16.3 */
48+
0x2D4 (PIN_INPUT_PULLUP | MUX_MODE3) /* spi3_sclk | P16.34 */
49+
0x2DC (PIN_INPUT_PULLUP | MUX_MODE3) /* spi3_d0 | P16.33 */
50+
0x2D8 (PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* spi3_d1 | P16.4 */
51+
>;
52+
};
53+
};
54+
55+
&mcspi3 {
56+
pinctrl-names = "default";
57+
pinctrl-0 = <&mcspi3_pins_default>;
58+
status = "okay";
59+
60+
ad193x: ad193x@0{
61+
compatible = "analog,ad1938";
62+
reg = <0>;
63+
status = "okay";
64+
spi-max-frequency = <100000>;
65+
};
66+
};
67+
68+
&mcasp2 {
69+
#sound-dai-cells = <0>;
70+
//assigned-clocks = <&mcasp2_ahclkx_mux>, <&mcasp2_ahclkr_mux>;
71+
assigned-clocks = <&mcasp2_ahclkx_mux>;
72+
assigned-clock-parents = <&sys_clkin2>; /* 22579200 Hz (see dra7xx-clocks.dtsi) */
73+
pinctrl-names = "default";
74+
pinctrl-0 = <&mcasp2_pins_default>;
75+
status = "okay";
76+
77+
op-mode = <0>; /* MCASP_IIS_MODE */
78+
tdm-slots = <8>;
79+
/* 4 serializers */
80+
serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */
81+
2 0 1 0
82+
>;
83+
tx-num-evt = <8>;
84+
rx-num-evt = <8>;
85+
};

0 commit comments

Comments
 (0)