bd7c8d15ad
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
53 lines
1.7 KiB
Diff
53 lines
1.7 KiB
Diff
From 78b5f75209f38ef9bb48778d62ca6ada08dddb43 Mon Sep 17 00:00:00 2001
|
|
From: Anton Bambura <jenneron@protonmail.com>
|
|
Date: Mon, 14 Mar 2022 21:57:44 +0200
|
|
Subject: [PATCH 25/33] 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 73b2616bd095..82192987a0cb 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>;
|
|
@@ -817,6 +822,20 @@ ec_irq: ec-irq-pins {
|
|
samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
|
|
};
|
|
|
|
+ mic_det_gpio: mic-det-gpio-pins {
|
|
+ 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-pins {
|
|
+ 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-pins {
|
|
samsung,pins = "gpx2-5";
|
|
samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
|
|
--
|
|
2.38.0
|
|
|