From patchwork Tue Jul 16 19:36:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artur Weber X-Patchwork-Id: 13734867 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 65A68C3DA49 for ; Tue, 16 Jul 2024 19:38:34 +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:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=3Y/figLPPb3s/kHpaYIzIIgybALHStt8/ZowYexI4ZQ=; b=KP9zS23VM/f4OlWQqJumLmgaqj oJ1yjKcJdjVX/Dhyf/GDsCDRTSOk6kSEEv3kF5PrBYnimzzFoWU2mrGpyxaijir7YeWQ1XVOXEfTF GmOSz2fLLOZhv96MIWE3sIvPvGj9lLZWYhuI33hcSAQSKhPaiwjBKbeptfDOBXW6xc1Mxl3l2MtEI 0vM1yxTRD1D7ISpvdEfHao9948BxQ2kXed4ZwfiHC2d7JCLxYcS2Xy/BdU6z/p8On9YzUMVe+enr/ nfvheqS75Iq7z8i5Qc9FQuT29HGco/QumPYFfQgCPX/UXsu8MZYQu4FAcvipbrBDBO4oJ4PxtV/oe jVCiFehQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTo0C-0000000BYTH-2wRU; Tue, 16 Jul 2024 19:38:21 +0000 Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTnyI-0000000BXnM-2ouB for linux-arm-kernel@lists.infradead.org; Tue, 16 Jul 2024 19:36:24 +0000 Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-58e76294858so173910a12.0 for ; Tue, 16 Jul 2024 12:36:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721158580; x=1721763380; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=3Y/figLPPb3s/kHpaYIzIIgybALHStt8/ZowYexI4ZQ=; b=BJDS5Ivn2j1pYJiq7EuMKnYGwdfRA/6iDuGZfUZfou4QJcJ4ESw2fpeuEGcbh/sytD DFymkAoCh09O2cXTw1Kasacd80vRNtGmEYR0j/6FSBSy+MyUbo9Cyn3FzNtBr4tsAgdz owFDPPkQNxvZah65DZ0J1+eq8LJQ3laDhpVHWqeemT4K7AL6P1ONxTrYksj6R83LcDlQ y1QgsXBTiY7N08ek9Na+i10+u51ZmZpNXW4AwdBnTJR7PpKK3zvUtT9i/f1YE8zRc1dl YSeIFdT2QjomEXnxMgDy8qlYDEiPot1S7HI4XhzF3bEhY3eX88rWGMC0ifnyivCeVGyn lkbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721158580; x=1721763380; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3Y/figLPPb3s/kHpaYIzIIgybALHStt8/ZowYexI4ZQ=; b=kPDhjXwOvEr/1xvLr8IDFT+WHNelhDlKJjJXKuPOq/H1aUcriFYsTPCqwcCfFbFgyJ H5scHvdka3hKsuiKC9BAdTEKANyClKZNr01TRDtYBSEPlrEA9O2PJM7Sr4k6fONBH5ac x2+CldAhY0rGkNz56yEG16DkXLws3qIKBbV2jemfvY//CRwBxCStd5G13GpMBOx/jtxT VgSG3QfdjmLQ8J0zYwIOPaD/u+96QpeDiXXFkr3DHLxVNsbJOR1tp2m0E05LGspY6ZmS JRr0j9T8cmatWlGchj/9Z/tbZbgAqXQasNAZCaAAp4Lg0a6KyhoNMFG9L6DwTu32+g9n 8pkA== X-Forwarded-Encrypted: i=1; AJvYcCUDGKIp/9JbeTu4U4F8L61dMAajUL6tAglXV4sjRbi3dfj/9PZd3qckpIdvERO/OA/NxmxftBUK/Bz5VohIriIu0N4F374PZ0nRVdSi8ViHjPIcsts= X-Gm-Message-State: AOJu0YwMGjTX549jnmzRrO6PTATPqMK95cKdq/PgdpgX9u6X3YTj4lbD ETAzWDCMt0AbPuaf5Ww4+z4VypGrJHFWzP5tyce40Jh4T+vui7uGLSHg5sJf X-Google-Smtp-Source: AGHT+IEgR0gO2kVHw67jn9MHScnPLSYzwngg1WEzMHzlNyJlKTRwCPzPu8j392nQzdSsoBYWezp4ww== X-Received: by 2002:a17:906:1619:b0:a77:a1f1:cfa0 with SMTP id a640c23a62f3a-a79edc7d718mr250465066b.36.1721158580267; Tue, 16 Jul 2024 12:36:20 -0700 (PDT) Received: from tablet.my.domain (ip-37-248-155-75.multi.internet.cyfrowypolsat.pl. [37.248.155.75]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a79bc7ff888sm351179866b.159.2024.07.16.12.36.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jul 2024 12:36:19 -0700 (PDT) From: Artur Weber Date: Tue, 16 Jul 2024 21:36:10 +0200 Subject: [PATCH 6/6] ARM: dts: samsung: exynos4212-tab3: Drop dummy mic bias regulators MIME-Version: 1.0 Message-Id: <20240716-midas-audio-tab3-v1-6-a53ea075af5a@gmail.com> References: <20240716-midas-audio-tab3-v1-0-a53ea075af5a@gmail.com> In-Reply-To: <20240716-midas-audio-tab3-v1-0-a53ea075af5a@gmail.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alim Akhtar Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Artur Weber X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1886; i=aweber.kernel@gmail.com; h=from:subject:message-id; bh=gmNe8B6uth6imzyutrGatOa49Roz2puyZmdeFJT1hWM=; b=owEBbQKS/ZANAwAKAbO7+KEToFFoAcsmYgBmlsunUO9bcHJkl56PQMjjECvV6HOYFHntV7hox owtw9Nc41KJAjMEAAEKAB0WIQTmYwAOrB3szWrSiQ2zu/ihE6BRaAUCZpbLpwAKCRCzu/ihE6BR aNZ4D/9OMWYjIM4siS02olvXVt/TL2u5qjcrrx0v7kqRCmhyXB8cjDzo+rck+tdWUZMCdPigs1W q/LoEupN9pqrZh2SKS6VSUGYEPISNIzS5YuzpCKAK/Ik1r6vjCD1qc1nWAlYEQHrOopBC0VPF0H sE+ZAjQahIpOdUlPoOW75uDLzVRbLpAYIx4ngs+xmF2AzlST5/TEXVt1dHMY01Ds5bH0Wo3X1ds iDzK2s/LK3aOyYVW1v19jA8DXQ4wemq6h4spO4MWvEA9i1+RRDOoBbYiEZns7IMYg1JHmN/H1ya q9Qc3gzPEhVXxRGIQCabKBeUGYNcylIKeI0MzlBhBsUmO0Yr1t/EYmEIeU0DynPmosMfeDesS6x VlKuQA6E35Zan7swtP58COTHuwsQh6Do/ddZWUN4LPrwth9dt4fK+My5MfQm7eF9epfuTax0i9t 7rQpPrOpa4Lm/+du0KviaxJsMKNa5OR7EKyfb7AmdzwlC3eKmWdacZt0FpA5oyt6738YWXb4q2l m70tGhqHR1dKr87JJv80/lcp1xIBU/XMHc/hMHuEr/TT28BOsrQ/3jhOufF5q5Wl34bNaOR0oWT zVGrui7OAt6JmbJ7e97hL3mqoWtf+ljy905xUtwexpZQaxmAZ6Kqci6sAKCmfjP+RmuAMbDYcFJ c+f0clsAUj4BAvQ== X-Developer-Key: i=aweber.kernel@gmail.com; a=openpgp; fpr=E663000EAC1DECCD6AD2890DB3BBF8A113A05168 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240716_123622_846518_D240614A X-CRM114-Status: GOOD ( 10.43 ) 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 Add the samsung,tab3-audio compatible that makes mic bias regulators non-required, and drop the dummy main/sub mic bias regulators that don't exist in hardware. Signed-off-by: Artur Weber --- arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi b/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi index 2f39f3c0661e..a140f86d399b 100644 --- a/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi +++ b/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi @@ -286,20 +286,6 @@ display_3v3_supply: voltage-regulator-3 { enable-active-high; }; - mic_bias_reg: voltage-regulator-4 { - compatible = "regulator-fixed"; - regulator-name = "MICBIAS_LDO_2.8V"; - regulator-min-microvolt = <2800000>; - regulator-max-microvolt = <2800000>; - }; - - submic_bias_reg: voltage-regulator-5 { - compatible = "regulator-fixed"; - regulator-name = "SUB_MICBIAS_LDO_2.8V"; - regulator-min-microvolt = <2800000>; - regulator-max-microvolt = <2800000>; - }; - earmic_bias_reg: voltage-regulator-6 { compatible = "regulator-fixed"; regulator-name = "EAR_MICBIAS_LDO_2.8V"; @@ -310,14 +296,12 @@ earmic_bias_reg: voltage-regulator-6 { }; sound: sound { - compatible = "samsung,midas-audio"; + compatible = "samsung,tab3-audio", "samsung,midas-audio"; model = "TAB3"; - mic-bias-supply = <&mic_bias_reg>; - submic-bias-supply = <&submic_bias_reg>; - headset-mic-bias-supply = <&earmic_bias_reg>; lineout-sel-gpios = <&gpj1 2 GPIO_ACTIVE_HIGH>; + headset-mic-bias-supply = <&earmic_bias_reg>; headset-detect-gpios = <&gpx0 4 GPIO_ACTIVE_LOW>; headset-key-gpios = <&gpx3 6 GPIO_ACTIVE_LOW>; samsung,headset-4pole-threshold-microvolt = <710 2000>;