From owner-svn-src-all@freebsd.org Thu Feb 9 15:16:09 2017 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E635CCD7314; Thu, 9 Feb 2017 15:16:09 +0000 (UTC) (envelope-from allanjude@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B2C61285; Thu, 9 Feb 2017 15:16:09 +0000 (UTC) (envelope-from allanjude@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v19FG8tr016674; Thu, 9 Feb 2017 15:16:08 GMT (envelope-from allanjude@FreeBSD.org) Received: (from allanjude@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v19FG8mA016673; Thu, 9 Feb 2017 15:16:08 GMT (envelope-from allanjude@FreeBSD.org) Message-Id: <201702091516.v19FG8mA016673@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: allanjude set sender to allanjude@FreeBSD.org using -f From: Allan Jude Date: Thu, 9 Feb 2017 15:16:08 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r313474 - head/sys/mips/conf X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Feb 2017 15:16:10 -0000 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