Last active
May 24, 2017 12:38
-
-
Save HiassofT/80fdb744f77dfc58c4cb2db876bb0e9a to your computer and use it in GitHub Desktop.
simple card overlay for pcm5122 using 64fs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/dts-v1/; | |
/plugin/; | |
/ { | |
fragment@0 { | |
target = <&i2s>; | |
__overlay__ { | |
#sound-dai-cells = <0>; | |
status = "okay"; | |
}; | |
}; | |
fragment@1 { | |
target = <&i2c1>; | |
__overlay__ { | |
#address-cells = <1>; | |
#size-cells = <0>; | |
status = "okay"; | |
pcm5122: pcm5122@4c { | |
#sound-dai-cells = <0>; | |
compatible = "ti,pcm5122"; | |
reg = <0x4c>; | |
AVDD-supply = <&vdd_3v3_reg>; | |
DVDD-supply = <&vdd_3v3_reg>; | |
CPVDD-supply = <&vdd_3v3_reg>; | |
status = "okay"; | |
}; | |
}; | |
}; | |
fragment@2 { | |
target-path = "/"; | |
__overlay__ { | |
generic_pcm5122: generic-pcm5122 { | |
compatible = "simple-audio-card"; | |
simple-audio-card,name = "PCM5122"; | |
simple-audio-card,format = "i2s"; | |
simple-audio-card,bitclock-master = <&cpu_dai>; | |
simple-audio-card,frame-master = <&cpu_dai>; | |
status="okay"; | |
cpu_dai: simple-audio-card,cpu { | |
sound-dai = <&i2s>; | |
/* test tdm: use fixed 64fs instead of 32/48/64 */ | |
dai-tdm-slot-num = <2>; | |
dai-tdm-slot-width = <32>; | |
}; | |
codec_dai: simple-audio-card,codec { | |
sound-dai = <&pcm5122>; | |
}; | |
}; | |
}; | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment