Bug 189772 - [NEW DRIVER] apuled(4): Support LEDs on PC Engines APU (1/2/3) boards
Summary: [NEW DRIVER] apuled(4): Support LEDs on PC Engines APU (1/2/3) boards
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: Normal Affects Some People
Assignee: freebsd-bugs mailing list
URL: https://reviews.freebsd.org/D9876
Keywords: feature, needs-qa, patch
Depends on:
Blocks:
 
Reported: 2014-05-13 15:30 UTC by lab
Modified: 2018-08-31 09:04 UTC (History)
8 users (show)

See Also:


Attachments
apuled.tgz (4.51 KB, text/plain)
2014-05-13 15:30 UTC, lab
no flags Details
patch modified as diffs from current (11.0) (9.89 KB, patch)
2015-05-24 18:30 UTC, Keith White
no flags Details | Diff
Module to support LEDs on both APU1 and APU2 boards. (4.23 KB, application/octet-stream)
2017-01-17 15:47 UTC, lab
no flags Details
Updated APU led driver that support APU1, APU2, and APU3 (16.03 KB, text/plain)
2017-05-09 15:36 UTC, lab
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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 freebsd_committer 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.
Comment 6 Eitan Adler freebsd_committer freebsd_triage 2018-05-20 23:50:29 UTC
For bugs matching the following conditions:
- Status == In Progress
- Assignee == "bugs@FreeBSD.org"
- Last Modified Year <= 2017

Do
- Set Status to "Open"