From patchwork Sat Dec 21 09:26:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Walklin X-Patchwork-Id: 13917748 Received: from fhigh-a3-smtp.messagingengine.com (fhigh-a3-smtp.messagingengine.com [103.168.172.154]) (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 BB5171F2376; Sat, 21 Dec 2024 09:41:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.154 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734774114; cv=none; b=Q3tou64ZrfOVuD0WWNXbemQSanyE53xvrgVMud+jq+iVmFjmum4hIuZMPjSrMWony8vPdHVtuWcoNUVEpOrihajJrN8QoYENdXQJEdNTlAkjQSWBeWIV4dkBIhSisKOuM+8cOpXKku/lUtaBYh8jP4/VTicJkpAGWi1gsEWiWDE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734774114; c=relaxed/simple; bh=DGrV/7xDz1EtsRZ3zoVcTQuXkzKFCbXYvC5jf2hqMc4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rZsfP6NDp0CREjeLowRjt6Oz8xXrJpOlOH7CkOsya2iFeKyS+hnCuwNbWxnBn7CWxAkeYbiBgv8/cYkESKSnXf2SWp4xJhIynHq+6wuBqNqZcXnRunX1whvkJMGYxMN3T/dWov4CNW1rCsUmMROXgBhPEhTM3U3k+3/hFSDbf5Y= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=testtoast.com; spf=pass smtp.mailfrom=testtoast.com; dkim=pass (2048-bit key) header.d=testtoast.com header.i=@testtoast.com header.b=Wnzpz9fy; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=CRzB1uub; arc=none smtp.client-ip=103.168.172.154 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=testtoast.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=testtoast.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=testtoast.com header.i=@testtoast.com header.b="Wnzpz9fy"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="CRzB1uub" Received: from phl-compute-09.internal (phl-compute-09.phl.internal [10.202.2.49]) by mailfhigh.phl.internal (Postfix) with ESMTP id C8C34114015D; Sat, 21 Dec 2024 04:41:50 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-09.internal (MEProxy); Sat, 21 Dec 2024 04:41:50 -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=1734774110; x= 1734860510; bh=0OV1c1wd+nT/3ZS1AtoSVY2W29WK/RpQm1k0fyOO9Mc=; b=W nzpz9fyZzLsGnKMZ4ufMLEy/boUvkDC4ENK9CUIn+2AIy7eHXirP5D0GCDD+8j4E 9eJ58CXjVM0TR7vfO8HoAbuIu8w75tnY4DF8kH6vmmcRkLUmlbhDjpWOO/7joQiD OkltuUC8EpDDcShAYkiFRdpcjFywbCu5qPYP27ggpQKokLdIFevtP2wxVHPtO2d0 d6S7pdlOFFHhJUY+tKoglrxrFaegPD+cBu2Yq4N0C1BShLmRp7GPZyLrRw3VDUp6 +BsSJBZF298Fnt9n27jMZlisG1RgoU5QZsG80Leg/dZ62jacddsU/lX5xT0OwgN3 1XJ/HsSrxePwr9XTCCVkw== 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=1734774110; x=1734860510; bh=0 OV1c1wd+nT/3ZS1AtoSVY2W29WK/RpQm1k0fyOO9Mc=; b=CRzB1uubsdHrS0sXs i23slcdvtKzdrSNlGG/E8vyYDUkgewP2VV63WyxfJTxcDCNosGnrnHI9pASQQjD1 mnJqWtP5V22IAxmDGgrgDszqI20sWpWWXIfu6qdtuAln/4d/DcRRXUk2wo5zMpqz rEGMsxF/MD2j1xu0KLJtPmLu4mTAzO0lbdV1dP3UrAG2Iy9YHiBCrMg4tHYc+vE6 q4oSODQq9GvLTnxMwSoBz2dUTmvbZW3ZELm60buGvVRz2cOsagzRjJ8kWST55GrE Q0POmqFvh+C860EtFolyZpT6FqNoZPyFzujeCyu8BPXfkvInJs+X+qGLEgp9zOm+ E5dxw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddruddtgedgtdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhephffvvefufffkofgjfhgggfestdekredtredttden ucfhrhhomheptfihrghnucghrghlkhhlihhnuceorhihrghnsehtvghsthhtohgrshhtrd gtohhmqeenucggtffrrghtthgvrhhnpeffheeiffegtdfgffejteevgeefkeelieelkeev ueetffetteduffevgeeiieehteenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpehrhigrnhesthgvshhtthhorghsthdrtghomhdpnhgspghrtghp thhtohepuddvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehlghhirhgufihooh 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:47 -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 Subject: [PATCH 3/3] arm64: dts: allwinner: h700: Add hp-det-gpios for Anbernic RG35XX Date: Sat, 21 Dec 2024 22:26:34 +1300 Message-ID: <20241221094122.27325-4-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> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Chris Morgan Add support for headphone insertion detection via GPIO for the RG35XX series. Signed-off-by: Chris Morgan Signed-off-by: Ryan Walklin --- .../boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-2024.dts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-2024.dts b/arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-2024.dts index 89de86b442155..cbab10de760c9 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-2024.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-2024.dts @@ -238,8 +238,11 @@ panel_in_rgb: endpoint { }; &codec { - allwinner,audio-routing = "Line Out", "LINEOUT"; + /* Both speakers and headphone jack connected to 74HC4052D analog mux*/ + allwinner,audio-routing = "Speaker", "LINEOUT", + "Headphone", "LINEOUT"; allwinner,pa-gpios = <&pio 8 5 GPIO_ACTIVE_HIGH>; // PI5 + allwinner,hp-det-gpios = <&pio 8 3 GPIO_ACTIVE_HIGH>; // PI3 status = "okay"; };