From patchwork Mon Mar 29 07:27:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Leizhen \(ThunderTown\)" X-Patchwork-Id: 410790 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp3396577jai; Mon, 29 Mar 2021 00:29:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3t/3Wzu8EmibymGVp1VpJMrL3Q9SddIY3+R3Idr61Uq5uUpnEbSNVJAYiv4A1f2WVFkHs X-Received: by 2002:a05:6402:145:: with SMTP id s5mr9683501edu.221.1617002956739; Mon, 29 Mar 2021 00:29:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617002956; cv=none; d=google.com; s=arc-20160816; b=rflphpD0yUBa1oh4D/r5xs0Dcyaf/a4MRm0Un0sn5EcvUKX/u4831oAs8gf5WYF66d Bc6KsbimBwu2H0oNOtjVS48x1R/VRi9AsXPsfuFmk7mwUzdERkq5nD4ljgfFg+aVW7Mx NbUmSmolW8ocQb+1Jb8TxhBi1ZgwlTZT9qXyi8D0H6o1LGu7F8QbqX8mkh4LtN/gE6sB GWrfYVMRJJyct8cmQyvIYQggTgtRHPj+HNeGvxykk6QgD0q7KhsdPAf8F/6QVoB3dDB0 L8u2e7kK9rbavj6U+fhydbvV9X+6aj/x14ymzOSPN6mYSRSY5M2EVXIhjpb/ntaC++DI T1oA== 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=ps4LpZ7Yb73az5Zb+zKWOeptfhohgPTuUKjVlcOXSAw=; b=pNZ0IPelAfv0DeGPOVh2z7w3Tcm8QwZjUdKn6wVEuBp3wNwu8lMst0dFy+m9+jYGTq o72Y3cDLa3uiiCQCUChNQN/+JxFAABE1Goll1wHj4mKv1HRsFb6hwlGYcnpLLgc+r+Ua UAyc110UiGUxQN5o3xnBBt3JtsAFFfEi1j00P1WNVFZl3eieYWWAittGbTLQKu360PDJ dUC1k/4gd5vI36BeS94RJHsvXsWi+N2+9xbtBfJeHKaCTIJLd/DcbnRys3mB+nr7zYBB qrNKhocJZ+c54lfQpbNrLB2b4rrskGddzJsI1eOtn6CCp4nuWPJAEzpC0luz2V3KEFUf 5G7Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h20si11617953edq.97.2021.03.29.00.29.16; Mon, 29 Mar 2021 00:29:16 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-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 devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230503AbhC2H2n (ORCPT + 6 others); Mon, 29 Mar 2021 03:28:43 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:15083 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230432AbhC2H2c (ORCPT ); Mon, 29 Mar 2021 03:28:32 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4F83zQ4LVzz19Jm0; Mon, 29 Mar 2021 15:26:26 +0800 (CST) Received: from thunder-town.china.huawei.com (10.174.179.202) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.498.0; Mon, 29 Mar 2021 15:28:21 +0800 From: Zhen Lei To: Greg Kroah-Hartman , Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-usb , devicetree , linux-arm-kernel , linux-kernel CC: Zhen Lei Subject: [PATCH 1/2] dt-bindings: usb: dwc3-imx8mp: Use the correct name for child node "snps, dwc3" Date: Mon, 29 Mar 2021 15:27:13 +0800 Message-ID: <20210329072714.2135-2-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 In-Reply-To: <20210329072714.2135-1-thunder.leizhen@huawei.com> References: <20210329072714.2135-1-thunder.leizhen@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.174.179.202] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org File snps,dwc3.yaml describes the schema of Synopsys DesignWare USB3 Controller, it directly or indirectly contains "$ref: usb.yaml". So the node name of "snps,dwc3" must start with "usb". Otherwise, the following warning will be displayed: Documentation/devicetree/bindings/usb/fsl,imx8mp-dwc3.example.dt.yaml: \ dwc3@38100000: $nodename:0: 'dwc3@38100000' does not match '^usb(@.*)?' From schema: Documentation/devicetree/bindings/usb/snps,dwc3.yaml In addition, replace "type: object" with "$ref: snps,dwc3.yaml#". Ensure that all properties of the child node comply with snps,dwc3.yaml. Signed-off-by: Zhen Lei --- Documentation/devicetree/bindings/usb/fsl,imx8mp-dwc3.yaml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) -- 1.8.3 Acked-by: Rob Herring diff --git a/Documentation/devicetree/bindings/usb/fsl,imx8mp-dwc3.yaml b/Documentation/devicetree/bindings/usb/fsl,imx8mp-dwc3.yaml index cb4c6f6d3a33a3f..974032b1fda04fb 100644 --- a/Documentation/devicetree/bindings/usb/fsl,imx8mp-dwc3.yaml +++ b/Documentation/devicetree/bindings/usb/fsl,imx8mp-dwc3.yaml @@ -52,11 +52,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 @@ -87,7 +84,7 @@ examples: dma-ranges = <0x40000000 0x40000000 0xc0000000>; ranges; - dwc3@38100000 { + usb@38100000 { compatible = "snps,dwc3"; reg = <0x38100000 0x10000>; clocks = <&clk IMX8MP_CLK_HSIO_AXI>,