Page MenuHomeFreeBSD

Add support for NanoPI NEO2
ClosedPublic

Authored by freebsdnewbie_freenet.de on May 1 2019, 4:22 PM.
Tags
None
Referenced Files
F81565413: D20129.id56914.diff
Thu, Apr 18, 4:18 AM
Unknown Object (File)
Sat, Apr 13, 4:18 AM
Unknown Object (File)
Sun, Apr 7, 3:49 PM
Unknown Object (File)
Mon, Apr 1, 6:34 AM
Unknown Object (File)
Fri, Mar 29, 8:30 AM
Unknown Object (File)
Fri, Mar 22, 7:55 AM
Unknown Object (File)
Mar 11 2024, 2:58 AM
Unknown Object (File)
Mar 11 2024, 12:03 AM

Details

Summary

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.

Test Plan

Tested on a NanoPI NEO2 mounted with NanoHat OLED. These functions did work so far:

  • Ethernet
  • serial
  • USB (HOST)
  • I2C
  • cpufreq + powerd
  • cpu+gpu temperature sensor
  • GPIO
  • audio (analog)

Diff Detail

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

Event Timeline

manu requested changes to this revision.May 1 2019, 4:31 PM

Few nits on kernel config, dtso looks good.
Thanks

sys/arm64/conf/GENERIC
220 ↗(On Diff #56912)

You should add a new device a10_codec too

sys/conf/files.arm64
30 ↗(On Diff #56912)

make this depend on sound a10_codec

31 ↗(On Diff #56912)

that should depend on a31_dmac

32 ↗(On Diff #56912)

This one too

This revision now requires changes to proceed.May 1 2019, 4:31 PM
freebsdnewbie_freenet.de added inline comments.
sys/conf/files.arm64
30 ↗(On Diff #56912)

Please bear with me if this is still not correct, i'm not that familiar with the conf/files*-files

Needed to add dma-device to kernel config, otherwise dsp device was not probed.

LGTM
Will do a build test later today and commit this.

This revision is now accepted and ready to land.May 2 2019, 7:59 AM
This revision was automatically updated to reflect the committed changes.