Skip to content

Instantly share code, notes, and snippets.

@HiassofT
Created April 30, 2017 22:24
Show Gist options
  • Save HiassofT/20b18111591ff25149238e2738107e44 to your computer and use it in GitHub Desktop.
Save HiassofT/20b18111591ff25149238e2738107e44 to your computer and use it in GitHub Desktop.
sample simple-card overlay for g2labs-dac card
/dts-v1/;
/plugin/;
/ {
compatible = "brcm,bcm2708";
fragment@0 {
target = <&i2s>;
__overlay__ {
status = "okay";
};
};
fragment@1 {
target-path = "/";
__overlay__ {
pcm1794a_codec: pcm1794a_codec {
#sound-dai-cells = <0>;
compatible = "ti,pcm1794a";
status = "okay";
};
};
};
fragment@2 {
target = <&sound>;
__overlay__ {
compatible = "simple-audio-card";
simple-audio-card,name = "G2LABS-DAC";
simple-audio-card,format = "i2s";
simple-audio-card,bitclock-master = <&cpu_dai>;
simple-audio-card,frame-master = <&codec_dai>;
status="okay";
cpu_dai: simple-audio-card,cpu {
sound-dai = <&i2s>;
dai-tdm-slot-num = <2>;
dai-tdm-slot-width = <16>;
};
codec_dai: simple-audio-card,codec {
sound-dai = <&pcm1794a_codec>;
};
};
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment