Re: [PATCH v3] docs: dt-bindings: add DTS Coding Style document

From: Konrad Dybcio
Date: Sat Nov 25 2023 - 17:25:01 EST


[...]
>> +
>> +3. Unit addresses shall use lowercase hex, without leading zeros (padding).
>
> I'm curious, what's the reason for this ? I think it makes the sources
> less readable. If the rule is "just" because that's how DT sources are
> written today and it would be too complicated to change that, that's
> fine with me.
One more thing not mentioned is "no 0x prefix" (the unit address is *always*
interpreted as hex).

Lowercase hex seems to be (in my experience?) the consensus for everything
except preprocessor defines across the spectrum

No leading zeroes.. I guess it was just eye-pleasing for people that have
been doing devicetree to date, myself included.

Konrad