| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
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@
|
|
|
|
| |
ok visa@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
length of up to 31 characters. This limit is also present in the
flattened device tree specification/ Unfortunately this limit isn't enforced
by the tooling and there are systems in the wild that use longer strings.
This includes the device trees used on POWER9 systems and has been seen
on some ARM systems as well.
So bump the buffer size from 32 bytes (31 + terminating NUL) to 64 bytes.
Centrally define OFMAXPARAM to this value (in <dev/ofw/openfirm.h>)
replacing the various OPROMMAXPARAM definition scattered around the tree
to make sure the FDT implementation of OF_nextprop() uses the same
buffer size as its consumers.
Eliminate the static buffer in various openprom(4) implementations on
FDT systems.
Makes it possible to dump the full device tree on POWER9 systems using
eeprom -p.
ok deraadt@, visa@
|
|
|
|
| |
ok kettenis@
|
|
|
|
| |
ok kettenis@
|
|
|
|
|
|
|
|
|
|
| |
device tree, but they are still registered in our OFW framework.
These then tend to have a phandle 0. If we are trying to lookup
a device by phandle, we should explicitly check for phandle 0 and
bail, since otherwise it is possible that we falsely match that
phandle and return a device.
ok kettenis@
|
|
|
|
|
|
| |
that aren't claimed by kernel drivers can be used from userland.
ok sthen@
|
|
|
|
| |
ok jsg@
|
|
|
|
| |
ok patrick@
|
|
|
|
|
|
| |
to the phandle, so adjust the check to be more inclusive.
ok kettenis@
|
|
|
|
|
|
| |
while I'm there.
ok patrick@
|
|
|
|
|
|
|
| |
This also adds panel support to rkanxdp(4). Code to hook up simplepanel(4)
is still missing and will come later.
ok patrick@
|
|
|
|
|
|
|
| |
fails. Not reporting an error in that case isn't ideal, but this gets
us a bit further along in supporting drm(4) on RK3399 SoCs.
ok patrick@
|
|
|
|
|
|
|
| |
good enough to make the Pinebook Pro work, but probably needs a lot
more thinking.
ok kettenis@
|
|
|
|
|
|
| |
it works with future Linux device trees.
ok patrick@
|
|
|
|
| |
ok patrick@
|
|
|
|
| |
ok patrick@
|
|
|
|
|
|
|
| |
expected a sorted list, do the sorting ourselves upon parsing
the trip points.
ok kurt@
|
|
|
|
| |
ok patrick@
|
|
|
|
| |
No objection from kettenis@
|
|
|
|
|
|
| |
method to access its pages.
ok kettenis@
|
|
|
|
|
|
| |
are not children of the I2C controller are able to use it.
ok kettenis@
|
| |
|
|
|
|
|
|
| |
IPL_SOFTCLOCK instead of IPL_NONE.
ok mpi@, deraadt@, patrick@
|
|
|
|
| |
ok patrick@
|
|
|
|
| |
ok patrick@
|
|
|
|
|
|
|
|
|
| |
#address-cells and #size-cells for the bus it sits on. This makes sure
the glass console works since the framebuffer shows up as a child of
/chosen which typically doesn't have these properties. This makes us
look at the root node instead.
ok patrick@
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
defined in device trees that link together thermal sensors and cooling
devices to actively or passively cool devices when certain trip points
are reached.
ok mlarkin@ patrick@
|
|
|
|
|
|
|
| |
property. The definition is that a regulator with this property
should never be disabled.
ok kettenis@
|
|
|
|
|
|
|
|
| |
regulators we already support. The GPIO-based regulators are rather
independent of the type, we only need to know the type to check the
upper and lower limits.
With feedback from kettenis@
|
|
|
|
|
|
|
| |
pin before setting the "pin is high" bit in the index for the states.
Otherwise the index always has all possible bits sets.
ok kettenis@
|
|
|
|
|
|
| |
should not throw an error.
ok kettenis@
|
|
|
|
|
|
| |
instead of regulator-min-voltage.
ok kettenis@
|
|
|
|
|
|
|
| |
match has been found. Otherwise the error condition will always
be true.
ok kettenis@
|
|
|
|
| |
ok patrick@ kettenis@
|
|
|
|
| |
ok kettenis@
|