Jump to content

[Armbian build PR] - BPI-CM4: `Waveshare`: CM4-IO-BASE-B: `Fan support`


Recommended Posts

Posted
  • v2: arch: arm64: dts: amlogic: meson-g12b-waveshare-cm4-io-base-b
Fan, RTC and USB support
RTC requires rtc pcf85063 driver
Fan requires hwmon emc2305 driver (new addition)
  • hwmon: emc2305: fixups for driver
The driver had a number of issues, checkpatch warnings/errors,
and other limitations, so fix these up to make it usable.

Additional:
hwmon: emc2305: Change OF properties pwm-min & pwm-max to u8
hwmon: emc2305: Add calls to initialize cooling maps

How was it tested? Built a new image with the following changes and booted to make sure it works as it should.

Inactive:

== Waveshare CM4-IO-BASE-B with BPI-CM4 Module (6.1.57-current-meson64)
CPU usage:   0
Processors:  Cortex-A53 @ 2016MHz 51°C, Cortex-A73 @ 2400MHz 53°C
Cur freq:    1000MHz 2400MHz
Fan:         0 RPM (0) <-- FAN INACTIVE
Online:      0-5
Governor:    ondemand
Memory:      3.7G 331M
Entropy:     256
Uptime:      14:12:26 up 18 min, 4 users, load average: 0.01, 0.24, 0.31

Active:

== Waveshare CM4-IO-BASE-B with BPI-CM4 Module (6.1.57-current-meson64)
CPU usage:   90
Processors:  Cortex-A53 @ 2016MHz 82°C, Cortex-A73 @ 2400MHz 82°C
Cur freq:    2016MHz 2400MHz
Fan:         3368 RPM (255) <-- FAN ACTIVE
Online:      0-5
Governor:    ondemand
Memory:      3.7G 430M
Entropy:     256
Uptime:      14:19:09 up 25 min, 4 users, load average: 1.76, 1.06, 0.64

NOTE: The temps are not as they should be as they sent me a 12V instead of a 5V fan. I decided to keep the 12V to do the testing with, as I wait for the 5V to arrive. The difference between them shouldn't change the basic functionality, only the quality of the cooling.

Checklist:

  • [ ] My code follows the style guidelines of this project
  • [ ] I have performed a self-review of my own code
  • [ ] I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [X] My changes generate no new warnings
  • [ ] Any dependent changes have been merged and published in downstream modules

View the full article

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines