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: