aboutsummaryrefslogtreecommitdiffstats
blob: c5ba6da02902f2de4cef466cbac194355cd3c927 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
/*
 * Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com/
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */

#include <dt-bindings/clk/ti-dra7-atl.h>

/ {
	jamr3_sound {
		compatible = "simple-audio-card";
		simple-audio-card,name = "DRA7xx-JAMR3";
		simple-audio-card,widgets =
			"Line", "Line Out",
			"Line", "Line In";
		simple-audio-card,routing =
			"Line Out",		"J3A LLOUT",
			"Line Out",		"J3A RLOUT",
			"J3A LINE1L",		"Line In",
			"J3A LINE1R",		"Line In";
		simple-audio-card,format = "dsp_b";
		simple-audio-card,bitclock-master = <&jamr3_sound_master>;
		simple-audio-card,frame-master = <&jamr3_sound_master>;
		simple-audio-card,bitclock-inversion;

		jamr3_sound_master: simple-audio-card,cpu {
			sound-dai = <&mcasp6>;
			system-clock-frequency = <11289600>;
		};

		simple-audio-card,codec {
			sound-dai = <&tlv320aic3106a>;
			clocks = <&atl_clkin1_ck>;
		};
	};

	gatemp {
		compatible = "hwspinlock-user";
		hwlocks = <&hwspinlock 0>,
			  <&hwspinlock 1>,
			  <&hwspinlock 2>,
			  <&hwspinlock 3>,
			  <&hwspinlock 4>,
			  <&hwspinlock 5>,
			  <&hwspinlock 6>,
			  <&hwspinlock 7>,
			  <&hwspinlock 8>,
			  <&hwspinlock 9>;
	};

	sr0 {
		compatible = "generic-uio";
		reg = <0x0 0xbfb00000 0x0 0x100000>;
	};
};

&reserved_mem {
	/* Required by cmem driver used by radio */
	cmem_radio: cmem@95400000 {
		reg = <0x0 0x95400000 0x0 0x400000>;
		no-map;
		status = "okay";
	};

	dsp1_sr0: dsp1_sr0@bfb00000 {
		reg = <0x0 0xbfb00000 0x0 0x100000>;
		no-map;
		status = "okay";
	};
};

&gpio6 {
	p20 {
		/* Radio reset GPIO */
		gpio-hog;
		gpios = <1 GPIO_ACTIVE_LOW>;
		output-low;
		line-name = "radio_rst";
	};
};

&atl {
	atl1 {
		bws = <DRA7_ATL_WS_MCASP2_FSX>;
		aws = <DRA7_ATL_WS_MCASP6_FSX>;
	};
};

&mcasp2 {
	assigned-clocks = <&mcasp2_ahclkx_mux>;
	assigned-clock-parents = <&atl_clkin2_ck>;

	status = "okay";

	op-mode = <0>;          /* MCASP_IIS_MODE */
	tdm-slots = <2>;
	/* 8 serializers */
	serial-dir = <  /* 0: INACTIVE, 1: TX, 2: RX */
		2 0 0 0 0 0 0 0
	>;
	shared-dai;
};

&mcasp6 {
	#sound-dai-cells = <0>;
	assigned-clocks = <&mcasp6_ahclkx_mux>;
	assigned-clock-parents = <&atl_clkin1_ck>;

	status = "okay";

	op-mode = <0>;          /* MCASP_IIS_MODE */
	tdm-slots = <2>;
	/* 4 serializer */
	serial-dir = <  /* 0: INACTIVE, 1: TX, 2: RX */
		1 2 0 0
	>;
	tx-num-evt = <32>;
	rx-num-evt = <32>;
	shared-dai;
};

&i2c4 {
	status = "okay";
	clock-frequency = <400000>;
};

&i2c_p3_exp {
	tlv320aic3106a: tlv320aic3106@18 {
		#sound-dai-cells = <0>;
		compatible = "ti,tlv320aic3106";
		reg = <0x18>;
		adc-settle-ms = <40>;
		ai3x-micbias-vg = <1>;		/* 2.0V */
		name-prefix = "J3A";
		status = "okay";

		/* Regulators */
		AVDD-supply = <&evm_3v3_sw>;
		IOVDD-supply = <&evm_3v3_sw>;
		DRVDD-supply = <&evm_3v3_sw>;
		DVDD-supply = <&aic_dvdd>;
	};

	tlv320aic3106b: tlv320aic3106@19 {
		#sound-dai-cells = <0>;
		compatible = "ti,tlv320aic3106";
		reg = <0x19>;
		adc-settle-ms = <40>;
		ai3x-micbias-vg = <1>;		/* 2.0V */
		name-prefix = "J3B";
		status = "okay";

		/* Regulators */
		AVDD-supply = <&evm_3v3_sw>;
		IOVDD-supply = <&evm_3v3_sw>;
		DRVDD-supply = <&evm_3v3_sw>;
		DVDD-supply = <&aic_dvdd>;
	};

	tlv320aic3106c: tlv320aic3106@1a {
		#sound-dai-cells = <0>;
		compatible = "ti,tlv320aic3106";
		reg = <0x1a>;
		adc-settle-ms = <40>;
		ai3x-micbias-vg = <1>;		/* 2.0V */
		name-prefix = "J3C";
		status = "okay";

		/* Regulators */
		AVDD-supply = <&evm_3v3_sw>;
		IOVDD-supply = <&evm_3v3_sw>;
		DRVDD-supply = <&evm_3v3_sw>;
		DVDD-supply = <&aic_dvdd>;
	};
};