[U-Boot] [UBOOT PATCH 2/2] dm: core: Scan "/firmware" node by default

Michal Simek michal.simek at xilinx.com
Mon Aug 20 07:04:44 UTC 2018


On 17.8.2018 20:03, Simon Glass wrote:
> Hi Michael,
> 
> On 17 August 2018 at 07:22, Michal Simek <michal.simek at xilinx.com> wrote:
>> On 17.8.2018 14:49, Simon Glass wrote:
>>> On 10 August 2018 at 02:45, Rajan Vaja <rajan.vaja at xilinx.com> wrote:
>>>> All Linux firmware drivers are put under "/firmware" node
>>>> and it has support to populate "/firmware" node by default.
>>>>
>>>> u-boot and Linux can share same DTB. In this case, driver
>>>> probe for devices under "/firmware" will not be invoked
>>>> as "/firmware" does not have its own "compatible" property.
>>>>
>>>> This patch scans "/firmware" node by default like "/clocks".
>>>>
>>>> Signed-off-by: Rajan Vaja <rajan.vaja at xilinx.com>
>>>> ---
>>>>  drivers/core/root.c | 8 +++++++-
>>>>  1 file changed, 7 insertions(+), 1 deletion(-)
>>>
>>> Reviewed-by: Simon Glass <sjg at chromium.org>
>>>
>>> We should add a firmware device for sandbox.
>>>
>>
>> what to add there?
> 
> It can be any device, but I suggest something simple like a
> demo-shape? Then you can check that it is accessible in a test in
> test/dm/core.c, perhaps.

Rajan: please take a look at it.

Thanks,
Michal



More information about the U-Boot mailing list