From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CDF6B1844BD; Tue, 7 May 2024 23:14:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715123668; cv=none; b=afVCVXtjgylGlFFI+dHB8JDtS1t+ZTjmrAdCXJ6XAEHT8vidLwLeSFED1CxgcuDC3MgRYUUn+UGFNIpONa6+5BjjZJlhdlYcBsusZUX+yu7fyE+V2swG2TpGYzJX90CMOJVxB9Y1K+L1yxX5OvcyOlotXV3a2oj94t+52NZCVjw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715123668; c=relaxed/simple; bh=DLyN2r9encUr8sDr7IL9hDMF/WiK1le1ynlyYCtHKX4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=p7a7Cq0RMdduwNENsNzZT4/AKzkIop+ZkHeApgWhcG7wieIajOPuQYpZ0xBnWtybOIIOZNk4b5iyq3EwjqE32LgRl4K21hT4iKpAJgQrpwZ/TizfcIz6XSfEklEvmLuO3+hmk9mfSK8TkkbEc2U6ugAzM4yJr+9OuyCOirywqjk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lNi5E7Mn; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lNi5E7Mn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2A8EAC3277B; Tue, 7 May 2024 23:14:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715123668; bh=DLyN2r9encUr8sDr7IL9hDMF/WiK1le1ynlyYCtHKX4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lNi5E7MnW/CC0zdIZp8zFvUkLrbsdcjtDeyHvTg2xwmZeBfZ98PrCN5HzYzJ+3KwE 5tVJuvTx28q1n0PUk6+IaQMaH3dEW5M3Dqp1Qd+yNDUwlwwZNi28+SRTTLB0MvFsf3 xE7cZMVdKM7zq2yzs+TTDXnifT2Z0pAjS22LFGvEj90Ut/F47O9RJqScyWDRx2AUhD fFdzgLyykq3E7cXBIpdtbdqChQGC73DHXYVbaceqdg5prVy4Xs2Crsq0ooao0clEyv LiKxGqHxKLTnMehbesbaGbPqR7Yp0trQLX0Qwan/UAA0UzLM/YtUhd5AkpSCKtLuIx OZdRzT2AfVDgw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Derek Fang , Mark Brown , Sasha Levin , lgirdwood@gmail.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, linux-sound@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH AUTOSEL 5.4 2/6] ASoC: dt-bindings: rt5645: add cbj sleeve gpio property Date: Tue, 7 May 2024 19:14:18 -0400 Message-ID: <20240507231424.395315-2-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240507231424.395315-1-sashal@kernel.org> References: <20240507231424.395315-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 5.4.275 Content-Transfer-Encoding: 8bit From: Derek Fang [ Upstream commit 306b38e3fa727d22454a148a364123709e356600 ] Add an optional gpio property to control external CBJ circuits to avoid some electric noise caused by sleeve/ring2 contacts floating. Signed-off-by: Derek Fang Link: https://msgid.link/r/20240408091057.14165-2-derek.fang@realtek.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- Documentation/devicetree/bindings/sound/rt5645.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/rt5645.txt b/Documentation/devicetree/bindings/sound/rt5645.txt index a03f9a872a716..bfb2217a9a658 100644 --- a/Documentation/devicetree/bindings/sound/rt5645.txt +++ b/Documentation/devicetree/bindings/sound/rt5645.txt @@ -16,6 +16,11 @@ Optional properties: a GPIO spec for the external headphone detect pin. If jd-mode = 0, we will get the JD status by getting the value of hp-detect-gpios. +- cbj-sleeve-gpios: + a GPIO spec to control the external combo jack circuit to tie the sleeve/ring2 + contacts to the ground or floating. It could avoid some electric noise from the + active speaker jacks. + - realtek,in2-differential Boolean. Indicate MIC2 input are differential, rather than single-ended. @@ -64,6 +69,7 @@ codec: rt5650@1a { compatible = "realtek,rt5650"; reg = <0x1a>; hp-detect-gpios = <&gpio 19 0>; + cbj-sleeve-gpios = <&gpio 20 0>; interrupt-parent = <&gpio>; interrupts = <7 IRQ_TYPE_EDGE_FALLING>; realtek,dmic-en = "true"; -- 2.43.0