From patchwork Thu Jul 25 10:40:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artur Weber X-Patchwork-Id: 13741757 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 3E3EFC3DA49 for ; Thu, 25 Jul 2024 10:42: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=/BT1ETjGdxc1ofYe6xfqubr4qkHhr85Rz6D2FNj+D4g=; b=n/7K+r5X4ZNWnHiAhuNYt8RtkY DRteMeg1RYDxgeH+vGAserAYlFddJxG+mBzRrP2Y76vuztTWVbD3T7r+QFnI6WdyGQcwge4QzBCrq E3pqTxTJjB4sRpmHjmzGwgQl0ykcpz+H6TXWHW5THDAFXx35n3SLesBJ1f3qBiKzDC2GxuceN6nLy jdRAlCWiDOZ0ucsL0ajK4K6aYk96dcZocz/HsuqGgDyWVRP59XAmejhvKcZeMjeWhImE3G1Aajex5 QYGtt12BpsXe1k2FB4sh5k+XHbUYPQcufXV2FbteHcizi0ZoZm6heaKnIYia4Fmbw/xN2mjcwubOX mEkBfoUw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sWvuz-00000000eo2-18tY; Thu, 25 Jul 2024 10:41:53 +0000 Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sWvtu-00000000eTM-3NOk for linux-arm-kernel@lists.infradead.org; Thu, 25 Jul 2024 10:40:48 +0000 Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-a7aa086b077so36132666b.0 for ; Thu, 25 Jul 2024 03:40:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721904045; x=1722508845; 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=/BT1ETjGdxc1ofYe6xfqubr4qkHhr85Rz6D2FNj+D4g=; b=aqNsBAHQO3qxf8wBDa8tRRNKdWkxzIDHbSlk8hywDrux3SyYV5ABLL4sUEqavE9rOp 5XyAqsL1eyFbBaqJVJRbb40OxNIK9I/VbsFaIIlrHwbqCxfSyEs4DjoCMFQnR0rEi7Hp wVodIL1+4dHNJV06pbiOUPCBQNz+WNcxAUj9xoQxHfXeiur90SGI5jlMlKlBmxMJqbFS Ey44KvqNkyddxwl85omHtK5tafv/dN7dty7KomIjljbcXIC6XBAXoZkHdkaRQSxodM1G 8kqtWIjhB4TSGyF4K+XGNdJJQvnL2sSHe53xLClbYMpuAde7OIO4uZEq3UC/0yfVqsTp P1rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721904045; x=1722508845; 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=/BT1ETjGdxc1ofYe6xfqubr4qkHhr85Rz6D2FNj+D4g=; b=aFNLfpUGbcbD0VrFjaOFAJTX88mogd51o8gjl3sCTCP+u9prduTwSBH1Km/k7Vq3am +3+V8ALsVVQmHeZ/j0bWIzjT7tKoo/TMafgpcG4HDv7BI6Xf0MJvkZ5WEabokGaU5Lg3 9elMDkYOeVzzg7hEcD4lsQcapXWRBf9lnWIV9jBYGQnGWiVhpRZFJTokCkarVAtFMuH8 P2HGF+hRxVDlPBvlkI37x1AL1P5ZT5DacdvIefNm53BiNK1OeICY88q9qmcb1A1VBeYs u0eURGc/pH6cmvz8Psz0yA5INd8TIaRVH0erMmp5RVLPmkUTObQ8IA2KHDavEafRPiR6 WyZA== X-Forwarded-Encrypted: i=1; AJvYcCViZiYbpYYrQAEY9gNM/1kO2WaA6rJiok8lAmayMq/WVhqt0r+dLuzC2D8LZUljJNhKLZzNL1/NbPQIR18GAVCilnwJFktN1doewAox7IpemEPyCcM= X-Gm-Message-State: AOJu0YyFG33kyHDbSrISZQWG2iykqDFpZAH0azHlSjn5G/wpoV2yXQsT PWHXFEnkimzG7wU5grgCOShsPssp3jkjvR8mzGY4H5UD3VpDVXig X-Google-Smtp-Source: AGHT+IGV5STZLw87HTmp51t5/YRKLVMWBZVnchanMigxTA6+DYmh2GOpfpud+QG6bDPjnYECDGQPhw== X-Received: by 2002:a17:907:3fa4:b0:a7a:9144:e256 with SMTP id a640c23a62f3a-a7ac4d7bf13mr189732966b.6.1721904044993; Thu, 25 Jul 2024 03:40:44 -0700 (PDT) Received: from tablet.my.domain (83.25.114.69.ipv4.supernova.orange.pl. [83.25.114.69]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7acab23d56sm58342066b.38.2024.07.25.03.40.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jul 2024 03:40:44 -0700 (PDT) From: Artur Weber Date: Thu, 25 Jul 2024 12:40:36 +0200 Subject: [PATCH v2 2/6] ASoC: dt-bindings: midas-audio: Add separate compatible for tab3 audio MIME-Version: 1.0 Message-Id: <20240725-midas-audio-tab3-v2-2-dbc055c27879@gmail.com> References: <20240725-midas-audio-tab3-v2-0-dbc055c27879@gmail.com> In-Reply-To: <20240725-midas-audio-tab3-v2-0-dbc055c27879@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=/IfLGEvhoqbrXs/mPhWyyuqb+s7Bk3eCuOnYTVRjQvM=; b=owEBbQKS/ZANAwAKAbO7+KEToFFoAcsmYgBmoiuoO0ZE2wk3i+nYkt8Ex24aMWi3VFBpdFQCH A9vUABb0DeJAjMEAAEKAB0WIQTmYwAOrB3szWrSiQ2zu/ihE6BRaAUCZqIrqAAKCRCzu/ihE6BR aPM3D/9DuGk/DVvmkKZFs7V6thby1GbdhHaTN4tv22CBr/GctAXE5hXXS4sc9yxw7OIcIwgmTEB yKHS5JGvJ1ie3vKM2ATVt0J9RKyJLeoPc0lftseWw958rmbpKHbOa+Vec6bWIOOS31bQ244fTrj Xo4qY1Q2cuFJEzta6dILYzdcs66/jU3hafxGNWLfBkp6flE+BsSwgiPK8X/MJqPLvdRRmpRDxi5 j0gLZieogu48aRVKlxIRBXiHzSXCaCb68q/4iY0i9BVN+QimdKkJlUxjF2kRhlmr4eyzEYKucnb BvjIKjSr3Q+TeCV0bw+37EPiyrxGshzRLCKj/NQDa+dFVq2rwo574RcL2S/mZQidVVg3D8/U/P7 LImrSvFMCG+ZrKxAc+VyD+UJSjYAXEHGPK9Y3w2Sb8/R0ZetrtE+tck3ai2NP8WZVjNS13+DMPa qUI6bSu3Vo0EyrrjTVYykgvxXXVYq9N3T7c1eb81Ua/ziGamV4o7J3jvbyHsrYvmnqId8tL5o/5 77n0K9uvx9z/vGq2QoiMgYqJrKxRmtXeQ6KtqrFOGcltePtKnQcWOHvoP5yR8ZF0vcJnuILm7wF WPeRf5rDc0PUK67nj8l6PeC/wvsnGoPlxUbqH3wuKWp2t4FFBYq/UmriyehsjGcFmbG1+7zC9hV tdHhEHpieUYWpLw== 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-20240725_034047_097336_4FCA8C11 X-CRM114-Status: GOOD ( 11.15 ) 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: