1 From 36a2db8647b19b0c8576a10ab787b14098049f9b Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Wed, 28 Feb 2018 21:29:42 +0000
4 Subject: [PATCH 235/454] overlays: Add overlay for PiBell soundcard
6 This overlay is presented as another example of using the simple card
9 See: https://www.raspberrypi.org/forums/viewtopic.php?f=44&t=99784&p=1279490#p1278971
11 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
13 arch/arm/boot/dts/overlays/Makefile | 1 +
14 arch/arm/boot/dts/overlays/README | 7 ++
15 arch/arm/boot/dts/overlays/pibell-overlay.dts | 81 +++++++++++++++++++
16 3 files changed, 89 insertions(+)
17 create mode 100644 arch/arm/boot/dts/overlays/pibell-overlay.dts
19 --- a/arch/arm/boot/dts/overlays/Makefile
20 +++ b/arch/arm/boot/dts/overlays/Makefile
21 @@ -76,6 +76,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
23 pi3-disable-wifi.dtbo \
24 pi3-miniuart-bt.dtbo \
29 --- a/arch/arm/boot/dts/overlays/README
30 +++ b/arch/arm/boot/dts/overlays/README
31 @@ -1182,6 +1182,13 @@ Load: dtoverlay=pi3-miniuart-bt
36 +Info: Configures the pibell audio card.
37 +Load: dtoverlay=pibell,<param>=<val>
38 +Params: alsaname Set the name as it appears in ALSA (default
43 Info: PiScreen display by OzzMaker.com
44 Load: dtoverlay=piscreen,<param>=<val>
46 +++ b/arch/arm/boot/dts/overlays/pibell-overlay.dts
52 + compatible = "brcm,bcm2708";
57 + codec_out: spdif-transmitter {
58 + #address-cells = <0>;
60 + #sound-dai-cells = <0>;
61 + compatible = "linux,spdif-dit";
65 + codec_in: card-codec {
66 + #sound-dai-cells = <0>;
67 + compatible = "invensense,ics43432";
76 + #sound-dai-cells = <0>;
84 + compatible = "simple-audio-card";
85 + simple-audio-card,name = "PiBell";
89 + capture_link: simple-audio-card,dai-link@0 {
95 +/* example TDM slot configuration
96 + dai-tdm-slot-num = <2>;
97 + dai-tdm-slot-width = <32>;
101 + r_codec_dai: codec {
102 + sound-dai = <&codec_in>;
106 + playback_link: simple-audio-card,dai-link@1 {
110 + sound-dai = <&i2s>;
112 +/* example TDM slot configuration
113 + dai-tdm-slot-num = <2>;
114 + dai-tdm-slot-width = <32>;
118 + p_codec_dai: codec {
119 + sound-dai = <&codec_out>;
126 + alsaname = <&snd>, "simple-audio-card,name";