mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 18:09:56 +00:00
PiFi-40 Devicetree files
Signed-off-by: David Knell <david.knell@gmail.com>
This commit is contained in:
@@ -125,6 +125,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
|
||||
pca953x.dtbo \
|
||||
pibell.dtbo \
|
||||
pifacedigital.dtbo \
|
||||
pifi-40.dtbo \
|
||||
piglow.dtbo \
|
||||
piscreen.dtbo \
|
||||
piscreen2r.dtbo \
|
||||
|
||||
@@ -2000,6 +2000,12 @@ Params: spi-present-mask 8-bit integer, bitmap indicating MCP23S17 SPI0
|
||||
0-3, which can be configured with JP1 and JP2.
|
||||
|
||||
|
||||
Name: pifi-40
|
||||
Info: Configures the PiFi 40W stereo amplifier
|
||||
Load: dtoverlay=pifi-40
|
||||
Params: <None>
|
||||
|
||||
|
||||
Name: piglow
|
||||
Info: Configures the PiGlow by pimoroni.com
|
||||
Load: dtoverlay=piglow
|
||||
|
||||
50
arch/arm/boot/dts/overlays/pifi-40-overlay.dts
Normal file
50
arch/arm/boot/dts/overlays/pifi-40-overlay.dts
Normal file
@@ -0,0 +1,50 @@
|
||||
// Definitions for PiFi-40 Amp
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
/ {
|
||||
compatible = "brcm,bcm2835";
|
||||
|
||||
fragment@0 {
|
||||
target = <&i2s>;
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&i2c1>;
|
||||
__overlay__ {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
status = "okay";
|
||||
|
||||
tas5711l: audio-codec@1a {
|
||||
compatible = "ti,tas5711";
|
||||
reg = <0x1a>;
|
||||
#sound-dai-cells = <0>;
|
||||
sound-name-prefix = "Left";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
tas5711r: audio-codec@1b {
|
||||
compatible = "ti,tas5711";
|
||||
reg = <0x1b>;
|
||||
#sound-dai-cells = <0>;
|
||||
sound-name-prefix = "Right";
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@2 {
|
||||
target = <&sound>;
|
||||
pifi_40: __overlay__ {
|
||||
compatible = "pifi,pifi-40";
|
||||
audio-codec = <&tas5711l &tas5711r>;
|
||||
i2s-controller = <&i2s>;
|
||||
pdn-gpios = <&gpio 23 1>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user