1 From f134380c19eb38bc276d6d86fa575821c3493c60 Mon Sep 17 00:00:00 2001
2 From: Matthias Reichl <hias@horus.com>
3 Date: Sun, 22 Jan 2017 12:49:36 +0100
4 Subject: [PATCH] BCM270x DT: Consolidate audio card overlays
6 Reference 3.3V / 5V system rails instead of instantiating local
9 Add missing power supply properties for codecs where these are
10 required according to the DT bindings docs.
12 Signed-off-by: Matthias Reichl <hias@horus.com>
14 .../arm/boot/dts/overlays/adau1977-adc-overlay.dts | 19 ++--------
15 .../dts/overlays/akkordion-iqdacplus-overlay.dts | 3 ++
16 .../dts/overlays/hifiberry-dacplus-overlay.dts | 3 ++
17 .../boot/dts/overlays/hifiberry-digi-overlay.dts | 2 +
18 .../dts/overlays/hifiberry-digi-pro-overlay.dts | 2 +
19 arch/arm/boot/dts/overlays/iqaudio-dac-overlay.dts | 3 ++
20 .../boot/dts/overlays/iqaudio-dacplus-overlay.dts | 3 ++
21 .../overlays/iqaudio-digi-wm8804-audio-overlay.dts | 4 +-
22 .../arm/boot/dts/overlays/justboom-dac-overlay.dts | 3 ++
23 .../boot/dts/overlays/justboom-digi-overlay.dts | 2 +
24 arch/arm/boot/dts/overlays/raspidac3-overlay.dts | 4 ++
25 .../overlays/rra-digidac1-wm8741-audio-overlay.dts | 44 +++-------------------
26 12 files changed, 36 insertions(+), 56 deletions(-)
28 --- a/arch/arm/boot/dts/overlays/adau1977-adc-overlay.dts
29 +++ b/arch/arm/boot/dts/overlays/adau1977-adc-overlay.dts
31 compatible = "brcm,bcm2708";
37 - codec_supply: fixedregulator@0 {
38 - compatible = "regulator-fixed";
39 - regulator-name = "AVDD";
40 - regulator-min-microvolt = <3300000>;
41 - regulator-max-microvolt = <3300000>;
51 compatible = "adi,adau1977";
53 reset-gpios = <&gpio 5 0>;
54 - AVDD-supply = <&codec_supply>;
55 + AVDD-supply = <&vdd_3v3_reg>;
72 compatible = "adi,adau1977-adc";
73 --- a/arch/arm/boot/dts/overlays/akkordion-iqdacplus-overlay.dts
74 +++ b/arch/arm/boot/dts/overlays/akkordion-iqdacplus-overlay.dts
76 #sound-dai-cells = <0>;
77 compatible = "ti,pcm5122";
79 + AVDD-supply = <&vdd_3v3_reg>;
80 + DVDD-supply = <&vdd_3v3_reg>;
81 + CPVDD-supply = <&vdd_3v3_reg>;
85 --- a/arch/arm/boot/dts/overlays/hifiberry-dacplus-overlay.dts
86 +++ b/arch/arm/boot/dts/overlays/hifiberry-dacplus-overlay.dts
88 compatible = "ti,pcm5122";
90 clocks = <&dacpro_osc>;
91 + AVDD-supply = <&vdd_3v3_reg>;
92 + DVDD-supply = <&vdd_3v3_reg>;
93 + CPVDD-supply = <&vdd_3v3_reg>;
97 --- a/arch/arm/boot/dts/overlays/hifiberry-digi-overlay.dts
98 +++ b/arch/arm/boot/dts/overlays/hifiberry-digi-overlay.dts
100 #sound-dai-cells = <0>;
101 compatible = "wlf,wm8804";
103 + PVDD-supply = <&vdd_3v3_reg>;
104 + DVDD-supply = <&vdd_3v3_reg>;
108 --- a/arch/arm/boot/dts/overlays/hifiberry-digi-pro-overlay.dts
109 +++ b/arch/arm/boot/dts/overlays/hifiberry-digi-pro-overlay.dts
111 #sound-dai-cells = <0>;
112 compatible = "wlf,wm8804";
114 + PVDD-supply = <&vdd_3v3_reg>;
115 + DVDD-supply = <&vdd_3v3_reg>;
119 --- a/arch/arm/boot/dts/overlays/iqaudio-dac-overlay.dts
120 +++ b/arch/arm/boot/dts/overlays/iqaudio-dac-overlay.dts
122 #sound-dai-cells = <0>;
123 compatible = "ti,pcm5122";
125 + AVDD-supply = <&vdd_3v3_reg>;
126 + DVDD-supply = <&vdd_3v3_reg>;
127 + CPVDD-supply = <&vdd_3v3_reg>;
131 --- a/arch/arm/boot/dts/overlays/iqaudio-dacplus-overlay.dts
132 +++ b/arch/arm/boot/dts/overlays/iqaudio-dacplus-overlay.dts
134 #sound-dai-cells = <0>;
135 compatible = "ti,pcm5122";
137 + AVDD-supply = <&vdd_3v3_reg>;
138 + DVDD-supply = <&vdd_3v3_reg>;
139 + CPVDD-supply = <&vdd_3v3_reg>;
143 --- a/arch/arm/boot/dts/overlays/iqaudio-digi-wm8804-audio-overlay.dts
144 +++ b/arch/arm/boot/dts/overlays/iqaudio-digi-wm8804-audio-overlay.dts
146 compatible = "wlf,wm8804";
149 - // DVDD-supply = <®_3v3>;
150 - // PVDD-supply = <®_3v3>;
151 + DVDD-supply = <&vdd_3v3_reg>;
152 + PVDD-supply = <&vdd_3v3_reg>;
156 --- a/arch/arm/boot/dts/overlays/justboom-dac-overlay.dts
157 +++ b/arch/arm/boot/dts/overlays/justboom-dac-overlay.dts
159 #sound-dai-cells = <0>;
160 compatible = "ti,pcm5122";
162 + AVDD-supply = <&vdd_3v3_reg>;
163 + DVDD-supply = <&vdd_3v3_reg>;
164 + CPVDD-supply = <&vdd_3v3_reg>;
168 --- a/arch/arm/boot/dts/overlays/justboom-digi-overlay.dts
169 +++ b/arch/arm/boot/dts/overlays/justboom-digi-overlay.dts
171 #sound-dai-cells = <0>;
172 compatible = "wlf,wm8804";
174 + PVDD-supply = <&vdd_3v3_reg>;
175 + DVDD-supply = <&vdd_3v3_reg>;
179 --- a/arch/arm/boot/dts/overlays/raspidac3-overlay.dts
180 +++ b/arch/arm/boot/dts/overlays/raspidac3-overlay.dts
182 #sound-dai-cells = <0>;
183 compatible = "ti,pcm5122";
185 + AVDD-supply = <&vdd_3v3_reg>;
186 + DVDD-supply = <&vdd_3v3_reg>;
187 + CPVDD-supply = <&vdd_3v3_reg>;
191 tpa6130a2: tpa6130a2@60 {
192 compatible = "ti,tpa6130a2";
194 + Vdd-supply = <&vdd_3v3_reg>;
198 --- a/arch/arm/boot/dts/overlays/rra-digidac1-wm8741-audio-overlay.dts
199 +++ b/arch/arm/boot/dts/overlays/rra-digidac1-wm8741-audio-overlay.dts
201 compatible = "brcm,bcm2708";
214 - target-path = "/soc";
218 - compatible = "regulator-fixed";
219 - regulator-name = "DC_5V";
220 - regulator-min-microvolt = <5000000>;
221 - regulator-max-microvolt = <5000000>;
222 - regulator-always-on;
226 - compatible = "regulator-fixed";
227 - regulator-name = "DC_3V3";
228 - regulator-min-microvolt = <3300000>;
229 - regulator-max-microvolt = <3300000>;
230 - regulator-always-on;
246 #address-cells = <1>;
248 compatible = "wlf,wm8804";
251 - PVDD-supply = <&ldo0>;
252 - DVDD-supply = <&ldo0>;
253 + PVDD-supply = <&vdd_3v3_reg>;
254 + DVDD-supply = <&vdd_3v3_reg>;
258 compatible = "wlf,wm8741";
261 - AVDD-supply = <&ldo1>;
262 - DVDD-supply = <&ldo0>;
263 + AVDD-supply = <&vdd_5v0_reg>;
264 + DVDD-supply = <&vdd_3v3_reg>;
273 compatible = "rra,digidac1-soundcard";