Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp368664lqb; Fri, 24 May 2024 00:11:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWmyGEE60afHSrAbrcuRtcVrR37OleHDzs5Yab2xVK4LNbyHwJUWnT5ev/XLcmn+qhM5GeFJKsiBbuaTKYmX3qMFoxwcyOOXBrmMRQV+w== X-Google-Smtp-Source: AGHT+IFL38/i58Da8vHsIG53XDBVFvR5ToSTCVrTtpXdepeeRiSPBHJlxeWzac57AmpiF4VJHP5a X-Received: by 2002:a67:f890:0:b0:486:3f73:cc8a with SMTP id ada2fe7eead31-48a3853725dmr1564237137.9.1716534680570; Fri, 24 May 2024 00:11:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716534680; cv=pass; d=google.com; s=arc-20160816; b=p+62N5zR9Y8wBLf7vDLD1nwseFOZtOIKOt767jjMOc1pAyc+sOwmq3fqUIMVg3eW5c +rv3CkQcTcxIq9qBMQ+1MnsACnLSzcGqYjEV2vD7wtRVomQ3jTVUPZ4XyeuXi0FY27b2 Mz+uCxJ3dxhwqR14ORLUQM3tXoFu9JmDfsrYipyt9bqgtT3P+FgBRJQb3C9h8Q9Xibmd ADDcC85Bt0hf61kzoZAIfC++kW7Nh6PRIqUXN2b3esOaFsij3ZeC+JADG06pcGhVe1i/ hSwFx6a09OUi8zmfkTUXTi9PkopipRpgfMg89kOuwzYh89Nsw35rknM0iASx+rHZ7ROW ixGg== ARC-Message-Signature: i=2; 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=E+eiGEXpFDBtOnSags/hbRRzOuPfaC9yiDVYuMURIKE=; fh=U3WO3mjtG/Z7HNkXJ9Jx+o11itAQOVdzNYLWvMPAXmY=; b=wv64ir/CRWOdVLr9qHtAENfY8enKcep93XzREV0wemtGJahrqPzjfUx4cHkdI0WU+X 6az+Am2usqVCs5ZnUrUxzW39/jeIY+dA6U/4b5MshPLS2shc8o0q0/IXJuZXhJ9eraaJ LVMyH9wOEqwAH6kvw4Z7d7E9ncPpYOzYoXRb03iRMeUg/Asv5Of3tOUVvupdr6bUlX2O tsONfFIoAp961quO0ysG77UiAr79qgCxpBi0fcTA5rm/GE8paBnfU/kF3aERw/HusuJT CqTyA0A8WmjXJPweNs4tlXiiNYqPX8u0PIAIZjyi7q5OWgIAX9GwvZFhdqyyDORHPmC0 t+Ow==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@dolcini.it header.s=default header.b=0k1QsmKy; arc=pass (i=1 spf=pass spfdomain=dolcini.it dkim=pass dkdomain=dolcini.it dmarc=pass fromdomain=dolcini.it); spf=pass (google.com: domain of linux-kernel+bounces-188384-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188384-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=dolcini.it Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43fb17ba7dfsi14628381cf.100.2024.05.24.00.11.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 00:11:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-188384-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@dolcini.it header.s=default header.b=0k1QsmKy; arc=pass (i=1 spf=pass spfdomain=dolcini.it dkim=pass dkdomain=dolcini.it dmarc=pass fromdomain=dolcini.it); spf=pass (google.com: domain of linux-kernel+bounces-188384-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188384-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=dolcini.it 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 40EC21C20FB0 for ; Fri, 24 May 2024 07:11:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B47AD129A6B; Fri, 24 May 2024 07:10:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b="0k1QsmKy" Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) (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 1F75986AFA; Fri, 24 May 2024 07:10:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.194.8.81 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716534655; cv=none; b=RldLPN6nLSGe+vMUSSan+z85ymJNAnCXFzACBmEMEsBMQbiuL+wSmCcg6hTMO+vMNyRkMM1sYFG4nM368qiLfAhOnRm4KOgKCxf95jAZwgdKLzeuJvGSX6NJmC/rg9M8pDqi126LwhLVP6Mvjv2uZhKZLR7aBk+Rgtapz0g52m8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716534655; c=relaxed/simple; bh=yoH7HDIzCvy2OCMXmqXpl6iSu4XuuIUTXd0xzeGfedg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ss7syKBhn6C1JEIxpM+q4uui2WHpdgQ1ckuZ7MNLnPNZ4Avw7XoxPvwtDHz6T6ui6u+fqHggKOG5WZCEQqJQURLjGFICTNADaQGyZ56IoH3ekLR9/9YpL/MS9HtyOV2uQGB+Bv4b2IAI9kiEiBNppIWKVUaa5mQkIr/izu5IOVY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it; spf=pass smtp.mailfrom=dolcini.it; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b=0k1QsmKy; arc=none smtp.client-ip=217.194.8.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dolcini.it Received: from francesco-nb.pivistrello.it (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id 8400B1F9F4; Fri, 24 May 2024 09:10:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1716534649; bh=E+eiGEXpFDBtOnSags/hbRRzOuPfaC9yiDVYuMURIKE=; h=From:To:Subject; b=0k1QsmKyyyawhgK6mPG0YMcfmqol9ra56MShsur4YR1cISoGVrEsf6oy+G0BwS7tK MyWsOHKeZj0h0ZRkLNtP1ftuoD0kFCOlhaPOclrhrgWBvtlXSvvo80OAmDMNYjU+DZ wvggmPvsHno+DV8ZhB4WXn+Vtsy7atBBjqKIkmDA93Qh12CxIDzH8NqJGpG4GzwZHn aiks+KDfrGe9ykKumvzVErhMHLASDKMVjIHyCbQ1eJRgwFef5yN6/JeUc6W4qwjCcH 05iIonnmgCTem2goFQWf2nLRdUeMDROLJ+xEYxnG2Ubt8BK0oT4ci3hDhYolA0Z/hI uMA50jT5K+3Xg== From: Francesco Dolcini To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson Cc: Francesco Dolcini , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dmitry Baryshkov Subject: [PATCH v1 1/2] dt-bindings: usb: gpio-sbu-mux: Make 'enable-gpios' optional Date: Fri, 24 May 2024 09:10:33 +0200 Message-Id: <20240524071034.4441-2-francesco@dolcini.it> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240524071034.4441-1-francesco@dolcini.it> References: <20240524071034.4441-1-francesco@dolcini.it> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Francesco Dolcini The enable gpio is not required when the SBU mux is used only for orientation, make enable-gpios required only for alternate mode switch use case. Signed-off-by: Francesco Dolcini --- Documentation/devicetree/bindings/usb/gpio-sbu-mux.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/usb/gpio-sbu-mux.yaml b/Documentation/devicetree/bindings/usb/gpio-sbu-mux.yaml index 88e1607cf053..30edcce82f97 100644 --- a/Documentation/devicetree/bindings/usb/gpio-sbu-mux.yaml +++ b/Documentation/devicetree/bindings/usb/gpio-sbu-mux.yaml @@ -44,13 +44,18 @@ properties: required: - compatible - - enable-gpios - select-gpios - orientation-switch - port allOf: - $ref: usb-switch.yaml# + - if: + required: + - mode-switch + then: + required: + - enable-gpios additionalProperties: false -- 2.39.2