FreeBSD/src 7929aeesys/dts freebsd-compatible.dts

dts: Bump the freebsd branding version to 6.8

Sponsored by:   Beckhoff Automation GmbH & Co. KG
DeltaFile
+1-1sys/dts/freebsd-compatible.dts
+1-11 files

FreeBSD/src 8d13bc6sys/contrib/device-tree/src/arm64/exynos exynosautov920-pinctrl.dtsi, sys/contrib/device-tree/src/arm64/exynos/google gs101-pinctrl.dtsi

Import device-tree files from Linux 6.8

Sponsored by:   Beckhoff Automation GmbH & Co. KG
DeltaFile
+6,013-0sys/contrib/device-tree/src/arm64/qcom/sm8650.dtsi
+3,527-0sys/contrib/device-tree/src/arm64/qcom/x1e80100.dtsi
+1,266-0sys/contrib/device-tree/src/arm64/exynos/exynosautov920-pinctrl.dtsi
+1,249-0sys/contrib/device-tree/src/arm64/exynos/google/gs101-pinctrl.dtsi
+1,115-9sys/contrib/device-tree/src/arm64/qcom/sa8775p.dtsi
+956-0sys/contrib/device-tree/src/arm64/mediatek/mt8188.dtsi
+14,126-91,268 files not shown
+68,563-6,9541,274 files

FreeBSD/src c0b8b81sys/dts freebsd-compatible.dts

dts: Bump the freebsd branding version to 6.7

Sponsored by:   Beckhoff Automation GmbH & Co. KG
DeltaFile
+1-1sys/dts/freebsd-compatible.dts
+1-11 files

FreeBSD/src 84943d6sys/contrib/device-tree/src/arm64/mediatek mt8395-genio-1200-evk.dts, sys/contrib/device-tree/src/arm64/qcom qcm6490-fairphone-fp5.dts

Import device-tree files from Linux 6.7

Sponsored by:   Beckhoff Automation GmbH & Co. KG
DeltaFile
+2,000-0sys/contrib/device-tree/src/riscv/sophgo/sg2042-cpus.dtsi
+1,137-0sys/contrib/device-tree/src/arm64/rockchip/rk3588-quartzpro64.dts
+902-0sys/contrib/device-tree/src/arm64/mediatek/mt8395-genio-1200-evk.dts
+848-0sys/contrib/device-tree/src/arm64/rockchip/rk3588-orangepi-5-plus.dts
+757-9sys/contrib/device-tree/src/arm64/ti/k3-am62p-main.dtsi
+667-0sys/contrib/device-tree/src/arm64/qcom/qcm6490-fairphone-fp5.dts
+6,311-91,058 files not shown
+43,112-4,1901,064 files

FreeBSD/src 13f6b1dsys/dts freebsd-compatible.dts

dts: Bump the freebsd branding version to 6.6

Sponsored by:   Beckhoff Automation GmbH & Co. KG
DeltaFile
+1-1sys/dts/freebsd-compatible.dts
+1-11 files

FreeBSD/src aa1a8ffsys/contrib/device-tree/src/arm/aspeed aspeed-bmc-ibm-everest.dts ibm-power10-quad.dtsi, sys/contrib/device-tree/src/arm/samsung exynos4212-tab3.dtsi

Import device-tree files from Linux 6.6

Sponsored by:   Beckhoff Automation GmbH & Co. KG
DeltaFile
+1,588-1,295sys/contrib/device-tree/src/arm/aspeed/aspeed-bmc-ibm-everest.dts
+77-2,078sys/contrib/device-tree/src/arm64/nvidia/tegra234-p3737-0000+p3701-0000.dts
+1,991-0sys/contrib/device-tree/src/arm64/nvidia/tegra234-p3701.dtsi
+1,310-0sys/contrib/device-tree/src/arm/samsung/exynos4212-tab3.dtsi
+1,305-0sys/contrib/device-tree/src/arm/aspeed/ibm-power10-quad.dtsi
+888-0sys/contrib/device-tree/src/arm64/rockchip/rk3588-nanopc-t6.dts
+7,159-3,3731,665 files not shown
+53,931-12,6551,671 files

FreeBSD/src 298b8f1sys/modules/dtb/mv Makefile

dts: Fix arm dts path for marvell too

Linux 6.5 moved to a vendor-based subdirectory for arm DTS, change
our Makefiles accordingly.

