Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2411779rdd; Fri, 12 Jan 2024 08:37:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IEOTDsU/A2SLffRi61mqr2IxOhYRf0r3AKfna7Rvh44FBhH/l+Ekd/nDCTeZsTYFOkv7Wba X-Received: by 2002:a17:906:b1d9:b0:a24:da44:efb4 with SMTP id bv25-20020a170906b1d900b00a24da44efb4mr868087ejb.23.1705077439953; Fri, 12 Jan 2024 08:37:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705077439; cv=none; d=google.com; s=arc-20160816; b=PyrsR7Pubu1NTHmCfBHJvRSWlXA+8rsjPKilx4NfBmuXmuB43N+bIZiJF/XVMArqUN 0YdloiF/Akdh1bQ9hgD06IXa5lV3JxviFMBOPSi40OnB7QIt0BRo1z7Ik9LQr2GFSQlj RvUnd1WFwRkm3DxB58nGZuuUqNEr6kxQLreSOJ+6wmEzk5gni9ar0fUep+mVSokKhZut WqJV2tKC6WXIZEnGdNUiB7VXYOWuCfrJzW8WhHVt4ZbJV1tLg2IYz1Zcyq3T9jNvqu3X T9scxyVtA7sbvYof1MOkSlbjS7YZpa24wXwr1LyAxvyTX2vCFX7tPqnpjw02aI9ufMnW PBoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=jT3J/E5ihwUzRJFy9hQ6iVDhNFb12f1LhdaU7OTuQXY=; fh=+9Max/V/7cjj8RZEj+C1lXQLChlj/u+Ka2QetC5y70Q=; b=IIXUT2MSZh5bLKCLW8djMPt4dAGN0HNES44TRSKV69ydQflRSV4ooUIfO8ZQOe+KuW cNPB95Lx1b486jiku1/NsD+HOz4VGBwu5h5QkKmZLtOAMdEPX5bdqFRWiteokiDz6yJ3 bXUIhtRKTXmQJm/+i09kq6TW1Rpi8C34zY5gMpl1+ICcuFx3rYA4ilGeTkiNBdqXGsZ3 o6P3ne7IRr2vQEW+jBvsx857SEAmvLGyhZAvZaTODGCmeLsOcKKpWoWXBtoIwQQLPq+E ps0r4h+cxYeILF6sFCvksmxfWqnlkvwiv8hpq4BWW3tzomwvddSCVXapel6Rx/ce40EK xhvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=s05yJW4L; spf=pass (google.com: domain of linux-kernel+bounces-24865-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24865-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id v21-20020a1709063bd500b00a272ec66d58si1487802ejf.111.2024.01.12.08.37.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 08:37:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24865-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=s05yJW4L; spf=pass (google.com: domain of linux-kernel+bounces-24865-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24865-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 89AE31F2280E for ; Fri, 12 Jan 2024 16:37:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4C49377F2C; Fri, 12 Jan 2024 16:36:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="s05yJW4L" Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D944D77656 for ; Fri, 12 Jan 2024 16:36:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-40e68ca8b45so5028465e9.0 for ; Fri, 12 Jan 2024 08:36:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705077386; x=1705682186; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=jT3J/E5ihwUzRJFy9hQ6iVDhNFb12f1LhdaU7OTuQXY=; b=s05yJW4LVxTTdr1T+ybkziivMzscUXlfoSb/PSt/1uy+0UC2WWnuXaWSZZWMQ8YaKy Pgc45rcT5YcwB6w/uTouIyP9BD/ZqsEi1+77/rjT7hiS/9Um3k513ygGI4oKOZ0ro5jN Mn+8vuaUK9RSLsdXG8dPyHLD3pIkp2p4GlIZTd4yjTW7Kzydvt6Q2CdVKYSViHupnNV3 hhe3ri2xRiEXIY7JEQ6/Dck74lP7nZ93HwYhgnyDPkMVXw0lNGb9mQMWnnTuqT6pAKDc gqgoRDEuIu+rcvr9nKQCEKhpWhRXDOUgh8wYpcHOl4W4mYXsb38ElX5GZWO06tMFsJ+u uyUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705077386; x=1705682186; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jT3J/E5ihwUzRJFy9hQ6iVDhNFb12f1LhdaU7OTuQXY=; b=j3mm1YD+j4GART7nHFIrBl62PvB3x4iRJDhT6XvNIgaLQQNI0tz03KAcLLepoVqK1w jpxZ9U4P6ScfzMkG+qpepxX4tAL08+eXpbBxUbKvr7NZvTfvs6N3KbmIQ/4A8jFczTiQ 2eHRAQMrX6FDwQBsfPg3KXsQWYDrPn+MJJgf6y8B6YOjWIJhNStl2cDzBK7w7h+bNRvz tJqKquOJvnQSzVLbEu93q/1kOsiCgsUxic4qefPSXTdggGAvz8z3x3zwr6sMpTCLNBhZ PBOVEvukYWTSDVwRVYAOZmPugk6VBgIUexn+04LhKsynk/0LDEQ5WteJcnPy2EFEeFCt lWEA== X-Gm-Message-State: AOJu0YxK3GftYC/Tkd0IwtgwXlyzmUglqmoRHx5KsDxbsnrtdiPknaHH xfl+NLkXXaB6I1DKmrqY3E6iTiqk8MQZ3w== X-Received: by 2002:a05:600c:4505:b0:40e:5534:f6fb with SMTP id t5-20020a05600c450500b0040e5534f6fbmr1019053wmo.165.1705077386295; Fri, 12 Jan 2024 08:36:26 -0800 (PST) Received: from krzk-bin.. ([178.197.223.112]) by smtp.gmail.com with ESMTPSA id bd16-20020a05600c1f1000b0040e5a93ae53sm6573195wmb.22.2024.01.12.08.36.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 08:36:25 -0800 (PST) From: Krzysztof Kozlowski To: Bjorn Andersson , Konrad Dybcio , Srinivas Kandagatla , Banajit Goswami , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Peter Rosin , Philipp Zabel , Jaroslav Kysela , Takashi Iwai , linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org Cc: Krzysztof Kozlowski , Bartosz Golaszewski , Sean Anderson Subject: [PATCH v3 3/5] ASoC: dt-bindings: qcom,wsa8840: Add reset-gpios for shared line Date: Fri, 12 Jan 2024 17:36:06 +0100 Message-Id: <20240112163608.528453-4-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240112163608.528453-1-krzysztof.kozlowski@linaro.org> References: <20240112163608.528453-1-krzysztof.kozlowski@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On newer Qualcomm platforms, like X1E80100-CRD, the WSA884x speakers share SD_N GPIOs between two speakers, thus a coordinated assertion is needed. Linux supports handling shared GPIO lines through "reset-gpios" property, thus allow specifying either powerdown or reset GPIOs (these are the same). Cc: Bartosz Golaszewski Cc: Sean Anderson Signed-off-by: Krzysztof Kozlowski --- If previous patches are fine, then this commit is independent and could be taken via ASoC. --- .../devicetree/bindings/sound/qcom,wsa8840.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/sound/qcom,wsa8840.yaml b/Documentation/devicetree/bindings/sound/qcom,wsa8840.yaml index d717017b0fdb..22798d22d981 100644 --- a/Documentation/devicetree/bindings/sound/qcom,wsa8840.yaml +++ b/Documentation/devicetree/bindings/sound/qcom,wsa8840.yaml @@ -28,6 +28,10 @@ properties: description: Powerdown/Shutdown line to use (pin SD_N) maxItems: 1 + reset-gpios: + description: Powerdown/Shutdown line to use (pin SD_N) + maxItems: 1 + '#sound-dai-cells': const: 0 @@ -37,11 +41,16 @@ properties: required: - compatible - reg - - powerdown-gpios - '#sound-dai-cells' - vdd-1p8-supply - vdd-io-supply +oneOf: + - required: + - powerdown-gpios + - required: + - reset-gpios + unevaluatedProperties: false examples: -- 2.34.1