Skip to content

Commit 0649a58

Browse files
henrixRobertCNelson
authored andcommitted
Added driver and device tree for CTAG face2|4 Audio Card
1 parent 8c07240 commit 0649a58

File tree

2 files changed

+435
-0
lines changed

2 files changed

+435
-0
lines changed
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
/*
2+
* Base device tree of BeagleBone Green with AD1938 AudioCard
3+
*
4+
* Author: Henrik Langer <[email protected]>
5+
* based on
6+
BeagleBone Black and BeagleBone Green device tree
7+
*
8+
* This program is free software; you can redistribute it and/or modify
9+
* it under the terms of the GNU General Public License version 2 as
10+
* published by the Free Software Foundation.
11+
*/
12+
/dts-v1/;
13+
14+
#include "am33xx.dtsi"
15+
#include "am335x-bone-common.dtsi"
16+
17+
/ {
18+
model = "TI AM335x BeagleBone Green AudioCard";
19+
compatible = "ti,am335x-bone-green", "ti,am335x-bone-black", "ti,am335x-bone", "ti,am33xx";
20+
};
21+
22+
&ldo3_reg {
23+
regulator-min-microvolt = <1800000>;
24+
regulator-max-microvolt = <1800000>;
25+
regulator-always-on;
26+
};
27+
28+
&mmc1 {
29+
vmmc-supply = <&vmmcsd_fixed>;
30+
};
31+
32+
&mmc2 {
33+
vmmc-supply = <&vmmcsd_fixed>;
34+
pinctrl-names = "default";
35+
pinctrl-0 = <&emmc_pins>;
36+
bus-width = <8>;
37+
status = "okay";
38+
};
39+
40+
&sgx {
41+
status = "okay";
42+
};
43+
44+
&am33xx_pinmux {
45+
mcasp0_pins: mcasp0_pins {
46+
pinctrl-single,pins = <
47+
0x1ac (PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp0_ahclkx */
48+
0x19c (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mcasp0_axr2 */
49+
0x194 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp0_fsx */
50+
0x190 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp0_aclkx */
51+
0x1a4 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp0_fsr */
52+
0x078 (PIN_INPUT_PULLDOWN | MUX_MODE6) /* mcasp0_aclkr */
53+
0x198 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp0_axr0 */
54+
0x06c (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpio1[27] (enable oscillator) */
55+
>;
56+
};
57+
58+
mcasp0_pins_sleep: mcasp0_pins_sleep {
59+
pinctrl-single,pins = <
60+
0x1ac (PIN_INPUT_PULLDOWN | MUX_MODE7) /* mcasp0_ahclkx */
61+
0x19c (PIN_INPUT_PULLDOWN | MUX_MODE7) /* mcasp0_axr2 */
62+
0x194 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* mcasp0_fsx */
63+
0x190 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* mcasp0_aclkx */
64+
0x1a4 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp0_fsr */
65+
0x078 (PIN_INPUT_PULLDOWN | MUX_MODE6) /* mcasp0_aclkr */
66+
0x198 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* mcasp0_axr0 */
67+
0x06c (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpio1[27] */
68+
>;
69+
};
70+
};
71+
72+
&mcasp0 {
73+
pinctrl-names = "default", "sleep";
74+
pinctrl-0 = <&mcasp0_pins>;
75+
pinctrl-1 = <&mcasp0_pins_sleep>;
76+
status = "okay";
77+
op-mode = <0>; /* MCASP_IIS_MODE */
78+
tdm-slots = <2>;
79+
serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */
80+
2 0 1 0
81+
>;
82+
tx-num-evt = <1>;
83+
rx-num-evt = <1>;
84+
};
85+
86+
/ {
87+
clk_mcasp0_fixed: clk_mcasp0_fixed {
88+
#clock-cells = <0>;
89+
compatible = "fixed-clock";
90+
clock-frequency = <24576000>;
91+
};
92+
93+
clk_mcasp0: clk_mcasp0 {
94+
#clock-cells = <0>;
95+
compatible = "gpio-gate-clock";
96+
clocks = <&clk_mcasp0_fixed>;
97+
enable-gpios = <&gpio1 27 0>; /* BeagleBone Black Clk enable on GPIO1_27 */
98+
};
99+
};

0 commit comments

Comments
 (0)