-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added driver for the HiFiBerry DAC+ ADC (#2694)
Signed-off-by: Daniel Matuschek <[email protected]>
- Loading branch information
1 parent
9a32e51
commit b4b24c6
Showing
8 changed files
with
512 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
71 changes: 71 additions & 0 deletions
71
arch/arm/boot/dts/overlays/hifiberry-dacplusadc-overlay.dts
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,71 @@ | ||
// Definitions for HiFiBerry DAC+ADC | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
/ { | ||
compatible = "brcm,bcm2708"; | ||
|
||
fragment@0 { | ||
target-path = "/clocks"; | ||
__overlay__ { | ||
dacpro_osc: dacpro_osc { | ||
compatible = "hifiberry,dacpro-clk"; | ||
#clock-cells = <0>; | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@1 { | ||
target = <&i2s>; | ||
__overlay__ { | ||
status = "okay"; | ||
}; | ||
}; | ||
|
||
fragment@2 { | ||
target = <&i2c1>; | ||
__overlay__ { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
status = "okay"; | ||
|
||
pcm_codec: pcm5122@4d { | ||
#sound-dai-cells = <0>; | ||
compatible = "ti,pcm5122"; | ||
reg = <0x4d>; | ||
clocks = <&dacpro_osc>; | ||
AVDD-supply = <&vdd_3v3_reg>; | ||
DVDD-supply = <&vdd_3v3_reg>; | ||
CPVDD-supply = <&vdd_3v3_reg>; | ||
status = "okay"; | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@3 { | ||
target-path = "/"; | ||
__overlay__ { | ||
dmic { | ||
#sound-dai-cells = <0>; | ||
compatible = "dmic-codec"; | ||
num-channels = <2>; | ||
status = "okay"; | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@4 { | ||
target = <&sound>; | ||
hifiberry_dacplusadc: __overlay__ { | ||
compatible = "hifiberry,hifiberry-dacplusadc"; | ||
i2s-controller = <&i2s>; | ||
status = "okay"; | ||
}; | ||
}; | ||
|
||
__overrides__ { | ||
24db_digital_gain = | ||
<&hifiberry_dacplusadc>,"hifiberry,24db_digital_gain?"; | ||
slave = <&hifiberry_dacplusadc>,"hifiberry-dacplusadc,slave?"; | ||
}; | ||
}; |
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
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
Oops, something went wrong.