0077-Add-device-tree-overlay-for-HiFiBerry-Amp-Amp.patch 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. From 555c5c21ed88de7efa91ce45668ac11416eb29dd Mon Sep 17 00:00:00 2001
  2. From: Daniel Matuschek <info@crazy-audio.com>
  3. Date: Sun, 25 Jan 2015 19:41:06 +0100
  4. Subject: [PATCH 077/114] Add device tree overlay for HiFiBerry Amp/Amp+
  5. This patch add the missing device tree file for the HiFiBerry Amp and Amp+ boards.
  6. ---
  7. arch/arm/boot/dts/Makefile | 1 +
  8. arch/arm/boot/dts/hifiberry-amp-overlay.dts | 39 +++++++++++++++++++++++++++++
  9. 2 files changed, 40 insertions(+)
  10. create mode 100644 arch/arm/boot/dts/hifiberry-amp-overlay.dts
  11. --- a/arch/arm/boot/dts/Makefile
  12. +++ b/arch/arm/boot/dts/Makefile
  13. @@ -58,6 +58,7 @@ dtb-$(CONFIG_BCM2708_DT) += bcm2708-rpi-
  14. dtb-$(CONFIG_BCM2708_DT) += hifiberry-dac-overlay.dtb
  15. dtb-$(CONFIG_BCM2708_DT) += hifiberry-dacplus-overlay.dtb
  16. dtb-$(CONFIG_BCM2708_DT) += hifiberry-digi-overlay.dtb
  17. +dtb-$(CONFIG_BCM2708_DT) += hifiberry-amp-overlay.dtb
  18. dtb-$(CONFIG_BCM2708_DT) += iqaudio-dac-overlay.dtb
  19. dtb-$(CONFIG_BCM2708_DT) += iqaudio-dacplus-overlay.dtb
  20. dtb-$(CONFIG_BCM2708_DT) += lirc-rpi-overlay.dtb
  21. --- /dev/null
  22. +++ b/arch/arm/boot/dts/hifiberry-amp-overlay.dts
  23. @@ -0,0 +1,39 @@
  24. +// Definitions for HiFiBerry Amp/Amp+
  25. +/dts-v1/;
  26. +/plugin/;
  27. +
  28. +/ {
  29. + compatible = "brcm,bcm2708";
  30. +
  31. + fragment@0 {
  32. + target = <&sound>;
  33. + __overlay__ {
  34. + compatible = "hifiberry,hifiberry-amp";
  35. + i2s-controller = <&i2s>;
  36. + status = "okay";
  37. + };
  38. + };
  39. +
  40. + fragment@1 {
  41. + target = <&i2s>;
  42. + __overlay__ {
  43. + status = "okay";
  44. + };
  45. + };
  46. +
  47. + fragment@2 {
  48. + target = <&i2c1>;
  49. + __overlay__ {
  50. + #address-cells = <1>;
  51. + #size-cells = <0>;
  52. + status = "okay";
  53. +
  54. + tas5713@1b {
  55. + #sound-dai-cells = <0>;
  56. + compatible = "ti,tas5713";
  57. + reg = <0x1b>;
  58. + status = "okay";
  59. + };
  60. + };
  61. + };
  62. +};