Commit 64bab2d09fbab28a5ca652f4f21e7feb6b72f144
1 parent
ee8b1ed47c
Exists in
fhd
Enable HDMI audio.
Showing
1 changed file
with
28 additions
and
0 deletions
Show diff stats
kernel/linux-imx6_3.14.28/arch/arm/boot/dts/imx6qdl-prime-oven.dtsi
@@ -12,6 +12,12 @@ | @@ -12,6 +12,12 @@ | ||
12 | */ | 12 | */ |
13 | #include <dt-bindings/input/input.h> | 13 | #include <dt-bindings/input/input.h> |
14 | 14 | ||
15 | +#if 1 | ||
16 | +#define ENABLE_HDMI_SOUND 1 | ||
17 | +#else | ||
18 | +#define ENABLE_I2S_SOUND 1 | ||
19 | +#endif | ||
20 | + | ||
15 | &iomuxc { | 21 | &iomuxc { |
16 | pinctrl-names = "default"; | 22 | pinctrl-names = "default"; |
17 | pinctrl-0 = <&pinctrl_hog>; | 23 | pinctrl-0 = <&pinctrl_hog>; |
@@ -283,6 +289,7 @@ | @@ -283,6 +289,7 @@ | ||
283 | }; | 289 | }; |
284 | }; | 290 | }; |
285 | 291 | ||
292 | +#ifdef ENABLE_I2S_SOUND | ||
286 | sound { | 293 | sound { |
287 | compatible = "fsl,imx6q-cmf-sgtl5000", | 294 | compatible = "fsl,imx6q-cmf-sgtl5000", |
288 | "fsl,imx-audio-sgtl5000"; | 295 | "fsl,imx-audio-sgtl5000"; |
@@ -296,6 +303,15 @@ | @@ -296,6 +303,15 @@ | ||
296 | mux-int-port = <1>; | 303 | mux-int-port = <1>; |
297 | mux-ext-port = <3>; | 304 | mux-ext-port = <3>; |
298 | }; | 305 | }; |
306 | +#endif | ||
307 | + | ||
308 | +#ifdef ENABLE_HDMI_SOUND | ||
309 | + sound { | ||
310 | + compatible = "fsl,imx6q-audio-hdmi", "fsl,imx-audio-hdmi"; | ||
311 | + model = "imx-audio-hdmi"; | ||
312 | + hdmi-controller = <&hdmi_audio>; | ||
313 | + }; | ||
314 | +#endif | ||
299 | 315 | ||
300 | mxcfb1: fb@0 { | 316 | mxcfb1: fb@0 { |
301 | compatible = "fsl,mxc_sdc_fb"; | 317 | compatible = "fsl,mxc_sdc_fb"; |
@@ -310,11 +326,13 @@ | @@ -310,11 +326,13 @@ | ||
310 | }; | 326 | }; |
311 | 327 | ||
312 | 328 | ||
329 | +#ifdef ENABLE_I2S_SOUND | ||
313 | &audmux { | 330 | &audmux { |
314 | status = "okay"; | 331 | status = "okay"; |
315 | pinctrl-names = "default"; | 332 | pinctrl-names = "default"; |
316 | pinctrl-0 = <&pinctrl_audmux>; | 333 | pinctrl-0 = <&pinctrl_audmux>; |
317 | }; | 334 | }; |
335 | +#endif | ||
318 | 336 | ||
319 | &ecspi1 { | 337 | &ecspi1 { |
320 | fsl,spi-num-chipselects = <1>; | 338 | fsl,spi-num-chipselects = <1>; |
@@ -374,12 +392,19 @@ | @@ -374,12 +392,19 @@ | ||
374 | status = "okay"; | 392 | status = "okay"; |
375 | }; | 393 | }; |
376 | 394 | ||
395 | +#ifdef ENABLE_HDMI_SOUND | ||
396 | +&hdmi_audio { | ||
397 | + status = "okay"; | ||
398 | +}; | ||
399 | +#endif | ||
400 | + | ||
377 | &i2c1 { | 401 | &i2c1 { |
378 | clock-frequency = <100000>; | 402 | clock-frequency = <100000>; |
379 | pinctrl-names = "default"; | 403 | pinctrl-names = "default"; |
380 | pinctrl-0 = <&pinctrl_i2c1>; | 404 | pinctrl-0 = <&pinctrl_i2c1>; |
381 | status = "okay"; | 405 | status = "okay"; |
382 | 406 | ||
407 | +#ifdef ENABLE_I2S_SOUND | ||
383 | sgtl5000: sgtl5000@0a { | 408 | sgtl5000: sgtl5000@0a { |
384 | compatible = "fsl,sgtl5000"; | 409 | compatible = "fsl,sgtl5000"; |
385 | pinctrl-names = "default"; | 410 | pinctrl-names = "default"; |
@@ -390,6 +415,7 @@ | @@ -390,6 +415,7 @@ | ||
390 | VDDD-supply = <®_1p2v>; | 415 | VDDD-supply = <®_1p2v>; |
391 | VDDIO-supply = <®_3p3v>; | 416 | VDDIO-supply = <®_3p3v>; |
392 | }; | 417 | }; |
418 | +#endif | ||
393 | }; | 419 | }; |
394 | 420 | ||
395 | &i2c2 { | 421 | &i2c2 { |
@@ -435,10 +461,12 @@ | @@ -435,10 +461,12 @@ | ||
435 | status = "okay"; | 461 | status = "okay"; |
436 | }; | 462 | }; |
437 | 463 | ||
464 | +#ifdef ENABLE_I2S_SOUND | ||
438 | &ssi1 { | 465 | &ssi1 { |
439 | fsl,mode = "i2s-slave"; | 466 | fsl,mode = "i2s-slave"; |
440 | status = "okay"; | 467 | status = "okay"; |
441 | }; | 468 | }; |
469 | +#endif | ||
442 | 470 | ||
443 | &uart1 { | 471 | &uart1 { |
444 | pinctrl-names = "default"; | 472 | pinctrl-names = "default"; |