[Bug 224512] new device ID for nctgpio (APU3)
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Dec 21 21:53:41 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224512
Bug ID: 224512
Summary: new device ID for nctgpio (APU3)
Product: Base System
Version: 11.1-STABLE
Hardware: amd64
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: kern
Assignee: freebsd-bugs at FreeBSD.org
Reporter: mike at sentex.net
Created attachment 189024
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=189024&action=edit
patch against driver source
The PCEngines APU3 has a new gpio chip that is not recognized by the existing
driver due to a new ID. The attached simple diff provides GPIO functionality
to the APU3 and FreeBSD.
kldload /tmp/nctgpio.ko
gpio0: <Nuvoton NCT5104D (PC-Engines APU3)> at port 0x2e-0x2f on isa0
gpiobus0: <GPIO bus> on gpio0
gpioc0: <GPIO controller> on gpio0
# gpioctl -l
pin 00: 1 GPIO00<IN,OD>
pin 01: 1 GPIO01<IN,OD>
pin 02: 1 GPIO02<IN,OD>
pin 03: 1 GPIO03<IN,OD>
pin 04: 1 GPIO04<IN,OD>
pin 05: 1 GPIO05<IN,OD>
pin 06: 1 GPIO06<IN,OD>
pin 07: 1 GPIO07<IN,OD>
pin 08: 1 GPIO08<IN,OD>
pin 09: 1 GPIO09<IN,OD>
pin 10: 1 GPIO10<IN,OD>
pin 11: 1 GPIO11<IN,OD>
pin 12: 1 GPIO12<IN,OD>
pin 13: 1 GPIO13<IN,OD>
pin 14: 1 GPIO14<IN,OD>
pin 15: 1 GPIO15<IN,OD>
# sysctl -a | grep gpio
dev.gpioc.0.%parent: gpio0
dev.gpioc.0.%pnpinfo:
dev.gpioc.0.%location:
dev.gpioc.0.%driver: gpioc
dev.gpioc.0.%desc: GPIO controller
dev.gpioc.%parent:
dev.gpiobus.0.%parent: gpio0
dev.gpiobus.0.%pnpinfo:
dev.gpiobus.0.%location:
dev.gpiobus.0.%driver: gpiobus
dev.gpiobus.0.%desc: GPIO bus
dev.gpiobus.%parent:
dev.gpio.0.%parent: isa0
dev.gpio.0.%pnpinfo:
dev.gpio.0.%location:
dev.gpio.0.%driver: gpio
dev.gpio.0.%desc: Nuvoton NCT5104D (PC-Engines APU3)
dev.gpio.%parent:
#
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list