54 lines
1.7 KiB
Diff
54 lines
1.7 KiB
Diff
|
From 3248217c4d80e4c851e60aca6176a2e6600dce45 Mon Sep 17 00:00:00 2001
|
||
|
From: Anton Bambura <jenneron@protonmail.com>
|
||
|
Date: Mon, 14 Mar 2022 21:57:44 +0200
|
||
|
Subject: [PATCH 4/4] ARM: dts: exynos: peach-pi: add jack detection
|
||
|
|
||
|
Add GPIOs for headphones and microphone detection.
|
||
|
|
||
|
Signed-off-by: Anton Bambura <jenneron@protonmail.com>
|
||
|
Tested-by: Valentine Iourine <iourine@iourine.msk.su>
|
||
|
---
|
||
|
arch/arm/boot/dts/exynos5800-peach-pi.dts | 19 +++++++++++++++++++
|
||
|
1 file changed, 19 insertions(+)
|
||
|
|
||
|
diff --git a/arch/arm/boot/dts/exynos5800-peach-pi.dts b/arch/arm/boot/dts/exynos5800-peach-pi.dts
|
||
|
index e80e77a58..bedfaeff0 100644
|
||
|
--- a/arch/arm/boot/dts/exynos5800-peach-pi.dts
|
||
|
+++ b/arch/arm/boot/dts/exynos5800-peach-pi.dts
|
||
|
@@ -93,6 +93,11 @@ sound {
|
||
|
samsung,model = "Peach-Pi-I2S-MAX98091";
|
||
|
samsung,i2s-controller = <&i2s0>;
|
||
|
samsung,audio-codec = <&max98091>;
|
||
|
+ samsung,hp-det-gpios = <&gpx2 1 GPIO_ACTIVE_HIGH>;
|
||
|
+ samsung,mic-det-gpios = <&gpx1 7 GPIO_ACTIVE_LOW>;
|
||
|
+
|
||
|
+ pinctrl-names = "default";
|
||
|
+ pinctrl-0 = <&hp_det_gpio &mic_det_gpio>;
|
||
|
|
||
|
cpu {
|
||
|
sound-dai = <&i2s0 0>;
|
||
|
@@ -812,6 +817,20 @@ ec_irq: ec-irq {
|
||
|
samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
|
||
|
};
|
||
|
|
||
|
+ mic_det_gpio: mic-det-gpio {
|
||
|
+ samsung,pins = "gpx1-7";
|
||
|
+ samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
|
||
|
+ samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
|
||
|
+ samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
|
||
|
+ };
|
||
|
+
|
||
|
+ hp_det_gpio: hp-det-gpio {
|
||
|
+ samsung,pins = "gpx2-1";
|
||
|
+ samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
|
||
|
+ samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
|
||
|
+ samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
|
||
|
+ };
|
||
|
+
|
||
|
tps65090_irq: tps65090-irq {
|
||
|
samsung,pins = "gpx2-5";
|
||
|
samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
|
||
|
--
|
||
|
2.25.1
|
||
|
|