Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4406322pxu; Tue, 20 Oct 2020 16:52:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzbAHguECebRqD3uz6PSDz1CIYHczDrl9ULgnXsJ1ibskR9Tji2CbMVRJVfV4TJNJMZNQu X-Received: by 2002:a17:906:5596:: with SMTP id y22mr622220ejp.189.1603237968533; Tue, 20 Oct 2020 16:52:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603237968; cv=none; d=google.com; s=arc-20160816; b=MD1twLGWgbqj2qKEqtC4HN/oZARwkaIbX2KiSo9NlDoPQnLl7u5UhY28JRnIaeWnhy xcJmKf5CXdZOWLqgfSqpfyfrPXmz++6L0mx8X4qqpgo7TKc/uoTB3ygxuxva0MP/TBmh RHWlqCTaJgEAkEVBu/Yywq3C345nukKRynJ1x7D0HcrkcTMlFMofxmP/vloquX/6imBH 0u/u3sQldj4Ev5HmnPgzKglLXy64WLD8jwTL4s/qhaucp6leaRtyz+RQq+4o3g7Zni7d idtKMc6xCaplqQlOOeLqMxoSrj8pF+hc/Eu2yn19xDBd6zYeV2O1J6NCqjJVYYUbeDaX akGg== 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=H8PYyNpPNqgzESRRewFenJ+08pYHE00U50bMtr6kkok=; b=C4jggqyaic2EwRRzZM3qiHOR1VfUSWyJlWHIfWpxU/WW9hlypE3O5BBpwYKwfSIEuY lCT44tZTTPlaUqSEhlX/Jr8+Ykw671Kb95t6+5AeLypf6r3X5b6IQImRJ/l7v1iyavlP hp59+uKwTEsBQDjwqOdqeAhL4JdeEneUVNb1c6A6O6qQZiLjS91dz9x8WnfcxGt/cnze 0UWLNtxHP9882Hh8ivJrsSpisJwWHN6LRRp1eGR5YTPJ1iZ5S2ihpt2pR36GWzp4UVjT NJLfmDNT7ih80AVH5sVyrCkKTNqX8Koa/9SuwI7ks06xH+cm9XjWQJcKmaHKmmopgsZb EKmg== 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 t14si134910ejy.440.2020.10.20.16.52.26; Tue, 20 Oct 2020 16:52:48 -0700 (PDT) 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 S2393622AbgJTLWG (ORCPT + 99 others); Tue, 20 Oct 2020 07:22:06 -0400 Received: from mail.baikalelectronics.com ([87.245.175.226]:51556 "EHLO mail.baikalelectronics.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393567AbgJTLVa (ORCPT ); Tue, 20 Oct 2020 07:21:30 -0400 Received: from localhost (unknown [127.0.0.1]) by mail.baikalelectronics.ru (Postfix) with ESMTP id 2FA83803017D; Tue, 20 Oct 2020 11:21:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at baikalelectronics.ru Received: from mail.baikalelectronics.ru ([127.0.0.1]) by localhost (mail.baikalelectronics.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zBgXc2_izpbG; Tue, 20 Oct 2020 14:21:26 +0300 (MSK) From: Serge Semin To: Mathias Nyman , Felipe Balbi , Krzysztof Kozlowski , Greg Kroah-Hartman , Rob Herring , Kevin Hilman , Neil Armstrong , Jerome Brunet , Martin Blumenstingl CC: Serge Semin , Serge Semin , Alexey Malahov , Pavel Parkhomenko , Andy Gross , Bjorn Andersson , Manu Gautam , Roger Quadros , Lad Prabhakar , Yoshihiro Shimoda , , , , , , , , Rob Herring , Subject: [PATCH v3 14/16] dt-bindings: usb: meson-g12a-usb: Validate DWC2/DWC3 sub-nodes Date: Tue, 20 Oct 2020 14:20:59 +0300 Message-ID: <20201020112101.19077-15-Sergey.Semin@baikalelectronics.ru> In-Reply-To: <20201020112101.19077-1-Sergey.Semin@baikalelectronics.ru> References: <20201020112101.19077-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 Amlogic G12A USB DT sub-nodes are supposed to be compatible with the generic DWC USB2 and USB3 devices. Since now we've got DT schemas for both of the later IP cores let's make sure that the Amlogic G12A USB DT nodes are fully evaluated including the DWC sub-nodes. Signed-off-by: Serge Semin Reviewed-by: Neil Armstrong Reviewed-by: Rob Herring Reviewed-by: Martin Blumenstingl --- Changelog v2: - Use "oneOf: [dwc2.yaml#, snps,dwc3.yaml#]" instead of the bulky "if: properties: compatibe: ..." statement. --- .../devicetree/bindings/usb/amlogic,meson-g12a-usb-ctrl.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/usb/amlogic,meson-g12a-usb-ctrl.yaml b/Documentation/devicetree/bindings/usb/amlogic,meson-g12a-usb-ctrl.yaml index a4b44a16aaef..7b2dc905c8ce 100644 --- a/Documentation/devicetree/bindings/usb/amlogic,meson-g12a-usb-ctrl.yaml +++ b/Documentation/devicetree/bindings/usb/amlogic,meson-g12a-usb-ctrl.yaml @@ -78,7 +78,9 @@ properties: patternProperties: "^usb@[0-9a-f]+$": - type: object + oneOf: + - $ref: dwc2.yaml# + - $ref: snps,dwc3.yaml# additionalProperties: false -- 2.27.0