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: 13734862 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 761F5C3DA59 for ; Tue, 16 Jul 2024 19:37:01 +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=zkVqmaJ3bQDbMwukoPoGZjFlLSEsjSTGIlSAZx5ZdTc=; b=VTYKHkNxECBhv0nOy80MyAk2RE MEFhIlLYofKEUCFPCrwR5IbDCJiB95UAluq79kuE85SSPe2K2xunaU74fUBb+FDjXkpbooDPRxcLs RXeHSPisrxHH1lbsw+y3wiAZU3N9ji0raVQzmkqZop0ZeGVDyXwzfMwNJdA2KDlJHJNTZJ2mi5IcU TgAUV33DKD4U51sRjxtDDlkOtzja1B3g1MKW9xIq9aL9WfbMB7ftvotyazNmT05VSMoDaKQdJ3r3q qXJrmBoDhIKpsTsrX1zPqWZm61whV5m4f8f4QdnVna/03upRjvZaZLhjq6qSjmuJtivoFssBKVwpp m5q7xifw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTnyl-0000000BXvF-0Y9w; Tue, 16 Jul 2024 19:36:51 +0000 Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTnyA-0000000BXkK-0ntC for linux-arm-kernel@lists.infradead.org; Tue, 16 Jul 2024 19:36:15 +0000 Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-52e9b9fb3dcso7278092e87.1 for ; Tue, 16 Jul 2024 12:36:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721158572; x=1721763372; 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=zkVqmaJ3bQDbMwukoPoGZjFlLSEsjSTGIlSAZx5ZdTc=; b=hxB3Z8APXWJ/O4I2M1sI5zTEJjPax0nO1DJAXNQp1MeMuqGuXa0PF0Sn4XWntkWSl5 KJ5AHKTmvuCYxB4wctb8RlLQiLYqq923urpDkNwcPkBAE/JDP8yQXPMvzOU1+18dS2Sw Xt8HOhyicPRRVtzP5jOAneQqoNID4sPmATcpB9ndL6vN/c3NOG5Gv1EeBio+VluL6IsV JkuOkAzssFoJOlD4ayscYYaMorgrJ4M1WVMwvlvxgGYh1jfPv1DGnXW3wumzLNRMJ9zP FlMaUaoW+tpPenyys2x2JZxQ/hBN802NClc6ysB7urnoYdkjjdNn90a3UHPvukVJ/yMG ebVQ== 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=sh3jsqWPIoKzpL79iNPQhXzYbUtHVFBVGhaW5Mxh5jYzaIywWOGPaz7p0Ahfsz5vri ttIhjSsK6+e0+KRIWA3SMoS31YU//ZZ/QZO4UruxSrxoweOeHY8pkSaBxb5Un5qVEB4x roBevkjbhZMV4Ge6Sgixgmn4HTqyaBe4VRJCkr4SDI3ODgSuQqhXy3rEBUoiDa1x/XYZ jyLNxmFV8UCBxwTLRxAsET5gw2/djjpsOmAABDRIJmcU034xbfFG5IJQyR5fDqyG3ZsU ZbvxMpR4bEMp/CzLEqUY9cBhiIVL6xemJmeMf2gthvPYLBy70aFVzgFxfcbcB1cvw82+ zGJw== X-Forwarded-Encrypted: i=1; AJvYcCXA5UyzU9km0tSFqkRAilNOYajchZuc3zzwIZJX3+Jp06fCXz0o/z7otnyzlHS9A5JeN9OKtLvlgFmEyHSzWRBEXTj8Zd4Ib5qkQLfsWtEHPooqtTg= X-Gm-Message-State: AOJu0Yx/F2fiVwToI+KQHnd/V/Bkxjb++b6hIo2ilqiiraYsM4SC/U7Y IYycaFjzAAKugMxWn8xLPVnevWsH0NPXHN/rT0xTiU9YPrDxkbcz 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240716_123614_271189_1576EB87 X-CRM114-Status: UNSURE ( 9.79 ) 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 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: 13734863 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 CDEACC3DA49 for ; Tue, 16 Jul 2024 19:37:21 +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=rnjxgp7kjcmRmm6EMnRppGXf/dgi+VwpwgW9tfRhMgE=; b=LiHRsEYi0cBlyGgkBaem/Smi3E nTSmCswNbUjXqM+dUi6qW1gFrjmON6yxPYFLEF8m7RSWzWCG7bNpPFo9hfhs8gVq27CF8L0qokIrp b+zRMKtaom9lu+ylhDI2nht+Jk05MgwlqCu0+tsP7023oar602yEj9ewYVAY6CdBBbxTKIfOpR8Zx aoZgNkVTsmk3hk1t8Y2eymKaaKoGSPSFt8FpneszIgCzbSzStRMNOJuuaZ3iT6GuMvwo9mHvK9FXY HDGd1Eu9X8TFJQFquVgLq3CWBA731IrT3DDdxqbO39dhMR/rskEVHQkOX+es4UvZsKyOhvqbTdlk9 aCBeQzyQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTnz3-0000000BY1y-1yi3; Tue, 16 Jul 2024 19:37:09 +0000 Received: from mail-lj1-x231.google.com ([2a00:1450:4864:20::231]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTnyC-0000000BXl8-1Cbl for linux-arm-kernel@lists.infradead.org; Tue, 16 Jul 2024 19:36:17 +0000 Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2ee9b098bd5so81991721fa.0 for ; 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=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=rnjxgp7kjcmRmm6EMnRppGXf/dgi+VwpwgW9tfRhMgE=; b=Ed/RIwEAcFxwh1TJhmHuVm5p0bj1XWtrw0o8WrACMRK7//8NaPtj8paLfJE6hXAZ7B YMZOifeTsWLzDrH8f06mPIkquD9K48WGkHZrhH4hP9f+TS8hoAR5DJVhbjhAoFCR5+sQ Zzy+MqlmQXhzcMDgKRBCprilrye611Xmu5rX1gUwxp5rrz5L7XhN4YI7KfO7l67AcZrw +RZdUaJFWNla31SbpDTxQx/LFciyINgbQ4puSDtP9WdUG8DQkyofa363lo9XWZyXt0A/ LClHlnqdV8AeakLvkO7mUGzbXVg+UTqrNRlufBHYsX6HZyW7w6WCzSILpPy3zrTLb8md epnQ== 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=xAE5wF82y6UAcqOzfS3SQgRRwiwH52/xGLYCGuNX8mZzqdjo29XSuFGIzZZO7znw5A 5b3AwCTus6zHVmI7vEUIVAApAnlsemVcUxY0DBXI66wxQo0j6qcZWpgZq96j7U1+8E/Y yJLJ/FG4br6lklq6T5SyA8Bg9BQXlUo9/1vmWEnaCwYd3pVIuG7MLUjqLCBKgHvMRDeG mYmoQ20ZyfoJHG0rvRr7L5T2dHGN347F2M3zOB4+46u8Nt9NNUGDu2b/q1bKpdd7lMsj xW3xNypQNeKwXjCNENf9b8igktHKOjMOQuaVYv0xFkOUL3Dhu4A226btOUSR25Ck4eq7 q2jw== X-Forwarded-Encrypted: i=1; AJvYcCUEdBnC4BSiZjt2TQMzb68g9mUqPR7nKkhLbgHyu5PJEbIBXsg96fgyZ0Xbs2C6kHhrrBCzL/rbX3qNGeK7UhAUwCxxeyZSxGYPSyZsiComPlPQs1U= X-Gm-Message-State: AOJu0YxKk6d5ZqCsDppnqEXvJMZX0sq1yiJ3QFV7wiUQykwJ1ZF8ae6w KUe2E6c7r3QPoQz0+4ZvlCro5sfZTcixInT2K5nXiZaNjHAXUwbPOUnWvlmM 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240716_123616_362640_D806F30E X-CRM114-Status: GOOD ( 10.81 ) 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 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: 13734864 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 20059C3DA59 for ; Tue, 16 Jul 2024 19:37:37 +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=5mogjG3EDlIBNEcm/9zv9N0YSBYqFWdSHi6LjzhdXzg=; b=j1HR5UvYqN9UVprtvqsVaL0Gcy lLxowW94XBIuB4oJO6XIG+9MCEd+9vESyLki6Hxr/EnmiSRReMtpa5YaGdjCw15T5pfb+blqpKOfQ NGLLWPMsJ8WtxWU7MfAGd1hXiDn61w/MpjwdmVc+ecPcwm2PQv0yO++isiuElRGveKYeDbV62bucp KL8cnn8QyEIKTOt8/Uiq7AHI7dvyg0NsuGNP8LaoCXDajO+uw5FtCFxBeB0QFjS3otmpsWujrXR/t nAVe4Yk49qUdbK0vOEYRdWbJ7NwCqZ5j2bzakjXytFC5XnoEsNOEZfhYY659LlRDz+MzwcY53a9rv 6Tc5Krxg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTnzK-0000000BY8f-3BvA; Tue, 16 Jul 2024 19:37:26 +0000 Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTnyD-0000000BXlO-3P6u for linux-arm-kernel@lists.infradead.org; Tue, 16 Jul 2024 19:36:19 +0000 Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-52ea7bdde68so6535478e87.0 for ; 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=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=5mogjG3EDlIBNEcm/9zv9N0YSBYqFWdSHi6LjzhdXzg=; b=BIS7rNj3/Bld+7KfMQNc5mgp2BLOs2scFgEp2TRZM2OicVI/28Qu3D/jgCgYe495gd 1chzr0WRCeisouWgtg+1wHRgP7C9vh05E1K6hXWmoNG5L1mQFpoHEETrg/32z3hqVULx mAyvaha/AY2vJVQ8724eTMu8Do0KVbIEy2KIGsy4hLMf3AY2y1/xW6XfrDvIf/FDPay6 1VjRAOJErIibGAMCh1rVgdq9lFOLV6EaWRgqbaznUKz5Le10uj5R7PoYZ5pPdx5lgBnX n73hVbMEJzhj5KnEMx2uBVlZ6pBLnPkhSVuVQNRlckQaDGvrITlmuAUeUY0UKE8PWeJT eJ4w== 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=RBGmXMmiZKsCgYJCzbrRuKIc0rxPiO2FPqrbZbEQLrP3xyZ+K9qe7rsXGgu9e+gX9w CI5KAmHYF26ns0Ib0SQKkARxixbCZlcNgDNm96Gj/St/03sIQZ3F2XwwAA33KsMXa/Y9 V8JlZ5K45zumdH11eaLnJFEOnD4PGh9WLlxhdsI0v3+0WHkaCAZApX41RfbkLO54TPri FlGMQ3pgqu1qRtjQmgLVYglpSm0gZq5tu4JwMWgsiPejKzucmMfqpii+hvYG56g0FB6C DYZSt6z8tlD3WGtOu1ZiVa5KbpY2gAsGtQCvGi4r7JgCLtoXMegDCUDGSpsWW7szp8zk LUHw== X-Forwarded-Encrypted: i=1; AJvYcCX+zEQrwN2zBIZQP88sr03oxzGvXJRb9S5u81vefPaT9l35UcSuWwFbtJDr3mT9gy1ouefZKznBFL/bVaa0caMnVn6EkfMexth5eXydC7X7XU8sjZ8= X-Gm-Message-State: AOJu0YzOW8TgVqlnHccQ+u7r+u/sHOHfd/k8xlr7+dFJE4pKK5vM61s/ 3LqxqPK1ym0fK0D/oG6SOvvVWsWCcjbqGt7xwqzL+5r5b7gaaIZg 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240716_123617_887433_E7ABB657 X-CRM114-Status: GOOD ( 10.23 ) 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 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: 13734865 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 E0B0BC3DA49 for ; Tue, 16 Jul 2024 19:37:56 +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=cdmhceYALpkKcbsJDvNnxErW9Bwb3l3qwVd9O86b7xA=; b=Au6Je6Zf7H2gAUtTJgDAXKX2pB HmF/jAXIPypTCkXBEdrLRyQcEGDGXpc6I5Q7E5C+tbrAGe3rk7pTCxNybja+KZmZOcMJyllTlOFTl mAlS9SszTwl04cx3EgBSkPyIpYcbWcJoU7UtD5MWSjd9bOyHfiZO8K2Zxc4mogMFF1tnxoVZtrblH mRqDgLibeOxC10HR18bE75ZAEUeKsPqO0o4HjgGELcFWjebjrVSRJHiiPLlo8pzXxkiAEUA0Swy2l vib3F/zNe5wzOB+ZWPU8piSNcHKQoEqkM0HU/duRaKjPrylzECw5Vz+SoCaIHKx9uAWKXpvHx6Eao bMRTki3Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTnzd-0000000BYFv-0NhM; Tue, 16 Jul 2024 19:37:45 +0000 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTnyF-0000000BXlk-0NS7 for linux-arm-kernel@lists.infradead.org; Tue, 16 Jul 2024 19:36:20 +0000 Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-a77d85f7fa3so15505466b.0 for ; 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=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=cdmhceYALpkKcbsJDvNnxErW9Bwb3l3qwVd9O86b7xA=; b=DCXA82kSBz8DeVqCdoqvVwNOKbH9jrJdG5ZNp8NDuRYx5+6o6SUcWKRnhMkNMUoHf/ DPopY85a0zWUO4PqHHFZTzqa+v+Qp2Tuw7NaNBTRxjeARyvfUfmEuYTzddzZcFZucGqF VuA8Zh/mS0WdVVd8qMcTYXpDzJPqjPP+N0TgSHu7P33OsXb+Ntbd+YEwLYzgn1vHjeZ/ gUqsdO5r9TENe1YjVltjMpbOeQ5hiy2wRkJqF82i3frUzVpQnSbDjdkwFEoSAuccDCi1 j0JKgYSEfgLxjaewjGrT8sgHLtzh21DgXuBsRLFhPOLOIYfvEFhnFDy9SFuVGGFemv97 ms8w== 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=GPO0Vm79Qc1JPeLBbyvbBvyH729YTbxhROAs/9WnSRTRQlNerCyCWLzk+oUIVBx18O eFLs0ks8tpvDA9T6QhIyqKP7EXhiNxSzltIV9gssDXhxeOzIrLnbMWZ4onU8FwEqUG7w xQ0Xa8kQNrZxko+Yf7/JjaNNXeWcR8nNvhWgzz0hrdfYJT/KbVYuKnPXfyxp8LNlCYtD +ZtEzvrATYnIYi3itOct6o/nwKdAKea7VmKqi/atl3D/h61/ZUJZ6fFheJ6/iX+dEgPP YVMxcSNksEA+20FNWP06QNjLnlEFG8px8c6cgElxj6MtrZGSmDZ0lsW8EPKyFvBhaMQe Gd5Q== X-Forwarded-Encrypted: i=1; AJvYcCWzGz8l9GoSu/+PGJCvFohnjdRimS+MsuMwABQAbuFS2bnf9xTimAunFQb5QlNnJTiMV6YH5s7T2VwYw38FjM1DibFi6ot3TiuwNqoceHZpQQw+wNk= X-Gm-Message-State: AOJu0Yx/Kiw1CirDnLoZNKLmPWqlZQP7YPZLvZmK5Xy0MpOqM6+nNJM+ /EKy4b2tyLpuiuxA6+L71OFboTJUhWJeo/wY1g3aj9to2w8lHbTx 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240716_123619_174926_60682A16 X-CRM114-Status: GOOD ( 12.26 ) 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 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: 13734866 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 24BFDC3DA59 for ; Tue, 16 Jul 2024 19:38:14 +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=6ao2+yhO25BW94L0DTHDolzXtIQQDTYjkbFtt5d8f1Y=; b=kJRRjsHEmhrmGArEbmXCu40HeH X+o8uFh5GQtubkTspiRvOKW603NAicblpPshWQEpdBbL3jAhd0HGyCdizrEoNu/D8Q+IZDBrknAU2 aUmJHdcLwbjEMSk/0xlbCo4kC1wuMscutdNVAeauRQXsmhBE0qjjtDOMYmvuF2FgQu4Bw2Jo4g1MX DY9ZKy27vu/4Y/v7zlW+OEykU2yzT8VIM7hw8zoUGwJNzTB/BXfs+ZhcT3twD41qWzuTi6pLmraej zAFNbUvPS43KiDsXBCaohk37/dRqlMqv1y9rAssthaDgrYIltsqtJ4mHkanjI7WyYPojvmRxlv1Ke Aqd5Zumg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTnzv-0000000BYM9-1eho; Tue, 16 Jul 2024 19:38:03 +0000 Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTnyH-0000000BXmO-0IsL for linux-arm-kernel@lists.infradead.org; Tue, 16 Jul 2024 19:36:22 +0000 Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-52ed9b802ceso2397838e87.3 for ; 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=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=6ao2+yhO25BW94L0DTHDolzXtIQQDTYjkbFtt5d8f1Y=; b=Z1mZRk+BH1FdB2MSu0V5daknnM8ou1hbFXEjZaKcc/+1ykXsheT8W328nO9w1//ImU 5Af9H8xHr3sDHrDG/wLi3idtzKyh0O0WFdCa3owZ3HzjZRerGvLSt8ZC80Cvm6NnGmpB HvkaZ1QtZu/KD+3rUqQqMYwlSnzP4wKvBqSxJ5Iq5M6bQiX+AFCWfZdTioKzaGDsAGgR E1KXYr5BYHzFsskRvHI37nSnCANTmQY+lr+EtHTqr7ca2baogWlsMbUpm1lbDB13QOOJ bNyUuU9N+ddYFa4boo5s+TKrorXKDnOXWRUYgGAMKRPWrc4BlSzhLBBwOPLdt2f8l629 OLdQ== 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=GBHilKu6z+4YEnH3jEbkEdNJNQF06bRGKVwSG0vGAZLfPoEVsX3Xm1OHbtAVIMOnrk lX2G12x66I00m8u14jEpKHcCDW7CSrU+4lcuvQjyl0+MzCptXBg4EMkpUm1ifY/tv7M5 53IJD+Iq8YGBMAGKLkPPx1Pvru8Z+SyqV5azsC2Y2vigg8Bjnmk4PY7AVfu1N9dj77xR 5O/4QzRmly1S4wmw7d9P/qbCU9ESk4OXG5D8ujCPyX3WD2nJVI4KGTH9uTN5YuuaXbVQ FL+V14NVCZTfQaIDNZYmg5M29fyMfzdWAAfR1WG+awZXrIOHuqpSpglueWGyD9yI+fWR lS8A== X-Forwarded-Encrypted: i=1; AJvYcCWRSOXkXHpzOWJWiAPMyLfsYaiRf9hCFZS8bWaMVnyByJYEHiEXSeum2yzO8+s9v8FcN1xde8xx6juFu483uj/aUIaXx3shnS2jQ7SKwMv7zWXnNzY= X-Gm-Message-State: AOJu0Yyo4M1slRw4eL4yZMjP3cIhS2GAIXRVIObLFkZZ7SzBISZYopfM HzeYXNSY+Qls46IyA9mJkwYi/z+p5EpKsbc2f4XSIunBwYE+xgnILtD8MhKt 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240716_123621_182562_6A49EB72 X-CRM114-Status: GOOD ( 12.68 ) 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 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: 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>;