svn commit: r313474 - head/sys/mips/conf
Allan Jude
allanjude at FreeBSD.org
Thu Feb 9 15:16:10 UTC 2017
Author: allanjude
Date: Thu Feb 9 15:16:08 2017
New Revision: 313474
URL: https://svnweb.freebsd.org/changeset/base/313474
Log:
Add I2C device hints for Onion Omega
This allows you to control up to 8 relay expansions from FreeBSD
https://github.com/freebsd/freebsd-wifi-build/wiki/Onion-Omega#controlling-the-relay-expansion
Reviewed by: adrian, mizhka
MFC after: 1 week
Sponsored by: ScaleEngine Inc.
Differential Revision: https://reviews.freebsd.org/D9503
Modified:
head/sys/mips/conf/ONIONOMEGA.hints
Modified: head/sys/mips/conf/ONIONOMEGA.hints
==============================================================================
--- head/sys/mips/conf/ONIONOMEGA.hints Thu Feb 9 14:47:34 2017 (r313473)
+++ head/sys/mips/conf/ONIONOMEGA.hints Thu Feb 9 15:16:08 2017 (r313474)
@@ -123,3 +123,10 @@ hint.gpioled.3.pins=0x00008000
hint.gpioled.3.name="blue"
hint.gpioled.3.invert=0
+# I2C
+# 0x20 - 0x27 = Relay Controllers (0x27 is default)
+# 0x5a = PWM/Servo Controller
+hint.gpioiic.0.at="gpiobus0"
+hint.gpioiic.0.pins=0x300000 # pins 20 and 21
+hint.gpioiic.0.scl=0 # pin 20
+hint.gpioiic.0.sda=1 # pin 21
More information about the svn-src-all
mailing list