2022-10-10 17:27:10 +00:00
|
|
|
From 5b83e89b631392b2ad2f8b06f9c8f1ceda3d2808 Mon Sep 17 00:00:00 2001
|
2022-01-29 14:26:08 +00:00
|
|
|
From: Anton Bambura <jenneron@protonmail.com>
|
|
|
|
Date: Sat, 5 Feb 2022 03:33:17 +0200
|
2022-10-10 17:27:10 +00:00
|
|
|
Subject: [PATCH 23/33] ARM: dts: exynos: snow: add jack detection
|
2022-01-29 14:26:08 +00:00
|
|
|
|
|
|
|
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
|
2022-10-10 17:27:10 +00:00
|
|
|
index 47ab5a17d4f2..817b48c924f0 100644
|
2022-01-29 14:26:08 +00:00
|
|
|
--- 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 {
|
2022-10-10 00:46:37 +00:00
|
|
|
@@ -635,6 +640,20 @@ ec_irq: ec-irq-pins {
|
2022-01-29 14:26:08 +00:00
|
|
|
samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
|
|
|
|
};
|
|
|
|
|
2022-10-10 00:46:37 +00:00
|
|
|
+ mic_det_gpio: mic-det-gpio-pins {
|
2022-01-29 14:26:08 +00:00
|
|
|
+ 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>;
|
|
|
|
+ };
|
|
|
|
+
|
2022-10-10 00:46:37 +00:00
|
|
|
+ hp_det_gpio: hp-det-gpio-pins {
|
2022-01-29 14:26:08 +00:00
|
|
|
+ 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>;
|
|
|
|
+ };
|
|
|
|
+
|
2022-10-10 00:46:37 +00:00
|
|
|
tps65090_irq: tps65090-irq-pins {
|
2022-01-29 14:26:08 +00:00
|
|
|
samsung,pins = "gpx2-6";
|
|
|
|
samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
|
|
|
|
--
|
2022-10-10 17:27:10 +00:00
|
|
|
2.38.0
|
2022-01-29 14:26:08 +00:00
|
|
|
|