Page MenuHomeFreeBSD

Add support for NanoPI NEO2
ClosedPublic

Authored by freebsdnewbie_freenet.de on May 1 2019, 4:22 PM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 21 2024, 1:21 PM
Unknown Object (File)
Nov 11 2024, 10:56 PM
Unknown Object (File)
Oct 29 2024, 12:37 AM
Unknown Object (File)
Oct 22 2024, 12:04 PM
Unknown Object (File)
Oct 18 2024, 8:04 AM
Unknown Object (File)
Oct 5 2024, 8:37 AM
Unknown Object (File)
Oct 4 2024, 7:00 PM
Unknown Object (File)
Oct 4 2024, 11:50 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.