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: 12391207 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.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham 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 65AB0C636C9 for ; Wed, 21 Jul 2021 14:44:55 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 327106121F for ; Wed, 21 Jul 2021 14:44:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 327106121F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=cerno.tech Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=vteKn1BBJh6bfxQvl9hZtwwG4MYlgjdsvNIIQ2bsCkc=; b=SwcYd+c8PYuTRk PRUctHP9JdOKiu+YZz9QMgT2jBQkCPQkFWH0NKaiH+NXwboQp/IPLD6ZuPdyB2eOehLrofH1LBZfN pqIRR08l0MLa47xf99FfmjySfDsJP0xphynl5RDbbrfHu5Z5AzQGsDLXchWzVaOwXyJe4XWjxXNL/ uIbOcyQMIYYxtQarhZ8QB1ZtJI1HVs2IclrpOFqHjVfTa+P5BfGnRZ/WJWar5Jxp98liaeRnZnuSP u5BvwC8aaypkIW8hIYeZByfAESgdBq+yIy5/G/xtmj3qyudUE3NZf7YIevcj6Pop1N1gcr1l/6VpD ZBvK2rgt9chvD8xp+9BQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m6DQo-00G3BN-NM; Wed, 21 Jul 2021 14:42:43 +0000 Received: from new4-smtp.messagingengine.com ([66.111.4.230]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m6Cqy-00FqJg-Na for linux-arm-kernel@lists.infradead.org; Wed, 21 Jul 2021 14:05:43 +0000 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210721_070540_902750_8F532BEF X-CRM114-Status: GOOD ( 12.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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