1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2018 Logic PD, Inc - http://www.logicpd.com/
6 #include <dt-bindings/input/input.h>
10 compatible = "simple-audio-card";
11 simple-audio-card,name = "tlv320aic23-hifi";
13 simple-audio-card,widgets =
14 "Microphone", "Mic In",
18 simple-audio-card,routing =
25 simple-audio-card,format = "i2s";
26 simple-audio-card,bitclock-master = <&sound_master>;
27 simple-audio-card,frame-master = <&sound_master>;
29 simple-audio-card,cpu {
30 sound-dai = <&mcbsp1>;
33 sound_master: simple-audio-card,codec {
34 sound-dai = <&tlv320aic23_1>;
35 system-clock-frequency = <12000000>;
40 compatible = "simple-audio-card";
41 simple-audio-card,name = "tlv320aic23-hifi";
43 simple-audio-card,widgets =
44 "Microphone", "Mic In",
48 simple-audio-card,routing =
55 simple-audio-card,format = "i2s";
56 simple-audio-card,bitclock-master = <&sound_master2>;
57 simple-audio-card,frame-master = <&sound_master2>;
59 simple-audio-card,cpu {
60 sound-dai = <&mcbsp2>;
63 sound_master2: simple-audio-card,codec {
64 sound-dai = <&tlv320aic23_2>;
65 system-clock-frequency = <12000000>;
70 compatible = "gpio-keys-polled";
71 poll-interval = <100>;
75 /* linux,code = <BTN_0>; */
76 gpios = <&tca6416_2 15 GPIO_ACTIVE_LOW>;
81 linux,code = <KEY_PLAY>;
82 gpios = <&tca6416_2 14 GPIO_ACTIVE_LOW>;
87 linux,code = <KEY_STOP>;
88 gpios = <&tca6416_2 13 GPIO_ACTIVE_LOW>;
93 linux,code = <KEY_FASTFORWARD>;
94 gpios = <&tca6416_2 12 GPIO_ACTIVE_LOW>;
99 linux,code = <KEY_REWIND>;
100 gpios = <&tca6416_2 11 GPIO_ACTIVE_LOW>;
105 linux,code = <KEY_LEFTSHIFT>;
106 gpios = <&tca6416_2 10 GPIO_ACTIVE_LOW>;
111 linux,code = <BTN_MODE>;
112 gpios = <&tca6416_2 9 GPIO_ACTIVE_LOW>;
117 linux,code = <KEY_MENU>;
118 gpios = <&tca6416_2 8 GPIO_ACTIVE_LOW>;
123 linux,code = <KEY_UP>;
124 gpios = <&tca6416_2 7 GPIO_ACTIVE_LOW>;
129 linux,code = <KEY_DOWN>;
130 gpios = <&tca6416_2 6 GPIO_ACTIVE_LOW>;
137 tlv320aic23_1: codec@1a {
138 compatible = "ti,tlv320aic23";
140 #sound-dai-cells= <0>;
144 tlv320aic23_2: codec@1b {
145 compatible = "ti,tlv320aic23";
147 #sound-dai-cells= <0>;
154 tlv320aic23_3: codec@1a {
155 compatible = "ti,tlv320aic23";
157 #sound-dai-cells= <0>;
163 compatible = "ti,tca6416";
167 vcc-supply = <&vdd_io_reg>;
171 compatible = "ti,tca6416";
175 vcc-supply = <&vdd_io_reg>;
178 /* TVP5146 Analog Video decoder input */
180 compatible = "ti,tvp5146m2";
187 #sound-dai-cells = <0>;
188 pinctrl-names = "default";
189 pinctrl-0 = <&mcbsp1_pins>;
194 #sound-dai-cells = <0>;
195 pinctrl-names = "default";
196 pinctrl-0 = <&mcbsp2_pins>;
200 mcbsp1_pins: pinmux_mcbsp1_pins {
201 pinctrl-single,pins = <
202 OMAP3_CORE1_IOPAD(0x2190, PIN_OUTPUT | MUX_MODE0) /* mcbsp1_dx.mcbsp1_dx */
203 OMAP3_CORE1_IOPAD(0x2192, PIN_INPUT | MUX_MODE0) /* mcbsp1_dx.mcbsp1_dr */
204 OMAP3_CORE1_IOPAD(0x2196, PIN_INPUT | MUX_MODE0) /* mcbsp_clks.mcbsp1_fsx */
205 OMAP3_CORE1_IOPAD(0x2198, PIN_INPUT | MUX_MODE0) /* mcbsp1_clkx.mcbsp1_clkx */
209 mcbsp2_pins: pinmux_mcbsp2_pins {
210 pinctrl-single,pins = <
211 OMAP3_CORE1_IOPAD(0x213c, PIN_INPUT | MUX_MODE0) /* mcbsp2_fsx.mcbsp2_fsx */
212 OMAP3_CORE1_IOPAD(0x213e, PIN_INPUT | MUX_MODE0) /* mcbsp2_clkx.mcbsp2_clkx */
213 OMAP3_CORE1_IOPAD(0x2140, PIN_INPUT | MUX_MODE0) /* mcbsp2_dr.mcbsp2.dr */
214 OMAP3_CORE1_IOPAD(0x2142, PIN_OUTPUT | MUX_MODE0) /* mcbsp2_dx.mcbsp2_dx */