From patchwork Fri Aug 16 07:50:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artur Weber X-Patchwork-Id: 13765648 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 19E99C531DC for ; Fri, 16 Aug 2024 07:53:05 +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=Nv52bY0EFnPEnlQPn67LspBrmp168OKPFuY1wn3c8Y0=; b=MKpUOEUcs2Wo6iioF5+MPJHjoH jY1QncKIEJiKB/L0Pmyj1jCErRpONNknWWgTJQJMMJkmCLNwZpoYY+ftJYrOfDiWbwL6Z+rzf4m6P YCz3Qydy3Gh7eQvPX9h2GLYVUk2ub/XJxv9djjEefaAEPrzqMSBmoxWkU/w8h1wBcAs4fz0v6LxoI 1m+DPOpZPforYM5/QXcChYHIpuDAgkwdIP2/6N5xTqVueLTLqAqu2Z2XAZB+Cax2MrARR/itPpphi lRrWDIBvLe9ozAB2a3eQA+7gUJ4828WMciyuj65Pr7D4ez6Bo/0LTfmsH7LRfT2Cwq9EtUSjqBLmL Mf31jwNQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1serlW-0000000CB1o-1ZxQ; Fri, 16 Aug 2024 07:52:54 +0000 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1serk1-0000000CAac-1XSH for linux-arm-kernel@lists.infradead.org; Fri, 16 Aug 2024 07:51:22 +0000 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-4281d812d3eso16935425e9.3 for ; Fri, 16 Aug 2024 00:51:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723794679; x=1724399479; 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=Nv52bY0EFnPEnlQPn67LspBrmp168OKPFuY1wn3c8Y0=; b=kBzuZBoV2YnFfZQ6Dfva+UvnUmedek3wnipw0tjyuUzfn2yHSmLCxWoHYgi6BNqZB0 kM4Y/ZwanYaiLXkqRRkg8fPqU8MynK731+evskwcaqeZaSiRacWN+VTiY0+voLU7NnHL s1Ek6SmH6Y9VEyBEvON6wQAxBQTH5rChtqnsPvN2lgo5rgzrRF7b7b8832JFVL6BWBEf LlTNH7iXZ7niGzD6NLIfg9HlcBi1/nYPX4Tquk/lnPxdS2jA7m6iz/4/WF5kRooQnYKq YsbJUVTmNmdbRJSbc6LbiPkknqspTiP3yo5JCr+KvEa4KuehcMvIdVjnaYQQGYpjrbYN 1cxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723794679; x=1724399479; 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=Nv52bY0EFnPEnlQPn67LspBrmp168OKPFuY1wn3c8Y0=; b=sxygSQoyxuGTy7EFcq8iCvBgsfMMVSlEtTlNJL5PW1XMIauRyQwwo7u7zFwof3ggY9 NaWH2TLz9xbuyNYY24vftp5NiZUotmxI1BdSUO239OG5crIrkN1hoOSpJuTmrOFA/Kwu u2S9e2rbr2evfdW2SufNpjqIu35t9MB9ZtdBa96rdGtkcdsGEs31kZ+eipq8x4yVc02u 3ElNYvHZGH0oHdFRikHDrmuaPG24Fo2wW9FqNeiao17i9c6TM5eSnemjxuoWGflDdpDE j8wRvyabQPjH+g7rRQwROaBz3CoOD8yaDQdAWx/5CMlDYBe5IPxRHvPH56wRaQoOs5b5 wwjg== X-Forwarded-Encrypted: i=1; AJvYcCUwsndYedrA0rdTpC2eeYMssfC7A9R8e5qX6rYkj/m4PvAt/3J/4zGKh4AAi3AOI3sDe9S9sor7sQMKzJRfoh4KMep+eXHplew7sZpA5x7ZQK4GOqo= X-Gm-Message-State: AOJu0YxBa/Wxfsd9KgQ9p0h3uEnRorEzOYAZdZnadeuz3pFmfF2M46mi CIy9hbXz29mxNlYbmj+NTM8Pi8MMFuDSmHUZ6XINBQh9ZbGs+LDH X-Google-Smtp-Source: AGHT+IHxlk9O301eBiH5iSAuhU7SaBr9TuAH/N3Vlxr1jlIQybW8sbp8cOihJ627hwOLaKwZSo+w5A== X-Received: by 2002:a05:6000:e4e:b0:371:8750:41a1 with SMTP id ffacd0b85a97d-371946aafcdmr1562452f8f.54.1723794678778; Fri, 16 Aug 2024 00:51:18 -0700 (PDT) Received: from tablet.my.domain ([37.30.8.221]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3718985a6c4sm3026201f8f.52.2024.08.16.00.51.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Aug 2024 00:51:18 -0700 (PDT) From: Artur Weber Date: Fri, 16 Aug 2024 09:50:59 +0200 Subject: [PATCH RESEND v2 2/6] ASoC: dt-bindings: midas-audio: Add separate compatible for tab3 audio MIME-Version: 1.0 Message-Id: <20240816-midas-audio-tab3-v2-2-48ee7f2293b3@gmail.com> References: <20240816-midas-audio-tab3-v2-0-48ee7f2293b3@gmail.com> In-Reply-To: <20240816-midas-audio-tab3-v2-0-48ee7f2293b3@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 , Krzysztof Kozlowski X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1905; i=aweber.kernel@gmail.com; h=from:subject:message-id; bh=Xe/TeA+AqUFagpOwh/MxUzaXugTMKRQK8JWn91rUokE=; b=owEBbQKS/ZANAwAKAbO7+KEToFFoAcsmYgBmvwTnJNIkRw8GVodWAgJWPOfKBdCJAnZQbOuSc WfGPXlHnYGJAjMEAAEKAB0WIQTmYwAOrB3szWrSiQ2zu/ihE6BRaAUCZr8E5wAKCRCzu/ihE6BR aLmnEACfIN2oDUT6Oi9VkEB5Kjoa/UPsY0NUr48cjf8uDVVfdGKrGvduJbLTvbE7SqqjgHCndp5 xZcOWX9HsmwvQRkOp2nQoGfvH59v1MvtCjftmhrCUt8Xs3bI1+KvFZ05w/++tZIMHG85QTC1FLi qs+xxJFtGp4O1Fd1gLPVmdmkC6PhJwz6gOJdkKn1nxoDQeLfw85QVKB+zHlcnPFqF0aPjAIa+yw dSYhdC55kKQ9VrNiHbV4eUyZWxD8C/r1HDFX4g9R26VUzxaKB70cvneHEpEbjDQxwfPo+Rtyqj2 gwWqeI1K2cTDrH5bez9zQyFVsSjQ8tIPDKz8nqDEdk946SxHWbt4qot5SjDcZY+70gUPzkd3h1g 1yauOqyEAGdw8BDOeiK1kNVGijdIkzHNfikNKLPg8DRZ8Ov7734ikKy3LUZoqLjAgOIqvsoANaW 9fad+ip6W/WQszMmRxL3so2DVH1I+Kfc5bAMr57CBnDOjgcmh8dgungzubTqr8MZBd/PzKUobp4 luYNnpPPsdAiJmAf3op+ljhsHv43PnPwR+H2OxbN2MC/laSozX9oVQKz0tTYNL25Z89lSu/xaWM M+h1R7+e/om0YWWCYTi2A/CsKy4THIUyiqs/MAsW/n8LWGBDqTruS8O3zCZyHKHfOC+Psz8sWID hSm86kpN8v+m1QA== 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-20240816_005121_439927_FB8C2576 X-CRM114-Status: GOOD ( 10.90 ) 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. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Artur Weber --- .../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 5483421a6fd3..cb6105a6b216 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: