-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
ODROID-HC4 extras (LED control, DDR/CPU thermal in hwmon, PWM control) #2552
Conversation
Signed-off-by: Ricardo Pardini <ricardo@pardini.net>
- this lets lm-sensors see the ddr/cpu temps, on HC4 at least Signed-off-by: Ricardo Pardini <ricardo@pardini.net>
- for manual/auto control of pwm fan in the HC4 - original is at tobetter/linux@8a63de9 - discussion https://patchwork.kernel.org/project/linux-hwmon/patch/20201125163242.GA1264232@paju/ - I'd be much happier with a cooling map in the DTB, but this makes my fans spin correctly via fancontrol - in a board_odroidhc4/ patch folder since it's very specific to HC4 but impacts a whole subsystem Signed-off-by: Ricardo Pardini <ricardo@pardini.net>
Worse case we can implement SPI boot loader in a binary form - but I guess this should probably be a separate project / PR. And possible without Petitboot?
Like many hacks that resist in our patch areas :) Guenter looks like he knows what he is talking about ... "In-kernel thermal control would in general be preferred" which I do agree with. Perhaps break this whole thing to - "yes we merge at once" and "other things". Doing fan the correct way will probably take some time? SPI boot too. |
The HC4 has no eMMC. That means the juggle needed to write to SPI on the C4 (shorten the eMMC band to 4bits, use the freed pins to talk via SPI to NOR) should not be needed. That way we could have a single DTB for the HC4 with the NOR permanently enabled/writable, and just write our own u-boot there (during This PR at this point contains no changes in this aspect.
Yes. In this aspect the DTS for the HC4 is severely lacking. There are versions around with the trip points etc, I could hunt around and try to cobble one together, but would take time, and end nowhere. It's a new SBC so vendor should supply it eventually. I think N2+ has it already. This PR at this point using that hacky patch at least lets me run the box via fancontrol, which is far from ideal, but does work.
See above. I proposed this as a "merge now" while I work on the other stuff. |
This is not going to work, since kernel binary is common. We can have per board patches only for u-boot. This patch has to be a part of meson64 family. If it won't break others, namely N2+, we can merge. |
You mean that the official release builds a single kernel per-family? And board-xxx specific patch folders are ignored (or always included?) -- wondering how to handle this... |
Without looking into the code ... patch per board is supported since this works and make sense on u-boot. But kernel is identical per family. Its anomaly ... if you build image for some other board, patch per this board will not be include. I think we should only check if it affects Odroid N2+ (fan function) and merge. |
Yes, I never considered the official builds vs board-patches. I will split this into 3 PRs
|
Some patches for the ODROID-HC4.
make the red led accessible in /sys/class/leds/ (so it can be eg turned off, just like the blue led)
add thermal support for cpu/ddr, in the hopes of getting the fan in HC4 going according to temps
another @tobetter patch for changing the manual/auto control of pwm1 via pwm1_enable in hwmon
still missing / much wanted: