From patchwork Sat Dec 21 09:26:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Walklin X-Patchwork-Id: 13917758 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7DE89E77184 for ; Sat, 21 Dec 2024 09:45:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ktgkOKk/4MreY3cyjWCANXcTqGH2vZ5XorZkiep5peg=; b=h+1ID/NAX2VaSjDrpC+PmqFMfc 0yjpJDLUWlYJb8V5wIM1FWVthjQ8tmtrPyitOQDxDuvI7GxgCZ+Be3R7jsZLgr/LTm8yP3QGqAzpx p4PC4epd540Ff6vxbEIEu0PJZW5cjEtxYq1bAhWfDOMjciu0aid2DA/dSvEOkOV8l6U/x+nQOxFfR /2qaIY61qlgOLFC63TvzoYOSe+fLedz6h7yBCwsBgytACI25h3B8M7vV/TxnhKQz8IWG3Ay8FcJzk F0o7Lrer5dObchOReBAjqy5FAbiyrWE9/0JH3WnbPcUqUY9g+fiGr71z5ePVvF2l1araKgpinkpvw wOCtiAJQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tOw2g-00000006ntv-3nO6; Sat, 21 Dec 2024 09:45:02 +0000 Received: from fout-a8-smtp.messagingengine.com ([103.168.172.151]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tOvzT-00000006nJZ-2Vqi for linux-arm-kernel@lists.infradead.org; Sat, 21 Dec 2024 09:41:45 +0000 Received: from phl-compute-04.internal (phl-compute-04.phl.internal [10.202.2.44]) by mailfout.phl.internal (Postfix) with ESMTP id 595A4138012B; Sat, 21 Dec 2024 04:41:42 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-04.internal (MEProxy); Sat, 21 Dec 2024 04:41:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=testtoast.com; h=cc:cc:content-transfer-encoding:content-type:date:date:from :from:in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm2; t=1734774102; x= 1734860502; bh=ktgkOKk/4MreY3cyjWCANXcTqGH2vZ5XorZkiep5peg=; b=M hpx/LR09UiuhX/iWlvujHHjIko6U19/Z4xAzhEVteiK9jZa24JeqzRQdlalPaiIm oOn1jNZT7shr6aBjNGvVYDKSs5Mok0CIi5RrCo1bLxBtlOE3M3J7j7PFwaO6ufs/ MaGJqlGS5ZBMh9W/LRp0FcwoR2DH/oL88Ech98EhMN0O7ZqIAceGVh4dk4G67aoj Gzf7Ntv2EKs92+PsLxSTl9X8DraSq8w+HXhvyUeoY20lUyufJEEI2f/WYUQIZA04 qz1n0AQcJVVTxRpVRlKOrkAOgLaNRGBSgGz3ieIwlfL9PKiBxaC6wqHXb64gO77N TqrKJTcees4pICQNvSYqQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1734774102; x=1734860502; bh=k tgkOKk/4MreY3cyjWCANXcTqGH2vZ5XorZkiep5peg=; b=sSh9lzRmbPvvIbUlJ VKUg0dBHunGRdqXY9HipfhSINqwGAfc7DU1KnNRGgee8AGdk1WoqiwlEEn4rsXEs aH6fFlzT0LNQzc1ZA3ssoKnA48rsds0dfoWKEC3Vd4PZ3TIPirWWfs/QFgGWgKEr 8yp2HV+xnsdrQqji0YLM/Ahpfr0uAjQibkZShZE80sK/3CblO/g5DQr/RWpGjNuK KzqdzogSEXEdTn5UxfGBR4mN27RT/dLrHEzKFbjZi71GPlOijlM33SpP7Dh6EvY1 ZxE0V0P6sBnbWt6C6LXtGlFCfDx4n64uvVBkXOrzCmaT2g7bbrsU3ymmppXLFD9S 1vBEg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddruddtgedgtdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhephffvvefufffkofgjfhgggfestdekredtredttden ucfhrhhomheptfihrghnucghrghlkhhlihhnuceorhihrghnsehtvghsthhtohgrshhtrd gtohhmqeenucggtffrrghtthgvrhhnpeffheeiffegtdfgffejteevgeefkeelieelkeev ueetffetteduffevgeeiieehteenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpehrhigrnhesthgvshhtthhorghsthdrtghomhdpnhgspghrtghp thhtohepudefpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehlghhirhgufihooh gusehgmhgrihhlrdgtohhmpdhrtghpthhtohepsghrohhonhhivgeskhgvrhhnvghlrdho rhhgpdhrtghpthhtohepphgvrhgvgiesphgvrhgvgidrtgiipdhrtghpthhtohepthhifi grihesshhushgvrdgtohhmpdhrtghpthhtohepfigvnhhssegtshhivgdrohhrghdprhgt phhtthhopehjvghrnhgvjhdrshhkrhgrsggvtgesghhmrghilhdrtghomhdprhgtphhtth hopehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgpdhrtghpthhtoheplhhinhhugidq shhouhhnugesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqd grrhhmqdhkvghrnhgvlheslhhishhtshdrihhnfhhrrgguvggrugdrohhrgh X-ME-Proxy: Feedback-ID: idc0145fc:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 21 Dec 2024 04:41:37 -0500 (EST) From: Ryan Walklin To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: linux-sound@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, devicetree@vger.kernel.org, Chris Morgan , Ryan Walklin Subject: [PATCH 1/3] ASoC: dt-bindings: sun4i-a10-codec: add hp-det-gpios Date: Sat, 21 Dec 2024 22:26:32 +1300 Message-ID: <20241221094122.27325-2-ryan@testtoast.com> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241221094122.27325-1-ryan@testtoast.com> References: <20241221094122.27325-1-ryan@testtoast.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241221_014143_709476_A8F4E370 X-CRM114-Status: UNSURE ( 9.29 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Chris Morgan Devices integrating Allwinner SoCs may use line-out or headphone jacks with jack detection circuits attached to a GPIO. Support defining these in DTs. A number of Anbernic devices featuring the H700 SoC use this mechanism to switch between a headphone jack and an internal speaker, so add these to the allowed routing items. Signed-off-by: Chris Morgan Signed-off-by: Ryan Walklin --- .../bindings/sound/allwinner,sun4i-a10-codec.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/allwinner,sun4i-a10-codec.yaml b/Documentation/devicetree/bindings/sound/allwinner,sun4i-a10-codec.yaml index ebc9097f936ad..b4b711e80b65a 100644 --- a/Documentation/devicetree/bindings/sound/allwinner,sun4i-a10-codec.yaml +++ b/Documentation/devicetree/bindings/sound/allwinner,sun4i-a10-codec.yaml @@ -98,6 +98,10 @@ properties: maxItems: 1 description: GPIO to enable the external amplifier + allwinner,hp-det-gpios: + maxItems: 1 + description: GPIO for headphone/line-out detection + required: - "#sound-dai-cells" - compatible @@ -247,8 +251,10 @@ allOf: allwinner,audio-routing: items: enum: + - Headphone - LINEOUT - Line Out + - Speaker dmas: items: