Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp777448pxu; Wed, 14 Oct 2020 13:30:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyaJs+/UMrTXP5j31NQ45akuXZbyD7Dq8sNkKTtHiytf7EQwZRyjCyLhL7yAUk5ykljp3gu X-Received: by 2002:a17:906:1bea:: with SMTP id t10mr832787ejg.305.1602707421252; Wed, 14 Oct 2020 13:30:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602707421; cv=none; d=google.com; s=arc-20160816; b=CLP3FbqeSjah9865hlG25kJzJJNnyFKjRZIG5DFCfR1CwesUM+sH7T5OspcHck4N6C c/CAwMdrTjUtwxTQg3/cUqS2WySNRS3P6sMfXGF00Cz7yojvNpxo64ghpLtCXmPZeEct 3VxXOcbD4e/a3yFbAoUd/jwgS2Pk6S8Z/6Betr94FSMN/8LkiDw56XUdiVy7eJUxOWex /JXXqcjOh6lK8VRXbIvzmMQrncW+xl3A99zhxpqjSNlFGJDZij78VzLmrwrKLa3JbSh1 VXxeWfD/BZyV/uT3lLmNgFD1uXcbqWR9sU3gCnxMcWxj7AJsfXL9CRQaaISgcyIdZT0A rfFw== 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=ZbsW4MiMEGi/eIJJ8gZJez+biov5QCwpWIakTDlH80M=; b=Yvb4WyxMuxqGivq/BGBKH98DYMAgr2V9IdJoDKVpWxTuM9yhpfgxeRy+MwcMLIlRdG 2k+mmiyfkaQZY3PTBOxrRfMLaXnKCNejmG5qV5x0nzMObNZOha56xUA3D+6R/13kzHR7 RxMlukGUZyvrLR1C3XKP6kzyetpluWdBijkD1nyxxx+zp124kfU8Rx5zsPqanVc6OvNi mm3q9Wkff8IA8GPZqa72NqM/1fO7yKzaLmrgI/8FK/KM1jiTET717uL6mQ3mwDrFw7GK WqLWFVZSONN/pjFC5jREl6zp3j/mgL4OiS7ihdZuOrkr5jrIpfL5kd7L7/aphzYtCwES sLQA== 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 b18si476316edh.71.2020.10.14.13.29.59; Wed, 14 Oct 2020 13:30:21 -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 S1730071AbgJNKPa (ORCPT + 99 others); Wed, 14 Oct 2020 06:15:30 -0400 Received: from mail.baikalelectronics.com ([87.245.175.226]:46182 "EHLO mail.baikalelectronics.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730080AbgJNKO0 (ORCPT ); Wed, 14 Oct 2020 06:14:26 -0400 Received: from localhost (unknown [127.0.0.1]) by mail.baikalelectronics.ru (Postfix) with ESMTP id 0692B803202E; Wed, 14 Oct 2020 10:14:16 +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 e4ldnC_N-Ltw; Wed, 14 Oct 2020 13:14:15 +0300 (MSK) From: Serge Semin To: Mathias Nyman , Felipe Balbi , 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 , , , , , , , , Subject: [PATCH 15/20] dt-bindings: usb: meson-g12a-usb: Validate DWC2/DWC3 sub-nodes Date: Wed, 14 Oct 2020 13:13:57 +0300 Message-ID: <20201014101402.18271-16-Sergey.Semin@baikalelectronics.ru> In-Reply-To: <20201014101402.18271-1-Sergey.Semin@baikalelectronics.ru> References: <20201014101402.18271-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 --- 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