Re: More pchgpio(4)

2022-02-27 Thread James Hastings
On Sun, Oct 10, 2021 at 11:42:31PM +0200, Mark Kettenis wrote: > > Date: Sat, 9 Oct 2021 22:27:52 +0200 (CEST) > > From: Mark Kettenis > > > > > Date: Sat, 9 Oct 2021 20:55:10 +0200 (CEST) > > > From: Mark Kettenis > > > > > > This time adding support for Sunrisepoint-H and Sunrisepoint-LP. > >

patch: ifq_enqueue.9 ifq_deq_begin.9 typo

2021-03-20 Thread James Hastings
Spotted this one while reading ifq_enqueue(9). s/struft/struct. I grepped the tree for "struft" and found one more in ifq_deq_begin(9). Index: share/man/man9/ifq_deq_begin.9 === RCS file: /cvs/src/share/man/man9/ifq_deq_begin.9,v

Re: Lenovo X1 gen 8 touchpad interrupt: pchgpio(4)

2020-11-03 Thread James Hastings
On 10/14/20, Mark Kettenis wrote: >> From: James Hastings >> Date: Sun, 11 Oct 2020 03:49:11 -0400 (EDT) >> >> On Thu, 08 Oct 2020 20:29:38 + Mark Kettenis wrote: >> > Diff below adds a driver for the GPIO controller found on the Intel >> &g

amdgpio(4): acpi_attach_args resources

2020-05-21 Thread James Hastings
correction, s/aaa_memt/aaa_bst[0]/ > stop parsing _CRS and use resources from struct acpi_attach_args. Index: dev/acpi/amdgpio.c === RCS file: /cvs/src/sys/dev/acpi/amdgpio.c,v retrieving revision 1.2 diff -u -p -r1.2 amdgpio.c ---

amdgpio(4): acpi_attach_args resources

2020-05-21 Thread James Hastings
stop parsing _CRS and use resources from struct acpi_attach_args. Index: dev/acpi/amdgpio.c === RCS file: /cvs/src/sys/dev/acpi/amdgpio.c,v retrieving revision 1.2 diff -u -p -r1.2 amdgpio.c --- dev/acpi/amdgpio.c 26 Jan 2020

dwiic(4): add gemini lake

2020-04-11 Thread James Hastings
attach dwiic(4) to I2C controllers on intel gemini lake. tested on an acer spin SP111-33. Index: dev/pci/dwiic_pci.c === RCS file: /cvs/src/sys/dev/pci/dwiic_pci.c,v retrieving revision 1.10 diff -u -p -u -r1.10 dwiic_pci.c ---

Re: [PATCH] Gemini Lake SoC pcidevs and eMMC

2020-02-05 Thread James Hastings
On 2/4/20, Patrick Wildt wrote: > On Wed, Jan 02, 2019 at 08:11:25PM -0500, James Hastings wrote: >> Hello tech@ >> >> I would like to add PCI devices for latest Intel SoC (Gemini Lake). >> >> Included a patch for sdhc(4) too that depends on this to enable e

amd gpio controller

2019-12-21 Thread James Hastings
21 Dec 2019 08:03:32 - @@ -0,0 +1,49 @@ +.\"$OpenBSD$ +.\" +.\" Copyright (c) 2019 James Hastings +.\" +.\" Permission to use, copy, modify, and distribute this software for any +.\" purpose with or without fee is hereby granted, provided that t

Re: pci_sdhc: Intel eMMC controller fix

2019-11-21 Thread James Hastings
On 11/20/19, Patrick Wildt wrote: > > A bit late, but committed, thanks! By the way, now that we > have your glkgpio(4), does that make the SD controller work? > > Patrick > Thanks. The SD slot does not work yet. Needs ACPI gpio bits in pci frontend for card detect.

acpivout(4): fix brightness not going up

2019-11-02 Thread James Hastings
Hi, Backlight on multiple laptops will go down but not up when using brightness keys. Compare new brightness level to min/max values in sc_bcl[] instead. Diff below restores backlight up function. Index: dev/acpi/acpivout.c === RCS

gemini lake gpio

2019-06-23 Thread James Hastings
/null 1 Jan 1970 00:00:00 - +++ share/man/man4/glkgpio.422 Jun 2019 08:49:36 - @@ -0,0 +1,50 @@ +.\"$OpenBSD$ +.\" +.\" Copyright (c) 2019 James Hastings +.\" +.\" Permission to use, copy, modify, and distribute this software for any +.\" purpose with or

apollo lake gpio

2019-06-17 Thread James Hastings
=== RCS file: share/man/man4/aplgpio.4 diff -N share/man/man4/aplgpio.4 --- /dev/null 1 Jan 1970 00:00:00 - +++ share/man/man4/aplgpio.417 Jun 2019 16:18:15 - @@ -0,0 +1,50 @@ +.\"$OpenBSD$ +.\" +.\" Copyright (c) 2019

