blob: 24dc00be6a2979fbca62b3cc479e7de20242c2fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
From 1040be57555a700e5949aa509299fea40649269e Mon Sep 17 00:00:00 2001
From: David Knell <david.knell@gmail.com>
Date: Mon, 8 Feb 2021 03:33:30 +0000
Subject: [PATCH] Overlays for PiFi-Mini amp
Signed-off-by: David Knell <david.knell@gmail.com>
---
arch/arm/boot/dts/overlays/Makefile | 1 +
arch/arm/boot/dts/overlays/README | 6 +++
.../dts/overlays/pifi-mini-210-overlay.dts | 42 +++++++++++++++++++
3 files changed, 49 insertions(+)
create mode 100644 arch/arm/boot/dts/overlays/pifi-mini-210-overlay.dts
--- a/arch/arm/boot/dts/overlays/Makefile
+++ b/arch/arm/boot/dts/overlays/Makefile
@@ -130,6 +130,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
pibell.dtbo \
pifacedigital.dtbo \
pifi-40.dtbo \
+ pifi-mini-210.dtbo \
piglow.dtbo \
piscreen.dtbo \
piscreen2r.dtbo \
--- a/arch/arm/boot/dts/overlays/README
+++ b/arch/arm/boot/dts/overlays/README
@@ -2131,6 +2131,12 @@ Load: dtoverlay=pifi-40
Params: <None>
+Name: pifi-mini-210
+Info: Configures the PiFi Mini stereo amplifier
+Load: dtoverlay=pifi-mini-210
+Params: <None>
+
+
Name: piglow
Info: Configures the PiGlow by pimoroni.com
Load: dtoverlay=piglow
--- /dev/null
+++ b/arch/arm/boot/dts/overlays/pifi-mini-210-overlay.dts
@@ -0,0 +1,42 @@
+// Definitions for PiFi Mini 210
+/dts-v1/;
+/plugin/;
+
+/ {
+ compatible = "brcm,bcm2835";
+
+ fragment@0 {
+ target = <&i2s>;
+ __overlay__ {
+ status = "okay";
+ };
+ };
+
+ fragment@1 {
+ target = <&i2c1>;
+ __overlay__ {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "okay";
+
+ tas5711@1a {
+ #sound-dai-cells = <0>;
+ compatible = "ti,tas5711";
+ reg = <0x1a>;
+ status = "okay";
+ pdn-gpios = <&gpio 23 1>;
+ reset-gpios = <&gpio 24 1>;
+ };
+ };
+ };
+
+ fragment@2 {
+ target = <&sound>;
+ __overlay__ {
+ compatible = "pifi,pifi-mini-210";
+ i2s-controller = <&i2s>;
+
+ status = "okay";
+ };
+ };
+};
|