Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp823532lqj; Mon, 3 Jun 2024 01:36:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXJjxINFFfnEMDYEvrAeabwrSpw0rfnifWSVcn0Ky9/+egZrzCWK88Bc/9uxDMUc07IGULLKWAhG7GcHbcZgon6DWx3hVpcgdtQ5kqpgA== X-Google-Smtp-Source: AGHT+IEFF1xH6ZmxWgtFtMBZd1ouj6POnS+1IhIQVxVkDGJoSAaoWvQxW+JJ5pcY+hTWa2wiR5AN X-Received: by 2002:a17:906:3609:b0:a68:90d5:1580 with SMTP id a640c23a62f3a-a6890d5d2eemr435523666b.46.1717403802551; Mon, 03 Jun 2024 01:36:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717403802; cv=pass; d=google.com; s=arc-20160816; b=LoYNxF1MKzlKkUlJwAiibkwfh8Ey0tkXgGOKVOzHSphZ6R4xlnhrLyZabUNWFMm5VK 3dZc0vM+38hgN7sWHbj8G5NPRq2spUp1ktzW7FVU6cdjOxwHMLsKKb63stMsP9lsSzjt weeaUJ9ZlkgbE16E8QdD8HzVtB9/vZT0kCxGoWaJRfRyei8N96Nv4+HYV2PE7I3HMrtW 9IvpXwB25Y/lFvLvi4mzr1c182C/FwwMfRcZGQDXzaIRcUKi0GD/LL/zJbMZuDEQliE9 eRW1qQNKbZd3xJN9YfLZAzSUM3e+qsolrthdijWbaf/fHvvcpNnxTSYbbW1MqDzNtdvK m/kw== 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=9ZZDZ+bxHkd4WidkWmCQRH6wA+PqO66eywpfwGMP14k=; fh=f9aOw2o6a3irBLLrAIF65Kd/vzxHx6hb7OPWS9O88AM=; b=clxLMgf+Kd0ug/hUjM2cxvsDcztI0YI9uKAIpCbytIZdxfRUrENNmb0m0BizDCeldF ad4KmYCl1S2biNm1dsID8gC42PHIto5Yjnm9uHbqSjd6YiRnCn8qASKr/RICE1g53Obn S35u1e0khCNhFL7hDior76WDqFWRe7QemcwFZMIfpmgr4awYwJqfmV3H3ErVngfNXC2S xPNPK6+4yJmtpHtYdE9O/1a9iY0chEqe4DLjcmf+SY0KBvCvBRnIoo9W6ABAgj5DyI0A kzh3uNW63ZcSrtjxIoP1edZqvg2BI6XA099ZDo9zbvqjw2hNhPjPh88pGowRVIbj7CXu enZw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@dolcini.it header.s=default header.b=gIbqLe0e; 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-198792-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198792-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=dolcini.it Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a68b2ed4209si249487066b.277.2024.06.03.01.36.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 01:36:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198792-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=@dolcini.it header.s=default header.b=gIbqLe0e; 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-198792-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198792-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 40D201F23618 for ; Mon, 3 Jun 2024 08:36:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 27FBC77115; Mon, 3 Jun 2024 08:36:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b="gIbqLe0e" 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 BE6D95BACF; Mon, 3 Jun 2024 08:36:20 +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=1717403784; cv=none; b=f68pdk4H1MXqblsz6gd6huDWARkPyEcE/Pl5Oioz0KNFfcUpyGxC+NAtsieTXL4LiwfgYX+7NjavyJgFxHNhrP6eVSMr+n4zW+UfVrt/ING8qBz5s6gUfjec/KRs2Ep6vZcsv8u/aWt+r9m1sOQV68Pj0IVovWo0P/VePuC9tps= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717403784; c=relaxed/simple; bh=SGwxwn3cOl8zFt9eXkbF3zSBc4VgSBmVKp+8BzEACxA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=BRyhE06YRyNwwVdJpI6tOEBHtOu4e/644vQAG8jFbpg+DiD+U7mfL9ZRFCPStGXnWl2/cjxRy2YdiPoVHbszHf51cdyfkFz1PE/hVsnRJraRFYj6RyL4tNafyir2etJ5kHKr+EWpIVF5NyiBOEnlEkH7kC+zOMJJW4FmUe/SA9k= 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=gIbqLe0e; 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 68B791F9E3; Mon, 3 Jun 2024 10:36:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1717403773; bh=9ZZDZ+bxHkd4WidkWmCQRH6wA+PqO66eywpfwGMP14k=; h=From:To:Subject; b=gIbqLe0emVKFLpueRF5AUeYxoTOQrEdXnAKRoGsm+T5sb86OZD64US9/I3ld9nbBh lk3wvea1BmyC7wYuUgvdIgTkyxxUMYL01KJ/kLiRCucMwWfm5RZKYKM3ZBrIxuPr8v U72JRWYcnf/Oa4HPkt0eh1RS5kQGYqSry+WgRtIYNfv48u07K9Mz4cG7Ln4MN05jnV JV3R7yRXU8JAUNpczhLfTvqZRfDry1qSN3YuijPMGbmZ2fAYVhjUkhILfFLT2i5r6J 5OabgTXf2jOH7uoMoaSbXmNmgE9Qj4je/3ihP4gms0iWz2cyM13zAuStlQp7JUiJtI Pt37eqrV15afQ== 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 , Conor Dooley Subject: [PATCH v2 1/2] dt-bindings: usb: gpio-sbu-mux: Make 'enable-gpios' optional Date: Mon, 3 Jun 2024 10:35:57 +0200 Message-Id: <20240603083558.9629-2-francesco@dolcini.it> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240603083558.9629-1-francesco@dolcini.it> References: <20240603083558.9629-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. Acked-by: Conor Dooley Signed-off-by: Francesco Dolcini --- v2: - add Acked-by: Conor Dooley --- 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