sdhc_pci: gpio card detect

2019-06-17 Thread James Hastings
Index: sys/dev/pci/sdhc_pci.c === RCS file: /cvs/src/sys/dev/pci/sdhc_pci.c,v retrieving revision 1.20 diff -u -p -u -r1.20 sdhc_pci.c --- sys/dev/pci/sdhc_pci.c 30 Apr 2016 11:32:23 - 1.20 +++ sys/dev/pci/sdhc_pci.c

apollo lake gpio

2019-06-17 Thread James Hastings
=== RCS file: share/man/man4/aplgpio.4 diff -N share/man/man4/aplgpio.4 --- /dev/null 1 Jan 1970 00:00:00 - +++ share/man/man4/aplgpio.411 Jun 2019 01:31:02 - @@ -0,0 +1,49 @@ +.\" +.\" Copyright (c) 2019 James Hastings +.\"

sdmmc: nonremovable card status

2019-06-10 Thread James Hastings
Print nonremovable for cards with that capability set. Helps differentiate sdmmc buses with eMMC devices at a glance. Index: sys/dev/sdmmc/sdmmc.c === RCS file: /cvs/src/sys/dev/sdmmc/sdmmc.c,v retrieving revision 1.53 diff -u -p -u

sdhc_pci: gpio card detect

2019-06-10 Thread James Hastings
I ported the GPIO card detect bits from sdhc_acpi frontend to sdhc_pci. This feels like a lot of duplicated code, should it be pushed down to acpi or sdmmc stack? I tested this in conjunction with apollo lake gpio driver on an Acer Spin 1. Card insertion and removal is now detected but card does

apollo lake gpio

2019-06-10 Thread James Hastings
/man/man4/aplgpio.4 --- /dev/null 1 Jan 1970 00:00:00 - +++ share/man/man4/aplgpio.411 Jun 2019 01:31:02 - @@ -0,0 +1,49 @@ +.\" +.\" Copyright (c) 2019 James Hastings +.\" +.\" Permission to use, copy, modify, and distribute this software for any +.\" pu

dwiic: add apollo lake support

2019-06-10 Thread James Hastings
Add support for Apollo Lake I2C at pci bus. Include two PCIE devs while we are here. Index: sys/dev/pci/dwiic_pci.c === RCS file: /cvs/src/sys/dev/pci/dwiic_pci.c,v retrieving revision 1.5 diff -u -p -u -r1.5 dwiic_pci.c ---

Re: pci_sdhc: Intel eMMC controller fix

2019-04-09 Thread James Hastings
On 03/29/2019 05:22 AM, James Hastings wrote: > Index: dev/pci/pcidevs > === > RCS file: /cvs/src/sys/dev/pci/pcidevs,v > retrieving revision 1.1881 > diff -u -p -r1.1881 pcidevs > --- dev/pci/pcidevs 20 Mar 2

Re: pci_sdhc: Intel eMMC controller fix

2019-03-29 Thread James Hastings
Index: dev/pci/pcidevs === RCS file: /cvs/src/sys/dev/pci/pcidevs,v retrieving revision 1.1881 diff -u -p -r1.1881 pcidevs --- dev/pci/pcidevs 20 Mar 2019 10:51:25 - 1.1881 +++ dev/pci/pcidevs 29 Mar 2019 07:57:20

Re: pci_sdhc: Intel eMMC controller fix

2019-03-29 Thread James Hastings
On 3/26/19, Mark Kettenis wrote: > Did you test this with SD-cards in slots as well as with eMMC? > Tried again with Samsung 16GB card in slot plus NOPWR0 patch and sdmmcdebug=1 eMMC works, SD slot does not work. Also tested with combinations of existing sdhc flags NODDR50, NOPWR0 or none.

pci_sdhc: Intel eMMC controller fix

2019-03-20 Thread James Hastings
On Intel Apollo Lake and Gemini Lake systems with pci eMMC sdhc controller I encounter: sdhc1 at pci0 dev 28 function 0 "Intel Apollo Lake eMMC" rev 0x0b: apic 1 int 39 sdhc1: SDHC 3.0, 200 MHz base clock sdmmc1 at sdhc1: 8-bit, sd high-speed, mmc high-speed, dma ... sdmmc1: can't enable card

[PATCH] Gemini Lake SoC pcidevs and eMMC

2019-01-02 Thread James Hastings
Hello tech@ I would like to add PCI devices for latest Intel SoC (Gemini Lake). Included a patch for sdhc(4) too that depends on this to enable eMMC. The Intel eMMC controller does not like bus power going to 0V. There may be other systems (Apollo Lake) that need this quirk too. With both

