-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Radxa Rock-s0 patches consolidation #8050
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
base: main
Are you sure you want to change the base?
Conversation
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (7)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including You can disable this status message by setting the ✨ Finishing Touches🧪 Generate Unit Tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Please hold off on this until I've had a chance to test on actual hardware.
/boot/dtb/rockchip/overlay:
|
I just verified that, with this patch, the older Rock-S0 board DOES boot from SDMMC. However it works now, it does hold the required GPIO4_D6 low. The WiFi requires that an external antenna is connected. What was wrong with the previous set up, where the kernel defaulted to using the internal antenna until the rk3308-s0-ext-antenna.dtbo was specified in armbianEnv.txt ? Why did this even need to change? Although the internal antenna is not great, it is always available, so it probably should be the default configuration. I like the fact that the pcm512a codec now requires its own overlay dtbo to enable. I'll approve this once the antenna issue is sorted. |
There is a OM8751D (SPDT) controlled by two GPIO ( This could possible be modeled as |
Thanks for the feedback; I move this PR to draft, since there is more work to do. Currently I have some personal life issues, I'll address this when I will sort them out. |
fffd224
to
82ead71
Compare
@brentr did you get further with that issue and can this be pushed forward? |
* remove the patches that are shredding upstream device tree * consolidation into single patch that apply over upstream dt * add pcm5102a device tree overlay for handy usage
* suggestion from @Kwiboo, see discussion in PR 7815
82ead71
to
762851e
Compare
@igorpecovnik I think there is still work to do on my side; I just rebased the branch against main, I hope to bring enough progress to make this PR mergeable/testable in this weekend. |
* enable internal antenna by default * remove unnecessary nodes from device tree
@brentr I improved the device tree with further fixes and suggestions by @Kwiboo. Now board antenna is selected by default, external antenna can be enabled with the overlay. Possible pcm5102a DAC can be enabled via overlay as well. Other device tree cruft has been removed (usb otg vbus regulator: hardware not present, sdcard juggling: not useful anymore?). The PR is ready for testing and review. |
Description
In order to tidy up (see this PR), Radxa Rock-s0 board patch has been revised to work with the mainline device tree, and avoid shred it. In case of possibile conflicts with mainline kernel, it will be easier to deal with.
@brentr I could not test directly the board, since I don't have it. I built a rockpi-s image, it works and dmesg is clean, but you have to tell if rock-s0 works ok.
Some other patches have been removed, as @Kwiboo suggested in the mentioned PR and refences to sound codec pcm5102a have been removed from the board device tree (there is no such codec mentioned in the official specs, is there?) and moved into
rk3308-pcm5102a.dtbo
device tree overlay.The internal/external antenna juggling has been left out for the moment, I need a bit of clarification, as I see there are two GPIOs to power each antenna, but what happens if both are pulled down? I guess it could be easier to handle with just a pinctrl definition rather than a
regulator-fixed
entry.This is only for rockchip64-edge 6.14 kernel, if it works can be backported to current 6.12 kernel; @brentr will decide what is best.
How Has This Been Tested?
Checklist: