<div dir="ltr"><div dir="ltr">Hi Jonathan,<div><br></div><div>Thanks a lot for your effort!</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 4 Mar 2021 at 17:42, Jonathan Neuschäfer <<a href="mailto:j.neuschaefer@gmx.net">j.neuschaefer@gmx.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Thu, Mar 04, 2021 at 05:21:36PM +0200, Tomer Maimon wrote:<br>
> Hi Jonathan,<br>
> <br>
> Thanks a lot for sending the patch,<br>
> <br>
> I think that when it related to the SoC EVB it can stay with the<br>
> genral compatible name nuvoton,npcm750<br>
> <br>
> you can see it also in,<br>
> <a href="https://github.com/torvalds/linux/blob/master/arch/arm/boot/dts/aspeed-ast2500-evb.dts#L8" rel="noreferrer" target="_blank">https://github.com/torvalds/linux/blob/master/arch/arm/boot/dts/aspeed-ast2500-evb.dts#L8</a><br>
<br>
To make the single compatible string match the DT binding, I'll have to<br>
write the binding a little differently. I wrote it like this:<br>
<br>
compatible:<br>
oneOf:<br>
- description: NPCM750 based boards<br>
items:<br>
- enum:<br>
- nuvoton,npcm750-evb # NPCM750 evaluation board<br>
- const: nuvoton,npcm750<br>
<br></blockquote><div>I think it should be like the exemple above </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
I guess I could do something like this:<br>
<br>
compatible:<br>
oneOf:<br>
- description: NPCM750 development board<br>
const: nuvoton,npcm750<br>
<br>
<br>
And later add this part, when needed:<br>
<br>
- description: NPCM750 based boards<br>
items:<br>
- enum:<br>
- vendor,foo-bar-bmc<br>
- const: nuvoton,npcm750<br>
<br>
<br>
What do you think?<br>
<br>
<br>
Thanks,<br>
Jonathan Neuschäfer<br>
<br>
<br>
> On Wed, 3 Mar 2021 at 17:47, Jonathan Neuschäfer <<a href="mailto:j.neuschaefer@gmx.net" target="_blank">j.neuschaefer@gmx.net</a>><br>
> wrote:<br>
[...]<br>
> > / {<br>
> > model = "Nuvoton npcm750 Development Board (Device Tree)";<br>
> > - compatible = "nuvoton,npcm750";<br>
> > + compatible = "nuvoton,npcm750-evb", "nuvoton,npcm750";<br></blockquote><div><br></div><div>Thanks,</div><div><br></div><div>Tomer</div><div> </div></div></div>