Re: [PATCH] Gemini Lake SoC pcidevs

2018-12-22 Thread James Hastings
Here is a dmesg and acpidump from another HP Stream laptop. Running with pcidevs patch and SDMMC_DEBUG turned on. OpenBSD 6.4-current (SDMMC_DEBUG) #280: Wed Dec 19 23:44:03 EST 2018 xxx@xxx:/usr/src/sys/arch/amd64/compile/SDMMC_DEBUG real mem = 4102090752 (3912MB) avail mem = 3968425984

Re: [PATCH] Gemini Lake SoC pcidevs

2018-12-14 Thread James Hastings
On 12/13/18, Heppler, J. Scott wrote: > I have an HP Stream 14 with an n4000 Gemini Lake mobile processor. > The amd64_current does not find the eMMC storage > Would it be of value to the project to apply the patch, generate an > install image using release(8), test and submit the dmesg? dmesg

[PATCH] add Gemini Lake SoC pcidevs

2018-12-11 Thread James Hastings
Index: dev/pci/pcidevs === RCS file: /cvs/src/sys/dev/pci/pcidevs,v retrieving revision 1.1870 diff -u -p -r1.1870 pcidevs --- dev/pci/pcidevs 30 Nov 2018 19:18:31 - 1.1870 +++ dev/pci/pcidevs 12 Dec 2018 04:47:11

ral(4): add RT3290 support

2018-09-17 Thread James Hastings
Ported from original vendor driver. RT3290 is similar to RT5390 but integrates WLAN + Bluetooth on single chip. Bluetooth not supported. New 4kb firmware at /etc/firmware/ral-rt3290 for this chip only. New routines to read efuse rom and control wlan core. Tested on RT3090 and RT5390. Index:

Re: Help with the NET_LOCK()

2017-01-31 Thread James Hastings
boot to console: /etc/hostname.re0: inet n.n.n.n 0xff00 /etc/hostname.ral0: nwid xyz wpakey "" mode 11g dhcp dmesg: OpenBSD 6.0-current (GENERIC.MP) #4: Tue Jan 31 19:42:25 EST 2017 r...@cq58-b.test:/usr/src/sys/arch/amd64/compile/GENERIC.MP RTC BIOS diagnostic error 80 real mem =

Re: usbdevs: logitech: cleanup

2017-01-29 Thread James Hastings
New scaled-back diff. cleanup whitespace, s/QUICKCAM/QKCAM/, no new ids. Index: dev/usb/uaudio.c === RCS file: /cvs/src/sys/dev/usb/uaudio.c,v retrieving revision 1.122 diff -u -p -r1.122 uaudio.c --- dev/usb/uaudio.c3 Jan 2017

Re: usbdevs: logitech: cleanup and new ids

2017-01-22 Thread James Hastings
On 1/23/17, Jonathan Gray <j...@jsg.id.au> wrote: > On Mon, Jan 23, 2017 at 01:56:20AM -0500, James Hastings wrote: >> Hello @tech >> >> Recently found a pile of old Logitech webcams to test with uvideo(4). >> s/QUICKCAM/QKCAM. >> shorten device strin

usbdevs: logitech: cleanup and new ids

2017-01-22 Thread James Hastings
Hello @tech Recently found a pile of old Logitech webcams to test with uvideo(4). s/QUICKCAM/QKCAM. shorten device strings. Add many new Logitech device ids. dev/usb/usbdevs dev/usb/uaudio.c dev/usb/uvideo.c Index: dev/usb/uaudio.c

Re: ral(4) support RT5390 and RT5392

2016-08-16 Thread James Hastings
On 8/16/16, Stefan Sperling wrote: > > Your patch can't be applied with patch(1) because directory > components are missing on the Index: lines even though modified > files are spread across several directories. Could you please > send a patch which uses paths relative to /usr/src

ral(4) support RT5390 and RT5392

2016-08-08 Thread James Hastings
Hi all, The following patch adds RT5390/RT5392 support to ral(4). Ported from FreeBSD r278551 and r36. Running smoothly with RT3090 and various RT5390 cards. Requires updated ral-rt2860 firmware Index: ral.4 === RCS file:

Re: UEFI Boot Report: Screen corruption and kernel panic

2016-02-02 Thread James Hastings
On 2/2/16, Mark Kettenis <mark.kette...@xs4all.nl> wrote: >> Date: Tue, 2 Feb 2016 21:32:13 +0100 (CET) >> From: Mark Kettenis <mark.kette...@xs4all.nl> >> >> > Date: Tue, 2 Feb 2016 14:14:04 -0500 >> > From: James Hastings <mooset...@