0304-ARM-bcm2835-add-i2s-gpio28-31-for-cm.patch 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. From 791046d531f798944715a214748387449ae9c4b8 Mon Sep 17 00:00:00 2001
  2. From: Martin Sperl <kernel@martin.sperl.org>
  3. Date: Sat, 23 Apr 2016 15:21:41 +0000
  4. Subject: [PATCH 304/381] ARM: bcm2835: add i2s-gpio28-31 for cm
  5. Add i2s-gpio28-31 overlay for compute module
  6. so that i2s is using gpio28-31
  7. Signed-off-by: Martin Sperl <kernel@martin.sperl.org>
  8. ---
  9. arch/arm/boot/dts/overlays/Makefile | 1 +
  10. arch/arm/boot/dts/overlays/README | 6 ++++++
  11. arch/arm/boot/dts/overlays/i2s-gpio28-31-overlay.dts | 18 ++++++++++++++++++
  12. 3 files changed, 25 insertions(+)
  13. create mode 100644 arch/arm/boot/dts/overlays/i2s-gpio28-31-overlay.dts
  14. --- a/arch/arm/boot/dts/overlays/Makefile
  15. +++ b/arch/arm/boot/dts/overlays/Makefile
  16. @@ -37,6 +37,7 @@ dtbo-$(RPI_DT_OVERLAYS) += i2c-mux-pca95
  17. dtbo-$(RPI_DT_OVERLAYS) += i2c-pwm-pca9685a.dtbo
  18. dtbo-$(RPI_DT_OVERLAYS) += i2c0-bcm2708.dtbo
  19. dtbo-$(RPI_DT_OVERLAYS) += i2c1-bcm2708.dtbo
  20. +dtbo-$(RPI_DT_OVERLAYS) += i2s-gpio28-31.dtbo
  21. dtbo-$(RPI_DT_OVERLAYS) += i2s-mmap.dtbo
  22. dtbo-$(RPI_DT_OVERLAYS) += iqaudio-dac.dtbo
  23. dtbo-$(RPI_DT_OVERLAYS) += iqaudio-dacplus.dtbo
  24. --- a/arch/arm/boot/dts/overlays/README
  25. +++ b/arch/arm/boot/dts/overlays/README
  26. @@ -464,6 +464,12 @@ Params: sda1_pin GPIO pin
  27. default 4)
  28. +Name: i2s-gpio28-31
  29. +Info: move I2S function block to GPIO 28 to 31
  30. +Load: dtoverlay=i2s-gpio28-31
  31. +Params: <None>
  32. +
  33. +
  34. Name: i2s-mmap
  35. Info: Enables mmap support in the bcm2708-i2s driver
  36. Load: dtoverlay=i2s-mmap
  37. --- /dev/null
  38. +++ b/arch/arm/boot/dts/overlays/i2s-gpio28-31-overlay.dts
  39. @@ -0,0 +1,18 @@
  40. +/*
  41. + * Device tree overlay to move i2s to gpio 28 to 31 on CM
  42. + */
  43. +
  44. +/dts-v1/;
  45. +/plugin/;
  46. +
  47. +/ {
  48. + compatible = "brcm,bcm2835", "brcm,bcm2836", "brcm,bcm2708", "brcm,bcm2709";
  49. +
  50. + fragment@0 {
  51. + target = <&i2s_pins>;
  52. + __overlay__ {
  53. + brcm,pins = <28 29 30 31>;
  54. + brcm,function = <6>; /* alt2 */
  55. + };
  56. + };
  57. +};