mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 10:08:59 +00:00
84 lines
1.9 KiB
Diff
84 lines
1.9 KiB
Diff
|
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";
|
||
|
+ };
|
||
|
+ };
|
||
|
+};
|