summaryrefslogtreecommitdiffstats
path: root/sys/dev
AgeCommit message (Collapse)AuthorFilesLines
2021-03-12Add WSDISPLAYIO_DEPTH_30 in order to support 30-bit color support.kettenis1-1/+2
ok jsg@
2021-03-12In ipw(4), ensure that net80211 is in ASSOC state while we are expectingstsp1-1/+7
an assoc response from the AP during the association sequence. Otherwise net80211 would ignore the auth response, resulting in a state mismatch between firmware and net80211. A symptom of this was that WPA didn't work. Problem reported and fix tested by Ricardo Mottola
2021-03-12Use RA instead of MiRA in iwn(4).stsp2-191/+129
Tested by: iwn 6200: stsp iwn 6205: cwen, Jeremy O'Brien iwn 6300: okan
2021-03-12Use RA instead of MiRA in iwm(4).stsp2-48/+65
Tested by: iwm 7260: florian iwm 7265: TronDD, Aaron Miller, stsp iwm 8260: bket iwm 8265: matthieu, tracey, naddy, Dave Voutila, jcs, Mathieu Kerjouan, Matthias Schmidt, stsp iwm 9260: matthieu, phessler, Darren VanBuren iwm 9560: Uwe Werler
2021-03-12Update Spleen kernel fonts to version 1.9.0, bringing the followingfcambus2-27/+1691
improvements: - Enlarge vertical line for consistency with other small sizes (5x8 version) - Add full support for the Latin-1 Supplement Unicode block (6x12 version)
2021-03-11Make sure to skip attaching disabled I2C devices. This can happen onpatrick5-10/+35
hardware which include a common parent block in their device trees and only enable the components that were actually implemented, as seen on e.g. the NanoPi R4S.
2021-03-11Make sure to skip attaching disabled I2C devices. This can happen onpatrick1-2/+7
hardware which include a common parent block in their device trees and only enable the components that were actually implemented, as seen on e.g. the NanoPi R4S. ok kettenis@
2021-03-10Handle named references in acpi_getdevlist(). Fixes a regression in acpitztobhe1-1/+11
caused by the reference handling change from December. ok kettenis@ patrick@
2021-03-10Our ACPI namerefs are pointers to the byte structures for ACPI names.patrick6-15/+20
These are not in a printable format, hence printing them as string is wrong. Additionally, aml_searchrel()/aml_searchname() expect the name to be passed in a printable format as well. Passing a nameref can lead to an out-of-bounds read, and the comparison can fail. Hence make sure that namerefs are passed to aml_getname() first, which returns printable strings. Note that aml_getname() uses a static buffer, so there are a few restrictions how the string can be used. ok kettenis@
2021-03-10Fix typo for ATS attribute member in IORT root complex struct.patrick1-2/+2
2021-03-09Add support for 30-bit color modes.kettenis1-2/+4
2021-03-08Add another Type Cover devicejcs1-1/+2
from Fredrik Engberg
2021-03-08regenjcs2-4/+9
2021-03-08Add Surface Pro Type Coverjcs1-1/+2
from Fredrik Engberg
2021-03-08Allow uhidev child devices to claim selective report idsjcs16-57/+74
There may be multiple matching devices on a single uhidev device but the first device that responds to UHIDEV_CLAIM_ALLREPORTID will block the others from attaching. Change this to UHIDEV_CLAIM_MULTIPLE_REPORTID and require any devices wanting some/all report ids to fill in the claimed array in uhidev_attach_arg with just the reports it needs. uhidev can then run match routines for other drivers with the available report ids. ok anton
2021-03-08Add support for sdhc(4) on Raspberry Pi in ACPI mode.kettenis1-2/+8
ok patrick@
2021-03-08Add support for rk809 as seen on the Rock Pi N10 with the rk3399pro. Addkurt1-57/+262
support for multiple linear ranges for voltage regulators and use for all rkpmic ICs. ok kettenis@
2021-03-07Fix aml_store() to work properly when the lvalue is a reference ofyasuoka1-3/+4
LocalX. In that case, resolving the reference must be done before resetting the LocalX variable. test daniel ok kettenis
2021-03-07Pass standard DMA tag to acpi(4) table drivers.patrick1-1/+2
ok kettenis@
2021-03-07ansijsg17-636/+262
2021-03-07ansijsg10-279/+115
2021-03-07ansijsg5-61/+24
2021-03-07ansijsg35-816/+320
2021-03-06ansijsg2-6/+4
2021-03-05ansijsg2-14/+6
2021-03-05ansijsg15-250/+113
2021-03-05ansijsg4-53/+20
2021-03-03off by onejsg1-2/+2
ok claudio@ deraadt@
2021-03-03Add a configurable button mapping for tap gestures on touchpads.bru2-22/+47
Thanks to RJ Johnson for this work! ok mpi@
2021-03-01Transactions on the AXI bus contain a Stream ID. SMMUs filterpatrick1-1/+15
based on Stream IDs. On the Armada 8040 these Stream IDs can be configured in different registers. The PCIe controller has a register which maps root port, bus, dev and func number to the Stream ID. This should be set up by TF-A firmware, but on the 8040 the current images don't do this. For chips with more than one PCIe controller this register must be setup correctly depending on the implementation, but on the 8040 there only is one controller, so we can configure a fixed value to match what is defined in the device tree. This allows the SMMU to properly track the PCIe controller's transactions. ok kettenis@
2021-03-01The ep-gpios property is optional on the Rockchip PCIe controller.patrick1-11/+21
While there, enable the different voltage regulators and set the PHY's assigned clocks. This makes PCIe work on the NanoPi R4S. Tested by kurt@ on Rock Pi N10 and ROCKPro64 ok kurt@ kettenis@
2021-02-28Implement IOMMU OFW API for on-SoC/non-PCI devices.patrick2-2/+46
ok kettenis@
2021-02-28Issue call to IOMMU OFW API to collect an IOMMU-sprinkled DMA tag.patrick1-1/+7
ok kettenis@
2021-02-27regenjsg2-55/+55
2021-02-27sort and fix RTL8713 idjsg1-12/+12
2021-02-27regenjsg2-14/+14
2021-02-27sortjsg1-5/+5
2021-02-27regenjsg2-32/+312
2021-02-27add ids for Intel Xeon Scalablejsg1-7/+63
Used by at least Skylake-SP (SKX) and Cascade Lake-SP (CLX). Covers Xeon Scalable, Xeon D, Xeon W, Core Extreme/Core X product families. The Scalable parts are marketed as Xeon Bronze, Silver, Gold and Platinum. As most of these ids are not described in public documents from Intel use Skylake-ESystem.inf and KabyLakePCH-HSystem.inf from Intel's Windows drivers to get an idea of what the names should be. With the name for 0x2088 found in a Intel authored Linux driver. Initial patch and much discussion from Karel Gardas.
2021-02-26Read and parse OTP on the BCM4378. There are quite a few firmware andpatrick2-2/+138
nvram files used for the different Apple devices. The device tree and the OTP hold the information which of those we will have to use. For now this information will simply be printed, but depending on how we choose to do the firmare distribution we could use it for loadfirmware().
2021-02-26Attach to BCM4378.patrick1-1/+2
2021-02-26Add support for BCM4378 as implemented on the Apple M1. This chip seemspatrick2-26/+126
to use a different set of PCIE2REG registers. Accessing the "old" ones even leads to faults. There are two surprises though. One is that it seems that the interrupt status register always returns 0, and the other one is that we receive the interrupts way too early, but both can be worked around for now.
2021-02-26touch pcidevs again to generated new rcs ids in headersjan2-2/+2
advince from sthen@
2021-02-26Only support #iommu-cells = <1> for now to make sure the correct stream IDkettenis1-17/+8
is passed to the IOMMU device driver. ok patrick@
2021-02-26Increase the amount of RX buffers given to the bwfm(4) chip. We haave seenpatrick1-4/+4
this already on previous chips, which only started giving us packets when handing over at least 128 of them. Apparently some now require 256, which seems to get the Apple M1's WiFi going.
2021-02-26Add missing PCI product IDs for x710 10GBase-T into ixl(4)jan4-2/+9
OK phessler
2021-02-26Increase the buffer size for the ioctl response buffers to the same aspatrick2-7/+8
used in the wifi firmware to ensure responses can be received.
2021-02-26Indicate hostready signal to inform the firmware that the rings have beenpatrick2-4/+18
initialized.
2021-02-26Refactor bwfm(4) firmware loading. The PCIe backend will need to be ablepatrick4-130/+129
to load the CLM blob like the SDIO backend already does. Additionally it is also helpful for the PCIe backend to try a file named after the device tree compatible. Thus refactor the SDIO code and make it available for both SDIO and PCIe.
2021-02-26Fix prio2fifo mapping table.patrick1-5/+5