From patchwork Fri Jan 12 16:36:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 187788 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2614:b0:101:6a76:bbe3 with SMTP id mm20csp294678dyc; Fri, 12 Jan 2024 08:37:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IE4ydKOkZp0oOsLywakKehf6is2Aq+1TU2c39qMu4syYTqGj49G3zE/7vLnrwVmd/MbHxja X-Received: by 2002:a05:6402:1647:b0:556:f13c:d6ec with SMTP id s7-20020a056402164700b00556f13cd6ecmr965964edx.76.1705077467846; Fri, 12 Jan 2024 08:37:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705077467; cv=none; d=google.com; s=arc-20160816; b=HSKvSYRtfpLdt3rF/+2RIUeCcdlQbr8o/GpVijmEuO37j+D7GeQD665Dh257lK60w0 RQDYK4cCVVR1VPIp6jnHQ7aBfKVDtuC+pdPAMSbuL0ZELutU6Sqdl94giQeWnOpXEXHq uy6aJx/WcueijiPWBeciRuRp/lxngSmxjr4QYDagtJRENpn1VkbCScZny/XxH7y+Jh1J 15T6PP/ouHELG8hYeCMQDFGrn2EV+p7Ous5+k2b+Wz1RxqM2o66uvl+GUxOtPelSseU7 rB5wBSu8xN4cPQgqhQ4JJMI3tmpJDpTgTLqF4V+1jCDRpxkpVHurqP/JhGf9BHEhZVRI vKEQ== 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-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24865-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id m12-20020a056402050c00b00557c159731dsi1510996edv.547.2024.01.12.08.37.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 08:37:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24865-ouuuleilei=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-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24865-ouuuleilei=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 734F11F22B75 for ; Fri, 12 Jan 2024 16:37:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4631074E3F; Fri, 12 Jan 2024 16:36:32 +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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787903311015048642 X-GMAIL-MSGID: 1787903311015048642 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 Acked-by: Rob Herring --- 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: