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: