0488-overlays-Add-audremap-overlay.patch 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. From 7a2796d02bb044340fabbdc1c4a13c6f381155ac Mon Sep 17 00:00:00 2001
  2. From: Phil Elwell <phil@raspberrypi.org>
  3. Date: Fri, 19 Aug 2016 11:26:57 +0100
  4. Subject: [PATCH] overlays: Add audremap overlay
  5. The audremap overlay switches the PWM audio outputs to GPIO pins
  6. 12 (L) and 13 (R).
  7. ---
  8. arch/arm/boot/dts/overlays/Makefile | 1 +
  9. arch/arm/boot/dts/overlays/README | 6 ++++++
  10. arch/arm/boot/dts/overlays/audremap-overlay.dts | 14 ++++++++++++++
  11. 3 files changed, 21 insertions(+)
  12. create mode 100644 arch/arm/boot/dts/overlays/audremap-overlay.dts
  13. --- a/arch/arm/boot/dts/overlays/Makefile
  14. +++ b/arch/arm/boot/dts/overlays/Makefile
  15. @@ -18,6 +18,7 @@ dtbo-$(RPI_DT_OVERLAYS) += ads7846.dtbo
  16. dtbo-$(RPI_DT_OVERLAYS) += akkordion-iqdacplus.dtbo
  17. dtbo-$(RPI_DT_OVERLAYS) += at86rf233.dtbo
  18. dtbo-$(RPI_DT_OVERLAYS) += audioinjector-wm8731-audio.dtbo
  19. +dtbo-$(RPI_DT_OVERLAYS) += audremap.dtbo
  20. dtbo-$(RPI_DT_OVERLAYS) += bmp085_i2c-sensor.dtbo
  21. dtbo-$(RPI_DT_OVERLAYS) += dht11.dtbo
  22. dtbo-$(RPI_DT_OVERLAYS) += dionaudio-loco.dtbo
  23. --- a/arch/arm/boot/dts/overlays/README
  24. +++ b/arch/arm/boot/dts/overlays/README
  25. @@ -253,6 +253,12 @@ Load: dtoverlay=audioinjector-wm8731-a
  26. Params: <None>
  27. +Name: audremap
  28. +Info: Switches PWM sound output to pins 12 & 13
  29. +Load: dtoverlay=audremap
  30. +Params: <None>
  31. +
  32. +
  33. Name: bmp085_i2c-sensor
  34. Info: Configures the BMP085/BMP180 digital barometric pressure and temperature
  35. sensors from Bosch Sensortec
  36. --- /dev/null
  37. +++ b/arch/arm/boot/dts/overlays/audremap-overlay.dts
  38. @@ -0,0 +1,14 @@
  39. +/dts-v1/;
  40. +/plugin/;
  41. +
  42. +/ {
  43. + compatible = "brcm,bcm2708";
  44. +
  45. + fragment@0 {
  46. + target = <&audio_pins>;
  47. + __overlay__ {
  48. + brcm,pins = < 12 13 >;
  49. + brcm,function = < 4 >; /* alt0 alt0 */
  50. + };
  51. + };
  52. +};