Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1299254pxu; Sat, 5 Dec 2020 10:37:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJzhEpZbUgSSE67lSINFErHeyoW2B5vGQC6s3DKEGuqay8v0XXRTIPo2FsduPku0EKw9UqKJ X-Received: by 2002:a05:6402:1592:: with SMTP id c18mr12880944edv.181.1607193478171; Sat, 05 Dec 2020 10:37:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607193478; cv=none; d=google.com; s=arc-20160816; b=QH9nCTpCdLgkhi7ALp7hmGnwpNnA6+hB4yKwnqpH209P/5+DzUC2aLshlX43XX6qkZ H/LU/T/uIll13j9BAovzegfX9yZqbOD34N4gVM5PCH/S+Yt6C2YYABUONDxvXPPYgqaL VX6gSV7yTZDYQDikrGdRiyO2gRqjwaeRI2YK0XWy8kQdMnpHUY78UuhG7mOhH4JjPlnJ iUzEkCiPQCAGuyF5WpshZ6Xg7s3Wsrb/AM3Dq59bVOuhgPWcKMf5TXcxYM46+PPiYtaz qGEW4rdogcZZq+RfSC0X7HEYG9JK55HeivUvejeEjGIrkIyDzETujDf6UVFbi+vHzt3d /vFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=MC/ukk/S3rmfhwMBcB9C6OtsVcnVpp1+sufM6AUV6ZY=; b=HhdINgm2ks/5K0ErWjGzUnYw5SR2f59+AME6GgLIh3Ic7LfhypO/ncEvdP+97AGM/u VBDNo7ow9peVI0t9GHOI0myjGfCDhoPKMGfvREDAA7tHYuOjtNXIbjvuWi2dMgikP/oo EiG9OeYjQC4Aqu0B4FdtGhraGYq4Nrs+Id101dy3ixuQ+T5/rivePTrJepxcl37WGLFQ WtPAPQfSppoE39LNjiycc24flNhyqbjo1fbTTSpA6RzMlUK3Ip3XB41BbQNnHQUdvPxs RriYIIX33i8ZMJe5jCvvE3p4RcH4JoCqVfl5TN+fblqZbjojqXS1hhlI1jdp2WdvMZdf TyyA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w10si5370507edj.71.2020.12.05.10.37.35; Sat, 05 Dec 2020 10:37:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728997AbgLESTs (ORCPT + 99 others); Sat, 5 Dec 2020 13:19:48 -0500 Received: from mx.baikalchip.com ([94.125.187.42]:53286 "EHLO mail.baikalelectronics.ru" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727820AbgLERqp (ORCPT ); Sat, 5 Dec 2020 12:46:45 -0500 From: Serge Semin To: Mathias Nyman , Felipe Balbi , Krzysztof Kozlowski , Greg Kroah-Hartman , Rob Herring , Chunfeng Yun , Andy Gross , Bjorn Andersson , Manu Gautam CC: Serge Semin , Serge Semin , Alexey Malahov , Pavel Parkhomenko , Roger Quadros , Lad Prabhakar , Yoshihiro Shimoda , Neil Armstrong , Kevin Hilman , Martin Blumenstingl , Ahmad Zainie , , , , , , , , Rob Herring , Subject: [PATCH v5 18/19] dt-bindings: usb: qcom,dwc3: Validate DWC3 sub-node Date: Sat, 5 Dec 2020 18:24:25 +0300 Message-ID: <20201205152427.29537-19-Sergey.Semin@baikalelectronics.ru> In-Reply-To: <20201205152427.29537-1-Sergey.Semin@baikalelectronics.ru> References: <20201205152427.29537-1-Sergey.Semin@baikalelectronics.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-ClientProxiedBy: MAIL.baikal.int (192.168.51.25) To mail (192.168.51.25) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Qualcomm msm8996/sc7180/sdm845 DWC3 compatible DT nodes are supposed to have a DWC USB3 compatible sub-node to describe a fully functioning USB interface. Let's use the available DWC USB3 DT schema to validate the Qualcomm DWC3 sub-nodes. Note since the generic DWC USB3 DT node is supposed to be named as generic USB HCD ("^usb(@.*)?") one we have to accordingly fix the sub-nodes name regexp and fix the DT node example. Signed-off-by: Serge Semin Reviewed-by: Rob Herring --- Changelog v2: - Discard the "^dwc3@[0-9a-f]+$" nodes from being acceptable as sub-nodes. --- Documentation/devicetree/bindings/usb/qcom,dwc3.yaml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml b/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml index 2cf525d21e05..b336662e838c 100644 --- a/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml +++ b/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml @@ -103,11 +103,8 @@ properties: # Required child node: patternProperties: - "^dwc3@[0-9a-f]+$": - type: object - description: - A child node must exist to represent the core DWC3 IP block - The content of the node is defined in dwc3.txt. + "^usb@[0-9a-f]+$": + $ref: snps,dwc3.yaml# required: - compatible @@ -162,7 +159,7 @@ examples: resets = <&gcc GCC_USB30_PRIM_BCR>; - dwc3@a600000 { + usb@a600000 { compatible = "snps,dwc3"; reg = <0 0x0a600000 0 0xcd00>; interrupts = ; -- 2.29.2