| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
These are all FreeBS-specific device tree files. We don't support any
of these anymore, remove them.
Reviewed by: emaste, manu
Sponsored by: Innovate UK
Differential Revision: https://reviews.freebsd.org/D28365
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The old vendor tree was never fully merged and doing partial merge isn't
supported with git subtree merge so a new one was created.
Switch the build to use the new DTS from sys/contrib/device-tree
This also bump the DTS used to be in sync with Linux 5.9
While here change the way to get the linux version, simply hardcode
the value in sys/dts/freebsd-compatible.dts and use awk to get that
to put it in the CFLAGS.
As a bonus we now have the bindings docs available
in sys/contrib/device-tree/Bindings/ so no need to link to the Linux repo
or to the vendor tree.
|
|
|
|
|
|
|
|
| |
Add 64-bit address support to Cadence CGEM Ethernet driver for use in
other SoCs such as the Zynq UltraScale+ and SiFive HighFive Unleashed.
Reviewed by: philip, 0mp (manpages)
Differential Revision: https://reviews.freebsd.org/D24304
|
|
|
|
|
|
|
|
|
|
|
|
| |
DTS must be synced with the kernel, add a freebsd,dts-version string in
the root node of each DTS that we compile so we can later in the kernel
check that it contain a correct value.
Reviewed by: imp, mmel
Differential Revision: https://reviews.freebsd.org/D26724
Notes:
svn path=/head/; revision=366599
|
|
|
|
|
|
|
|
|
|
| |
I haven't requested explicit permission from authors and shouldn't have
added BSDL headers without it.
Requestes by: imp
Notes:
svn path=/head/; revision=361796
|
|
|
|
|
|
|
| |
Reported by: Rodney W. Grimes <freebsd@gndrsh.dnsmgr.net> (for rpi4)
Notes:
svn path=/head/; revision=361782
|
|
|
|
|
|
|
| |
Submitted by: gergely.czuczy@harmless.hu
Notes:
svn path=/head/; revision=361775
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The upstream DTS now include the thermal device node and the SID
calibration entry.
Update our driver to cope with this change and remove the DTB
overlays that aren't needed anymore.
MFC after: 2 months
X-MFC-With: r359934
Notes:
svn path=/head/; revision=359935
|
|
|
|
|
|
|
|
| |
Submitted by: Thomas Skibo
Differential Revision: https://reviews.freebsd.org/D23319
Notes:
svn path=/head/; revision=358426
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
It doesn't exist in mainline dts due to the issues related
with detaching and reattaching USB3 devices as mentioned in
https://patchwork.kernel.org/patch/10853381/
In case of FreeBSD, as a temporary workaround "usbconfig reset"
command can fix the problem.
Reviewed by: manu
Notes:
svn path=/head/; revision=357254
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is a qspi driver for the Xilinx Zynq-7000 chip.
It could be useful for anyone wanting to boot a system from flash memory
instead of SD cards.
Submitted by: Thomas Skibo (thomasskibo@yahoo.com)
Differential Revision: https://reviews.freebsd.org/D14698
Notes:
svn path=/head/; revision=356895
|
|
|
|
|
|
|
|
|
|
|
|
| |
This overlays can be used on A64 board to use spigen and spi(8)
on the spi0 pins.
Tested On: Pine64-LTS, A64-Olinuxino
Submitted by: Gary Otten <gdotten@gmail.com>
Notes:
svn path=/head/; revision=356637
|
|
|
|
|
|
|
| |
Reviewed by: manu
Notes:
svn path=/head/; revision=351452
|
|
|
|
|
|
|
|
| |
Most of the H3 boards don't enable i2c as it is unused.
Add an overlay so it's easier for user to use i2c device.
Notes:
svn path=/head/; revision=350180
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add overlay files and activate devicetree file for NanoPi NEO2 featuring
Allwinner H5 ARM64 core.
To enable sound, dma and codec drivers are enabled for build.
Submitted by: Manuel Stühn (freebsdnewbie@freenet.de)
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D20129
Notes:
svn path=/head/; revision=347017
|
|
|
|
|
|
|
|
|
|
|
| |
RPI is using the firmware provided DTS since 12.0
Pandaboard works with the Linux DTS
RK* Exynos* and Meson*/Odroid* don't even work with current
source code, if someone wants to make them work again they
better use the Linux DTS.
Notes:
svn path=/head/; revision=346095
|
|
|
|
|
|
|
|
|
|
|
|
| |
update of devicetree to 4.19 in r340337.
Our build system doesn't provide dependencies for included DTS files, so
nobody noticed this issue for long time.
PR: 235362
MFC after: 1 week
Notes:
svn path=/head/; revision=343828
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Remove CS=2 entry from spigen-rpi2 since it didn't work
- Add spigen-rpi3 overlay for Raspberry Pi 3
- Enable rpi overlay modules for GENERIC kernel on aarch64
PR: 233489
Submitted by: bobf@mrp3.com
Reviewed by: db
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D16088
Notes:
svn path=/head/; revision=343069
|
|
|
|
|
|
|
|
|
| |
Double patched files ended up in the tree
Reported by: kevans
Notes:
svn path=/head/; revision=342006
|
|
|
|
|
|
|
| |
Those are both dtso (overlays) for the two pwm controllers found on the A64.
Notes:
svn path=/head/; revision=342005
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is the frequency of the cpu on the Pinebook so add it to make
cpufreq find the current setting.
Note that this dtbo on the Pinebook doesn't work right now as u-boot
dtb doesn't have symbols and so it fails to apply. Linux 4.20 have
the dts and will be imported once taggued.
MFC after: 1 month
X-MFC with: r341268
Notes:
svn path=/head/; revision=341333
|
|
|
|
|
|
|
|
|
| |
This enables cpufreq on A64 boards.
MFC after: 1 month
Notes:
svn path=/head/; revision=341268
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
There were two main problems here:
1.) sys/dts/Makefile.inc is not included from various */overlays directories
by default, only ../Makefile.inc
2.) When shelling out for DTS/DTSO, cwd != .CURDIR, so enumeration always
failed
These changes allow make test-dts and make test-dtso to function in their
respective directories.
Reviewed by: manu
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D17961
Notes:
svn path=/head/; revision=340390
|
|
|
|
|
|
|
|
|
| |
Reported by: ian
Approved by: re (gjb)
Sponsored by: DARPA, AFRL
Notes:
svn path=/head/; revision=339422
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(e.g. RocketChip, lowRISC and derivatives).
RISC-V page table entries support A (accessed) and D (dirty) bits. The
spec makes hardware support for these bits optional. Implementations that
do not manage these bits in hardware raise page faults for accesses to a
valid page without A set and writes to a writable page without D set.
Check for these types of faults when handling a page fault and fixup the
PTE without calling vm_fault if they occur.
Reviewed by: jhb, markj
Approved by: re (gjb)
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D17424
Notes:
svn path=/head/; revision=339421
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- sun50i-a64-sid.dtso registers the Security ID node, needed for thermal
- sun50i-a64-ths.dtso registers the thermal node, for which we already have a
driver
- sun50i-a64-timer.dtso registers the timer node, needed as the generic timer
glitch on A64 SoC.
Approved by: re (gjb)
Notes:
svn path=/head/; revision=338294
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The last known robust version of this code base was FreeBSD 8.2. There
are no users of this on current, and all users of it have abandoned
this platform or are in legacy mode with a prior version of FreeBSD.
All known users on arm@ approved this removal, and there were no
objections.
Differential Revision: https://reviews.freebsd.org/D16312
Notes:
svn path=/head/; revision=336770
|
|
|
|
|
|
|
|
|
|
| |
property for spi devices, although in the spigen case it's expected that
the speed will be overridden at runtime via the ioctl interface. A very
conservative 500khz speed is used (I've never seen a spi device that
couldn't run at 1mhz).
Notes:
svn path=/head/; revision=335592
|
|
|
|
|
|
|
|
|
|
|
|
| |
By adding spigen-rpi{2,-b}.dtso to fdt_overlays= in loader.conf, the fdt data
will set up the correct pinmux and device nodes to create a spigen(4) device
for each available chipselect pin.
Submitted by: Bob Frazier
Differential Revision: https://reviews.freebsd.org/D15067
Notes:
svn path=/head/; revision=335564
|
|
|
|
| |
Notes:
svn path=/head/; revision=333250
|
|
|
|
|
|
|
|
|
|
|
|
| |
The 4.16 DTS import brought in emac support for the a83t. Since these
boards' DTS is pulled from /boot and I forgot to hook these up to the build,
they should be fairly safe to go away.
The a83t-sid and h3-sid overlays are still relevant. a83t-sid will likely
come in with 4.18 DTS.
Notes:
svn path=/head/; revision=333225
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch implements and exports functions described
in gpio_if.m file. It also uses new gpiobus_attach_bus function
instead of adding gpioc and gpiobus as children. It removes
ulgy reading SoC ID and related if..else, so it depends only on
data read from FDT.
Submitted by: Patryk Duda <pdk@semihalf.com>
Reviewed by: manu
Obtained from: Semihalf
Sponsored by: Stormshield
Differential Revision: https://reviews.freebsd.org/D14756
Notes:
svn path=/head/; revision=333031
|
|
|
|
|
|
|
|
|
|
|
| |
Intel Arria 10 SoC boards.
Tested on Intel Arria 10 SoC Development Kit.
Sponsored by: DARPA, AFRL
Notes:
svn path=/head/; revision=332887
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
xdma(4) interface.
This allows us to switch between Altera mSGDMA or SoftDMA engines used by
atse(4) device.
This also makes atse(4) driver become 25% smaller.
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D9618
Notes:
svn path=/head/; revision=332474
|
|
|
|
|
|
|
| |
Sponsored by: DARPA, AFRL
Notes:
svn path=/head/; revision=332473
|
|
|
|
|
|
|
|
|
|
|
|
| |
Now, as all platform code and drivers support Linux
DT binding, safely remove deprecated sources and rely
on sys/gnu/dts from now on.
Obtained from: Semihalf
Sponsored by: Stormshield
Notes:
svn path=/head/; revision=332362
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
On Raspberry Pi platform GPIO controller also responsible for pins
multiplexing. Pi code predates proper FDT support in FreeBSD so a
lot of pinmux info is hardcoded. This patch:
- Implements pinctl methods in bcm2835_gpio
- Converts all devices with ad-hoc pinmux info to proper pin control
mechanisms and adds pinmux info in FreeBSD's custom dts files.
- Adds fdt_pinctrl option to RPI2 and RPI-B kernels
- Adds SPI pinmux config to FreeBSD's customization of GNU DTS.
Reviewed by: imp, manu
Differential Revision: https://reviews.freebsd.org/D14104
Notes:
svn path=/head/; revision=332262
|
|
|
|
|
|
|
|
|
|
|
| |
The sun8i-a83t-bananapi-m3-emac overlay technically doesn't match what will
be coming from upstream. The tx-delay and rx-delay should be specified in
terms of allwinner,tx-delay-ps and allwinner,rx-delay-ps respectively. The
values are still technically correct for what we write in if_awg, and
support for the new bindings will be coming soon.
Notes:
svn path=/head/; revision=332260
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If driver cannot determine ranges based on fdt, it will calculate
them based on number and type of current port.
Submitted by: Rafal Kozik <rk@semihalf.com>
Obtained from: Semihalf
Sponsored by: Stormshield
Differential Revision: https://reviews.freebsd.org/D14752
Notes:
svn path=/head/; revision=332019
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Ranges in pcie-controller are unused, so could be changed to match Linux
device tree represntation. Same with interrupt-cells and interrupt-parent.
In PCI controller driver ocd_data are used for matching driver and
choose proper resources acquisition function.
fdt_win_process_child have new argument which provide information
about fdt node containing addresses of MMIO registers.
Submitted by: Rafal Kozik <rk@semihalf.com>
Reviewed by: manu [DT part]
Obtained from: Semihalf
Sponsored by: Stormshield
Differential Revision: https://reviews.freebsd.org/D14751
Notes:
svn path=/head/; revision=332017
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In Linux FDT pcie does not have compatible string.
Configuration of windows in mv_common was based on fdt compatible.
Now pcie windows are configured by their parent: pcie_controller.
Processing is moved to fdt_win_process_child. fdt_win_process now
only walk through the tree. SOC_NODE_PCI is position of pcie function in
soc_node_spec array.
PCIe probe cannot use ofw_bus_search_compatible, because it needs to
check also device type and parents compatible.
Submitted by: Rafal Kozik <rk@semihalf.com>
Reviewed by: manu [DT part]
Obtained from: Semihalf
Sponsored by: Stormshield
Differential Revision: https://reviews.freebsd.org/D14749
Notes:
svn path=/head/; revision=332015
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Store pointers to SoC specific functions in mv_timer_config structure
and determine proper config in runtime based on compatible string from FDT.
Compatible string for ArmadaXP timers is changed to match Linux FDT.
Armada 38x uses generic Cortex-A9 timer and separate watchdog drivers, so
it does not need to be supported by timer driver.
Submitted by: Rafal Kozik <rk@semihalf.com>
Reviewed by: manu
Obtained from: Semihalf
Sponsored by: Stormshield
Differential Revision: https://reviews.freebsd.org/D14741
Notes:
svn path=/head/; revision=331961
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
DTB Overlays are useful to change/add nodes to a dtb without the need to
modify it.
Add support for building dtbo during buildkernel.
The goal of DTBO present in the FreeBSD source tree is to fill a gap in
time when we submit changes upstream (Linux). Instead of waiting 2 to 4 months
we can add a DTBO in tree in the meantime.
This is not for adding DTBO for capes/hat/addon boards, those will be
better to put in a ports.
This is also not for enabling a i2c/spi/pwm controller on certain pins,
each user have a different use case for those (which pins to use etc ...)
and we cannot have all possible configuration.
Add a dtbo for sun8i-h3-sid which add the SID node missing in upstream dts.
Reviewed by: kevans
Differential Revision: https://reviews.freebsd.org/D14782
Notes:
svn path=/head/; revision=331499
|
|
|
|
|
|
|
| |
r325987 removed the arm64 directory, remove it from SUBDIR too.
Notes:
svn path=/head/; revision=331210
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Upstream DTBs don't provide IRQ lines for the RNG. Moreover, harvesting
bytes as often as the RNG interrupt is triggered (87 times per sec) is an
overkill.
For these reasons, get rid of the interrupt mode and make callout mode the
default, with random bits harvested every 4 seconds.
Submitted by: Sylvain Garrigues <sylgar@gmail.com>
Reviewed by: ian, imp, manu, mmel
Approved by: emaste
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D14541
Notes:
svn path=/head/; revision=330727
|
|
|
|
|
|
|
|
|
|
|
| |
This is first step in attempt to make FreeBSD compatible with all variants of
RPi boards.
Reviewed by: gonzo
MFC after: 3 weeks
Notes:
svn path=/head/; revision=330072
|
|
|
|
|
|
|
|
|
|
|
| |
instead of frobbing the registers directly.
As a hack the bcm2835_pwm kmod presently ignores the 'status="disabled"'
in the RPI3 DTB, assuming that if you load the kld you probably
want the PWM to work.
Notes:
svn path=/head/; revision=328257
|
|
|
|
|
|
|
|
|
|
|
| |
Control is through sysctl, only GPIO12 supported.
bootverbose creates sysctls for direct mangling of relevant registers.
Only tested on RPI2
Notes:
svn path=/head/; revision=327976
|
|
|
|
|
|
|
|
|
| |
Everything should work with dts from sys/gnu/dts
Discussed with: ian
Notes:
svn path=/head/; revision=326528
|
|
|
|
|
|
|
|
| |
Latest u-boot port provide the dts for pine64, remove our custom
and outdated dts for this board.
Notes:
svn path=/head/; revision=325987
|