167-1-dt-sun7i-add-codec-node.patch 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. From ca3f125c08bab943572a15ac3a52f33f132cf77f Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Emilio=20L=C3=B3pez?= <elopez93@gmail.com>
  3. Date: Mon, 18 Aug 2014 01:07:55 -0300
  4. Subject: [PATCH] ARM: sun7i: dt: Add sunxi codec device node
  5. The A20 SoC includes the Allwinner audio codec, capable of both 24-bit
  6. playback and capture. This commit adds a device node for it.
  7. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
  8. ---
  9. arch/arm/boot/dts/sun7i-a20.dtsi | 12 ++++++++++++
  10. 1 file changed, 12 insertions(+)
  11. --- a/arch/arm/boot/dts/sun7i-a20.dtsi
  12. +++ b/arch/arm/boot/dts/sun7i-a20.dtsi
  13. @@ -1182,6 +1182,18 @@
  14. status = "disabled";
  15. };
  16. + codec: codec@01c22c00 {
  17. + #sound-dai-cells = <0>;
  18. + compatible = "allwinner,sun7i-a20-codec";
  19. + reg = <0x01c22c00 0x40>;
  20. + interrupts = <0 30 4>;
  21. + clocks = <&apb0_gates 0>, <&codec_clk>;
  22. + clock-names = "apb", "codec";
  23. + dmas = <&dma 0 19>, <&dma 0 19>;
  24. + dma-names = "rx", "tx";
  25. + status = "disabled";
  26. + };
  27. +
  28. sid: eeprom@01c23800 {
  29. compatible = "allwinner,sun7i-a20-sid";
  30. reg = <0x01c23800 0x200>;