Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp229184rdb; Fri, 5 Jan 2024 08:01:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IHuZhkGDEvRFOpTE/8AMxWu/I8YKysdSmYXoWgQg3ZRQXj/8300uJjTb6RDq1cYvlD6oLBw X-Received: by 2002:a05:6a20:c524:b0:199:346c:cae3 with SMTP id gm36-20020a056a20c52400b00199346ccae3mr1154041pzb.18.1704470512411; Fri, 05 Jan 2024 08:01:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704470512; cv=none; d=google.com; s=arc-20160816; b=jWUJ2Pk6NFRb5jz3I8jr4UpihGacx5riHX5QEJvFVUnitsHqHuXV9kRsPJ7c65EBHZ OmGW/VZbYCY909t7iUGJlobIF2sPqXhEA84lDoYH19SrN4ctHU7MHYtT/d589vQ314iN qvIpGn/EzdUxFADVdPZA1B00q45jvp1ReHfsh3NYthIL6gjEz89PekYsSIsKmGCCYEJA fFdettZsJQCJStqy1u4pVxukHDVKRfg3BP+TumxSkqd/v1EPv+zk0wUl+LJcISng0Jx6 C35EemfyeypLDOISvgP8mz0FT7J5tl6nLFUb/dsikYPPbFaNVjK5ShblUfQRHPTEtXCx Lyhw== 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=iJvz1+kl97MC+qFV9naLRWeJcJKNAc5zkQmU9UfpBXI=; b=wuO6L/iow9GPYpkVg01wgEiGKSIrRWQ56/B/bq6cTIfkHXoLmcP3WpzZTOFX6LkkPF BQ2tVlH43f/EUPWqVHFSq+8vbCyfR51IHLnFkn9H6oYf3t+Q+8hNr101+3U+yfEVcrXs 2b5TD4x+ihUGDB9EZxZ07l+P+UVqEMJ/ZjeuRyu/J6ZcFIe4+mVyyh1TSUZbC64T+Njw 4AzFOgA1Ur9V8XSW3a6T5vJjJikGIS1mw+V7Yx6uclbUs+z1BevZuf9wDZfE1+mlXNL7 ECS1PS7j61xVzQD1qwOh61ktj1hqv4YZKo8Yf/s2cw538ypyurgA3XJL3kZp5lEeC+6q kTCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gKFQskzt; spf=pass (google.com: domain of linux-kernel+bounces-18026-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18026-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id p1-20020a63c141000000b005b57aa8517bsi1501673pgi.91.2024.01.05.08.01.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 08:01:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-18026-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gKFQskzt; spf=pass (google.com: domain of linux-kernel+bounces-18026-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18026-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 6D0E7B23671 for ; Fri, 5 Jan 2024 16:00:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 98FB8328B7; Fri, 5 Jan 2024 15:59:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="gKFQskzt" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 3D26B31A79 for ; Fri, 5 Jan 2024 15:59:30 +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-f47.google.com with SMTP id 5b1f17b1804b1-40d5aefcc2fso16793975e9.0 for ; Fri, 05 Jan 2024 07:59:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704470369; x=1705075169; 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=gKFQskzt/u4Fyqu59e+TLxIiOYzC3Amq0Ld6MEYdXrMlsk3W09Lt2EBS35W4iFxm4q 5vyi6zjKEFvv7DYQbL3uRMGnH5yknMrm0SYEaNN/ioaNHXmPt5emxGPp5SejTa5FaAOk IibSwcb6CsdxYdBJOCTVpWCCRxkj4G0Ul6nMKSsAUPme2pU7hxn44b5xgYV0ADEkQUar iozUeAT31AIV0EwdTKlButyJVelMs2QIYWrLEh/OPR6J2bRr7pLoixkd0Ix2XdL+Bb8v TwNH7dTvzcH2tEiMl09KaLM9WbsvbnW5QqZvE/Db41AL7AsCG1AKBnQhhKQY8CxdJXJJ UfzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704470369; x=1705075169; 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=o6Wle8UL7Or1re2o7K4Xjq8UTLFlCA7T+xdHBRtmpe7M/mr2xn0mgYLjOWCTesdW5L 0tkuozDMZpmQu13CeRFztTw8v5Nb0TSUbqTXnUUc2Djz4c4InpW2ocxqzLhT1fImQ8uC 5M7HLS96kYRNviVksFHkfHsv3xvZYSufRD4EMB5jEUyi+9/9WpJtUpyKTLPYSVubl/d4 3OtsQlqsIhk1KasRsY1hYjFG/Q8CdAKvomqWB1ncniNphdnCcxBv/0C/FnsoHGAc5rKf SsgvGjOO3AqH+IGluqwomt2Flfyff2M/hHTPvK6FLTCZVdHm2XsI4sj87cAph2kf5shG PjhA== X-Gm-Message-State: AOJu0Yz+KQMLTLmgypkG70CRrcRCryObIljQ6stBqdIGhfDVKF92l30q FmASSDpsaRljsE3nFsmMO7WpubyZTssArw== X-Received: by 2002:a05:600c:1f83:b0:40d:355e:ab90 with SMTP id je3-20020a05600c1f8300b0040d355eab90mr1335180wmb.67.1704470369044; Fri, 05 Jan 2024 07:59:29 -0800 (PST) Received: from krzk-bin.. ([178.197.223.112]) by smtp.gmail.com with ESMTPSA id su8-20020a17090703c800b00a29910a9366sm326024ejb.8.2024.01.05.07.59.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 07:59:28 -0800 (PST) From: Krzysztof Kozlowski To: Srinivas Kandagatla , Banajit Goswami , Bjorn Andersson , Konrad Dybcio , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-arm-msm@vger.kernel.org, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , Bartosz Golaszewski , Sean Anderson Subject: [PATCH v2 3/4] ASoC: dt-bindings: qcom,wsa8840: Add reset-gpios for shared line Date: Fri, 5 Jan 2024 16:59:17 +0100 Message-Id: <20240105155918.279657-4-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240105155918.279657-1-krzysztof.kozlowski@linaro.org> References: <20240105155918.279657-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