aboutsummaryrefslogtreecommitdiff
path: root/sys/tools/fdt
Commit message (Collapse)AuthorAgeFilesLines
* sys: Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-164-4/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-05-121-1/+1
| | | | | | | | | 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
* dtb: Be much less verbose in the building of dtbWarner Losh2022-10-292-2/+0
| | | | | | | | | Make the dtb/dtbo files with less noise. Remove echo statements, but add back the call for the non-meta builds to replace the removed noise. Suggetions by: jrtc27 Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D37073
* ipq4018: add TCSR definitions from Linux.Adrian Chadd2021-10-181-1/+1
| | | | | | | | | | | | | | | These are hardware configuration options which are required in the linux/openwrt device trees for the IPQ4018/IPQ4019 devices. Since this isn't obtained from linux upstream but instead from openwrt, this can't go in contrib; instead it is going in sys/dts/include/ . Obtained from: OpenWRT Tested: * IPQ4019 ASUS RT-AC58U AP, initial bootstrapping
* Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrightsEd Maste2021-08-081-1/+0
| | | | | | | These ones were unambiguous cases where the Foundation was the only listed copyright holder (in the associated license block). Sponsored by: The FreeBSD Foundation
* Switch to the new device-tree vendor treeEmmanuel Vadot2021-01-152-6/+4
| | | | | | | | | | | | | 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.
* Brand our DTS with the Linux version it was imported fromEmmanuel Vadot2020-10-101-1/+3
| | | | | | | | | | | | 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
* make_dtb.sh: Use $CPP instead of assuming that cpp is in $PATHAlex Richardson2018-12-142-10/+12
| | | | | | | | | | | | | This fixes building in CheriBSD with a strict tmp path since we don't bootstrap a cpp but pass the full path to clang-cpp instead. While touching this file also fix all shellcheck warnings in make_dtb.sh. Reviewed By: manu Differential Revision: https://reviews.freebsd.org/D18376 Notes: svn path=/head/; revision=342105
* Use ${ECHO} in dtb/dtbo build, pass in from dtb.mk for -sKyle Evans2018-11-092-2/+4
| | | | | | | | Reported by: sbruno MFC after: 3 days Notes: svn path=/head/; revision=340297
* make_dtb: Always add root directory in the include pathEmmanuel Vadot2018-08-231-2/+2
| | | | | | | | Some arch like arm and arm64 share DTS files, add the root dts directory to the include paths. Notes: svn path=/head/; revision=338246
* Add dtb overlays supportEmmanuel Vadot2018-03-241-0/+26
| | | | | | | | | | | | | | | | | | | | | | 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
* sys: general adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-0/+2
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. No functional change intended. Notes: svn path=/head/; revision=326272
* Move sys/boot/fdt/dts to sys/dts and adjust scripts.Warner Losh2017-11-141-2/+2
| | | | | | | Sponsored by: Netflix Notes: svn path=/head/; revision=325826
* make.conf: Add the possibility to use another DTCEmmanuel Vadot2017-06-171-1/+3
| | | | | | | | | | | Add a make.conf DTC variable that control which DTC (Device Tree Compiler) to use. Reviewed by: bdrewery, imp Differential Revision: https://reviews.freebsd.org/D9577 Notes: svn path=/head/; revision=320064
* [fdt] Make DTBs generated by make_dtb.sh overlay-readyOleksandr Tymoshenko2017-03-101-1/+1
| | | | | | | | Generate symbols node when compiling dts files so they can be modified during boot-time by applying overlays. Notes: svn path=/head/; revision=315031
* Allow the make_dtb script to work outside of a "make buildkernel" contextIan Lepore2014-08-301-0/+4
| | | | | | | | | by setting MACHINE from uname -m if it's not set already. Reviewed by: imp, tuexen Notes: svn path=/head/; revision=270863
* Call cpp with -P to avoid printing line markings.Rui Paulo2014-06-101-1/+1
| | | | Notes: svn path=/head/; revision=267319
* Fix logic error. <blush>Warner Losh2014-04-301-1/+1
| | | | | | | Submitted by: ian@ Notes: svn path=/head/; revision=265163
* Turns out this .if evaluated not in the context of the makedtb targetWarner Losh2014-04-301-0/+5
| | | | | | | | sometimes due to Makefile expansion rules. Make the test for things being NULL elsewhere... Notes: svn path=/head/; revision=265162
* Allow FDT_DTS_FILE to be a list, either in the makedtb target, or in aWarner Losh2014-04-301-3/+7
| | | | | | | | | | kernel config file. If you also want to have a static DTB compiled into your kernel, however, it cannot be a list. We have no mechanism in the kernel for picking one, so that doesn't make sense and will result in a compile-time error. Notes: svn path=/head/; revision=265154
* Use proper include path for dtc as well as cpp.Warner Losh2014-02-281-1/+1
| | | | Notes: svn path=/head/; revision=262626
* Integrate device-tree upstream files into the build process:Warner Losh2014-02-281-0/+11
| | | | | | | | | | | | | | | | | (1) Invoke cpp to bring in files via #include (although the old /include/ stuff is supported still). (2) bring in files from either vendor tree or freebsd-custom files when building. (3) move all dts* files from sys/boot/fdt/dts to sys/boot/fdt/dts/${MACHINE} as appropriate. (4) encode all the magic to do the build in sys/tools/fdt/make_dtb.sh so that the different places in the tree use the exact same logic. (5) switch back to gpl dtc by default. the bsdl one in the tree has significant issues not easily addressed by those unfamiliar with the code. Notes: svn path=/head/; revision=262614
* Flattened Device Tree helper scripts.Rafal Jaworowski2010-06-022-0/+52
Reviewed by: imp Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=208749