Page MenuHomeFreeBSD

Import Mediatek/Ralink dtsi patches against OpenWRT dtsi files
ClosedPublic

Authored by sgalabov on Apr 15 2016, 1:48 PM.
Tags
Referenced Files
Unknown Object (File)
Dec 20 2023, 1:23 AM
Unknown Object (File)
Nov 24 2023, 7:22 PM
Unknown Object (File)
Nov 13 2023, 10:50 AM
Unknown Object (File)
Nov 9 2023, 9:43 PM
Unknown Object (File)
Nov 8 2023, 6:57 PM
Unknown Object (File)
Nov 5 2023, 5:28 PM
Unknown Object (File)
Oct 9 2023, 6:25 PM
Unknown Object (File)
Oct 8 2023, 8:39 PM
Subscribers

Details

Summary

This revision suggests dtsi patches to be used with the original OpenWRT dtsi files so we can re-use what has already been done in OpenWRT for the Mediatek/Ralink SoCs.

The only thing that is required after importing this revision should be the following:

  1. Import OpenWRT dts/dtsi files into sys/gnu/dts/mips ( from, e.g., https://git.openwrt.org/?p=openwrt.git;a=tree;f=target/linux/ramips/dts;h=fee448930238ce812cf5f4c023ae3831b322114f;hb=HEAD )
  2. Run the following script in sys/gnu/dts/mips:

for f in `ls [mr]t*.dtsi`; do
printf "\n#include <fbsd-$f>\n" > $f
done

This will apply our dtsi patches to OpenWRT's dtsi files and will allow us to re-use dts/dtsi files for ~170 Mediatek/Ralink boards.

Currently our drivers are not 100% compatible with OpenWRT's dts files, but they're compatible enough.
We can add more functionality in the future that would better leverage the OpenWRT work as well.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sgalabov retitled this revision from to Import Mediatek/Ralink dtsi patches against OpenWRT dtsi files.
sgalabov updated this object.
sgalabov edited the test plan for this revision. (Show Details)
sgalabov added a reviewer: adrian.
sgalabov set the repository for this revision to rS FreeBSD src repository - subversion.
sgalabov added a project: MIPS.
adrian edited edge metadata.
This revision is now accepted and ready to land.Apr 15 2016, 3:00 PM
This revision was automatically updated to reflect the committed changes.