From patchwork Tue Jul 16 19:36:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artur Weber X-Patchwork-Id: 813604 Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 73BE31A0AE1; Tue, 16 Jul 2024 19:36:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721158576; cv=none; b=ZaYYdWYlXVmcP8ACktjPFOAZHH20jcw5eQpISuxnP8rqFLg87fztTn5OFnlQryiATlP31OFQmg5UMvO7+WIEJJnc0O4poH3QfMKWFUo1QkDMDDbJH053Uv1ozZQypHC2i+wmOqFGC0yczI8ijaFYxpubGQMaBqvkgK1CBhRgW0k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721158576; c=relaxed/simple; bh=kRA4IN8ePpMhvEmnz3nL0gqG3GSrRJhVEROFFuuelnw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=uEulexWJbO0lBHmvQDIusvyjmI52gFsUHxcjau8m2ElPRSds4Ld3vG84sYIEXeLfgC03hHyxWZSgmhX63bAidrOwwsyLhexIkUnAqBFg4qd00y8cDheotPN40MzKBswqt9CUghGxOuJtytO986EJ9dUEI2TILbHQIrLiaiMICNM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=A/iw3FJW; arc=none smtp.client-ip=209.85.167.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="A/iw3FJW" Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-52ea3e499b1so6757637e87.3; Tue, 16 Jul 2024 12:36:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721158572; x=1721763372; darn=vger.kernel.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=zkVqmaJ3bQDbMwukoPoGZjFlLSEsjSTGIlSAZx5ZdTc=; b=A/iw3FJWsugQG/sWDdillegxBl5Lf5tAIUOP3hH3pIqDzwuQ+nDQob0ssgn5g7EQXk dlQP96jnFA5wx4cKRn+BF5RsnScIFoAGR0RG5Q1/X62Od13eekTnFs/osx/gVsPZCxzr 8fQGEc8MzlzUb8bH4nYfCpj5fjffl7axzqAwSGf+1ndTLd1I18TwhzZh4FWn417d96CY lQvRw3q7pyS5sMv/WZCQH4gniSADj25moXQbFYp766NrEvR0s2W9unDG7V5KOMA6JGsb 3cLSSOE82/gOhyAAC4NKM8mPMIsqAy0s4QnB4l2Q8WKEHZY6YaI792uws8aR6LLEuREw Crsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721158572; x=1721763372; 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=zkVqmaJ3bQDbMwukoPoGZjFlLSEsjSTGIlSAZx5ZdTc=; b=YbWa/0uFcdlmy//Kr7yAeW3PiBJOEKXmK2WOLB7cj09tQV6v+CbwQmDMwit6HciEmV Sl0zgF0tNzLrEPnEDpFlLL0UVeOtw6m6Us5ANDQhaz21VxMrWTPTYil03i0DtLRqxBgA ywRMLYSDW3RL2fjzYtDS8kwvIXIJgRAa5zHTnUJuPhW+wMtOhFdYQfBY9bjpw1OirrN8 x97ef0VnvcX8c0VzTVFUAcZt74AiNwfcL/psFbO2AA7Ai6F5iYL+2eKGqA1ATg0gu+um c81FBqEUUiNv05TTrurzyr0n8hYUz7lVRv57chHDBgM9CCaa8PAakFstRJtkaTw156yI zYOA== X-Forwarded-Encrypted: i=1; AJvYcCXcn6K3uM2OIZp0n4rX6zQU6es18R92wAeZXBVHaRkrHe0hTiAQ6yZJjUJ1aZc6gGw6PHCqoSN2y0UbvEzsEsjKmnF1M9mQqYfrs2GtbQlsmBRPUew3+fXUc4glb/pwFsn8fjrx2nKldUlN6ewyBoGrpODBWEkzsUiWd+5CGAB3wr0PT4amtiyEQBqIpA== X-Gm-Message-State: AOJu0YzbrbEi11EU7rJTl77hJ0G63BeIo0fa/1bSNdECF6IvdPltGx8e 2d2fKtib/06TWkHf/vOqVFad3DjbMDwTnDIjNLJozN6ptU7cScutC5/s+ZCK X-Google-Smtp-Source: AGHT+IGnX3CLorykajazWKWogJk2rX8Y//FVpxzsXuFPvUFjaHwLasjuA1fP2OqPdHVhBphICnVTfQ== X-Received: by 2002:a05:6512:ea5:b0:52e:e3c3:643f with SMTP id 2adb3069b0e04-52ee3c3678dmr100229e87.2.1721158572198; Tue, 16 Jul 2024 12:36:12 -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.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jul 2024 12:36:11 -0700 (PDT) From: Artur Weber Date: Tue, 16 Jul 2024 21:36:05 +0200 Subject: [PATCH 1/6] ASoC: dt-bindings: midas-audio: Declare required properties for GPIO jack det Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240716-midas-audio-tab3-v1-1-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=1696; i=aweber.kernel@gmail.com; h=from:subject:message-id; bh=kRA4IN8ePpMhvEmnz3nL0gqG3GSrRJhVEROFFuuelnw=; b=owEBbQKS/ZANAwAKAbO7+KEToFFoAcsmYgBmlsumJ0V+COUPAxavH67ZS0qnpcO76wHZHK5lv geo2L0oxQeJAjMEAAEKAB0WIQTmYwAOrB3szWrSiQ2zu/ihE6BRaAUCZpbLpgAKCRCzu/ihE6BR aPPOD/wKi/Nb2uSx6AOwG9LvT3LXHsOPLW3mZR/q7VRFoal+IN4cxdmskcvO4LmOofT+suNcxcY JU5dHuYzlhHx+MM9uW7WbQjRwJfKpWzCJ55eTsoS4KHGWOpZeVzi6WmSsVQpbqrWovuoA/W0hKB BxcWaJWDhWXEjsiX1t7/A9lZ4g7rmB0uliy+H7uFHb9QOgRV6psbTghHkZv7Te3xKQvMgN9Mqw8 567U7/WVpPhsSLWgbJkbjfpPSp+4zEAIfiyvi/bm9Mq3U5CDh37cKorsarrnAADQ5eh260mw1a2 eijOzom4xnWqhL2YfGbZ1zaaODZLsZzd3l6IfV2cFAN1Tu7qbHZLqW6xkb5/m/G7/btNKpeSDCw 3j5vO07I6e+ztsAge0Zdqa0JvPJ6tovcFtNVNxqDuP+BQVZC4YNnS0AtHjSNlAz+04yBltbSL4U iHnVBBoZkfmbjo/wAbX4RP6VvPQvHLMYnoaJkMLs2XTYuW4p9Rnblorkv5+LVIH6zrAVUTAYszQ u0/Yq0XmF3gTNHoE21FR9gffxZEQPT5mlsFySCcJ2w0xlqO/o5h1v6tTxIoDRIK2nz7vThIZfnW iLWb8osU+7tFtGEnR6BBSSainBA9wTrefrWInn4ut773iy1ClzzhxTK2BoEPdfjYVdzlrS6Z4Ll efxDhawJ080G2BA== X-Developer-Key: i=aweber.kernel@gmail.com; a=openpgp; fpr=E663000EAC1DECCD6AD2890DB3BBF8A113A05168 GPIO jack detection requires an IIO channel and the detection threshold to work. Explicitly declare the requirement in DT schema. Fixes: 0a590ecc672a ("ASoC: dt-bindings: samsung,midas-audio: Add GPIO-based headset jack detection") Signed-off-by: Artur Weber --- .../bindings/sound/samsung,midas-audio.yaml | 29 +++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/samsung,midas-audio.yaml b/Documentation/devicetree/bindings/sound/samsung,midas-audio.yaml index 69ddfd4afdcd..e7af3c09de38 100644 --- a/Documentation/devicetree/bindings/sound/samsung,midas-audio.yaml +++ b/Documentation/devicetree/bindings/sound/samsung,midas-audio.yaml @@ -9,9 +9,6 @@ title: Samsung Midas audio complex with WM1811 codec maintainers: - Sylwester Nawrocki -allOf: - - $ref: sound-card-common.yaml# - properties: compatible: const: samsung,midas-audio @@ -102,6 +99,32 @@ required: - mic-bias-supply - submic-bias-supply +allOf: + - $ref: sound-card-common.yaml# + + - if: + oneOf: + - required: [ headset-detect-gpios ] + - required: [ headset-key-gpios ] + then: + required: + - io-channels + - io-channel-names + + - if: + required: + - headset-detect-gpios + then: + required: + - samsung,headset-4pole-threshold-microvolt + + - if: + required: + - headset-key-gpios + then: + required: + - samsung,headset-button-threshold-microvolt + unevaluatedProperties: false examples: From patchwork Tue Jul 16 19:36:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artur Weber X-Patchwork-Id: 812949 Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E62FF1A2567; Tue, 16 Jul 2024 19:36:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721158577; cv=none; b=Tmggi/XbFkzgsjsr5iywRn2fbbhW/FTonNwHucmgVtpXz0brvEnTREzRLuu/oX9ZhKLqEfzOYwfu+bUj9EcQ3HsIx/Ri3aMLl5DCj+8PjfoRrh1i/peiGcob8ol6r36nAaza+Ztf1Kn5fuBlZlvd0ZyJXuDgH0i+u+Xk9zUVLJs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721158577; c=relaxed/simple; bh=kZc38XdF9J7Id3WKk5iS9WywnIhRIPd2R91vYOlsxIo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Ut068LOLUMrwRRrBcaVPfCGmRW0iQ6wGMU5skwxZcl2Lsn3H9FB3RH/rwTuibkOdswnNfokxpns+zqnW+H1cBGWNxDM+dtd0y+xyF7/2LE0k1IqikECBC+AWWZ8PcwvAN4mdohc6hNGSYFpQTgwaJpYzif8ko4koT5ovDNMvonA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=hF8FSSyV; arc=none smtp.client-ip=209.85.167.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hF8FSSyV" Received: by mail-lf1-f53.google.com with SMTP id 2adb3069b0e04-52e9fe05354so8247799e87.1; Tue, 16 Jul 2024 12:36:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721158574; x=1721763374; darn=vger.kernel.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=rnjxgp7kjcmRmm6EMnRppGXf/dgi+VwpwgW9tfRhMgE=; b=hF8FSSyVuKulYkPtByyZC2caGvs4rUbp9U3NNf9+DeBB/vWGWNqZJFer8GcCONHNv+ 75iSyWaKB7k4ZPhVa66VJxQmWjvCNGlXJwFU6p0RKevGGmjVw9DheKNLuIWuETVxcVbF X3vi32eBqKUGgVW31KobZ3wdDMhePYM9U7bdW0xB5lGuydK6gKtFBpXpqT3HeyRMAceG Ue76fLYW+0vxAu6lwkUuF43HfNzzeF+6GdldADZ5LHWgpzbzZgNgDRo4LVxkZ5pMXk2+ e1UI0mH8I44xLMrndIc8Jakt0UPzlS5uw0fJFJoPyfIxufJGGaJflF5kyPd8sHDa/iBq axuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721158574; x=1721763374; 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=rnjxgp7kjcmRmm6EMnRppGXf/dgi+VwpwgW9tfRhMgE=; b=huNQkRHSe4Uv0yBfi0G/iNL7JJ/0nSdi2CbnaY+t/cHx263vGAC6c8SJZAYRpy72o5 dYcS1cRxSG2Z2aARrKZNbucoAIdT7Qna0P5E2RTBDzySTVnJpP7U94Ut3Pc+NVsVNZjI ADSv+jvjv4szxfuyNBpXKOljpBgYk66ycnDEA0i2zk2U4R3xKgxV9F2u9cbcd6QbL5Lu SIuXQd+G72t5onKZ0nWfPQygBy8SXrnzC1ytHcRifH8vL6L5jc3A5eqYtdBbA8linUvG vPbfUvSRrocVQamoQPKv9NTLh/134cdyZeKHevqQeCq/HAG9XJQaU6Eh8CPCtFc09IqW 3O0g== X-Forwarded-Encrypted: i=1; AJvYcCUEnn1p5iVPCzlQacw4fDsvNxaxnO5sMkD9vpJChQXXrdWmle5+S+wn03M0O5fTNlpvnPMIcH1mZkXzqf6gGuMK/R+GbTNj+IGC1gmpyblKxHD3eDR92soQKzGidC4BP/tY7KPeieOBhrK3UuMM2nLQGf5du9gdteaQvAwycqaljBJoaxST9D9SVggqxA== X-Gm-Message-State: AOJu0YxamallhuRZkFM9bMLTJUkqE/OcuKsHZH2c18mZdJIx1NshxJ40 t0u4CyF8Vms1SopUtHifA2o0qtegWwl0ZcEcCtjICcQLX73cpqjy X-Google-Smtp-Source: AGHT+IEeZ3SFWEj0QEXEEoO3+anCbcm3+7q0QDnCBkC0PvJ5cV0brC6ICCVAyuSjUqWufgfMk4F9jg== X-Received: by 2002:ac2:4c51:0:b0:52c:df55:e11a with SMTP id 2adb3069b0e04-52edef0fd96mr2791413e87.9.1721158573816; Tue, 16 Jul 2024 12:36:13 -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.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jul 2024 12:36:13 -0700 (PDT) From: Artur Weber Date: Tue, 16 Jul 2024 21:36:06 +0200 Subject: [PATCH 2/6] ASoC: dt-bindings: midas-audio: Add separate compatible for tab3 audio Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240716-midas-audio-tab3-v1-2-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=1838; i=aweber.kernel@gmail.com; h=from:subject:message-id; bh=kZc38XdF9J7Id3WKk5iS9WywnIhRIPd2R91vYOlsxIo=; b=owEBbQKS/ZANAwAKAbO7+KEToFFoAcsmYgBmlsumsPoqCAI8cW0KbaScyKgmrrOduFOo76LFY 7k5iNdmbwqJAjMEAAEKAB0WIQTmYwAOrB3szWrSiQ2zu/ihE6BRaAUCZpbLpgAKCRCzu/ihE6BR aEl+D/98v0szvIvYfkIlyM9Ho2TMMq/P9iQp6dFi3ejlZGfpoRtanj55fwQooSHWCX4P494dyGc IpLiOa6/Q6uehbPrZu304EpAjVG0dwBPbcKxFfEWskXmUi3R756PX0SC+ySben/gsJS6t0J+hqI k+zMn764MIMdpcEYWIWDOXt3WtZ1EviGT9G6S72wn6Mhki8Q1HafINDYvY0ySJldqMfmdYHTBqd 4UxhISrgIsK6eGgsqry3fmxxmufjnyNGjQ/FrgKTvvdcZ8bdXTwDBBxP2/Zecnx2zHXtQiinTNB IqEYBITzxGiik1ty6BnL3iV8WA7zU/vsjVJCB/eJaiTDVnIE5L5Y7IBZ90/CEUab/lLBtcv1f0p NzLt+b5Bby9AmE4N0yxEV/SbtiZmx+VX8WCyj6sNvO3IYiA1FjWP6Dfxb5LoJVdFGNGOPZadiXH XGRqxg8y8LFhADdiVW7pv+oGqvBlnbmuEo6RIT8OZU7bT5fn7c5harGXg2Hn9xPPopmpKgtNyCJ Ms6ox7qufUPyBAiG4NhBHavpewXxuWlNmVRV8E0OyBpGWtCVsA/f0DAGhYH9oRL1sJ5rSEU8gon qhIS+/F90H2b10yLISaeQVOEmcVq/1H2ykj7abSQmrPUwyT1gfVuXA6SN741EDsqcJh0Mk37zg+ HDTE87vbf2UPpPA== X-Developer-Key: i=aweber.kernel@gmail.com; a=openpgp; fpr=E663000EAC1DECCD6AD2890DB3BBF8A113A05168 Unlike the Midas, the Galaxy Tab 3 8.0 does not have a main/sub mic bias regulator, but it does have a separate headset mic bias regulator. Add a new compatible for the Tab 3's audio and declare required regulators separately based on the provided compatible. Signed-off-by: Artur Weber Reviewed-by: Krzysztof Kozlowski --- .../bindings/sound/samsung,midas-audio.yaml | 30 +++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/samsung,midas-audio.yaml b/Documentation/devicetree/bindings/sound/samsung,midas-audio.yaml index e7af3c09de38..fd9eb054a278 100644 --- a/Documentation/devicetree/bindings/sound/samsung,midas-audio.yaml +++ b/Documentation/devicetree/bindings/sound/samsung,midas-audio.yaml @@ -11,7 +11,11 @@ maintainers: properties: compatible: - const: samsung,midas-audio + oneOf: + - const: samsung,midas-audio + - items: + - const: samsung,tab3-audio + - const: samsung,midas-audio cpu: type: object @@ -96,8 +100,6 @@ required: - cpu - codec - audio-routing - - mic-bias-supply - - submic-bias-supply allOf: - $ref: sound-card-common.yaml# @@ -125,6 +127,28 @@ allOf: required: - samsung,headset-button-threshold-microvolt + - if: + properties: + compatible: + const: samsung,midas-audio + + then: + required: + - mic-bias-supply + - submic-bias-supply + + - if: + properties: + compatible: + contains: + const: samsung,tab3-audio + + then: + required: + - headset-mic-bias-supply + - headset-detect-gpios + - headset-key-gpios + unevaluatedProperties: false examples: From patchwork Tue Jul 16 19:36:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artur Weber X-Patchwork-Id: 813603 Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 730FE1A2C1A; Tue, 16 Jul 2024 19:36:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721158579; cv=none; b=EjZ+vwuCjOC5e0NS60izgVRc4b+PlctDH+3OHo0TumG5jcfaUrDBdP3gxdieRcGOT+FEoFMrPsZvq69G1YreAGa7qNftPNZyfKBLQETvnmmm6L++Un5GE0hqKJhkt9EcVHZcAT/jCgOG/HvZiS2gV+FcGnlxgwiXWLONyOS+fGY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721158579; c=relaxed/simple; bh=N2DvZ5I45eO8ikO9Ku1+P7EbOTZjolEg9CSVgTKrfaI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=WbKiumul2EQBNYnGsrhfWn+vDxuvco895NK8xUFtMSU21aCKZLpsLwKq43+m32YTAaK/ZBsjaD+YNuxR4vTIiZGlzZwenf3s4EydztupBQ+u6a09y86EdKQF0aG7Xbv6K9lYC2JP+Z5fr2/4khyGHHb8gYt3EJ1NaRHJoxHMDJo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=CnDu+Ypk; arc=none smtp.client-ip=209.85.167.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="CnDu+Ypk" Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-52e96d4986bso6191644e87.3; Tue, 16 Jul 2024 12:36:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721158575; x=1721763375; darn=vger.kernel.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=5mogjG3EDlIBNEcm/9zv9N0YSBYqFWdSHi6LjzhdXzg=; b=CnDu+YpkQRDhKZWkNFCywGzVQRWy5GmmYTEUWrTlXcDATvPAjKxi7ls+D9eUd3pfXk 6cyRmRrYfw9ECXLvrCERwX5G3fz1gaaHOKhFCF8AQ7P7/wGtEBHbYzXuyXeL3PL0IwSy Eq/O3pHkl4kRFXnj2j/3+LXfSgH4n4bXFLyU1Qe60yb5xgBdcroUs1z3lUF1i7odukrj PK3o47iFfQuIU0qCzeibFjWbPPEIa5sbpAvmNen1hDg4t4k0ac1KG/QjiCJ13P0b9XvP AzW8/nNtABkHF/u0zDvTn2ev8OHbFa9DmhTRB5EyPy4PtcFaMsBPyFBAQGaDvlHhPUAY LT0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721158576; x=1721763376; 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=5mogjG3EDlIBNEcm/9zv9N0YSBYqFWdSHi6LjzhdXzg=; b=ZsJEPopehcu3Any5FvMAiJcL0Ky+Y5t2GN8GBcLjufjlfSlgawPBI4z1jPO690ziQe 7rXvKp8wYxgNgkTQsN2ddgvKkRPOXvoHoNWSTgGt9ozWcWFdxkVvmv3l8nfb/VTE/IJy 49HQpqj9dJXsRk1fxqQEYqy/3kJ8ILEVTkCCSwkjWJkYta2kvStpuFzWQbycnsenkCCt 2cCfgazCCTK9YMeDEdsUcak9UGkRyGWeUpcdrChdRgmg38vkqPsSC/Jc0opw1S/Q9ZlP 7Xy+QYag5NUzvuj0xwSkIOjC2o2+Zi5IJMRVpz5Ac/csjo+/qbE1YNKOYhRf0/DJrVyA Izuw== X-Forwarded-Encrypted: i=1; AJvYcCVw+OuVNAEgjbzB9YIWVstHuff1gQCPDvgBKwDOodAxAYmTmn7dE3uyOVrGgtQ34TxbEAF3XDD+qHJsCaYgzn2P7RO3Qzbl27/H4QwrZgIuL3If5rbDXbm1pMNbS7GIjXl1pSSCQCYibtSxtx62J9bZsfUwDytEJxVgzmOhEKqOuS67TNXPg2S335rHVQ== X-Gm-Message-State: AOJu0Yyu8BXXweI34imgGEG9RCMpjdy8HMeOT7hYtj0zU+uyjD2wtT93 ZgP+oC9W1btVAk3e2IFeQ3YTYgJ53eVXhF8ZelhFdSljfHEW8m0S19tIh5pG X-Google-Smtp-Source: AGHT+IE8xCW2u8yY29+39YQ/+7HEcMfohUoAmAIdXLjpSez37FgmkSxJIomGZotSCDC/mJtUQBdcTg== X-Received: by 2002:a05:6512:1087:b0:52c:de3a:839f with SMTP id 2adb3069b0e04-52edef1ea83mr2326681e87.20.1721158575394; Tue, 16 Jul 2024 12:36:15 -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.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jul 2024 12:36:15 -0700 (PDT) From: Artur Weber Date: Tue, 16 Jul 2024 21:36:07 +0200 Subject: [PATCH 3/6] ARM: dts: samsung: exynos4212-tab3: Fix headset mic, add jack detection Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240716-midas-audio-tab3-v1-3-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=1796; i=aweber.kernel@gmail.com; h=from:subject:message-id; bh=N2DvZ5I45eO8ikO9Ku1+P7EbOTZjolEg9CSVgTKrfaI=; b=owEBbQKS/ZANAwAKAbO7+KEToFFoAcsmYgBmlsumFhqU/Rad67zcuS2/E4tySG9Nc6jH1HZho TiaX3UhT2iJAjMEAAEKAB0WIQTmYwAOrB3szWrSiQ2zu/ihE6BRaAUCZpbLpgAKCRCzu/ihE6BR aAiwD/9NxMwgwl7QhfwCEwL3RxHqE/Ql9zh0qfbGxDYHk4VQ0mqVZlcDRp76PD1jg8aQddn05v+ IPaAA5yushqeYMFhU0EboOG9u4ghKL5s+5THNgeJ6UhtRtaY7dMgKGjisB18yHsDtjhxAkfMN0A jIMfkU7QobtEtXM95QN1GUuqNa3Ix4bA+AJXoG2vpvAyN0X+vvryw7+QaZGBrkwpgBN5GIV6IhA B174/I3ygSWIVurBXtiSJZzgx+yXtalFVR2/yBuTJQGZVoQ4QYsFY1VRb2V3ZClqU+wZMuBq+dX bmRiZDoyYZMqQxyThLKy9KU8/mcodItJV1H0j6sywyhTmrwz3jHUFpD08sgJloLQnGK9XhkaCT1 zjQjM623D+0UAEQLUGbRRQ8kq9+uq/XMrjlIrFObS1VmTc5KSsc420Yty1LpiyY0H6Je7bLOWo5 9In6LU+ggp6Qdfy53CCyiUwRQT6y/blS64wis3pZEMii0Q0VI8+An5PVxQtoizqeFLHGpJq/gK3 W2SLuxVxqUp1l4bttgLRFydQ0iPUw+Ip1FGNjPIXYnUo9/A+CZflVbzHHtCP4bh8//MiQfC2C5w 4tVwckl2ejNz7Spd94Mowlj6TAe0T4tT5WABlhxP4lZUtxwDk3Baw5mNZfeTNArO8d1hH+prrh3 FRovuEDYHuQXmuQ== X-Developer-Key: i=aweber.kernel@gmail.com; a=openpgp; fpr=E663000EAC1DECCD6AD2890DB3BBF8A113A05168 Set up headset mic bias regulator and add the necessary properties to the samsung,midas-audio node to allow for headset jack detection. Signed-off-by: Artur Weber --- arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi b/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi index 9bc05961577d..45003967406a 100644 --- a/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi +++ b/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi @@ -300,11 +300,30 @@ submic_bias_reg: voltage-regulator-5 { regulator-max-microvolt = <2800000>; }; + earmic_bias_reg: voltage-regulator-6 { + compatible = "regulator-fixed"; + regulator-name = "EAR_MICBIAS_LDO_2.8V"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + gpio = <&gpm0 0 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + sound: sound { compatible = "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-detect-gpios = <&gpx0 4 GPIO_ACTIVE_LOW>; + headset-key-gpios = <&gpx3 6 GPIO_ACTIVE_LOW>; + samsung,headset-4pole-threshold-microvolt = <710 2000>; + samsung,headset-button-threshold-microvolt = <0 130 260>; + io-channel-names = "headset-detect"; + io-channels = <&adc 0>; audio-routing = "HP", "HPOUT1L", "HP", "HPOUT1R", @@ -351,6 +370,11 @@ wlan_pwrseq: sdhci3-pwrseq { }; }; +&adc { + vdd-supply = <&ldo3_reg>; + status = "okay"; +}; + &bus_acp { devfreq = <&bus_dmc>; status = "okay"; From patchwork Tue Jul 16 19:36:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artur Weber X-Patchwork-Id: 812948 Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B3D5A1A2FD9; Tue, 16 Jul 2024 19:36:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721158580; cv=none; b=G01MNZW8bNOMzQD5SYwQDzzHgyzN17QB6pVM5XrVYvhQj/DoKTHgilvFr8RY3qKB3TYCwp3wtK4XCUhWoAzVIuVTLv0fFXKDX+pkAFMlNGnau7di/XsYruHP19WAIoVg4wP96qiPRgQR2G2WqiGCldQaOY8YGHzJ7NcO1X0VyGw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721158580; c=relaxed/simple; bh=QgWGYzqvHsjqfBL4j0SgJZ5JxQSnDNVwolJTCMyITN8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=pvFNE5OEgJ696DffWAW0rCS1J2wlXO8YuvA/jNuWm9eCIoUp71afUAy10dT/AMi7jHGGM27k62pl6y2zwC1MEr9PE9I3W/d0dZ3X92ClFXscQw+I9qbplS2LA/mAznf+cT5eyGAnHpkmVjIRTLpvAxznl5H5q9I6dTvMmkd0MRk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=YYsZUjP3; arc=none smtp.client-ip=209.85.208.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="YYsZUjP3" Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-58e76294858so173802a12.0; Tue, 16 Jul 2024 12:36:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721158577; x=1721763377; darn=vger.kernel.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=cdmhceYALpkKcbsJDvNnxErW9Bwb3l3qwVd9O86b7xA=; b=YYsZUjP3J5XHC3nO9oE++7dZgPs2QeZLJ8x7wq8eGEgP8EwaPhUYvgfXsHlHzphh1G nte9OZiyNPTSMmaI+a6iO9eo8ynDDI9udXC7dLNvXkC2IC1npd2GwIgmwTYmRVY6llTf K3h3U2PZslSMRIfUrtReXiwDqkZkoSxMsmfVpA3chiD69O6uCZB127ofK3O1J8HMyFOj XBY1Cdic/Mk5eJDxapPLM+yeSnQda8gMXUPLZVDrQzKfciIR+EcxlXmfpEY3h/ZGT3BE AX6CuBz8vOxNcChTOnVgPPUluzb+bqGjeHC/Wv9IAZykfvxg/SiOMKttmyLUJxBZm3vc ei1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721158577; x=1721763377; 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=cdmhceYALpkKcbsJDvNnxErW9Bwb3l3qwVd9O86b7xA=; b=lSLHWXDUwxkN/aJX0dO3ElDZHZWxLgK90G3dIfUTat97yZtFlAGBvL6Q0610obTF8o 5nmN31dwnaNg20j5I9pHdmY7FkPlkAPaAb5rET5rQrryKng2WmzUQU73GsSYR9RL1DpT lEzCZpc8AzsG7Eh/rQAC06Ym5YLYYOG76kzH0RxUYMi5iB7SquVLn+IO/Umn/VkAJBKj ZZV3f8EyZR8feMsFYmzOB8WYGsXavPRSZYKswKGuDxRXXBJd3lDz2asg+5djaTZkHhjc cPYn+Rp0KNmqI7XrVLsYW/jq2HBxfk8+FkgiIMZuYlY9SDLU9Fwvtz7kdmsq49RYW5F+ osvA== X-Forwarded-Encrypted: i=1; AJvYcCWY8s0vWz40R2jmc5F2Wo3V7b15EaW8flKs5qif79zZNt9R2ewQGd/oWAcuQhVo7Jea7RExU8z63rV2ERFsuddAl6N/cyWVEMx3cE1p7ve+iyAgtRFUC3R66wrYk9K8K2egoQSs2hKGPlzYlgpdlslSFD92envoYun8xwUqrx1dvVavEqKLRfylCJPJPA== X-Gm-Message-State: AOJu0Yyjm09DLMVSJY56zWxaMKTrTLVRteHOjC0uWoCNDyyXAUZ5VEuy fGE/6ELhiW5zUBXScEeWA2JYmgvbpCQ7IFlRKNoWphS0kO8tozql X-Google-Smtp-Source: AGHT+IGvh218FLNwg88O/PK8HFP5c4wmFuV+wVaZLuf0WdA4vfqo6k1ykFWmZsh9n9V46AYNgDEzPw== X-Received: by 2002:a17:906:3084:b0:a75:1923:eb2e with SMTP id a640c23a62f3a-a79eda9537fmr249643566b.14.1721158576959; Tue, 16 Jul 2024 12:36:16 -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.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jul 2024 12:36:16 -0700 (PDT) From: Artur Weber Date: Tue, 16 Jul 2024 21:36:08 +0200 Subject: [PATCH 4/6] ARM: dts: samsung: exynos4212-tab3: Add MCLK2 clock to WM1811 codec config Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240716-midas-audio-tab3-v1-4-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=1158; i=aweber.kernel@gmail.com; h=from:subject:message-id; bh=QgWGYzqvHsjqfBL4j0SgJZ5JxQSnDNVwolJTCMyITN8=; b=owEBbQKS/ZANAwAKAbO7+KEToFFoAcsmYgBmlsunUETQ1dVc8FKwNP4+eeUj5fugkIRozC1vV igRSF+i0/KJAjMEAAEKAB0WIQTmYwAOrB3szWrSiQ2zu/ihE6BRaAUCZpbLpwAKCRCzu/ihE6BR aMP7D/0WPdFsO2koC9szvz/Srxq22hpYb8obGNYBICHfaV95VXvIUO7yej2P93XYB6MyxN4+xPv 0tRGWFVpkZfnVY6ya1VyZGlnBHdFiEDIngTXio9DiR2quosMa+fpZ8m+NCPGZfQiOUwc6RcALMD uARnkFNwfaO4jfWFV46MLO4kTheAz1ga/CMnE+MnqFZt/9eH+qasHV4cvLkmszVmTlbm0xXLfVC 4/rJRgwcgv/VfMVGIZRp3zjrpTOwU0E8MTBGRvilVAuOcqk2IVg7bps29g0Sgo0MpH2rpA4Vjaz hiXpyqa8S8omd+j6s8AEHsuqbQu3J7UwaaYqvu8KRqV2PpsfeRgASmOwbSXAcvwk4T6Ed7RbwX8 8bcRmA1WzI1IDGoxq82oayH4fp5BSROkEuN38qWinFqkvkY0F0H90yrrNacEYQSof2bkNiqu26/ n/G3CbrpYAtbdBeXIBtBQEm/+E2QcVnjf95e0YAKzKU+O5vojLWZ8n0qCyPwDgCuGGPYY1igV6S H0QRrkusT7PUBfukJlwZi1cXsTK3LR+o/cpJQkWg/EfMmH01pKmYunXh03/RmeSytGnPTzIZnD0 D3nFoU4mv3wnKQH+jpreCQ5cEJchKxtjOtKllQ0LnSlKqB27Wrx44mhJ/rZHtG1lC4V+shrn5QB EhTXzlmz3ie6uVg== X-Developer-Key: i=aweber.kernel@gmail.com; a=openpgp; fpr=E663000EAC1DECCD6AD2890DB3BBF8A113A05168 In the schematics, the MCLK2 pin is shown as connected to CODEC_CLK32K, which is derived from the same 32KHZ_PMIC clock as Bluetooth/WiFi and GPS clocks. 32KHZ_PMIC is connected to the BTCLK pin, represented in mainline as S2MPS11_CLK_BT. Add the MCLK2 clock to the WM1811 codec clock property to properly describe the hardware. Signed-off-by: Artur Weber --- arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi b/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi index 45003967406a..46bdd0681afe 100644 --- a/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi +++ b/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi @@ -535,8 +535,9 @@ &i2c_4 { wm1811: audio-codec@1a { compatible = "wlf,wm1811"; reg = <0x1a>; - clocks = <&pmu_system_controller 0>; - clock-names = "MCLK1"; + clocks = <&pmu_system_controller 0>, + <&s5m8767_osc S2MPS11_CLK_BT>; + clock-names = "MCLK1", "MCLK2"; interrupt-controller; #interrupt-cells = <2>; interrupt-parent = <&gpx3>; From patchwork Tue Jul 16 19:36:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artur Weber X-Patchwork-Id: 813602 Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B4DF61A3BA0; Tue, 16 Jul 2024 19:36:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721158582; cv=none; b=WRRXOzNUGj7Uw62VRlfqnzKZpXmdm7V1vUCN68cNbZrkGKUzQiz9Uif8YIm/Gb1ha1QnbsPZ26nXqgtCoSU11LyHpcS5bjmYYOP8IXhyrHxRMICaf84Fs9aLOwmeEmlRZOyVclhZKgY8FAAjQ1HXS26/g5FVg8XxxTtFIxr6CqE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721158582; c=relaxed/simple; bh=ARfPMWOv0SHpy06dIP7WT5PvXZ721GbF2s37aIb18PQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=PQJtiyUvjSnby6kZL4bn6biuZ8eA3cjl/cplpxBZNEx8AWe3DJCGbUpSMmrLceU21DYcaJKjcjg7J3IK72iL3UjVeyuieHbme42w85JCIvfu3Oxv/eybfHfg6XdzP04qRb6EHeSa1YpRYmWS/Yq2g6bLJwn/2c9/lpfAAXDgUEc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=KgI1qDWF; arc=none smtp.client-ip=209.85.167.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="KgI1qDWF" Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-52e9fe05354so8247926e87.1; Tue, 16 Jul 2024 12:36:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721158579; x=1721763379; darn=vger.kernel.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=6ao2+yhO25BW94L0DTHDolzXtIQQDTYjkbFtt5d8f1Y=; b=KgI1qDWFeP87JY+cix4PZGu9TZJ6I07fOSEkodhMidbGZ1Z9+/dJhE93i4TaT5dAeb h4WAJdQNtRpJd6a7QTJMa/VIAXEZVqzPHLlVNAdX6aPVkkRqad6jm5R1L2o+lVu33KOX kXPCvkBLu7O6NtBbVC48A/ZXwat/fgRRZtcgmSIC0F/8EZwgEnZdKqtUd+FIeH+9DKfJ rh5I8AgKClP3rwJGkKfOlYzU/KEsNdi+vTiQddmNxz0TZR1Kl3+ZAmDp0LvhnXyXVu44 c38mucv96pXf+i50ZT651UnpcboHSTEDISszqqkC5LyfQF4diHdNDDV9xK+4NApaGs/Q NVrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721158579; x=1721763379; 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=6ao2+yhO25BW94L0DTHDolzXtIQQDTYjkbFtt5d8f1Y=; b=vRfD/Fz/z1/jWCab81EeId3T19pufenJ0GYlkap3QQPKMocca3zp29uZ8XZRC/Pmlt M7DbyfDYgfqmvyXBQAh4fYw6IuT8r6XJni97ArVbzVzp1EABh+c/ZWrzlrnNvXlwtwHe hQxN6iUTzCJUcnd8q8qwx587wbJY6hncGxmSozOCNOapPzlRlFNrnSMU3uwAFfdX+LU0 VmFFVE4/qsQEzPAp10iwKxemnFRoII+vpKqpTlJnvlkEU6GJVHZqlHo61A82LZklH5LJ i38gpo5cLHgxIwbFz74hqc7Nrd7jb91ZgJjVlq3CNmh4pN2ncr3AEDgnP3oyJg9RWlRu zAFg== X-Forwarded-Encrypted: i=1; AJvYcCUjopP5hmv/vHDuk4WyYC5Zp2RTNp+S5fszwIcToT0TRO/y9ztNaZdn0nODG9kFadKPgdiimlNybl5uOTpgCJ8E8AJuwKDy7R7bEx35us+tb0NBMGIB4+XM3lbu5qoU8mOFCK4jmsAWnGQ8zykddRVv8smL83c8gQJLMpxJqUX4TY6tbgAnymi7krAtBg== X-Gm-Message-State: AOJu0YzyulXsUpp4LmF+mrFWN+UiZ3N0LcXUyX8/kUrifnghNKERPe10 549ACdox0KO0k45cYtbm2UFji0JojxXtYsYVPP95bRr6M5Fr+FPd X-Google-Smtp-Source: AGHT+IFkRmQe5TImVkHM6E7h56pQbLBV1vW69bTzrfWCQRoN5lpzKl9uVosaSFSsHQArFyqN4QNI7g== X-Received: by 2002:a05:6512:1095:b0:52c:df4e:3343 with SMTP id 2adb3069b0e04-52edef1e238mr2252485e87.16.1721158578766; Tue, 16 Jul 2024 12:36:18 -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.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jul 2024 12:36:18 -0700 (PDT) From: Artur Weber Date: Tue, 16 Jul 2024 21:36:09 +0200 Subject: [PATCH 5/6] ARM: dts: samsung: exynos4212-tab3: Drop interrupt from WM1811 codec Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240716-midas-audio-tab3-v1-5-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=1008; i=aweber.kernel@gmail.com; h=from:subject:message-id; bh=ARfPMWOv0SHpy06dIP7WT5PvXZ721GbF2s37aIb18PQ=; b=owEBbQKS/ZANAwAKAbO7+KEToFFoAcsmYgBmlsun+S8d7apjV+2i66/BusXgB+Lto8fFrZeHB qCztdKgpQSJAjMEAAEKAB0WIQTmYwAOrB3szWrSiQ2zu/ihE6BRaAUCZpbLpwAKCRCzu/ihE6BR aI+UD/46s2uHxY+r4mRPl9cETVr1ho/j3Bye7t9T6q892CXKsEj9j3mcoJn/jc5L5M3u/vfmhXr qOwcMG7kxtLFWgXfB3pGXelLWi+2LAqFiWTEQ22PMrqV40aG433UZDql/yAofoG2L0UYrBRVk7v hPxLoBOU0kvTNgPaXFPVLnkmoH/rrAW/1HeYwtrpO/ArU626mjRFsVlCA8UVWIVZJDtuGlcpoyX C+ncH3PoVNvUsbnQZmrgAZwsOg/+3WNiIChR1WNU9vReCjyRO/5+HFC57oOWhRJmfF+bTTL3Exe Qr4N/mWtRuIleXnzuMNXfbFsn50R1GsefHB7xt1rOwFjkv8OoviPAZwi2DSoAgC7CI4pP186Oiz h+x2V6gG3Wy2BxCiiEB8k+2syoh3fWBkK5Q5DOgM0jV+d1C6JYJTE32YMw2VNJcuONg7XJvN4Ie aujLXrkfszeAjd6eUUqcPKgGLpt+QD1EkrCnqjJZRMELguPdoHmZQB82xRNnuLc9QJWfUkF4Nle i/+wecu4v5Kk3d0oKdiTniIX7fbX6naoN3h0/5+DYkfzqUPLbAF3P44TAib0Lo8UImDVGDa8Kvg t2gQxhOsQfJjP5rwpVQpP0nClgC3XXKlR6D45wzlveg73Hg9FG9KEYQGhSi8e0SDVz4tv8t0hS4 zKKBpr2VLNjN7yQ== X-Developer-Key: i=aweber.kernel@gmail.com; a=openpgp; fpr=E663000EAC1DECCD6AD2890DB3BBF8A113A05168 This was initially copied from the Midas DTSI, but there is no proof that the same interrupt is also used on the Tab 3. The pin listed as the interrupt here is GPIO_HDMI_CEC on the Midas, but for the Tab 3 it is the headset button GPIO - GPIO_EAR_SEND_END. Drop the interrupt, since there is no proof that it is used. Signed-off-by: Artur Weber --- arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi b/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi index 46bdd0681afe..2f39f3c0661e 100644 --- a/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi +++ b/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi @@ -540,8 +540,6 @@ wm1811: audio-codec@1a { clock-names = "MCLK1", "MCLK2"; interrupt-controller; #interrupt-cells = <2>; - interrupt-parent = <&gpx3>; - interrupts = <6 IRQ_TYPE_LEVEL_HIGH>; gpio-controller; #gpio-cells = <2>; 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: 812947 Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3C6881A3BBE; Tue, 16 Jul 2024 19:36:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721158583; cv=none; b=hDgGOuAxvBlh2h9VjlvEYzUkteE5hhvhbqoZD730dDdaiALJ575A/GheECzxmRUCseerOppQK+V6tev3lJ5R7AM/4uYdcALBUIz4wR4AF5cOlDW3mrnlN1+M56Yyfnr96wnLM6k/kRpuuGXHbz+0EXju1owyRtDSGs8XjOlIsBU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721158583; c=relaxed/simple; bh=gmNe8B6uth6imzyutrGatOa49Roz2puyZmdeFJT1hWM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=LdtVS3PvnMnTE1j5NDHSFC5Wb6z7fsG4eE2/bQudCib8bAPb9YC2y6lY1puLIHBnV+ZfefUkH/5vC0udn9tx/k0gKIEPFIDwEKwBcqvbTd0/hsTzPMYAEuFCBi8QBfDIero32RVKArVLmktXHHoDareNj2aZ8gSmkZDEsoMfLLE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Akc3y2xJ; arc=none smtp.client-ip=209.85.208.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Akc3y2xJ" Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-58e76294858so173909a12.0; 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=vger.kernel.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=Akc3y2xJ6t6kNbkVdd2S0b8iey9W42uPHBp4GAcdjkOT8x+YKQMa8LNi2DdZDWE3h8 RAP8NUmwmJzCd6x2wcdgXxzsvOos/DYyYtDpBKHw8oc6SmCikavcRDUkdFXcSkUXcGXE o3k//n/pZJ5TkhrMq2rgZok5RdVUYrkZlPPLqWYk6VEU3df7TQm/l+3RrSGmMJMK+rDb kdHrwYJ7MR3hDTiV+RLRyTdbddEt04xRIEGxhikZd4naBZyUFw7R22a0K9iel2nC53Sr wCOssbFk3D+VFsJhcWqyswg0Iozb2omwgKKwbKV1M2k/sYkvMTX5t2fcoCj8ZNsdhqFl N0aw== 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=doadRSt8k+yvPQodeIC1wKNofH1Neqr9mP9MfYYkB3liBfLH8b3YrvLo1oIzDzEi8b mYz++/aCNllaj3O1P2QvHu56DlVNWjCVCF0BnOIXqDWBpXTko9cHrqJhsTQImtEK7ubg 6vndmDirHw0XQRow5lcfbQzfV5F3oegFULsisnle/5TcfY89tceklnHj7/qqoPt3XIO2 b5tUwRTHxu9OXuXnQOjuENE8qGNmuFc9E0C9QZCtqoaTjO6XaCxVIv6NpWgeMHts8htw 6yxC8IlK5LnsLm7AGnirZZxSSiiGdvvPcsJEedVA5fmcVEst/2+RUXf+iPB5NGF1lDN8 cXsw== X-Forwarded-Encrypted: i=1; AJvYcCW23MUmXUReyhWx6DAvwS4uFS2iTynsOk2LaUBTaSagGQRYMUab49oxV1ljzE330iIF2HQO3kwge8wcQL3sZqpaEwY0bMqw7rYCI+UaQt2J6m/O/eMrS2zMsIEogP3UyXO1i1Tj5ViJUMN6M0ojov2VSeC3+FVejirsr+PbRN+XV6lcVT55NWuqp+K7xw== X-Gm-Message-State: AOJu0YzYaymyqaiyWlYb2HIutJtAhMcRf1MTg+lzzhA/vAfxYC5hgKk4 AEYGl1pTDTg1tJubaniwMwJOmZQ/b1ovJsJacxtSdPQm8mbcUj1/ 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 Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 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>;