Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1299398pxu; Sat, 5 Dec 2020 10:38:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJxMDR8ZBsahLQIeWrE52g2Jet/GYUrljHaNK4/M+rE/w/Y0MuRv1FoCB4bZSzGKzNNEf/kU X-Received: by 2002:a50:f304:: with SMTP id p4mr9030003edm.118.1607193500554; Sat, 05 Dec 2020 10:38:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607193500; cv=none; d=google.com; s=arc-20160816; b=pt83BGahvlBXo4AsNPZh8voAOrxLMaiSw7lBDQJbUmCSaEW37zzj664qnPNB+a1Ebh tUZcIVl52yG4osXjKG3hFjAZulc1J+DPuEc3FxmSXKIz4KA2U63NNPjrxXzg3SfHGsN3 59uC59EbYh8hntaBtXMM02q9/UarsMf/cI0gwGSwEHzKfVVqIb60bGjmn1yPcBqKNmj2 vtcQk59TX7ql66pDdD2JQB7AhefD7PZ6ypATDn6/tCvqrbUO3mi34e29HO939fQtBinw YZDwki1TVQc4duHh6F1hNy9y1p2akHW/q/fisFf3xR3hCdZSzIRt5uXvW4F9RDNefeac qgXA== 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=SL5d0mD7B8dMTFh308qmysP5OsQ8B4doIk80xKF3T+o=; b=RaaOfrsUXtdqah3ucaSB2EVFq0o8sR8scIKeXBvffhB4z7AGO/wbl28fF0Tm8izfyw KxVpZWYCqTmrcrTWU+kWzu7j5IEtk5BcemYuNmbJ8KZyGprh4zbzTAyNt4m0+fY64kEl y5CfZumfUli2vT2XjCbgvX4LozTNjEWMQFKXPVeQLJDFMQL6OsyQ3F84Bl2V/FUIHBqM EAaCC+ztBuwzh7jLzNeNqCbhyWT+KUy4JV4NcMcbaSm7PDDvS+7As6Wd2CdcoJ+xr9/d 0m3vy8z03/T5f8s7ohJIWOQqjGtkpVZAR1jCp45oWdK5ipS6WXTpaBcJ4QeU72DdvJK1 4P2w== 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 r22si5179864edv.428.2020.12.05.10.37.57; Sat, 05 Dec 2020 10:38:20 -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 S1729585AbgLESTf (ORCPT + 99 others); Sat, 5 Dec 2020 13:19:35 -0500 Received: from ns2.chip.baikal.ru ([94.125.187.42]:53298 "EHLO mail.baikalelectronics.ru" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727605AbgLERoE (ORCPT ); Sat, 5 Dec 2020 12:44:04 -0500 From: Serge Semin To: Mathias Nyman , Felipe Balbi , Krzysztof Kozlowski , Greg Kroah-Hartman , Rob Herring , Chunfeng Yun , Ahmad Zainie CC: Serge Semin , Serge Semin , Alexey Malahov , Pavel Parkhomenko , Andy Gross , Bjorn Andersson , Manu Gautam , Roger Quadros , Lad Prabhakar , Yoshihiro Shimoda , Neil Armstrong , Kevin Hilman , Martin Blumenstingl , , , , , , , Subject: [PATCH v5 19/19] dt-bindings: usb: intel,keembay-dwc3: Validate DWC3 sub-node Date: Sat, 5 Dec 2020 18:24:26 +0300 Message-ID: <20201205152427.29537-20-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 Intel Keem Bay 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 --- Changelog v5: - This is a new patch created for the new Intel Keem Bay bindings file, which has been added just recently. --- .../devicetree/bindings/usb/intel,keembay-dwc3.yaml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/intel,keembay-dwc3.yaml b/Documentation/devicetree/bindings/usb/intel,keembay-dwc3.yaml index dd32c10ce6c7..43b91ab62004 100644 --- a/Documentation/devicetree/bindings/usb/intel,keembay-dwc3.yaml +++ b/Documentation/devicetree/bindings/usb/intel,keembay-dwc3.yaml @@ -34,11 +34,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 @@ -68,7 +65,7 @@ examples: #address-cells = <1>; #size-cells = <1>; - dwc3@34000000 { + usb@34000000 { compatible = "snps,dwc3"; reg = <0x34000000 0x10000>; interrupts = ; -- 2.29.2