Co-authored-by: Paul Obernesser <paul.obernesser@inncubator.at> Reviewed-on: https://gitea.pstruebi.xyz/auracaster/bumble-auracast/pulls/12
56 lines
1.5 KiB
Plaintext
56 lines
1.5 KiB
Plaintext
/dts-v1/;
|
|
/plugin/;
|
|
|
|
/ {
|
|
compatible = "brcm,bcm2835";
|
|
|
|
/* Enable the I²S controller */
|
|
fragment@0 {
|
|
target = <&i2s>;
|
|
__overlay__ {
|
|
status = "okay";
|
|
};
|
|
};
|
|
|
|
/* PCM1862 on I2C1 at 0x4a (change if your bus/address differ) */
|
|
fragment@1 {
|
|
target = <&i2c1>;
|
|
__overlay__ {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
pcm1862: adc@4a {
|
|
compatible = "ti,pcm1862";
|
|
reg = <0x4a>;
|
|
#sound-dai-cells = <0>;
|
|
/* Rails are hard-powered on your board, so no regulators here */
|
|
};
|
|
};
|
|
};
|
|
|
|
/* Link bcm2835-i2s <-> pcm1862 via simple-audio-card */
|
|
fragment@2 {
|
|
target-path = "/";
|
|
__overlay__ {
|
|
pcm1862_sound: pcm1862-sound {
|
|
compatible = "simple-audio-card";
|
|
simple-audio-card,name = "pcm1862 on i2s";
|
|
simple-audio-card,format = "i2s";
|
|
/* Pi is master for BCLK/LRCLK */
|
|
simple-audio-card,bitclock-master = <&dai_cpu>;
|
|
simple-audio-card,frame-master = <&dai_cpu>;
|
|
|
|
dai_cpu: simple-audio-card,cpu {
|
|
sound-dai = <&i2s>;
|
|
dai-tdm-slot-num = <2>;
|
|
dai-tdm-slot-width = <32>;
|
|
};
|
|
|
|
simple-audio-card,codec {
|
|
sound-dai = <&pcm1862>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|