linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm: bcm2835-audio: Document the device tree node to enable bcm2835-audio driver
@ 2018-12-12 21:05 Santiago Garcia Mantinan
  0 siblings, 0 replies; only message in thread
From: Santiago Garcia Mantinan @ 2018-12-12 21:05 UTC (permalink / raw)
  To: linux-kernel

This patch makes it posible to use the bcm2835-audio driver on the Raspberry.

In drivers/staging/vc04_services/bcm2835-audio/TODO Michael Zoran says
that this is to be done, in fact as we noted on
https://bugs.debian.org/856505 without this patch the driver is not
loaded and when loaded it doesn't do a thing.

After applying the patch on both 4.19.X and 4.20-rc5 you get the
driver autoloaded and working sound on hdmi and on the minijack
(selection done through amixer cset).

I'd like this patch to be applied so that people with a Raspberry can
get sound out of it.

Signed-off-by: Santiago García Mantiñán <manty@manty.net>
---
 arch/arm/boot/dts/bcm283x.dtsi                   | 5 +++++
 drivers/staging/vc04_services/bcm2835-audio/TODO | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/bcm283x.dtsi b/arch/arm/boot/dts/bcm283x.dtsi
index 31b29646b14c..120e8f85617d 100644
--- a/arch/arm/boot/dts/bcm283x.dtsi
+++ b/arch/arm/boot/dts/bcm283x.dtsi
@@ -634,6 +634,11 @@
         vc4: gpu {
             compatible = "brcm,bcm2835-vc4";
         };
+
+        audio: audio {
+            compatible = "brcm,bcm2835-audio";
+            brcm,pwm-channels = <8>;
+        };
     };

     clocks {
diff --git a/drivers/staging/vc04_services/bcm2835-audio/TODO
b/drivers/staging/vc04_services/bcm2835-audio/TODO
index 73d41fa631ac..5611c88978e2 100644
--- a/drivers/staging/vc04_services/bcm2835-audio/TODO
+++ b/drivers/staging/vc04_services/bcm2835-audio/TODO
@@ -5,7 +5,7 @@
 *****************************************************************************


-1) Document the device tree node
+1) Document the device tree node (DONE)

 The downstream tree(the tree that the driver was imported from) at
 http://www.github.com/raspberrypi/linux uses this node:
-- 
2.19.2

Regards
--
Manty/BestiaTester -> http://manty.net

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-12-12 21:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-12 21:05 [PATCH] arm: bcm2835-audio: Document the device tree node to enable bcm2835-audio driver Santiago Garcia Mantinan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).