ASoC: atmel: tse850: rely on the ssc to register as a cpu dai by itself
[linux-2.6/btrfs-unstable.git] / Documentation / devicetree / bindings / sound / axentia,tse850-pcm5142.txt
blobfdb25b49251430f23d8efeb0ca43f62493e8b679
1 Devicetree bindings for the Axentia TSE-850 audio complex
3 Required properties:
4   - compatible: "axentia,tse850-pcm5142"
5   - axentia,cpu-dai: The phandle of the cpu dai.
6   - axentia,audio-codec: The phandle of the PCM5142 codec.
7   - axentia,add-gpios: gpio specifier that controls the mixer.
8   - axentia,loop1-gpios: gpio specifier that controls loop relays on channel 1.
9   - axentia,loop2-gpios: gpio specifier that controls loop relays on channel 2.
10   - axentia,ana-supply: Regulator that supplies the output amplifier. Must
11     support voltages in the 2V - 20V range, in 1V steps.
13 The schematics explaining the gpios are as follows:
15                loop1 relays
16    IN1 +---o  +------------+  o---+ OUT1
17             \                /
18              +              +
19              |   /          |
20              +--o  +--.     |
21              |  add   |     |
22              |        V     |
23              |      .---.   |
24    DAC +----------->|Sum|---+
25              |      '---'   |
26              |              |
27              +              +
29    IN2 +---o--+------------+--o---+ OUT2
30                loop2 relays
32 The 'loop1' gpio pin controlls two relays, which are either in loop position,
33 meaning that input and output are directly connected, or they are in mixer
34 position, meaning that the signal is passed through the 'Sum' mixer. Similarly
35 for 'loop2'.
37 In the above, the 'loop1' relays are inactive, thus feeding IN1 to the mixer
38 (if 'add' is active) and feeding the mixer output to OUT1. The 'loop2' relays
39 are active, short-cutting the TSE-850 from channel 2. IN1, IN2, OUT1 and OUT2
40 are TSE-850 connectors and DAC is the PCB name of the (filtered) output from
41 the PCM5142 codec.
43 Example:
45         &ssc0 {
46                 #sound-dai-cells = <0>;
48                 status = "okay";
49         };
51         &i2c {
52                 codec: pcm5142@4c {
53                         compatible = "ti,pcm5142";
55                         reg = <0x4c>;
57                         AVDD-supply = <&reg_3v3>;
58                         DVDD-supply = <&reg_3v3>;
59                         CPVDD-supply = <&reg_3v3>;
61                         clocks = <&sck>;
63                         pll-in = <3>;
64                         pll-out = <6>;
65                 };
66         };
68         ana: ana-reg {
69                 compatible = "pwm-regulator";
71                 regulator-name = "ANA";
73                 pwms = <&pwm0 2 1000 PWM_POLARITY_INVERTED>;
74                 pwm-dutycycle-unit = <1000>;
75                 pwm-dutycycle-range = <100 1000>;
77                 regulator-min-microvolt = <2000000>;
78                 regulator-max-microvolt = <20000000>;
79                 regulator-ramp-delay = <1000>;
80         };
82         sound {
83                 compatible = "axentia,tse850-pcm5142";
85                 axentia,cpu-dai = <&ssc0>;
86                 axentia,audio-codec = <&codec>;
88                 axentia,add-gpios = <&pioA 8 GPIO_ACTIVE_LOW>;
89                 axentia,loop1-gpios = <&pioA 10 GPIO_ACTIVE_LOW>;
90                 axentia,loop2-gpios = <&pioA 11 GPIO_ACTIVE_LOW>;
92                 axentia,ana-supply = <&ana>;
93         };