Re: led-gpios binding reporting a weird error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Feb 19, 2021 at 3:24 AM Maxime Ripard <maxime@xxxxxxxxxx> wrote:
>
> On Mon, Feb 01, 2021 at 10:52:35AM +0100, Maxime Ripard wrote:
> > On Thu, Jan 14, 2021 at 12:15:04PM +0100, Maxime Ripard wrote:
> > > Hi Rob,
> > >
> > > I just encountered a weird error with the led-gpios bindings.

Sorry lost in the ether...

> > >
> > > Indeed, if we run, on today's next and the current master of the
> > > dt-schema tools:
> > >
> > > DT_SCHEMA_FILES=Documentation/devicetree/bindings/leds/leds-gpio.yaml make -j18 dt_binding_check
> > >
> > > we end up with:
> > >   CHECK   Documentation/devicetree/bindings/leds/leds-gpio.example.dt.yaml
> > > /home/max/Work/allwinner/build/arm64/Documentation/devicetree/bindings/leds/leds-gpio.example.dt.yaml: leds: led-1:default-state:0: 'keep' is not of type 'array'
> > >     From schema: /home/max/Work/repos/linux/Documentation/devicetree/bindings/leds/leds-gpio.yaml
> > > /home/max/Work/allwinner/build/arm64/Documentation/devicetree/bindings/leds/leds-gpio.example.dt.yaml: run-control: led-0:default-state:0: 'off' is not of type 'array'
> > >     From schema: /home/max/Work/repos/linux/Documentation/devicetree/bindings/leds/leds-gpio.yaml
> > > /home/max/Work/allwinner/build/arm64/Documentation/devicetree/bindings/leds/leds-gpio.example.dt.yaml: run-control: led-1:default-state:0: 'on' is not of type 'array'
> > >     From schema: /home/max/Work/repos/linux/Documentation/devicetree/bindings/leds/leds-gpio.yaml
> > >
> > > What's being especially weird is that linux,default-trigger has the
> > > exact same definition than default-state in leds/common.yaml (aside from
> > > the set of valid values), and just works fine.
> > >
> > > Changing the name of default-state to something else also doesn't change
> > > anything, so it doesn't look like this is some other schema interfering.
> > > Do you have an idea?

What does processed-schema-examples.json (run thru json_pp) look like
for 'default-state'?

> > Ping? This error is still there on today's -next
>
> and it looks like it's still there with yesterday's too

I'm not seeing it in my CI test:

https://gitlab.com/robherring/linux-dt-bindings/-/jobs/1041817756

I am seeing a change of yours causing warnings. :(

Rob



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux