Skip to content

Commit

Permalink
overlays: Add audremap overlay
Browse files Browse the repository at this point in the history
The audremap overlay switches the PWM audio outputs to GPIO pins
12 (L) and 13 (R).
  • Loading branch information
Phil Elwell authored and popcornmix committed Sep 30, 2016
1 parent 165059f commit 12021ab
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm/boot/dts/overlays/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ dtbo-$(RPI_DT_OVERLAYS) += ads7846.dtbo
dtbo-$(RPI_DT_OVERLAYS) += akkordion-iqdacplus.dtbo
dtbo-$(RPI_DT_OVERLAYS) += at86rf233.dtbo
dtbo-$(RPI_DT_OVERLAYS) += audioinjector-wm8731-audio.dtbo
dtbo-$(RPI_DT_OVERLAYS) += audremap.dtbo
dtbo-$(RPI_DT_OVERLAYS) += bmp085_i2c-sensor.dtbo
dtbo-$(RPI_DT_OVERLAYS) += dht11.dtbo
dtbo-$(RPI_DT_OVERLAYS) += dionaudio-loco.dtbo
Expand Down
6 changes: 6 additions & 0 deletions arch/arm/boot/dts/overlays/README
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,12 @@ Load: dtoverlay=audioinjector-wm8731-audio
Params: <None>


Name: audremap
Info: Switches PWM sound output to pins 12 & 13
Load: dtoverlay=audremap
Params: <None>


Name: bmp085_i2c-sensor
Info: Configures the BMP085/BMP180 digital barometric pressure and temperature
sensors from Bosch Sensortec
Expand Down
14 changes: 14 additions & 0 deletions arch/arm/boot/dts/overlays/audremap-overlay.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/dts-v1/;
/plugin/;

/ {
compatible = "brcm,bcm2708";

fragment@0 {
target = <&audio_pins>;
__overlay__ {
brcm,pins = < 12 13 >;
brcm,function = < 4 >; /* alt0 alt0 */
};
};
};

0 comments on commit 12021ab

Please sign in to comment.