Age | Commit message (Collapse) | Author |
|
ok dv@
|
|
limit to support thermal zones that don't do polling. Thermal sensor
drivers should implement this callback if they can generate an interrupt
when the trop limit is reached and should call thermal_senser_update()
when that happens.
ok dlg@
|
|
boards use different regulators for CPU core voltage and memory interface
voltage. But the two have to be kept synchronized. So the devicetree for
these boards marks these regulators as coupled. We have no support for
coupled regulators yet and letting the DVFS code set just the CPU core
voltage would probably lead to strange crashes.
ok mlarkin@
|
|
ok mpi@
|
|
matching path components (but we do allow matches with the @unit bit).
This fixes a problem on the Milk-V Pioneer where /soc/serial@123456
accidentally match a /socket0-clocks node and we would fail to find the
serial console.
ok miod@
|
|
this makes it a bit more obvious how much head room you have for
things like cpu performance scaling.
the information provided at the moment is more useful for developers
working on cpu scaling, but it should improve as i get my head
around more of these things.
patrick@ and kettenis@ like the idea.
|
|
to apldart(4).
ok patrick@
|
|
ok kettenis@ drahn@
|
|
property name instead of "phys".
ok dlg@
|
|
|
|
when turning a fixed regulator on, turn on the regulator specified
in vin-supply too.
kettenis agrees we should do this.
|
|
we only handled "gpio" before. figuring this out has wasted many
days of my life recently.
ok patrick@ kettenis@
|
|
eg, the snps,dwc3 device tree bindings say that it uses a usb2 and
usb3 phy, and they can be listed either "usb2-phy" and "usb3-phy"
under the standard "phys" and "phy-names" properties supported by
phy_enable(), or as slots 0 and 1 under a "usb-phy" properties. the
latter would be supported by phy_enable_idx(), but it hardcodes
"phys" as the property it looks at. phy_enable_prop_idx() is the
same as phy_enable_prop_idx, but it lets you specify which property
you're indexing into.
ok kettenis@
|
|
not all interfaces will have a phandle (ie, it will be 0), so don't
let phandle 0 be used to find any of these.
discussed with miod@
|
|
if we're going to support switch chips (eg, marvell link street
switches as found on a3700 boards like the espressobin), then the
device tree for switch ports identifies which network interface
they're connected by by a reference (phandle) across the device
tree. this lets network drivers register the ifnet struct with the
associated node and phandle so the switch can find it and configure
it for use with the switch.
ok kettenis@
|
|
for a regulator is changed or when the regulator gets initialized when it
attaches for the first time. The latter makes it possible to register
a notifier for a regulator that hasn't attached yet.
ok dlg@
|
|
requires word-sized access.
ok patrick@
|
|
controller on these machines does not see connection events. Instead we
need to rely on the USB PD controllers to notify us of a new connection
and reset the USB controller. This diff implements this by adding a new
tipd(4) driver and infrastructure to notify xhci(4) of new connections.
ok patrick@
|
|
aplintc(4); other arm64 interrupt controllers will follow.
ok patrick@
|
|
cell is used as a mask for SMR to match a number of IDs. So far we have
asserted that it's always 1, so loosen the restriction and pass both cells
instead of only the sid.
ok kettenis@
|
|
without a unit number (so without the @1234 bit) works as well.
This is a re-commit of the backed out change with the endless loop fixed.
|
|
Found by kn@ and myself, ok deraadt@
|
|
without a unit number (so without the @1234 bit) works as well.
ok patrick@, gkoehler@
|
|
Implement this callback in tascodec(4) such that we can pick the audio
channel that it outputs. This will override the default which is to
downmix stereo input from TDM channels 0 and 1 to mono output.
ok ratchov@
|
|
just like -r1.28 did for OF_getpropintarray()
ok kettenis@
|
|
ok jsg@
|
|
ok patrick@
|
|
ok mpi@ ratchov@ "More const is good" deraadt@
|
|
ok patrick@
|
|
spotted by and ok tb@, ok tobhe@
|
|
|
|
feedback and ok tb@ jmc@ ok ratchov@
|
|
in a generic way.
ok visa@
|
|
ok patrick@, visa@
|
|
devices, this isn't really the case. It depends on the bus topology of
how devices are connected. In the case of PCIe, devices are assigned
addresses (in PCI BARs) from the PCI address spaces. Now if we take an
address from one of these address spaces for our IOVA, transfers from
from a PCI device to that address will terminate inside of the PCI bus.
This is because from the PCI buses' point-of-view, the address we chose
is part of its address space. To make sure we don't allocate addresses
from there, reserve the PCI addresses in the IOVA.
Note that smmu(4) currently gives each device its own IOVA. So the PCI
addresses will be reserved only in IOVA from PCI devices, and only the
addresses concerning the PCI bus it is connected to will be reserved.
All other devices behind an smmu(4) will not have any changes to their
IOVA.
ok kettenis@
|
|
ok visa@
|
|
based on the audio graph description that uses ports and endpoints in
the device tree.
ok patrick@
|
|
From Jared McNeill at NetBSD
ok kettenis@
|
|
ok kettenis@
|
|
is passed to the IOMMU device driver.
ok patrick@
|
|
ok patrick@
|
|
on Amlogic SoCs where amltemp(4) doesn't fully attach before the first
polling timeout runs. This would stop the polling which means there was no
thermal management on these platforms.
ok patrick@
|
|
When opal(4) attaches, look in the device tree for a psscr value. In
cpu_idle_cycle(), use this psscr value and the stop instruction to
wait for the next interrupt. In mp kernels, cpu_unidle() now sends an
interrupt. In "sysctl hw.sensors", the power and temperature sensors
from opalsens(4) may show lower values.
The cpu may exit stop at the system reset vector after losing user
registers. If so, restore some registers. For now, ignore deeper
stop states that would lose hypervisor registers.
Our mp kernel uses only the first hardware thread of each core. Take
the extra threads from the firmware and stop them forever; this may
switch the core from SMT4 to single-thread mode and increase
performance.
partly by kettenis@, ok kettenis@
|
|
ignores the presence "enable-active-high" property and relies on the
encode polarity of the GPIO in the flags in the device tree instead.
This might not be the case for older device trees; such device trees
should be fixed.
ok patrick@
|
|
ok patrick@
|
|
|
|
ok patrick@
|
|
ok patrick@
|
|
ok claudio@, patrick@
|
|
ok patrick@
|