Enhancement request: moving hardcoded hardware setting to device tree. #124
|
@jnilo1 to be support different platform with some codebase, could we move hardware related settings to device-tree? There are a few that I have identified:
Thanks for your consideration! |
Replies: 6 comments
|
Hi @hlyi, Good list — it pushed us to draw a clean line, and most of it is now implemented (next release). The principle we adopted:
The G4 is the same RTL8196E silicon, so things like the UART1 pin-mux bits or the MII field clears are identical on every board and gain nothing from being data. What differs per board — pins, the Ethernet port, memory size, flow-control wiring — is now (or already was) DT. Your six items
Porting recipe (the whole kernel-side surface for a new board)
Userdata side, nothing is board-specific anymore: s40button discovers its pin from your DTS. What we deliberately did not doNo pinctrl driver, no |
|
@jnilo1 , wow, you are so fast and efficient 👍👍. Do you mind push your changes into the repo, so I can test it out? Thanks! |
|
@hlyi — pushed: v3.10.0 is out and contains everything described above (device-tree board description, s40button v2, bridge v1.2 with DT seeding, plus the #125 NTP fix). The porting recipe from my previous comment is now the released workflow: |
|
@jnilo1 Thanks for releasing new codes. quick feedback on items:
|
|
Thanks for the scorecard, @hlyi — great to see the status LED and reset button confirmed on real G4 hardware; that's the first external validation of the v3.10.0 board mechanism. Where each open item is being handled:
|
|
This request has been broken down to multiple sub-requests. Closing this one. |
Thanks for the scorecard, @hlyi — great to see the status LED and reset button confirmed on real G4 hardware; that's the first external validation of the v3.10.0 board mechanism.
Where each open item is being handled:
PIN_MUX_SEL_2handling becomes DT-aware (gpio-line-names→ hands-off,member-ports→ ASIC LED, otherwise default). Planned for the next release.blmode_pulsetrigger in the bridge (your exact sequence), kept separate fromnrst_pulseso plain application resets keep working. Next release as well.