Page MenuHomeFreeBSD

Add support for NanoPI NEO2

Authored by on May 1 2019, 4:22 PM.



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

rS FreeBSD src repository - subversion
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; 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.

220 ↗(On Diff #56912)

You should add a new device a10_codec too

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 added inline comments.
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.

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.