mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-20 18:47:56 +07:00
9d05b38984
The LCDK embeds a TLV320AIC3106 connected to the SoC McASP for analog audio. The power supply of the codec comes from the main PMIC (TPS650250) DCDCs which are always on per HW design and not controllable by SW, so SW wise the codec driver will rely on the 'dummy' regulator. Quality is good with arecord -pipe- aplay on Line In/Line Out. Tested-by: Kevin Hilman <khilman@baylibre.com> Signed-off-by: Karl Beldan <kbeldan@baylibre.com> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
139 lines
2.4 KiB
Plaintext
139 lines
2.4 KiB
Plaintext
/*
|
|
* Copyright (c) 2016 BayLibre, Inc.
|
|
*
|
|
* Licensed under GPLv2.
|
|
*/
|
|
/dts-v1/;
|
|
#include "da850.dtsi"
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
/ {
|
|
model = "DA850/AM1808/OMAP-L138 LCDK";
|
|
compatible = "ti,da850-lcdk", "ti,da850";
|
|
|
|
aliases {
|
|
serial2 = &serial2;
|
|
};
|
|
|
|
chosen {
|
|
stdout-path = "serial2:115200n8";
|
|
};
|
|
|
|
memory {
|
|
device_type = "memory";
|
|
reg = <0xc0000000 0x08000000>;
|
|
};
|
|
|
|
sound {
|
|
compatible = "simple-audio-card";
|
|
simple-audio-card,name = "DA850/OMAP-L138 LCDK";
|
|
simple-audio-card,widgets =
|
|
"Line", "Line In",
|
|
"Line", "Line Out";
|
|
simple-audio-card,routing =
|
|
"LINE1L", "Line In",
|
|
"LINE1R", "Line In",
|
|
"Line Out", "LLOUT",
|
|
"Line Out", "RLOUT";
|
|
simple-audio-card,format = "dsp_b";
|
|
simple-audio-card,bitclock-master = <&link0_codec>;
|
|
simple-audio-card,frame-master = <&link0_codec>;
|
|
simple-audio-card,bitclock-inversion;
|
|
|
|
simple-audio-card,cpu {
|
|
sound-dai = <&mcasp0>;
|
|
system-clock-frequency = <24576000>;
|
|
};
|
|
|
|
link0_codec: simple-audio-card,codec {
|
|
sound-dai = <&tlv320aic3106>;
|
|
system-clock-frequency = <24576000>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&pmx_core {
|
|
status = "okay";
|
|
|
|
mcasp0_pins: pinmux_mcasp0_pins {
|
|
pinctrl-single,bits = <
|
|
/* AHCLKX AFSX ACLKX */
|
|
0x00 0x00101010 0x00f0f0f0
|
|
/* ARX13 ARX14 */
|
|
0x04 0x00000110 0x00000ff0
|
|
>;
|
|
};
|
|
};
|
|
|
|
&serial2 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&serial2_rxtx_pins>;
|
|
status = "okay";
|
|
};
|
|
|
|
&wdt {
|
|
status = "okay";
|
|
};
|
|
|
|
&rtc0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&gpio {
|
|
status = "okay";
|
|
};
|
|
|
|
&mdio {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&mdio_pins>;
|
|
bus_freq = <2200000>;
|
|
status = "okay";
|
|
};
|
|
|
|
ð0 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&mii_pins>;
|
|
status = "okay";
|
|
};
|
|
|
|
&mmc0 {
|
|
max-frequency = <50000000>;
|
|
bus-width = <4>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&mmc0_pins>;
|
|
cd-gpios = <&gpio 64 GPIO_ACTIVE_HIGH>;
|
|
status = "okay";
|
|
};
|
|
|
|
&i2c0 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&i2c0_pins>;
|
|
clock-frequency = <100000>;
|
|
status = "okay";
|
|
|
|
tlv320aic3106: tlv320aic3106@18 {
|
|
#sound-dai-cells = <0>;
|
|
compatible = "ti,tlv320aic3106";
|
|
reg = <0x18>;
|
|
status = "okay";
|
|
};
|
|
};
|
|
|
|
&mcasp0 {
|
|
#sound-dai-cells = <0>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&mcasp0_pins>;
|
|
status = "okay";
|
|
|
|
op-mode = <0>; /* DAVINCI_MCASP_IIS_MODE */
|
|
tdm-slots = <2>;
|
|
serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */
|
|
0 0 0 0
|
|
0 0 0 0
|
|
0 0 0 0
|
|
0 1 2 0
|
|
>;
|
|
tx-num-evt = <32>;
|
|
rx-num-evt = <32>;
|
|
};
|