Skip to content

Commit

Permalink
overlays: Add chipdip-dac overlay
Browse files Browse the repository at this point in the history
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
  • Loading branch information
pelwell committed Jul 23, 2021
1 parent da6bb3b commit f93d5d3
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm/boot/dts/overlays/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
audremap.dtbo \
balena-fin.dtbo \
cap1106.dtbo \
chipdip-dac.dtbo \
chipdip-i2s-master-dac.dtbo \
cma.dtbo \
dht11.dtbo \
Expand Down
39 changes: 39 additions & 0 deletions arch/arm/boot/dts/overlays/chipdip-dac-overlay.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/*
* Device Tree overlay for ChipDip I2S master DAC
*/

/dts-v1/;
/plugin/;

/ {
compatible = "brcm,bcm2835";

fragment@0 {
target = <&i2s>;
__overlay__ {
status = "okay";
};
};

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

fragment@2 {
target = <&sound>;
__overlay__ {
compatible = "chipdip,chipdip-dac";
i2s-controller = <&i2s>;
status = "okay";
};
};
};

0 comments on commit f93d5d3

Please sign in to comment.