This makes universe also compile arm.armv7 ARMADA38X sucessfully.
DeltaFile
+2-2sys/modules/dtb/mv/Makefile
+2-21 files

FreeBSD/src 594c5fasys/dts/arm tegra124-jetson-tk1-fbsd.dts

arm/nvidia: Fix DTS build

We need to include the DTS with the full path now that it changed.

Fixes:  f126890ac538 ("Import device-tree files from Linux 6.5")
Sponsored by:   Beckhoff Automation GmbH & Co. KG
DeltaFile
+1-1sys/dts/arm/tegra124-jetson-tk1-fbsd.dts
+1-11 files

FreeBSD/src 4ea295asys/modules/dtb/allwinner Makefile, sys/modules/dtb/imx6 Makefile

dts: Fix arm dts path

Linux 6.5 moved to a vendor-based subdirectory for arm DTS, change
our Makefiles accordingly.

Sponsored by:   Beckhoff Automation GmbH & Co. KG
DeltaFile
+20-20sys/modules/dtb/allwinner/Makefile
+14-14sys/modules/dtb/imx6/Makefile
+2-2sys/modules/dtb/rockchip/Makefile
+1-1sys/modules/dtb/nvidia/Makefile
+37-374 files

FreeBSD/src f126890sys/contrib/device-tree/src/arm tegra124-nyan-big-emc.dtsi tegra30-ouya.dts, sys/contrib/device-tree/src/arm/nvidia tegra124-nyan-big-emc.dtsi tegra30-ouya.dts

Import device-tree files from Linux 6.5

Sponsored by:   Beckhoff Automation GmbH & Co. KG
DeltaFile
+6,694-0sys/contrib/device-tree/src/arm/nvidia/tegra124-nyan-big-emc.dtsi
+0-6,694sys/contrib/device-tree/src/arm/tegra124-nyan-big-emc.dtsi
+0-4,795sys/contrib/device-tree/src/arm/tegra30-ouya.dts
+4,795-0sys/contrib/device-tree/src/arm/nvidia/tegra30-ouya.dts
+4,606-0sys/contrib/device-tree/src/arm/ti/omap/dra7-l4.dtsi
+0-4,606sys/contrib/device-tree/src/arm/dra7-l4.dtsi
+16,095-16,0956,248 files not shown
+782,298-745,7016,254 files

FreeBSD/src 320e4besys/dev/gpio gpiopower.c

gpiopower: trigger low, high and both edges

Power off or reset may be activated either by low or high signal or by an
edge.  So, try everything.

Also, the driver now supports DTS properties for timings.

