-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ASoC: A simple-card overlay for ADAU7002
Usage: `dtoverlay=adau7002-simple`
- Loading branch information
1 parent
7266759
commit 29a63df
Showing
3 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
/ { | ||
compatible = "brcm,bcm2708"; | ||
|
||
fragment@0 { | ||
target = <&i2s>; | ||
__overlay__ { | ||
status = "okay"; | ||
}; | ||
}; | ||
|
||
fragment@1 { | ||
target-path = "/"; | ||
__overlay__ { | ||
adau7002_codec: adau7002-codec { | ||
#sound-dai-cells = <0>; | ||
compatible = "adi,adau7002"; | ||
/* IOVDD-supply = <&supply>;*/ | ||
status = "okay"; | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@2 { | ||
target = <&sound>; | ||
sound_overlay: __overlay__ { | ||
compatible = "simple-audio-card"; | ||
simple-audio-card,format = "i2s"; | ||
simple-audio-card,name = "adau7002"; | ||
simple-audio-card,bitclock-slave = <&dailink0_slave>; | ||
simple-audio-card,frame-slave = <&dailink0_slave>; | ||
simple-audio-card,widgets = | ||
"Microphone", "Microphone Jack"; | ||
simple-audio-card,routing = | ||
"PDM_DAT", "Microphone Jack"; | ||
status = "okay"; | ||
simple-audio-card,cpu { | ||
sound-dai = <&i2s>; | ||
}; | ||
dailink0_slave: simple-audio-card,codec { | ||
sound-dai = <&adau7002_codec>; | ||
}; | ||
}; | ||
}; | ||
|
||
|
||
__overrides__ { | ||
card-name = <&sound_overlay>,"simple-audio-card,name"; | ||
}; | ||
}; |