-
Notifications
You must be signed in to change notification settings - Fork 8.3k
boards: npx: Fix address mismatches #78445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
boards: npx: Fix address mismatches #78445
Conversation
This fixes the following warning: > unit address and first address in 'reg' (0x1a0000000000000000) don't > match for /soc/peripheral@50000000/i3c@36000/wm8904@1a Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
This fixes the following warning: > unit address and first address in 'reg' (0x1a0000000000000000) don't > match for /soc/peripheral@50000000/i3c@36000/wm8904@1a Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
4312294 to
600cd55
Compare
It looks like the large register address is coming from the code here to calculate register addresses on each node:
|
No, it's correct. Your mistake here is thinking this node has three addresses. This node only has ONE address, which takes 96 bits to encode. Note that #address-cells is <3> which means 3 32-bit cells are required to encode the address, and also read the binding for i3c-device.yaml which makes it clear as well what this specific address encoding means. |
This silences the following warning:
I am not sure however, whether this is just painting over a DT bug: It seems like the existing code withreg = <0x1a 0 0>;andwm8904@1ais already correct. Where does the huge number (0x1a0000000000000000) come from?And ideas?