aboutsummaryrefslogtreecommitdiff
path: root/sys/boot/fdt
Commit message (Collapse)AuthorAgeFilesLines
* Move sys/boot to stand. Fix all references to new locationWarner Losh2017-11-147-2394/+0
| | | | | | | Sponsored by: Netflix Notes: svn path=/head/; revision=325834
* Move sys/boot/fdt/dts to sys/dts and adjust scripts.Warner Losh2017-11-14116-27290/+0
| | | | | | | Sponsored by: Netflix Notes: svn path=/head/; revision=325826
* Centralize all 32-bit builds on 64-bit platform stuff.Warner Losh2017-11-061-4/+0
| | | | | | | | | | Move the addition of the -m32 and other flags to defs.mk. Remove redunant copies of -m32 that come from multiple locations. Sponsored by: Netflix Notes: svn path=/head/; revision=325485
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Cleanup non-arch MakefilesWarner Losh2017-10-291-1/+1
| | | | | | | | | | Use SYSDIR, BOOTSRC, LDRSRC and FDTSRC in preference to relative paths. Also, use bsd.init.mk where needed. Sponsored by: Netflix Notes: svn path=/head/; revision=325094
* Use preferred defined paths, rather than relative paths in fdt.Warner Losh2017-10-221-2/+4
| | | | | | | Sponsored by: Netflix Notes: svn path=/head/; revision=324883
* Rather than laying whack-a-mole with including the path to stand.h,Warner Losh2017-10-101-1/+0
| | | | | | | | | | always include it. Remove places where we explicitly include it. This also helps reduce the 'cut-and-paste' factor of these Makefiles. Sponsored by: Netflix Notes: svn path=/head/; revision=324460
* Add missing -I${SASRC} in a couple of places so that stand.h doesn'tWarner Losh2017-10-091-0/+1
| | | | | | | | | accidentally come in via host pollution. Sponsored by: Netflix Notes: svn path=/head/; revision=324451
* Allow Raspberry Pi platform and drivers to be configured with upstream DTBs.Ian Lepore2017-10-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | - Added more compatibility strings to drivers not yet converted - Added new RPI platform code compatibility string to match the ones used upstream - Adapted RPI and RPI2 DTS to match the new platform code compatibility string The goal is to use the upstream DTBs as a replacement for our custom one. This is now possible with these changes. Additionally, as the RPI firmware automatically chooses the right DTB for us, this would allow to have one common armv6 kernel for RPI0 and RPI1 (BCM2835-based), and one common armv7 kernel for RPI2 v1.1 (BCM2836-based), and RPI2 v1.2 / RPI3 (BCM2837-based). Submitted by: Sylvain Garrigues <sylgar@gmail.com> Differential Revision: https://reviews.freebsd.org/D12360 Notes: svn path=/head/; revision=324184
* Add "xlnx,zynq-7000" to zedboard and zybo compatible propertyOleksandr Tymoshenko2017-08-242-2/+2
| | | | | | | | | | This property is required to boot CURRENT on zedboard and zybo PR: 221208 Submitted by: Thomas Skibo <thoma555-bsd@yahoo.com> Notes: svn path=/head/; revision=322827
* RPI DTS: Add value previously set by VideoCore and DTB linksEmmanuel Vadot2017-08-192-2/+2
| | | | | | | | | | | | | | | | | | | | | Using latest U-Boot for RPI 1 or 2 the DTB loaded by the firmware is discarded. The DTB was previously patched by the firmware to contain the DMA channel mask. DTB provided by the rpi firmware or DTS in the Linux tree contain the raw value directly. Do the same for our DTS as we cannot switch to the upstream ones yet. Not having the DMA channel mask setup properly cause mmc not to be detected (and probably other problems on driver using DMA). Also, add links for rpi dtb to the name used by u-boot. This way the dtb can be loaded by ubldr using the U-Boot env variable fdtfile. Tested On: RPI B Rev2, RPI Zero, RPI 2 v1.1 RPI 2 v1.2 Thanks to Sylvain Garrigues <sylvain@sylvaingarrigues.com> for the help. PR: 218344 Notes: svn path=/head/; revision=322694
* Support for v1.10 (latest) of RISC-V privilege specification.Ruslan Bukin2017-08-104-429/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New version is not compatible on supervisor mode with v1.9.1 (previous version). Highlights: o BBL (Berkeley Boot Loader) provides no initial page tables anymore allowing us to choose VM, to build page tables manually and enable MMU in S-mode. o SBI interface changed. o GENERIC kernel. FDT is now chosen standard for RISC-V hardware description. DTB is now provided by Spike (golden model simulator). This allows us to introduce GENERIC kernel. However, description for console and timer devices is not provided in DTB, so move these devices temporary to nexus bus. o Supervisor can't access userspace by default. Solution is to set SUM (permit Supervisor User Memory access) bit in sstatus register. o Compressed extension is now turned on by default. o External GCC 7.1 compiler used. o _gp renamed to __global_pointer$ o Compiler -march= string is now in use allowing us to choose required extensions (compressed, FPU, atomic, etc). Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D11800 Notes: svn path=/head/; revision=322361
* Update pl310 node in Armada 38x DTS to match the one used in LinuxMarcin Wojtas2017-08-091-1/+4
| | | | | | | | | | | | | | Since the cache controller nodes fixup is added to the platform code, this patch aligns it to the Linux device tree representation. Submitted by: Patryk Duda <pdk@semihalf.com> Reviewed by: cognet (mentor) Approved by: cognet (mentor) Obtained from: Semihalf Differential Revision: https://reviews.freebsd.org/D11884 Notes: svn path=/head/; revision=322295
* Remove clock-frequency properties from Armada 38x timer nodesMarcin Wojtas2017-08-091-2/+0
| | | | | | | | | | | | | | | Since the timers' base frequency setting is added to the platform code, this patch removes clock-frequency properties from global and twd timers, aligning both to the Linux device tree. Submitted by: Patryk Duda <pdk@semihalf.com> Reviewed by: cognet (mentor) Approved by: cognet (mentor) Obtained from: Semihalf Differential Revision: https://reviews.freebsd.org/D11882 Notes: svn path=/head/; revision=322292
* Restore original /soc ranges on Marvell Armada 38x boardsMarcin Wojtas2017-08-093-3/+15
| | | | | | | | | | | | | | Because fdt_get_ranges can process now multiple 'ranges' entries, restoring the ranges from original Linux device trees is possible. Submitted by: Patryk Duda <pdk@semihalf.com> Reviewed by: cognet (mentor) Approved by: cognet (mentor) Obtained from: Semihalf Differential Revision: https://reviews.freebsd.org/D11877 Notes: svn path=/head/; revision=322286
* Alwinner: nanopi-neo: Remove r_i2c node from DTS as it isn't used on the boardEmmanuel Vadot2017-08-011-4/+0
| | | | Notes: svn path=/head/; revision=321891
* dts: arm: Fix our local patches for H3Emmanuel Vadot2017-07-092-8/+4
| | | | | | | | sun4i-a10.h is not included anymore, define directly the drive strengh of the pins. Notes: svn path=/head/; revision=320835
* Enable arm,io-coherent property of PL310 L2 cache on Armada 38x platformsZbigniew Bodek2017-06-211-0/+1
| | | | | | | | | | | | | | | | | This patch disables outer cache sync in PL310 driver by adding "arm,io-coherent" property. In addition to the previous patches it was the last bit needed for enabling proper operation of Armada 38x SoCs with the IO cache coherency. Submitted by: Michal Mazur <mkm@semihalf.com> Obtained from: Semihalf Sponsored by: Stormshield Reviewed by: mmel Differential revision: https://reviews.freebsd.org/D11204 Notes: svn path=/head/; revision=320200
* Remove some custom DTS files as we are using upstream ones.Emmanuel Vadot2017-06-2010-475/+0
| | | | Notes: svn path=/head/; revision=320131
* Enable HWPMC overflow IRQ on both CPUs in MPICZbigniew Bodek2017-06-131-1/+1
| | | | | | | | | | | | | | | | | | This commit enables usage of HWPMC interrupts for the Marvell SoCs, which use MPIC (Armada38x and ArmadaXP). Those interrupts require extra unmasking, comparing to others. Also, in order to process counters per-CPU, they are masked/unmasked using separate registers' sets for each core. Submitted by: Michal Mazur <mkm@semihalf.com> Marcin Wojtas <mw@semihalf.com> Obtained from: Semihalf Sponsored by: Stormshield, Netgate Differential revision: https://reviews.freebsd.org/D10913 Notes: svn path=/head/; revision=319914
* Enable in-band link management on A388-Clearfog boardZbigniew Bodek2017-06-131-5/+1
| | | | | | | | | | | | | | This patch adds in-band link management over SGMII of the SFP transceiver on Armada-388-Clearfog board. Submitted by: Marcin Wojtas <mw@semihalf.com> Obtained from: Semihalf Sponsored by: Netgate Reviewed by: loos Differential revision: https://reviews.freebsd.org/D10708 Notes: svn path=/head/; revision=319909
* Restore DTS node of PCIe controller for A38X boardsZbigniew Bodek2017-06-084-41/+171
| | | | | | | | | | | | | | | | | | Add pcie-controller node as a bus-parent of pcie nodes for Armada38x boards. This reduces diff between Linux and FreeBSD PCIe device tree representation to the minimum. This commit also allows for using multiple PCIe ports, thanks to the recent driver updates, which support such hierarchy. Restore original PCIe nodes in armada-385.dtsi and apply necessary changes in hitherto unused armada-380.dtsi. Submitted by: Michal Mazur <mkm@semihalf.com> Marcin Wojtas <mw@semihalf.com> Obtained from: Semihalf Sponsored by: Stormshield, Netgate Differential revision: https://reviews.freebsd.org/D10907 Notes: svn path=/head/; revision=319707
* Fix the offset for the CPU0 MPIC registers.Luiz Otavio O Souza2017-05-171-1/+1
| | | | | | | | | | | Please note that only a subset of CPU0 registers are exported. CPU1 registers are not touched. Obtained from: ARMADA38X Functional Specifications Sponsored by: Rubicon Communications, LLC (Netgate) Notes: svn path=/head/; revision=318428
* [arm] [rt1310] add initial RT1310 SoC code.Adrian Chadd2017-05-062-0/+251
| | | | | | | | | | | | | | | | This code base on lpc code. Ralink RT1310 is oem from 5V Technologies. RT1310 is ARM926EJS(arm5t). Tested: * Buffalo WZR2-G300N Submitted by: Hiroki Mori <yamori813@yahoo.co.jp> Reviewed by: mizhka Differential Revision: https://reviews.freebsd.org/D7238 Notes: svn path=/head/; revision=317872
* Switch BERI Programmable Interrupt Controller to INTRNG.Ruslan Bukin2017-04-184-72/+92
| | | | | | | Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=317095
* Reduce the diff on beaglebone-black DTS.Emmanuel Vadot2017-04-011-13/+1
| | | | | | | | The HDMI TX (tda19988) is already enabled in upstream DTS so use it directly instead. Notes: svn path=/head/; revision=316376
* Delete our local imx53-qsb.dts file; the code now runs fine using theIan Lepore2017-03-191-134/+0
| | | | | | | standard vendor-supplied file in sys/gnu/dts/arm. Notes: svn path=/head/; revision=315577
* [loader][fdt] Fix applying overlays without __local_fixups__ nodeOleksandr Tymoshenko2017-03-101-5/+10
| | | | | | | | | | | Do not return error if __local_fixups__ node is missing in DTB overlay because local fixup data is optional. Reported by: Manuel Stuhn MFC after: 1 week Notes: svn path=/head/; revision=315019
* Match JETSON-TK1 FreeBSD specific DTS stub with r314854.Michal Meloun2017-03-081-1/+1
| | | | Notes: svn path=/head/; revision=314897
* Update our Allwinner DTS to latest DTS changes in Linux 4.10Emmanuel Vadot2017-03-072-101/+31
| | | | Notes: svn path=/head/; revision=314855
* Set USB OTG mode to host (missed in vendor DTS for some reason).Ruslan Bukin2017-03-011-0/+4
| | | | | | | Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=314488
* Add support for Intel Arria 10 SoC Development Kit.Ruslan Bukin2017-02-284-294/+136
| | | | | | | | | Use standard DTS files for SOCKIT and SOCDK. Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=314389
* sys: Replace zero with NULL for pointers.Pedro F. Giffuni2017-02-221-1/+1
| | | | | | | | | Found with: devel/coccinelle MFC after: 3 weeks Differential Revision: https://reviews.freebsd.org/D9694 Notes: svn path=/head/; revision=314068
* Add missing ephy bus gates and resets.Jared McNeill2017-01-311-4/+4
| | | | Notes: svn path=/head/; revision=313014
* [am335x] Use upstream tda19988 framer node from upstream DTSOleksandr Tymoshenko2017-01-231-7/+1
| | | | | | | | | | | | | Remove custom DTS duplicate of tda19988 node and use upstream-provided one introduced by r295436. This duplication created two tdaX devices which confused fb driver into using only 640x480 area while setting display to native resolution. Reported by: Michael Smith MFC after: 3 days Notes: svn path=/head/; revision=312670
* Remove empty ranges property so beri_simplebus can be attached again.Ruslan Bukin2017-01-184-4/+0
| | | | | | | Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=312384
* The write-protect is not wired on uFW, disable it to allow writes to SDLuiz Otavio O Souza2017-01-171-0/+1
| | | | | | | | | card. Sponsored by: Rubicon Communications, LLC (Netgate) Notes: svn path=/head/; revision=312347
* Add DTS file for Armada 385 DB-AP boardZbigniew Bodek2017-01-051-0/+271
| | | | | | | | | | | | | | | Armada38x is already supported in the tree. This commit adds support for DB-AP board. File was taken from Linux v4.8 and accustomed to FreeBSD in minimal possible way. Submitted by: Bartosz Szczepanek <bsz@semihalf.com> Obtained from: Semihalf Sponsored by: Stormshield Differential revision: https://reviews.freebsd.org/D7327 Notes: svn path=/head/; revision=311455
* Add DTS file for Solidrun ClearFog boardZbigniew Bodek2017-01-052-0/+589
| | | | | | | | | | | | | ClearFog is equipped with Marvell Armada 388 SoC, which is already supported in FreeBSD. Submitted by: Bartosz Szczepanek <bsz@semihalf.com> Obtained from: Semihalf Sponsored by: Stormshield Differential revision: https://reviews.freebsd.org/D7326 Notes: svn path=/head/; revision=311454
* Correct CESA node in armada-38x.dtsiZbigniew Bodek2017-01-051-1/+2
| | | | | | | | | | | | | CESA resources were invalid, what caused driver to fail during attach call. Submitted by: Bartosz Szczepanek <bsz@semihalf.com> Obtained from: Semihalf Sponsored by: Stormshield Differential revision: https://reviews.freebsd.org/D8180 Notes: svn path=/head/; revision=311451
* Add buffer management entries to armada-38x.dtsiZbigniew Bodek2017-01-051-0/+19
| | | | | | | | | | | | | | Hardware buffer management entries are not used yet by FreeBSD. They were added for compliance with Linux Armada 38x device tree representation and will be used in future network support. Submitted by: Bartosz Szczepanek <bsz@semihalf.com> Obtained from: Semihalf Sponsored by: Stormshield Differential revision: https://reviews.freebsd.org/D8179 Notes: svn path=/head/; revision=311450
* Remove a GPL licensed DTS.Luiz Otavio O Souza2017-01-032-317/+250
| | | | | | | | | | | | The micro-Firewall DTS is now a single BSD licensed file. Reported by: manu Obtained from: pfSense MFC after: 2 weeks Sponsored by: Rubicon Communications, LLC (Netgate) Notes: svn path=/head/; revision=311157
* Fix a typo in the third address of the reg property for the usbphy node.Jared McNeill2016-12-311-1/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=310972
* Add missing reg property to usbphy node.Jared McNeill2016-12-301-0/+3
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=310854
* Add an ethernet0 alias pointing to the /aix/usb/hub/ethernet node. ThisIan Lepore2016-11-262-2/+4
| | | | | | | | is required for u-boot to locate the ethernet node when it's doing fixup of the mac-address property when the user has overridden the default addr. Notes: svn path=/head/; revision=309195
* Enable the SPI1 and SPI2 node for Olimex A20 SOM EVB.Emmanuel Vadot2016-11-241-0/+2
| | | | | | | This was missed in r309079. Notes: svn path=/head/; revision=309084
* Enable UEXT related nodes for Olimex A20 SOMEmmanuel Vadot2016-11-231-0/+36
| | | | | | | | | | | | | | UEXT are Universal EXTension connector from Olimex. They embed i2c, spi and uart pins along power in one connector and are found on most, if not all, Olimex boards. The Olimex A20 SOM EVB have two UEXT connector so enable the nodes found on those two connectors. Patch has been applied upstream, in the meantime add the nodes to our custom DTS. Notes: svn path=/head/; revision=309064
* Add dts for Xunlong Orange Pi Plus 2E.Jared McNeill2016-11-201-0/+121
| | | | Notes: svn path=/head/; revision=308902
* Add dts for FriendlyARM NanoPi NEO.Jared McNeill2016-11-202-0/+201
| | | | Notes: svn path=/head/; revision=308901
* Add dtsi for FreeBSD-specific Allwinner H3 nodes.Jared McNeill2016-11-201-0/+179
| | | | Notes: svn path=/head/; revision=308900