summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2022-11-21A driver for the Bosch BMP280 / BME280 temperature, humidity andbrad
atmospheric pressure sensor. This is an inexpensive to moderately expensive chip available from a large number of places. The driver supports all aspects of the two chips, except for the repeating read mode which would allow for sub-second queries, such as fall detection or perhaps even as an altimeter. This driver also only supports the I2C interface and not the SPI interface. The BME280, the one with humidity, is not fully tested at this point, awaiting upon a breakout board and may not show proper humidity.
2022-11-17pckbc(4): Stop waiting 8us before reading each data byte.riastradh
This appears to have copied from pccons(4), where it was introduced by mycroft@ in 1994 in sys/arch/i386/isa/pccons.c rev. 1.63 with the commit message `Rename two files.'. No justification was given. This delay was in a hard interrupt handler, and an MP-unsafe one to boot, so it could hold up system responsiveness by delaying interrupt handling and blocking other users of the legacy kernel lock. The delay remains in the pckbc_wait_output loop to set a command byte, which is not used in the interrupt path (and I suspect is used only on boot during attach anyway).
2022-11-17A driver for the Aosong AHT20 temperature and humidity sensor. Whilebrad
slow for an I2C sensor it is inexpensive and should work well enough in most indoor conditions. All features of the chip are supported.
2022-11-12Skip the first PHY found to remove the shadow PHY that appears atjmcneill
the broadcast address 0.
2022-11-12Trailing whitespaceskrll
2022-11-10revert my previous commit.ryo
since armv8_pmu_init is only called when it is reliably worked by ACPI or fdt, there is no need for dynamic checks. pointed out by jmcneill@, thanks
2022-11-09If the hardware does not support PMU, return an error instead of KASSERT.ryo
2022-11-05Add driver for Cadence I2C controller.jmcneill
2022-11-05Fix inverted result when status is "okay"skrll
2022-11-04Back out r1.82 ("Do not explicitly set the HID Report Protocol upon attach")jmcneill
due to the regression reported in PR# 57031
2022-11-04Size boot_physmem with FDT_MEMORY_RANGES.jmcneill
This effectively increases the size from 64 to 256 entries for Arm kernels. It turns out on large systems that memory can be quite fragmented by UEFI. Increasing the size of this just kicks the can down the road, we need a better solution to deal with boot_physmem/fdt_memory/bootparams.dram sizing.
2022-11-02fix various typos in comments and messages.andvar
2022-11-02rename sneaky snyc in hvtimesnyc_sample_verbose variable to sync.andvar
2022-11-02s/ourselve/ourselves/ in comments.andvar
2022-11-02Re-enable ADMA2 support for arasan,sdhci-8.9ajmcneill
2022-11-02Select DMA mode after programming the ADMA base address register(s).jmcneill
The Arasan SDHCI 8.9a found in the Xilinx Zynq-7000 SoC requires this sequence to avoid sporadic transfer errors.
2022-11-01s/varaible/variable/ and s/varible/variable/ in comments.andvar
2022-11-01s/faild/failed/ in comments and messages.andvar
2022-11-01Add support for Cortex-A9.jmcneill
2022-11-01Disable ADMA2 on the Arasan SDHCI 8.9A found in the Xilinx Zinq-7000 duejmcneill
to sporadic transfer errors until the root cause for the errors is found. In the meantime, SDMA works fine on this platform.
2022-10-31fix blank printf at attachjmcneill
2022-10-31fix various typos in comments and one output message.andvar
2022-10-31s/singled/single/andvar
2022-10-31s/interrut/interrupt/ and s/accelelerator/accelerator/ in comments.andvar
2022-10-31This is X11's 75dpi/term14.bdf, use if you want your console to look like anmacallan
xterm. Unlike QVSS this font contains accented characters, umlauts etc.
2022-10-31Use PRIx64 in a debug print macro to print a uint64_t.simonb
2022-10-30Add GPIO support.jmcneill
PR# kern/57030
2022-10-28pckbc(4): Simplify the (disabled) logic to check keyboard port.riastradh
No functional change intended -- just reduces code duplication (and fixes wrong-number-of-arguments in #if 0 logic).
2022-10-28pckbport(4): C99 initializersriastradh
No functional change intended.
2022-10-28xhci(4): Mark PCI interrupt handler MP-safe.riastradh
xhci_intr has its own intr lock to coordinate with the MP-safe softint it defers all its work to, other than reading and writing a few registers to get and acknowledge the interrupt status.
2022-10-28ehci(4): Mark PCI interrupt handler MP-safe.riastradh
ehci_intr has its own intr lock to coordinate with the MP-safe softint it defers all its work to, other than reading and writing a few registers to get and acknowledge the interrupt status.
2022-10-28Make three "Unsupported SFP+ module..." messages the same.msaitoh
2022-10-27wwanc(4): Convert to ttylock/ttyunlock.riastradh
2022-10-26uhso(4): Convert locking comments to locking assertions.riastradh
2022-10-26ucycom(4): Convert to ttylock/ttyunlock.riastradh
2022-10-26ucom(4): Convert to ttylock/ttyunlock.riastradh
2022-10-26sunkbd(4): Convert to ttylock/ttyunlock.riastradh
2022-10-26spif(4): Convert to ttylock/ttyunlock.riastradh
2022-10-26vax/dhu(4): Convert to ttylock/ttyunlock.riastradh
2022-10-26cz(4): Convert to ttylock/ttyunlock.riastradh
2022-10-26irframetty(4): Convert to ttylock/ttyunlock.riastradh
2022-10-26zs(4): Convert to ttylock/ttyunlock.riastradh
2022-10-26hpf1275a(4): Convert to ttylock/ttyunlock.riastradh
2022-10-26vax/dz(4): Convert to ttylock/ttyunlock.riastradh
2022-10-26btuart(4): Convert to ttylock/ttyunlock.riastradh
2022-10-26bth5(4): Convert to ttylock/ttyunlock.riastradh
2022-10-26bcsp(4): Convert to ttylock/ttyunlock.riastradh
2022-10-26cy(4): Convert to ttylock/ttyunlock.riastradh
2022-10-26sys/filedesc.h: New home for extern cwdi0.riastradh
2022-10-26ddb/db_active.h: New home for extern db_active.riastradh
This can be included unconditionally, and db_active can then be queried unconditionally; if DDB is not in the kernel, then db_active is a constant zero. Reduces need for #include opt_ddb.h, #ifdef DDB.