Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) .. SPDX-License-Identifier: GPL-2.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) ===================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) Kernel driver for Spreadtrum SC27XX
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) ===================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) /sys/class/leds/<led>/hw_pattern
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) --------------------------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) Specify a hardware pattern for the SC27XX LED. For the SC27XX
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) LED controller, it only supports 4 stages to make a single
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) hardware pattern, which is used to configure the rise time,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) high time, fall time and low time for the breathing mode.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) For the breathing mode, the SC27XX LED only expects one brightness
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) for the high stage. To be compatible with the hardware pattern
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) format, we should set brightness as 0 for rise stage, fall
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) stage and low stage.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) - Min stage duration: 125 ms
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) - Max stage duration: 31875 ms
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) Since the stage duration step is 125 ms, the duration should be
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) a multiplier of 125, like 125ms, 250ms, 375ms, 500ms ... 31875ms.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) Thus the format of the hardware pattern values should be:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) "0 rise_duration brightness high_duration 0 fall_duration 0 low_duration".