From owner-freebsd-hackers@freebsd.org Sun Feb 25 18:00:21 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BFF45F066B6 for ; Sun, 25 Feb 2018 18:00:21 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound1b.ore.mailhop.org (outbound1b.ore.mailhop.org [54.200.247.200]) (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 4CB4769893 for ; Sun, 25 Feb 2018 18:00:20 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: b1379751-1a55-11e8-bb8e-b35b57339d60 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound1.ore.mailhop.org (Halon) with ESMTPSA id b1379751-1a55-11e8-bb8e-b35b57339d60; Sun, 25 Feb 2018 17:59:58 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id w1PI0I1B072911; Sun, 25 Feb 2018 11:00:18 -0700 (MST) (envelope-from ian@freebsd.org) Message-ID: <1519581618.91697.261.camel@freebsd.org> Subject: Re: Help, please, with getting a custom I2C real time clock module to load From: Ian Lepore To: Lee D , freebsd-hackers@freebsd.org Date: Sun, 25 Feb 2018 11:00:18 -0700 In-Reply-To: References: Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Feb 2018 18:00:21 -0000 On Sun, 2018-02-25 at 09:48 -0500, Lee D wrote: > Hi Everyone, > > I have written a new I2C driver (for the Xilinx Zynq) and a new real > time clock chip driver (for the ST M41T82) to use with hardware on my > custom board.  This is for 11.0.1. > [...] I just remembered... another piece of non-obvious magic that is required to be an i2c host controller whose bus is managed by ofw_iicbus is that your driver has to implement the ofw_bus_get_node method.  The implementation is trivial, just grab the one out of arm/freescale/imx/imx_i2c.c. -- Ian