Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions arch/arm/boot/dts/overlays/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
audiosense-pi.dtbo \
audremap.dtbo \
balena-fin.dtbo \
chipdip-i2s-master-dac.dtbo \
cma.dtbo \
dht11.dtbo \
dionaudio-loco.dtbo \
Expand Down
6 changes: 6 additions & 0 deletions arch/arm/boot/dts/overlays/README
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,12 @@ Info: This overlay is now deprecated - see i2c-sensor
Load: <Deprecated>


Name: chipdip-i2s-master-dac
Info: Configures Raspberry PI to work as I2S slave with BCLK=64Fs.
Load: dtoverlay=chipdip-i2s-master-dac
Params: <None>


Name: cma
Info: Set custom CMA sizes, only use if you know what you are doing, might
clash with other overlays like vc4-fkms-v3d and vc4-kms-v3d.
Expand Down
53 changes: 53 additions & 0 deletions arch/arm/boot/dts/overlays/chipdip-i2s-master-dac-overlay.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/*
* Device Tree overlay for ChipDip I2S master DAC
*/

/dts-v1/;
/plugin/;

/ {
compatible = "brcm,bcm2835";
fragment@0 {
target = <&sound>;
__overlay__ {
compatible = "simple-audio-card";
simple-audio-card,name = "ChipDip I2S master DAC";
status="okay";
playback_link: simple-audio-card,dai-link@0 {
format = "i2s";
bitclock-master = <&p_codec_dai>;
frame-master = <&p_codec_dai>;
p_cpu_dai: cpu {
sound-dai = <&i2s>;
dai-tdm-slot-num = <2>;
dai-tdm-slot-width = <32>;
};

p_codec_dai: codec {
sound-dai = <&codec_out>;
};
};
};
};

fragment@1 {
target-path = "/";
__overlay__ {
codec_out: spdif-transmitter {
#address-cells = <0>;
#size-cells = <0>;
#sound-dai-cells = <0>;
compatible = "linux,spdif-dit";
status = "okay";
};
};
};

fragment@2 {
target = <&i2s>;
__overlay__ {
#sound-dai-cells = <0>;
status = "okay";
};
};
};