devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Peter Chen <peter.chen@nxp.com>
To: Rob Herring <robh@kernel.org>
Cc: "kishon@ti.com" <kishon@ti.com>,
	"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
	dl-linux-imx <linux-imx@nxp.com>,
	"aniljoy@cadence.com" <aniljoy@cadence.com>,
	Jun Li <jun.li@nxp.com>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>
Subject: Re: [PATCH 2/2] doc: dt-binding: cdns-salvo-phy: add binding doc
Date: Mon, 2 Mar 2020 02:58:46 +0000	[thread overview]
Message-ID: <20200302025849.GB3834@b29397-desktop> (raw)
In-Reply-To: <CAL_JsqLQ+5iR_rTaS7D2cvS_psT0XKh=FLH0EmLo2EsE4cuXSA@mail.gmail.com>

On 20-02-28 07:37:14, Rob Herring wrote:
> On Fri, Feb 28, 2020 at 3:29 AM Peter Chen <peter.chen@nxp.com> wrote:
> >
> >
> > > >  .../bindings/phy/cdns,salvo-phy.yaml          | 47 +++++++++++++++++++
> > > >  1 file changed, 47 insertions(+)
> > > >  create mode 100644
> > > > Documentation/devicetree/bindings/phy/cdns,salvo-phy.yaml
> > > >
> > >
> > > My bot found errors running 'make dt_binding_check' on your patch:
> > >
> > > warning: no schema found in file:
> > > Documentation/devicetree/bindings/phy/cdns,salvo-phy.yaml
> > > /builds/robherring/linux-dt-
> > > review/Documentation/devicetree/bindings/phy/cdns,salvo-phy.yaml: ignoring, error
> > > parsing file
> > > Documentation/devicetree/bindings/display/simple-framebuffer.example.dts:21.16-
> > > 37.11: Warning (chosen_node_is_root): /example-0/chosen: chosen node must be
> > > at root node
> > > Documentation/devicetree/bindings/phy/cdns,salvo-phy.yaml:  while scanning a
> > > block scalar
> > >   in "<unicode string>", line 39, column 5 found a tab character where an indentation
> > > space is expected
> > >   in "<unicode string>", line 41, column 1
> > > Documentation/devicetree/bindings/Makefile:12: recipe for target
> > > 'Documentation/devicetree/bindings/phy/cdns,salvo-phy.example.dts' failed
> > > make[1]: *** [Documentation/devicetree/bindings/phy/cdns,salvo-phy.example.dts]
> > > Error 1
> > > Makefile:1263: recipe for target 'dt_binding_check' failed
> > > make: *** [dt_binding_check] Error 2
> > >
> > Hi Rob,
> >
> > After changing some format, I still got below errors, would you please point to
> > what's wrong with line 40, column 12? Thanks.
> 
> It is line numbers of the generated .example.dts you need to look at.

There is no cdns,salvo-phy.example.dts file at both source folder or
obj (-O) folder. I use https://github.com/robherring/dt-schema to
create dt-doc-validate. The command I use to verify yaml file:
make O=$OUTKNL dt_binding_check, OUTKNL is my kernel obj folder.

I am sorry I get below error:

make[1]: Entering directory '/home/b29397/work/projects/upstream/usb/outout/imx_v8'
  CHKDT   Documentation/devicetree/bindings/phy/cdns,salvo-phy.yaml
/home/b29397/work/projects/upstream/usb/Documentation/devicetree/bindings/phy/cdns,salvo-phy.yaml:  while parsing a block mapping
  in "<unicode string>", line 5, column 1
did not find expected key
  in "<unicode string>", line 42, column 5
/home/b29397/work/projects/upstream/usb/Documentation/devicetree/bindings/Makefile:12: recipe for target 'Documentation/devicetree/bindings/phy/cdns,salvo-phy.example.dts' failed
make[2]: *** [Documentation/devicetree/bindings/phy/cdns,salvo-phy.example.dts] Error 1
/home/b29397/work/projects/upstream/usb/Makefile:1262: recipe for target 'dt_binding_check' failed
make[1]: *** [dt_binding_check] Error 2
make[1]: Leaving directory '/home/b29397/work/projects/upstream/usb/outout/imx_v8'
Makefile:179: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2

  1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2 # Copyright (c) 2020 NXP
  3 %YAML 1.2
  4 ---
  5 $id: "http://devicetree.org/schemas/phy/cdns,salvo-phy.yaml#"
  6 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
  7 
  8 title: Cadence SALVO PHY
  9 
 10 maintainers:
 11   - Peter Chen <peter.chen@nxp.com>
 12 
 13 properties:
 14   compatible:
 15     enum:
 16       - nxp,salvo-phy
 17 
 18   reg:
 19     maxItems: 1
 20 
 21   clocks:
 22     maxItems: 1
 23 
 24   clock-names:
 25     items:
 26       - const: salvo_phy_clk
 27 
 28   "#phy-cells":
 29     const: 1
 30 
 31 required:
 32   - compatible
 33   - reg
 34   - "#phy-cells"
 35 
 36 additionalProperties: false
 37 
 38 examples:
 39     -|
 40     #include <dt-bindings/firmware/imx/rsrc.h>
 41 
 42     usb3phy: usb3-phy@5B160000 {
 43         compatible = "nxp,salvo-phy";
 44         reg = <0x5B160000 0x40000>;
 45         clocks = <&usb3_lpcg 4>;
 46         clock-names = "salvo_phy_clk";
 47         power-domains = <&pd IMX_SC_R_USB_2_PHY>;
 48         #phy-cells = <0>;
 49     };


-- 

Thanks,
Peter Chen

  reply	other threads:[~2020-03-02  2:58 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-27  6:27 [PATCH 1/2] phy: cadence: salvo: add salvo phy driver Peter Chen
2020-02-27  6:27 ` [PATCH 2/2] doc: dt-binding: cdns-salvo-phy: add binding doc Peter Chen
2020-02-27 17:08   ` Rob Herring
2020-02-28  9:29     ` Peter Chen
2020-02-28 13:37       ` Rob Herring
2020-03-02  2:58         ` Peter Chen [this message]
2020-03-02 16:14           ` Rob Herring
2020-03-03  9:23             ` Peter Chen
2020-03-12 10:16 ` [PATCH 1/2] phy: cadence: salvo: add salvo phy driver Peter Chen
2020-03-13 11:15   ` Kishon Vijay Abraham I

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200302025849.GB3834@b29397-desktop \
    --to=peter.chen@nxp.com \
    --cc=aniljoy@cadence.com \
    --cc=devicetree@vger.kernel.org \
    --cc=jun.li@nxp.com \
    --cc=kishon@ti.com \
    --cc=linux-imx@nxp.com \
    --cc=linux-usb@vger.kernel.org \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).