pmaports/device/testing/linux-postmarketos-exynos5/0023-ARM-dts-exynos-snow-add-jack-detection.patch
Henrik Grimler bd7c8d15ad
linux-postmarketos-exynos5: re-generate patch headers (MR 3516)
Patch header for 0027 was not formatted correctly.  Fix that and
re-generate all other patches while we are at it.

[ci:skip-build] Already built successfuly on CI in MR
2022-10-11 18:39:46 +02:00

52 lines
1.6 KiB
Diff

From 5b83e89b631392b2ad2f8b06f9c8f1ceda3d2808 Mon Sep 17 00:00:00 2001
From: Anton Bambura <jenneron@protonmail.com>
Date: Sat, 5 Feb 2022 03:33:17 +0200
Subject: [PATCH 23/33] ARM: dts: exynos: snow: add jack detection
Add GPIOs for headphones and microphone detection.
Signed-off-by: Anton Bambura <jenneron@protonmail.com>
---
arch/arm/boot/dts/exynos5250-snow-common.dtsi | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/arch/arm/boot/dts/exynos5250-snow-common.dtsi b/arch/arm/boot/dts/exynos5250-snow-common.dtsi
index 47ab5a17d4f2..817b48c924f0 100644
--- a/arch/arm/boot/dts/exynos5250-snow-common.dtsi
+++ b/arch/arm/boot/dts/exynos5250-snow-common.dtsi
@@ -178,6 +178,11 @@ charger {
sound {
samsung,i2s-controller = <&i2s0>;
+ samsung,hp-det-gpios = <&gpx2 2 GPIO_ACTIVE_HIGH>;
+ samsung,mic-det-gpios = <&gpx2 0 GPIO_ACTIVE_LOW>;
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&hp_det_gpio &mic_det_gpio>;
};
usb3_vbus_reg: regulator-usb3 {
@@ -635,6 +640,20 @@ ec_irq: ec-irq-pins {
samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
};
+ mic_det_gpio: mic-det-gpio-pins {
+ samsung,pins = "gpx2-0";
+ samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
+ samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
+ samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
+ };
+
+ hp_det_gpio: hp-det-gpio-pins {
+ samsung,pins = "gpx2-2";
+ samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
+ samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
+ samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
+ };
+
tps65090_irq: tps65090-irq-pins {
samsung,pins = "gpx2-6";
samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
--
2.38.0