|
74 | 74 | compatible = "mmc-pwrseq-simple";
|
75 | 75 | reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */
|
76 | 76 | };
|
| 77 | + |
| 78 | + speaker_amp: audio-amplifier { |
| 79 | + compatible = "simple-audio-amplifier"; |
| 80 | + /* |
| 81 | + * TODO This is actually a fixed regulator controlled by |
| 82 | + * the GPIO line on the PMIC. This should be corrected |
| 83 | + * once GPIO support is added for this PMIC. |
| 84 | + */ |
| 85 | + VCC-supply = <®_ldo_io0>; |
| 86 | + enable-gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */ |
| 87 | + sound-name-prefix = "Speaker Amp"; |
| 88 | + }; |
| 89 | + |
| 90 | +}; |
| 91 | + |
| 92 | +&codec { |
| 93 | + status = "okay"; |
| 94 | +}; |
| 95 | + |
| 96 | +&codec_analog { |
| 97 | + hpvcc-supply = <®_eldo1>; |
| 98 | + status = "okay"; |
| 99 | +}; |
| 100 | + |
| 101 | +&dai { |
| 102 | + status = "okay"; |
77 | 103 | };
|
78 | 104 |
|
79 | 105 | &ehci0 {
|
|
277 | 303 | vcc-hdmi-supply = <®_dldo1>;
|
278 | 304 | };
|
279 | 305 |
|
| 306 | +&sound { |
| 307 | + status = "okay"; |
| 308 | + simple-audio-card,aux-devs = <&codec_analog>, <&speaker_amp>; |
| 309 | + simple-audio-card,widgets = "Microphone", "Internal Microphone Left", |
| 310 | + "Microphone", "Internal Microphone Right", |
| 311 | + "Headphone", "Headphone Jack", |
| 312 | + "Speaker", "Internal Speaker"; |
| 313 | + simple-audio-card,routing = |
| 314 | + "Left DAC", "AIF1 Slot 0 Left", |
| 315 | + "Right DAC", "AIF1 Slot 0 Right", |
| 316 | + "Speaker Amp INL", "LINEOUT", |
| 317 | + "Speaker Amp INR", "LINEOUT", |
| 318 | + "Internal Speaker", "Speaker Amp OUTL", |
| 319 | + "Internal Speaker", "Speaker Amp OUTR", |
| 320 | + "Headphone Jack", "HP", |
| 321 | + "AIF1 Slot 0 Left ADC", "Left ADC", |
| 322 | + "AIF1 Slot 0 Right ADC", "Right ADC", |
| 323 | + "Internal Microphone Left", "MBIAS", |
| 324 | + "MIC1", "Internal Microphone Left", |
| 325 | + "Internal Microphone Right", "HBIAS", |
| 326 | + "MIC2", "Internal Microphone Right"; |
| 327 | +}; |
| 328 | + |
280 | 329 | &uart0 {
|
281 | 330 | pinctrl-names = "default";
|
282 | 331 | pinctrl-0 = <&uart0_pb_pins>;
|
|
0 commit comments