aw_thermal: Add support for the H6
Add the thermal sensor controller of the H6, which has two sensors, for
the CPU and the GPU.
The controller has other registers than the one of the supported SoCs.
The efuse has the temperature of the factory test and the value of each
sensor at this temperature, from which the calibration value of each
sensor is computed and written to the controller.
The alarm and shutdown thresholds and the interrupts are not supported
yet.
Tested on: Pine H64 (CPU and GPU temperatures, idle and under load)
aw_thermal: Make the data register and the alarm support per SoC
The controller of the H6 has its data registers at another offset and
other alarm, shutdown and interrupt registers.
Add the offset of the first data register to the SoC configuration,
and a flag for the alarm handling (interrupt, alarm and shutdown
thresholds and the cpufreq throttling), set for all the SoCs
currently supported.
No functional change intended.
aw_thermal: Add an init function to the SoC configuration
Move the initialisation of the controller to a function of the SoC
configuration, as the controller of the H6 is different from the one
of the other supported SoCs.
No functional change intended.
aw_sid: Add the thermal sensor calibration fuse of the H6
The thermal sensor controller of the H6 gets its calibration data from
the 8 bytes of the efuse at offset 0x14, referenced by the
ths_calibration nvmem cell. Add it so the thermal driver can read it.
Tested on: Pine H64 (thermal sensor calibration)
aw_sid: Add the CPU speed grade fuse of the H6 and H616
The OPP tables of the H6 and H616 use the speed grade, stored in the
efuse, to select the voltage of each OPP. Add it as a fuse so it can be
read from the cpu_speed_grade nvmem cell, and expose it in a sysctl.
The speed grade of the H616 is the 2 first bytes of the efuse and
overlaps with the root key. Match the size too when looking up the
fuse of an nvmem read.
Tested on: Pine H64 (sysctl dev.aw_sid.0.speedgrade)
ccu_h6: Add the bus gates of UART1, UART2 and UART3
The firmware only leaves the gate of UART0 on. The UARTs of the H6 are
snps,dw-apb-uart and uart_snps enables the bus clock of the device, but
the clock does not exist, so the gate of the other UARTs stays off. With
a device tree where one of them is enabled (the Bluetooth UART of the
Pine H64 model B), uart_bus_probe() accesses the registers of a gated
UART and the boot hangs.
Add the gates of UART1 to UART3. The one of UART0 is left out for now,
with it uart_snps gets the clock rate and detects a 256 bytes FIFO, and
the input of the console is delayed.
Tested on: Pine H64 (model B device tree, UART1)
security/vuxml: merge duplicate entries for eMudhra cert compromise
Add ca_root_nss <package> to the original entry instead of duplicating.
Preserve the context that applies to the ca_root_nss entry.
sysutils/py-midcli: New port: TrueNAS command line interface
midcli provides the cli command, an interactive shell for the TrueNAS
middleware with command completion.
WWW: https://github.com/truenas/midcli
Approved by: jrm (mentor)
Differential Revision: https://reviews.freebsd.org/D61590
sysutils/py-truenas-api-client: New port: TrueNAS websocket API client
The TrueNAS websocket client provides the command line tool midclt and
the means to easily communicate with middleware using Python by making
calls through the websocket API.
WWW: https://github.com/truenas/api_client
Approved by: jrm (mentor)
Differential Revision: https://reviews.freebsd.org/D61589
handbook/wayland: Remove stale Plasma info
This chapter is about wayland window managers, not desktop environments.
If you want to know about plasma, you are in the completely wrong place.
Remove the incorrect kde/plasma tags and instructions from this page.
Out of scope: the rest of this chapter is also 5 years+ out of date.
The only players in this game now are sway, labwc, and hyprland. The
useful utilities have changed, and the fiddly bits are completely
different than they were when this was written. I have a rewrite plan.
Reported by: jhb
sysutils/u-boot-bananapi-r3: Add new port
U-Boot for the Banana Pi BPI-R3 (MediaTek MT7986), booting from the SD
card. A new mt7986 family in sysutils/u-boot-master installs BL2 from
sysutils/atf-mt7986 and a FIP with BL31 and U-Boot, made with
sysutils/fiptool.
The fragment enables the EFI loader and autoboot, which the board's
defconfig disables, and keeps the environment in the GPT partition named
"ubootenv" instead of at a fixed offset. U-Boot 2026.10 also needs
upstream commit 3ffad26f17cb for the MediaTek clocks before relocation;
without it the board resets in a loop.
Sponsored by: Alchemilla Ventures Private Limited
Reviewed by: jrm, manu
Differential Revision: https://reviews.freebsd.org/D61539
sysutils/u-boot-bananapi-r3-emmc: Add new port
U-Boot for the Banana Pi BPI-R3 (MediaTek MT7986), booting from the
onboard eMMC. A slave of sysutils/u-boot-bananapi-r3 with the eMMC
defconfig and the eMMC BL2.
Reviewed by: jrm, manu
Sponsored by: Alchemilla Ventures Private Limited
Differential Revision: https://reviews.freebsd.org/D61540
sysutils/atf-mt7986: Add new port
Arm Trusted Firmware-A for the MediaTek MT7986 (Filogic 830): BL2 for SD
card and eMMC boot with DDR4, and BL31.
MT7986 support is only in MediaTek's TF-A tree, which ships the DRAM
initialization as a prebuilt library.
Reviewed by: jrm
Sponsored by: Alchemilla Ventures Private Limited
Differential Revision: https://reviews.freebsd.org/D61536
sysutils/fiptool: Add new port
fiptool creates, inspects and updates Firmware Image Packages (FIP), the
container format of TF-A. Boot loaders on several Arm platforms read the
next boot stages, such as BL31 and U-Boot, from a FIP.
Reviewed by: jrm
Sponsored by: Alchemilla Ventures Private Limited
Differential Revision: https://reviews.freebsd.org/D61533
vn_fallocate/vn_deallocate: drop vnode addr from exterrors
This was converted from a KASSERT where it made sense, but not enough
thought was applied. vp is useless, just print both offset/len instead.
Reported by: llm-postcr
Fixes: 95c7b9eaa9ec ("vfs: fail VOP_DEALLOCATE passes [...]")
Fixes: 8bee7ea63a6a ("vfs: fail VOP_ALLOCATE passes [...]")