|Summary:||[new driver] apuled(4): add support for LEDs on PC Engines APU boards.|
|Component:||kern||Assignee:||freebsd-bugs mailing list <bugs>|
|Severity:||Affects Only Me||CC:||douglas, kwhite, olivier, olivier, philipp|
Description lab 2014-05-13 15:30:00 UTC
Driver for adding support for LEDs and mode switch on PC engines APU boards. Can be built as a module or linked into kernel. Upon loading the driver creates four devices. Three led(4) devices: /dev/led/led1 /dev/led/led2 /dev/led/led3 One for the mode switch: /dev/modesw Reading from /dev/modesw will return '1' or '0' depending upon if mode switch is pressed or not.
Comment 1 olivier 2014-10-22 07:11:06 UTC
For compiling on latest -current, we just had to replace the getenv() by kern_getenv().
Comment 2 Keith White 2015-05-24 18:30:06 UTC
Created attachment 157102 [details] patch modified as diffs from current (11.0) Tested on APU. Happy LEDs...
Comment 3 lab 2017-01-17 15:47:52 UTC
Created attachment 178995 [details] Module to support LEDs on both APU1 and APU2 boards. The updated patch has logic to detect if it is running on an APU1 or an APU2 board from PC Engines. It will then add support for all three LEDs and switch on the front of the box.
Comment 4 Olivier Cochard 2017-03-03 12:43:03 UTC
I've created a phabricator review about this new drivers: https://reviews.freebsd.org/D9876
Comment 5 lab 2017-05-09 15:36:18 UTC
Created attachment 182445 [details] Updated APU led driver that support APU1, APU2, and APU3 Code in phabricator also updated.