-
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.
BCM270X: Adding device tree support for AudioSense-Pi add-on soundcard
Device tree overlay for AudioSense-Pi card. To enable support for the hardware add the following line to the RPi /boot/config.txt: dtoverlay=audiosense-pi More documentation @ arch/arm/boot/dts/overlays/README Signed-off-by: b-ak <[email protected]>
- Loading branch information
Showing
3 changed files
with
91 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,82 @@ | ||
// Definitions for audiosense add on soundcard | ||
/dts-v1/; | ||
/plugin/; | ||
#include <dt-bindings/pinctrl/bcm2835.h> | ||
#include <dt-bindings/gpio/gpio.h> | ||
|
||
/ { | ||
compatible = "brcm,bcm2837", "brcm,bcm2836", "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709"; | ||
|
||
fragment@0 { | ||
target = <&i2s>; | ||
__overlay__ { | ||
status = "okay"; | ||
}; | ||
}; | ||
|
||
fragment@1 { | ||
target-path = "/"; | ||
__overlay__ { | ||
codec_reg_1v8: codec-reg-1v8 { | ||
compatible = "regulator-fixed"; | ||
regulator-name = "tlv320aic3204_1v8"; | ||
regulator-min-microvolt = <1800000>; | ||
regulator-max-microvolt = <1800000>; | ||
regulator-always-on; | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@2 { | ||
target = <&gpio>; | ||
__overlay__ { | ||
codec_rst: codec-rst { | ||
brcm,pins = <26>; | ||
brcm,function = <BCM2835_FSEL_GPIO_OUT>; | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@3 { | ||
target = <&i2c1>; | ||
__overlay__ { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
status = "okay"; | ||
|
||
/* audio external oscillator */ | ||
codec_osc: codec_osc { | ||
compatible = "fixed-clock"; | ||
#clock-cells = <0>; | ||
clock-frequency = <12000000>; /* 12 MHz */ | ||
}; | ||
|
||
codec: tlv320aic32x4@18 { | ||
#sound-dai-cells = <0>; | ||
compatible = "ti,tlv320aic32x4"; | ||
reg = <0x18>; | ||
|
||
clocks = <&codec_osc>; | ||
clock-names = "mclk"; | ||
|
||
iov-supply = <&vdd_3v3_reg>; | ||
ldoin-supply = <&vdd_3v3_reg>; | ||
|
||
gpio-controller; | ||
#gpio-cells = <2>; | ||
reset-gpios = <&gpio 26 GPIO_ACTIVE_HIGH>; | ||
|
||
status = "okay"; | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@4 { | ||
target = <&sound>; | ||
__overlay__ { | ||
compatible = "as,audiosense-pi"; | ||
i2s-controller = <&i2s>; | ||
status = "okay"; | ||
}; | ||
}; | ||
}; |