[U-Boot] Microblaze gpio reset handling

Simon Glass sjg at chromium.org
Mon Jul 16 05:19:29 UTC 2018


Hi Michal,

On 12 July 2018 at 08:28, Michal Simek <michal.simek at xilinx.com> wrote:
> Hi Simon,
>
> I have looked at converting the rest of microblaze drivers to DM and I
> am curious why I can't use top level compatible string in DM based drivers.
> I am looking at ways how to move gpio and microblaze soft reset to
> sysreset framework and I see that core is not able to find out my high
> level xlnx,microblaze compatible string.
>
>
> / {
>         #address-cells = <1>;
>         #size-cells = <1>;
>         compatible = "xlnx,microblaze";
>         model = "Xilinx MicroBlaze";
>         hard-reset-gpios = <&reset_gpio 0 1>;
>
> As far I have seen only nodes are checked but unfortunately Microblaze
> is using hard-reset-gpios in root for years and will be good to keep it
> like that.
>
> I have already tested to bind that driver from board file like
> device_bind_driver(gd->dm_root, "microblaze_sysreset", "reset", NULL);
> which is working fine but just asking if there is another solution for this.

Not at present. But I think we should actually try to bind a driver to
the root node. Probably needs changes to root.c.

Regards,
Simon


More information about the U-Boot mailing list