dts: 2712: Update for device tree
[platform/kernel/linux-rpi.git] / arch / arm / boot / dts / overlays / allo-piano-dac-pcm512x-audio-overlay.dts
1 /*
2  * Definitions for Allo Piano DAC (2.0/2.1) boards
3  *
4  * NB. The Piano DAC 2.1 board contains 2x TI PCM5142 DAC's. One DAC is stereo
5  * (left/right) and the other provides a subwoofer output, using DSP on the
6  * chip for digital high/low pass crossover.
7  * The initial support for this hardware, that doesn't require any codec driver
8  * modifications, uses only one DAC chip for stereo (left/right) output, the
9  * chip with 0x4c slave address. The other chip at 0x4d is currently ignored!
10  */
11
12 /dts-v1/;
13 /plugin/;
14
15 / {
16         compatible = "brcm,bcm2835";
17
18         fragment@0 {
19                 target = <&i2s_clk_producer>;
20                 __overlay__ {
21                         status = "okay";
22                 };
23         };
24
25         fragment@1 {
26                 target = <&i2c1>;
27                 __overlay__ {
28                         #address-cells = <1>;
29                         #size-cells = <0>;
30                         status = "okay";
31
32                         pcm5142@4c {
33                                 #sound-dai-cells = <0>;
34                                 compatible = "ti,pcm5142";
35                                 reg = <0x4c>;
36                                 status = "okay";
37                         };
38                 };
39         };
40
41         fragment@2 {
42                 target = <&sound>;
43                 piano_dac: __overlay__ {
44                         compatible = "allo,piano-dac";
45                         i2s-controller = <&i2s_clk_producer>;
46                         status = "okay";
47                 };
48         };
49
50         __overrides__ {
51                 24db_digital_gain =
52                         <&piano_dac>,"allo,24db_digital_gain?";
53         };
54 };