Page MenuHomeFreeBSD

Add support for NanoPI NEO2
ClosedPublic

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

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 Skipped
Unit
Unit Tests Skipped

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

You should add a new device a10_codec too

sys/conf/files.arm64
30

make this depend on sound a10_codec

31

that should depend on a31_dmac

32

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

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.