pmaports/device/linux-samsung-i927/0037-ARM-dts-tegra20-glide-Add-bindings-for-microphone.patch
Sergey Larin 5ccbcf999d
samsung-i927: update kernel to 5.2.1, more updates (!452)
- OTG support
- Charger
- WiFi 5GHz
- RTC bug "fixed" (always-on interrupt - made device overheat!)
- Kernel version bumped to 5.2.1
- Memory timings
- New WM8994 codec board driver (fixes suspend/resume)
- Camera's regulator supported now (saves power at least!)
- Updated panel driver (still not in mainline, idk why)
- MHL support in kernel (fixes boot times and screen, currently disabled in X,
  not tested)
- Other minor kernel chagnes

[ci:skip-build]: already built successfully in CI
2019-07-17 00:15:26 +02:00

58 lines
1.5 KiB
Diff

From 32e6469e95ebbb3f8178eb79db3b1d53a2584f91 Mon Sep 17 00:00:00 2001
From: Sergey Larin <cerg2010cerg2010@mail.ru>
Date: Sun, 24 Feb 2019 18:20:08 +0300
Subject: [PATCH] ARM: dts: tegra20-glide: Add bindings for microphone
Mic requires additional GPIOs to work:
- MICBIAS1: internal MICBIAS
- MICBIAS2: external (headphone) MICBIAS
- EAR_SEL: to choose between internal and external mic
Also GPIO 1 on Wolfson chip needs to be asserted.
Make it on by default.
Signed-off-by: Sergey Larin <cerg2010cerg2010@mail.ru>
---
arch/arm/boot/dts/tegra20-glide.dts | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/arch/arm/boot/dts/tegra20-glide.dts b/arch/arm/boot/dts/tegra20-glide.dts
index d7dfa895cf56..195ccb0a1012 100644
--- a/arch/arm/boot/dts/tegra20-glide.dts
+++ b/arch/arm/boot/dts/tegra20-glide.dts
@@ -868,6 +868,7 @@
#gpio-cells = <2>;
wlf,ldo1ena = <&gpio TEGRA_GPIO(X, 5) GPIO_ACTIVE_HIGH>;
+ wlf,gpio-cfg = <0xA101 0 0 0 0 0 0 0 0 0 0>;
};
};
@@ -1129,6 +1130,24 @@
linux,default-trigger = "gpio";
default-state = "off";
};
+
+ micbias1 {
+ label = "MICBIAS1";
+ gpios = <&gpio TEGRA_GPIO(X, 6) GPIO_ACTIVE_HIGH>;
+ default-state = "on";
+ };
+
+ micbias2 {
+ label = "MICBIAS2";
+ gpios = <&gpio TEGRA_GPIO(H, 3) GPIO_ACTIVE_HIGH>;
+ default-state = "off";
+ };
+
+ earsel {
+ label = "EAR_SEL";
+ gpios = <&gpio TEGRA_GPIO(I, 4) GPIO_ACTIVE_HIGH>;
+ default-state = "off";
+ };
};
pmc@7000e400 {
--
2.22.0