From patchwork Wed Jul 21 14:04:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 483665 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B69E2C6377B for ; Wed, 21 Jul 2021 14:05:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9832A61249 for ; Wed, 21 Jul 2021 14:05:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238580AbhGUNZE (ORCPT ); Wed, 21 Jul 2021 09:25:04 -0400 Received: from new4-smtp.messagingengine.com ([66.111.4.230]:34293 "EHLO new4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237349AbhGUNZD (ORCPT ); Wed, 21 Jul 2021 09:25:03 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id 133375809CC; Wed, 21 Jul 2021 10:05:40 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 21 Jul 2021 10:05:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm3; bh=dl9JkUAuyzpIr TOxu1i2v9vc4da4FlF7FRCf7MyfqZc=; b=c5khjbmbj+1WOoepaIcdlgsRmq8lT CYJQs6e28rgwSH3Wm5JPsgf9zqTq22H6K6ic/h3PEhCq3rNaMbOlDWk37MMOQokD OIQ9CdhwjCn2opdufG6Ci5eWYbAqq1iPGxmookiEk8CmsDRrkUFeJTthKfgh2OmE GBWAi0P3FJfdT1DmG9vgQ233iPrM5LHswk0fa4hB0MXgAxh2sqnS+AMwIV8NGioG f3ZwiKLmksbAeAETe6tFr1RRJqAdeY7boL2kD/+IroOMgAhRgCCd/5HDgKL6oA0k n23DTTvWrVxhkDlRvR0+FXd/TrdhTOqiLoWhwRiAOnRCM6fxqbIAN2NZQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=dl9JkUAuyzpIrTOxu1i2v9vc4da4FlF7FRCf7MyfqZc=; b=a/6JFxB9 AnV07P1D5VOMudcesdDUJ/wr3lUuHjH8PSbBVi2caZQHFrATmpv7u1LuwcdEydSE kxik39AsDDgR47oruW9uQ9HJ6zxAxO3+TgyUCg8Zskly47pgO/CqtNojYkIoaSpq +NkZDYVn3KvICjcTzuzoxXaFxxieMUyy15JDWWHvP5B3ftBU3y+ZUPY4HIsqArXO nJP7zNZDJvJfVjRUnLY8t3O1j0ZOtqhQQW7MKGOrplkpZDaVvdmpxINc0oUESpA5 hDAuHiHdqm0sIirMFDOsZhJlxRfBH3Ex+b2A70cWo6XfjP4Cl+TJEZg5p7heoopq 8MXyWpAO81zLBQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrfeeggdeiiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepofgrgihimhgv ucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrghtth gvrhhnpedvkeelveefffekjefhffeuleetleefudeifeehuddugffghffhffehveevheeh vdenucevlhhushhtvghrufhiiigvpedunecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrg igihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 21 Jul 2021 10:05:39 -0400 (EDT) From: Maxime Ripard To: Chen-Yu Tsai , Maxime Ripard , Jernej Skrabec , devicetree@vger.kernel.org, Rob Herring , Frank Rowand Cc: linux-arm-kernel@lists.infradead.org, linux-sunxi@googlegroups.com, Felipe Balbi , Greg Kroah-Hartman , linux-usb@vger.kernel.org Subject: [PATCH 35/54] dt-bindings: usb: dwc3: Fix usb-phy check Date: Wed, 21 Jul 2021 16:04:05 +0200 Message-Id: <20210721140424.725744-36-maxime@cerno.tech> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210721140424.725744-1-maxime@cerno.tech> References: <20210721140424.725744-1-maxime@cerno.tech> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org The original binding was allowing any combination of usb2-phy and usb3-phy in the phys and phy-names properties. However, the current binding enforces that those properties must be a list of usb2-phy and usb3-phy, with exactly one element, effectively making usb2-phy the only value being valid. Let's rework the properties description to allow either one or two element picked with values either usb2-phy or usb3-phy. The rest of the tooling makes sure that we don't get any duplicate value, so this should be what we want. Cc: Felipe Balbi Cc: Greg Kroah-Hartman Cc: linux-usb@vger.kernel.org Signed-off-by: Maxime Ripard --- Documentation/devicetree/bindings/usb/snps,dwc3.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml index 41416fbd92aa..6c3f7c9a76c0 100644 --- a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml +++ b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml @@ -73,15 +73,15 @@ properties: phys: minItems: 1 - items: - - description: USB2/HS PHY - - description: USB3/SS PHY + maxItems: 2 phy-names: minItems: 1 + maxItems: 2 items: - - const: usb2-phy - - const: usb3-phy + enum: + - usb2-phy + - usb3-phy resets: minItems: 1