-
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.
overlays: Add overlay for Hifiberry ADC
Adds the DT overlay for the HiFiBerry ADC. Signed-off-by: j-schambacher <[email protected]>
- Loading branch information
1 parent
255788c
commit 2dd8d93
Showing
4 changed files
with
54 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,45 @@ | ||
// SPDX-License-Identifier: GPL-2.0 | ||
// Definitions for HiFiBerry ADC, no onboard clocks | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
/ { | ||
compatible = "brcm,bcm2835"; | ||
|
||
fragment@0 { | ||
target = <&i2s_clk_producer>; | ||
__overlay__ { | ||
status = "okay"; | ||
}; | ||
}; | ||
|
||
fragment@1 { | ||
target = <&i2c1>; | ||
__overlay__ { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
status = "okay"; | ||
|
||
hb_adc: pcm186x@4a { | ||
#sound-dai-cells = <0>; | ||
compatible = "ti,pcm1863"; | ||
reg = <0x4a>; | ||
status = "okay"; | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@2 { | ||
target = <&sound>; | ||
hifiberry_adc: __overlay__ { | ||
compatible = "hifiberry,hifiberry-adc"; | ||
audio-codec = <&hb_adc>; | ||
i2s-controller = <&i2s_clk_producer>; | ||
status = "okay"; | ||
}; | ||
}; | ||
|
||
__overrides__ { | ||
leds_off = <&hifiberry_adc>,"hifiberry-adc,leds_off?"; | ||
}; | ||
}; |
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