Finally, the driver does not change the pin configuration during attach.
It is assumed that the pin is already in a state that does not trigger
the power event (otherwise we wouldn't be running).
DeltaFile
+25-3sys/dev/gpio/gpiopower.c
+25-31 files

FreeBSD/src 1979449sys/dts/arm/overlays sun8i-h3-usb1.dtso sun8i-h3-usb2.dtso, sys/modules/dtb/allwinner Makefile

add allwinner overlays for enabling additional USB ports

For instance, on NanoPi NEO two additional ports are available via a
GPIO header.
DeltaFile
+14-0sys/dts/arm/overlays/sun8i-h3-usb1.dtso
+14-0sys/dts/arm/overlays/sun8i-h3-usb2.dtso
+3-1sys/modules/dtb/allwinner/Makefile
+31-13 files

FreeBSD/src 93d4badsys/arm/freescale/imx imx51_ipuv3reg.h imx51_ipuv3.c

arm: prune imx5 support from the tree

The IMX5 configs were removed in advance of FreeBSD 14.0 in
cdb0c2a73df ("arm: Remove IMX5 specific kernel configs").  This code
isn't built with GENERIC and doesn't actually build today as-is, so
let's remove it to avoid needless maintenance work to it that won't be
tested.  As usual, revival is welcome with a committed user and work to
maintain it with upstream DTS and, ideally, in GENERIC.

I note that vt_early_fb is now effectively orphaned as nothing else will
use it, but I haven't yet removed it since I have not done anything to
ascertain if it could be integrated easily enough for other SoC.  It is
among the files that doesn't actually build with today's clang, though.

Reviewed by:    imp, manu
Differential Revision:  https://reviews.freebsd.org/D41836
DeltaFile
+0-922sys/arm/freescale/imx/imx51_ipuv3reg.h
+0-872sys/arm/freescale/imx/imx51_ipuv3.c
+0-656sys/arm/freescale/imx/imx51_ccm.c
+0-360sys/arm/freescale/imx/imx51_ipuv3_fbd.c
+0-306sys/arm/freescale/imx/tzic.c
+0-257sys/arm/freescale/imx/imx51_ccmreg.h
+0-3,37313 files not shown
+0-4,60819 files

FreeBSD/src 8c7e747sys/dev/sdhci sdhci_fdt.c

sdhci: fdt: Remove sdhci_generic compatible string

This was used when we had our own DTS, it's not used anymore.

Reviewed-by:    bz
Differential Revision:  https://reviews.freebsd.org/D41807
Sponsored by:   Beckhoff Automation GmbH & Co. KG
DeltaFile
+5-10sys/dev/sdhci/sdhci_fdt.c
+5-101 files

FreeBSD/src 17c1787sys/dev/cpufreq cpufreq_dt.c

cpufreq_dt: Find the closest frequency

When building the frequencies table we convert the value in the DTS to
megahertz and loose precision. While it's not a problem for most of the
DTS it is when the expected frequency value is strict down to the hertz.
So it's either we don't truncate the value and have some ugly and long
values in the sysctls or we just find the closest frequency.
Do the latter.

Reviewed by:    mmel
Differential Revision:  https://reviews.freebsd.org/D41762
Sponsored by:   Beckhoff Automation GmbH & Co. KG
DeltaFile
+15-6sys/dev/cpufreq/cpufreq_dt.c
+15-61 files

FreeBSD/src b4ef09bsys/dev/extres/clk clk_fixed.c

clk_fixed: reduce and clarify messages due to missing clk-frequency

The current dts for Raspberry 3B+ and 4B have 2 disabled fixed-clock
nodes which have no clock-frequency value.  Such nodes are non-standard.
This results in about 150 messages during autoconfiguration:

    clk_fixed2: <Fixed clock> disabled on ofwbus0
    clk_fixed2: Cannot FDT parameters.
    device_attach: clk_fixed2 attach returned 6

Defensively check for clock-frequency in the probe routine, and if
none, return an error with a more direct error message (1 line per
occurrence, 50 lines total):

    clk_fixed2: clock-fixed has no clock-frequency

Based on a patch by manu.

MFC after:      1 week

    [2 lines not shown]
DeltaFile
+5-0sys/dev/extres/clk/clk_fixed.c
+5-01 files

FreeBSD/src 78d1461sys/dev/cxgb t3c_protocol_sram.h t3b_tp_eeprom.h

sys: Remove $FreeBSD$: one-line bare tag

Remove /^\s*\$FreeBSD\$$\n/
DeltaFile
+0-3sys/dev/cxgb/t3c_protocol_sram.h
+0-3sys/dev/cxgb/t3b_tp_eeprom.h
+0-3sys/dev/cxgb/cxgb_t3fw.h
+0-3sys/dev/cxgb/cxgb_osdep.h
+0-3sys/dev/cxgb/t3b_protocol_sram.h
+0-3sys/dev/cxgb/t3c_tp_eeprom.h
+0-1850 files not shown
+0-8956 files

FreeBSD/src 031beb4sys/dev/bhnd/tools nvram_map_gen.sh, sys/dev/cxgb bin2h.pl

sys: Remove $FreeBSD$: one-line sh pattern

Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
DeltaFile
+0-2sys/modules/ispfw/Makefile
+0-2sys/dev/cxgb/bin2h.pl
+0-2sys/dev/bhnd/tools/nvram_map_gen.sh
+0-2sys/modules/aic7xxx/ahc/ahc_pci/Makefile
+0-2sys/modules/aic7xxx/ahd/Makefile
+0-2sys/modules/aic7xxx/ahc/ahc_isa/Makefile
+0-121,429 files not shown
+0-1,4551,435 files

FreeBSD/src 71625ecsys/amd64/include _align.h _inttypes.h, sys/dev/qat_c2xxx qat_c2xxxreg.h

sys: Remove $FreeBSD$: one-line .c comment pattern

Remove /^/[*/]\s*\$FreeBSD\$.*\n/
DeltaFile
+0-1sys/dev/qat_c2xxx/qat_c2xxxreg.h
+0-1sys/amd64/include/_align.h
+0-1sys/amd64/include/_inttypes.h
+0-1sys/amd64/include/_limits.h
+0-1sys/amd64/include/_stdint.h
+0-1sys/amd64/include/_types.h
+0-61,230 files not shown
+0-1,2361,236 files

FreeBSD/src 2ff63afsys/rpc rpc_msg.h svc.h, sys/sys _callout.h

sys: Remove $FreeBSD$: one-line .h pattern

Remove /^\s*\*+\s*\$FreeBSD\$.*$\n/
DeltaFile
+0-1sys/rpc/rpc_msg.h
+0-1sys/rpc/svc.h
+0-1sys/rpc/svc_auth.h
+0-1sys/rpc/types.h
+0-1sys/rpc/xdr.h
+0-1sys/sys/_callout.h
+0-6739 files not shown
+0-745745 files

FreeBSD/src 95ee289sys/compat/linuxkpi/common/include/linux module.h moduleparam.h, sys/dev/mpr mpr_ioctl.h

sys: Remove $FreeBSD$: two-line .h pattern

Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
DeltaFile
+0-4sys/dev/mpr/mpr_ioctl.h
+0-4sys/dev/mps/mps_ioctl.h
+0-2sys/compat/linuxkpi/common/include/linux/module.h
+0-2sys/compat/linuxkpi/common/include/linux/moduleparam.h
+0-2sys/compat/linuxkpi/common/include/linux/mutex.h
+0-2sys/compat/linuxkpi/common/include/linux/net.h
+0-163,592 files not shown
+0-7,2003,598 files

FreeBSD/src 0befc55sys/dts freebsd-compatible.dts

dts: Bump the freebsd branding version to 6.4

Sponsored by:   Beckhoff Automation GmbH & Co. KG
DeltaFile
+1-1sys/dts/freebsd-compatible.dts
+1-11 files

FreeBSD/src fac71e4sys/contrib/device-tree/src/arm64/apple t8112-pmgr.dtsi, sys/contrib/device-tree/src/arm64/freescale imx8-apalis-v1.1.dtsi imx8mp-data-modul-edm-sbc.dts

Import device-tree files from Linux 6.4

Sponsored by:   Beckhoff Automation GmbH & Co. KG
DeltaFile
+1,562-0sys/contrib/device-tree/src/arm64/qcom/qcm2290.dtsi
+1,484-0sys/contrib/device-tree/src/arm64/freescale/imx8-apalis-v1.1.dtsi
+1,140-0sys/contrib/device-tree/src/arm64/apple/t8112-pmgr.dtsi
+1,000-6sys/contrib/device-tree/src/arm64/renesas/r8a779g0.dtsi
+1,001-0sys/contrib/device-tree/src/arm64/qcom/sa8775p.dtsi
+977-0sys/contrib/device-tree/src/arm64/freescale/imx8mp-data-modul-edm-sbc.dts
+7,164-61,760 files not shown
+64,227-9,2011,766 files

FreeBSD/src cb7aa33sys/contrib/device-tree/src/arm64/nvidia tegra234.dtsi tegra186-p2771-0000.dts, sys/contrib/device-tree/src/arm64/qcom sm8550.dtsi sc8280xp.dtsi

Import device-tree files from Linux 6.3

Sponsored by:   Beckhoff Automation GmbH & Co. KG
DeltaFile
+4,807-0sys/contrib/device-tree/src/arm64/qcom/sm8550.dtsi
+3,403-0sys/contrib/device-tree/src/arm64/rockchip/rk3588s-pinctrl.dtsi
+1,488-1,315sys/contrib/device-tree/src/arm64/nvidia/tegra234.dtsi
+2,363-239sys/contrib/device-tree/src/arm64/qcom/sc8280xp.dtsi
+1,280-1,280sys/contrib/device-tree/src/arm64/nvidia/tegra186-p2771-0000.dts
+1,225-1,224sys/contrib/device-tree/src/arm64/nvidia/tegra194-p3509-0000.dtsi
+14,566-4,0581,661 files not shown
+104,141-21,9641,667 files

FreeBSD/src 8bab661sys/contrib/device-tree/src/arm qcom-apq8060-dragonboard.dts, sys/contrib/device-tree/src/arm64/apple t600x-pmgr.dtsi

Import device-tree files from Linux 6.2

Sponsored by:   Beckhoff Automation GmbH & Co. KG
DeltaFile
+2,012-0sys/contrib/device-tree/src/arm64/apple/t600x-pmgr.dtsi
+859-891sys/contrib/device-tree/src/arm/qcom-apq8060-dragonboard.dts
+1,425-0sys/contrib/device-tree/src/arm64/qcom/sm6115.dtsi
+1,396-0sys/contrib/device-tree/src/arm64/qcom/sm6375.dtsi
+813-393sys/contrib/device-tree/src/arm64/qcom/sm8250.dtsi
+1,198-0sys/contrib/device-tree/src/arm64/qcom/msm8976.dtsi
+7,703-1,2842,048 files not shown
+84,972-15,5852,054 files

FreeBSD/src 7ef62cesys/contrib/device-tree/include/dt-bindings/pinctrl mediatek,mt8188-pinfunc.h, sys/contrib/device-tree/src/arm64/freescale imx8mm-venice-gw7904.dts

Import device-tree files from Linux 6.1

Sponsored by:   Beckhoff Automation GmbH & Co. KG
DeltaFile
+1,280-0sys/contrib/device-tree/include/dt-bindings/pinctrl/mediatek,mt8188-pinfunc.h
+1,114-1sys/contrib/device-tree/src/arm64/nvidia/tegra234.dtsi
+1,067-5sys/contrib/device-tree/src/arm64/mediatek/mt8195.dtsi
+939-0sys/contrib/device-tree/src/arm64/rockchip/rk3399-eaidk-610.dts
+888-0sys/contrib/device-tree/src/arm64/freescale/imx8mm-venice-gw7904.dts
+831-0sys/contrib/device-tree/src/arm64/rockchip/rk3566-anbernic-rgxx3.dtsi
+6,119-61,593 files not shown
+51,956-7,2781,599 files

FreeBSD/src 3933878sys/arm64/rockchip rk_i2c.c

arm64: rockchip: rk_i2c: Probe again at ORDER_LATE

The gic driver is also probed at this pass and depending on the order of
the nodes in the dts rk_i2c can be probed first and will fail, this is the
case for the rk3328 SoC.
The PMIC drivers are also probed at this pass but on the iicbus which is created
in rk_i2c so there is no order conflict here.

Fixes:          ddefad7c4f48 ("arm64: rockchip: Tweak i2c, pmic and iodomain order")
Sponsored by:   Beckhoff Automation GmbH & Co. KG
DeltaFile
+2-2sys/arm64/rockchip/rk_i2c.c
+2-21 files

FreeBSD/src 4d846d2include elf.h fmtmsg.h, sys/dev/qlxge qls_isr.c

spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD

The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch
up to that fact and revert to their recommended match of BSD-2-Clause.

Discussed with:         pfg
MFC After:              3 days
Sponsored by:           Netflix
DeltaFile
+2-2sys/dev/qlxge/qls_isr.c
+2-2sys/xen/xenbus/xenbusb.h
+1-1include/elf.h
+1-1include/fmtmsg.h
+1-1include/inttypes.h
+1-1include/iso646.h
+8-85,571 files not shown
+5,579-5,5795,577 files

FreeBSD/src 3416e10sys/arm/conf GENERIC

arm: Remove TI code from GENERIC

TI support is in a sad state for years.
We haven't been able to keep up with all the breaking changes that
upstream do in the DTS. This requires a lot of new drivers to handle the
new buses that they create and all the new clocks that they expose.
Keep the code for now in case somebody is interested in reviving this
platform but stop bloating GENERIC with code that don't work.

Reviewed by:    imp, mmel
MFC after:      never
Sponsored by:   Beckhoff Automation GmbH & Co. KG
Differential Revision:  https://reviews.freebsd.org/D39843
DeltaFile
+0-27sys/arm/conf/GENERIC
+0-271 files

FreeBSD/src 949efdasys/arm/conf SOCFPGA SOCKIT-BERI

arm: Remove SOCFPGA specific kernel configs

We had GENERIC for a while now so anyone still interested in those boards
should make sure that we can boot on them with it and with upstream DTS files.

Sponsored by:   Beckhoff Automation GmbH & Co. KG
Reviewed by:    br
Differential Revision:  https://reviews.freebsd.org/D39088
DeltaFile
+0-110sys/arm/conf/SOCFPGA
+0-37sys/arm/conf/SOCKIT-BERI
+0-30sys/arm/conf/SOCKIT
+0-30sys/arm/conf/SOCDK
+0-2074 files