lkml.org 
[lkml]   [2018]   [Dec]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Date
Subject[PATCH] arm: bcm2835-audio: Document the device tree node to enable bcm2835-audio driver
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

\
 
 \ /
  Last update: 2018-12-12 22:06    [W:0.028 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site