Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2945ybx; Tue, 29 Oct 2019 13:22:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqwW20SkFxD0s5oQIkV8KFaIEQCFbSE2BA5hyxoo0i/AVJqr2e7iMGeniB9et8NuzFh9iGNd X-Received: by 2002:a50:ab01:: with SMTP id s1mr28449424edc.192.1572380521541; Tue, 29 Oct 2019 13:22:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572380521; cv=none; d=google.com; s=arc-20160816; b=ULiEjMmfN2JTW94yQSjUGR1aBTlRSisPibz5JW2FsWfc8wjhdH/Dfx5vlA3ljwxYQO Y30mfcis4Jp7If9JFtHob4vsmJ6wzkWfHXb1M4zdjpYMSBJwhfgiLRceUqN9OiqHxsRy a0JW4cVpjmNs8Ty+Gbi8griKjl2/PdHFqQjFdwahvYyh4wknC/rERmVq5kmKSWWbSrC3 kHdU2OL7IpQY1HT/9zrCyuaVjkO9fblToG37iGTkJOMC/ZeeOGVby0qma6D7JIEU28SV J9/NJ+SWehJZ9yOU9QLEBHwWOL6tHZJEd1WegpU+LvJTHP6ZxxydZTEc2X0MtTGPkvG8 qiUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=yKGJeblw3+4ZvbwZ2oibLM8yC+AyWK5kD4Z4ZV3xqdE=; b=0tNYuw7VzMbJNSCUFJ4uv/7/XmAQSd/oR95lGqcdMVhpkxq78ZVMcT4B74/9sWXXdU H3W6SIGvULfz6wxJPBtyyXMNJbK9EuhAKm6oT8HWFXQWu7cle9v/6lHoU8UU8I9p5uXR GHH6RDSM/t2L7q2LPOTVtaIW/cSZFCTeaNPyPqYgFaLlz7QAQNH2zUiKJ3fdj2vJtojJ FoHvCEmG5HO8DACRk01ibmi90Aysceu/6Y/MzABK0F1410WxauZEjp//xuTAAP2N/niX Yk01fVrZ7YBi6gGukj2dXsgCOrzAZkgJz+JZOAWx6shYzWXHzpMrDvYB/E3pK9sSB1Ks QDYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="S/8rYQez"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 17si8792576ejt.431.2019.10.29.13.21.23; Tue, 29 Oct 2019 13:22:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="S/8rYQez"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726401AbfJ2UUF (ORCPT + 99 others); Tue, 29 Oct 2019 16:20:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:60510 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725951AbfJ2UUF (ORCPT ); Tue, 29 Oct 2019 16:20:05 -0400 Received: from mail-qt1-f174.google.com (mail-qt1-f174.google.com [209.85.160.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3E3DF2086A; Tue, 29 Oct 2019 20:20:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572380404; bh=Clnomsacv7T6a/ubml3afB3fbMamN9cVGn6ssr4l9qY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=S/8rYQezY07m5/GuMp+eUDHBLwmHpdOZheShfDHSS0hS/0TCprkl6ldKq5gKVDIyW P1t9wBcIP2MPDRDtsHKYMWNwZe8Nblj6cSyyGnQpVgsTCSR/+lYKFuFbfcjLqXdhMP lCrKFEYbyLKtfKqPEYsSY+I+THwku5JITalxHVS4= Received: by mail-qt1-f174.google.com with SMTP id l3so896qtp.2; Tue, 29 Oct 2019 13:20:04 -0700 (PDT) X-Gm-Message-State: APjAAAXaYPfVSYvJiP4EUh8kgUy5mjz288IKjy8VleAyYt/qLUnmZvs/ bTKdSfsfAWCoLTvy4xnW+5w1pGtLYBrTE1xWKA== X-Received: by 2002:ac8:70c4:: with SMTP id g4mr1134179qtp.136.1572380403327; Tue, 29 Oct 2019 13:20:03 -0700 (PDT) MIME-Version: 1.0 References: <1571387933-23397-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> <20191029015708.GA29561@bogus> In-Reply-To: From: Rob Herring Date: Tue, 29 Oct 2019 15:19:52 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] dt-bindings: phy: renesas: usb2-phy: convert bindings to json-schema To: Yoshihiro Shimoda Cc: "kishon@ti.com" , "mark.rutland@arm.com" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-renesas-soc@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 28, 2019 at 11:14 PM Yoshihiro Shimoda wrote: > > Hi Rob, > > Thank you for your review! > > > From: Rob Herring, Sent: Tuesday, October 29, 2019 10:57 AM > > > > On Fri, Oct 18, 2019 at 05:38:53PM +0900, Yoshihiro Shimoda wrote: > > > Convert Renesas R-Car generation 3 USB 2.0 PHY bindings documentation > > > to json-schema. > > > > > > Signed-off-by: Yoshihiro Shimoda > > > --- > > > .../devicetree/bindings/phy/rcar-gen3-phy-usb2.txt | 70 -------------- > > > .../devicetree/bindings/phy/renesas,usb2-phy.yaml | 106 +++++++++++++++++++++ > > > 2 files changed, 106 insertions(+), 70 deletions(-) > > > delete mode 100644 Documentation/devicetree/bindings/phy/rcar-gen3-phy-usb2.txt > > > create mode 100644 Documentation/devicetree/bindings/phy/renesas,usb2-phy.yaml > > > > > > > diff --git a/Documentation/devicetree/bindings/phy/renesas,usb2-phy.yaml > > b/Documentation/devicetree/bindings/phy/renesas,usb2-phy.yaml > > > new file mode 100644 > > > index 00000000..0f109c2 > > > --- /dev/null > > > +++ b/Documentation/devicetree/bindings/phy/renesas,usb2-phy.yaml > > > @@ -0,0 +1,106 @@ > > > +# SPDX-License-Identifier: GPL-2.0-only > > > +%YAML 1.2 > > > +--- > > > +$id: http://devicetree.org/schemas/phy/renesas,usb2-phy.yaml# > > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > > + > > > +title: Renesas R-Car generation 3 USB 2.0 PHY > > > + > > > +maintainers: > > > + - Yoshihiro Shimoda > > > + > > > +properties: > > > + compatible: > > > + oneOf: > > > > This: > > What does the "This:" mean? I was referring to the 3 lines below. I was trying to be clear which lines to replace with just 'const'. > If I replaced the "oneOf:" with "This:", > the following error happens when "make dt_binding_check": > > SCHEMA Documentation/devicetree/bindings/processed-schema.yaml > warning: no schema found in file: Documentation/devicetree/bindings/phy/renesas,usb2-phy.yaml > [snip]/Documentation/devicetree/bindings/phy/renesas,usb2-phy.yaml: ignoring, error in schema 'compatible' > Documentation/devicetree/bindings/Makefile:33: recipe for target 'Documentation/devicetree/bindings/processed-schema.yaml' failed > make[1]: *** [Documentation/devicetree/bindings/processed-schema.yaml] Error 255 > Makefile:1263: recipe for target 'dt_binding_check' failed > make: *** [dt_binding_check] Error 2 > > > > + - items: > > > + - enum: > > > + - renesas,usb2-phy-r8a77470 # RZ/G1C > > > > You can simplify to just: > > > > - const: renesas,usb2-phy-r8a77470 # RZ/G1C > > I'll fix it.