status="ok" treated as disabled by DM

Roger Quadros rogerq at kernel.org
Fri Aug 20 12:01:17 CEST 2021



On 19/08/2021 14:37, Nishanth Menon wrote:
> On 14:03-20210819, Roger Quadros wrote:
>> Hi,
>>
>> If the device tree node has status="ok" then the u-boot DM will treat the device as disabled.
>> There are still quite many devices using "ok" instead of "okay" or no status and those devices will not be bound.
>>
>> What is the right fix?
>> 1) make u-boot DM to treat satus="ok" as enabled.
>> 2) fix device tree by changing "ok" to "okay".
>>
>> cheers,
>> -roger
> https://github.com/devicetree-org/dt-schema/blob/master/schemas/dt-core.yaml#L36
> 
> 
> I believe, the correct fix is (2) change the dt to "okay".
> 

Also in u-boot code it does mention to fix DT node status to "okay".
https://elixir.bootlin.com/u-boot/v2021.07/source/lib/fdtdec.c#L278

--
cheers,
-roger


More information about the U-Boot mailing list