Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Feb 2017 15:16:08 +0000 (UTC)
From:      Allan Jude <allanjude@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r313474 - head/sys/mips/conf
Message-ID:  <201702091516.v19FG8mA016673@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702091516.v19FG8mA016673>