2022-06-18 15:14:00 +00:00
|
|
|
From a1387014c94ff6fffd0b67e05f2a8f907e9daa02 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Anton Bambura <jenneron@protonmail.com>
|
|
|
|
Date: Sun, 19 Jun 2022 09:18:56 +0300
|
|
|
|
Subject: [PATCH] ARM: tegra: nyan: fix mic jack detection
|
|
|
|
|
|
|
|
Configure this pin properly.
|
|
|
|
|
|
|
|
Signed-off-by: Anton Bambura <jenneron@protonmail.com>
|
|
|
|
Tested-by: Alexander Warnecke <awarnecke002@hotmail.com>
|
|
|
|
---
|
2024-02-19 00:31:55 +00:00
|
|
|
arch/arm/boot/dts/nvidia/tegra124-nyan-big.dts | 2 +-
|
|
|
|
arch/arm/boot/dts/nvidia/tegra124-nyan-blaze.dts | 2 +-
|
|
|
|
arch/arm/boot/dts/nvidia/tegra124-nyan.dtsi | 3 +--
|
2022-06-18 15:14:00 +00:00
|
|
|
3 files changed, 3 insertions(+), 4 deletions(-)
|
|
|
|
|
2024-02-19 00:31:55 +00:00
|
|
|
diff --git a/arch/arm/boot/dts/nvidia/tegra124-nyan-big.dts b/arch/arm/boot/dts/nvidia/tegra124-nyan-big.dts
|
2022-06-18 15:14:00 +00:00
|
|
|
index 1d2aac2cb..320e1da3f 100644
|
2024-02-19 00:31:55 +00:00
|
|
|
--- a/arch/arm/boot/dts/nvidia/tegra124-nyan-big.dts
|
|
|
|
+++ b/arch/arm/boot/dts/nvidia/tegra124-nyan-big.dts
|
2022-06-18 15:14:00 +00:00
|
|
|
@@ -677,7 +677,7 @@ kb_row6_pr6 {
|
|
|
|
};
|
|
|
|
kb_row7_pr7 {
|
|
|
|
nvidia,pins = "kb_row7_pr7";
|
|
|
|
- nvidia,pull = <TEGRA_PIN_PULL_NONE>;
|
|
|
|
+ nvidia,pull = <TEGRA_PIN_PULL_UP>;
|
|
|
|
nvidia,tristate = <TEGRA_PIN_DISABLE>;
|
|
|
|
nvidia,enable-input = <TEGRA_PIN_ENABLE>;
|
|
|
|
};
|
2024-02-19 00:31:55 +00:00
|
|
|
diff --git a/arch/arm/boot/dts/nvidia/tegra124-nyan-blaze.dts b/arch/arm/boot/dts/nvidia/tegra124-nyan-blaze.dts
|
2022-06-18 15:14:00 +00:00
|
|
|
index 677babde6..06b27fb6c 100644
|
2024-02-19 00:31:55 +00:00
|
|
|
--- a/arch/arm/boot/dts/nvidia/tegra124-nyan-blaze.dts
|
|
|
|
+++ b/arch/arm/boot/dts/nvidia/tegra124-nyan-blaze.dts
|
2022-06-18 15:14:00 +00:00
|
|
|
@@ -675,7 +675,7 @@ kb_row6_pr6 {
|
|
|
|
};
|
|
|
|
kb_row7_pr7 {
|
|
|
|
nvidia,pins = "kb_row7_pr7";
|
|
|
|
- nvidia,pull = <TEGRA_PIN_PULL_NONE>;
|
|
|
|
+ nvidia,pull = <TEGRA_PIN_PULL_UP>;
|
|
|
|
nvidia,tristate = <TEGRA_PIN_DISABLE>;
|
|
|
|
nvidia,enable-input = <TEGRA_PIN_ENABLE>;
|
|
|
|
};
|
2024-02-19 00:31:55 +00:00
|
|
|
diff --git a/arch/arm/boot/dts/nvidia/tegra124-nyan.dtsi b/arch/arm/boot/dts/nvidia/tegra124-nyan.dtsi
|
2022-06-18 15:14:00 +00:00
|
|
|
index 84a97e32d..11655575b 100644
|
2024-02-19 00:31:55 +00:00
|
|
|
--- a/arch/arm/boot/dts/nvidia/tegra124-nyan.dtsi
|
|
|
|
+++ b/arch/arm/boot/dts/nvidia/tegra124-nyan.dtsi
|
2022-06-18 15:14:00 +00:00
|
|
|
@@ -778,8 +778,7 @@ sound {
|
|
|
|
<&tegra_car TEGRA124_CLK_EXTERN1>;
|
|
|
|
|
|
|
|
nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(I, 7) GPIO_ACTIVE_HIGH>;
|
|
|
|
- nvidia,mic-det-gpios =
|
|
|
|
- <&gpio TEGRA_GPIO(R, 7) GPIO_ACTIVE_HIGH>;
|
|
|
|
+ nvidia,mic-det-gpios = <&gpio TEGRA_GPIO(R, 7) GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio-restart {
|
|
|
|
--
|
|
|
|
2.36.1
|
|
|
|
|