Page MenuHomeFreeBSD

Add FreeBSD layer for AM335x-based devices DTS files
AbandonedPublic

Authored by gonzo on Feb 3 2017, 11:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 20 2023, 2:43 AM
Unknown Object (File)
Dec 15 2023, 10:44 PM
Unknown Object (File)
Dec 3 2023, 8:30 PM
Unknown Object (File)
Nov 6 2023, 12:50 PM
Unknown Object (File)
Nov 4 2023, 9:43 PM
Unknown Object (File)
Oct 30 2023, 10:11 AM
Unknown Object (File)
Oct 5 2023, 11:48 AM
Unknown Object (File)
Oct 3 2023, 9:42 PM
Subscribers

Details

Reviewers
imp
loos
ian
Summary

After switching to Linux DTS files for AM335x-base boards,
some of the devices are no longer available on FreeBSD, namely:

  • PMIC, power controller: irq property is missing in upstream DTS
  • PRUSS: node is missing in upstream DTS
  • SPI and I2C2: not enabled in upstream DTS

Users of earlier builds would expect all these devices to be present
in later releases as well, so we can't just stop supporting them.

Possible solution:

  • Add $SRCBASE/sys to include path in make_dtb.sh so FreeBSD-specific DTS files in boot/fdt/dts can include files in gnu/dts using #include <gnu/dts/..>
  • Bring back FreeBSD-specific beaglebone-black.dts and beaglebone.dts that apply freebsd-specific layer to the upstream am335x-bone*.dts files

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 7223
Build 7393: arc lint + arc unit

Event Timeline

gonzo retitled this revision from to Add FreeBSD layer for AM335x-based devices DTS files.
gonzo updated this object.
gonzo edited the test plan for this revision. (Show Details)
gonzo added reviewers: ian, imp, loos.

Do not use the same name as upstream DTS files and add UPDATING notice
about compatibility breakage

Possible solution (cont):

  • Upstream the changes that make sense.

I2C2 is enabled upstream, this is where the cape eeprom is (see am335x-bone-common.dts)
IIRC spi was enabled by loos@ but I don't know why.