1 From 5dd5b4625a4435f64ee6a1c9f47e3609e771f14b Mon Sep 17 00:00:00 2001
2 From: David Knell <david.knell@gmail.com>
3 Date: Wed, 28 Oct 2020 14:20:56 +0000
4 Subject: [PATCH] PiFi-40 Devicetree files
6 Signed-off-by: David Knell <david.knell@gmail.com>
8 arch/arm/boot/dts/overlays/Makefile | 1 +
9 arch/arm/boot/dts/overlays/README | 6 +++
10 .../arm/boot/dts/overlays/pifi-40-overlay.dts | 50 +++++++++++++++++++
11 3 files changed, 57 insertions(+)
12 create mode 100644 arch/arm/boot/dts/overlays/pifi-40-overlay.dts
14 --- a/arch/arm/boot/dts/overlays/Makefile
15 +++ b/arch/arm/boot/dts/overlays/Makefile
16 @@ -125,6 +125,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
24 --- a/arch/arm/boot/dts/overlays/README
25 +++ b/arch/arm/boot/dts/overlays/README
26 @@ -2000,6 +2000,12 @@ Params: spi-present-mask 8-bit in
27 0-3, which can be configured with JP1 and JP2.
31 +Info: Configures the PiFi 40W stereo amplifier
32 +Load: dtoverlay=pifi-40
37 Info: Configures the PiGlow by pimoroni.com
38 Load: dtoverlay=piglow
40 +++ b/arch/arm/boot/dts/overlays/pifi-40-overlay.dts
42 +// Definitions for PiFi-40 Amp
45 +#include <dt-bindings/gpio/gpio.h>
47 + compatible = "brcm,bcm2835";
59 + #address-cells = <1>;
63 + tas5711l: audio-codec@1a {
64 + compatible = "ti,tas5711";
66 + #sound-dai-cells = <0>;
67 + sound-name-prefix = "Left";
71 + tas5711r: audio-codec@1b {
72 + compatible = "ti,tas5711";
74 + #sound-dai-cells = <0>;
75 + sound-name-prefix = "Right";
83 + pifi_40: __overlay__ {
84 + compatible = "pifi,pifi-40";
85 + audio-codec = <&tas5711l &tas5711r>;
86 + i2s-controller = <&i2s>;
87 + pdn-gpios = <&gpio 23 1>;