From owner-freebsd-bugs@freebsd.org Thu Dec 21 21:53:41 2017 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B0D77E8DAD2 for ; Thu, 21 Dec 2017 21:53:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9C0B97A86D for ; Thu, 21 Dec 2017 21:53:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vBLLrftA088565 for ; Thu, 21 Dec 2017 21:53:41 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 224512] new device ID for nctgpio (APU3) Date: Thu, 21 Dec 2017 21:53:41 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: mike@sentex.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Dec 2017 21:53:41 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224512 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@FreeBSD.org Reporter: mike@sentex.net Created attachment 189024 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D189024&action= =3Dedit patch against driver source The PCEngines APU3 has a new gpio chip that is not recognized by the existi= ng driver due to a new ID. The attached simple diff provides GPIO functionali= ty to the APU3 and FreeBSD. kldload /tmp/nctgpio.ko gpio0: at port 0x2e-0x2f on isa0 gpiobus0: on gpio0 gpioc0: on gpio0 # gpioctl -l pin 00: 1 GPIO00 pin 01: 1 GPIO01 pin 02: 1 GPIO02 pin 03: 1 GPIO03 pin 04: 1 GPIO04 pin 05: 1 GPIO05 pin 06: 1 GPIO06 pin 07: 1 GPIO07 pin 08: 1 GPIO08 pin 09: 1 GPIO09 pin 10: 1 GPIO10 pin 11: 1 GPIO11 pin 12: 1 GPIO12 pin 13: 1 GPIO13 pin 14: 1 GPIO14 pin 15: 1 GPIO15 # sysctl -a | grep gpio dev.gpioc.0.%parent: gpio0 dev.gpioc.0.%pnpinfo:=20 dev.gpioc.0.%location:=20 dev.gpioc.0.%driver: gpioc dev.gpioc.0.%desc: GPIO controller dev.gpioc.%parent:=20 dev.gpiobus.0.%parent: gpio0 dev.gpiobus.0.%pnpinfo:=20 dev.gpiobus.0.%location:=20 dev.gpiobus.0.%driver: gpiobus dev.gpiobus.0.%desc: GPIO bus dev.gpiobus.%parent:=20 dev.gpio.0.%parent: isa0 dev.gpio.0.%pnpinfo:=20 dev.gpio.0.%location:=20 dev.gpio.0.%driver: gpio dev.gpio.0.%desc: Nuvoton NCT5104D (PC-Engines APU3) dev.gpio.%parent:=20 # --=20 You are receiving this mail because: You are the assignee for the bug.=