From owner-freebsd-arm@FreeBSD.ORG Sun Mar 1 20:13:32 2015 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 705DDF6F for ; Sun, 1 Mar 2015 20:13:32 +0000 (UTC) Received: from mail-wi0-x232.google.com (mail-wi0-x232.google.com [IPv6:2a00:1450:400c:c05::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0369AE45 for ; Sun, 1 Mar 2015 20:13:32 +0000 (UTC) Received: by wibbs8 with SMTP id bs8so10584529wib.0 for ; Sun, 01 Mar 2015 12:13:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=dhUkvxtTzmUsipT1/phrq0V+VRwXSQicJsN3klm7V4g=; b=FXSad9qm7OLxRqd5nfeTkHpp9ys8vJY5oB90iwM385Yw9BZ+JKOH3zKYAP/78XzbVF +DM+fTKL3pV+DbFweigB5a6Td2Loco8gI3RVqpEHqppgn5AyILzRNh6sJCw946jmfaqv goXzpbdR6zffZof4K3OecXWZjEnq0isWY8nSX7zXv+gXNlUwvhlOc6r1CmQtUN+y9a2c x5xLvENNKZ1MY1OmLnEzScLcqHqBaUB6gYjFRWeWsj9efXjFX9aT/rWI96Z54kZq3MSl BFu/NQWpsSMlnqbXZnVwZH6TnTOKjSHXYDGsET+FIAVV+zZVmwkwCgTAykrhO7VcSzwl Un9A== MIME-Version: 1.0 X-Received: by 10.195.12.35 with SMTP id en3mr49831370wjd.129.1425240810394; Sun, 01 Mar 2015 12:13:30 -0800 (PST) Received: by 10.27.214.136 with HTTP; Sun, 1 Mar 2015 12:13:30 -0800 (PST) In-Reply-To: References: Date: Sun, 1 Mar 2015 12:13:30 -0800 Message-ID: Subject: Re: Chronodot on RPI From: Waitman Gobble To: "freebsd-arm@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Mar 2015 20:13:32 -0000 On Sun, Mar 1, 2015 at 11:12 AM, Waitman Gobble wrote: > Anyone have luck with the ChronoDot (D3231) on Raspberry Pi? > I have a RPI B+ (rev 1), tried with HEAD r277133 and r279488 without luck. > > > # uname -a > FreeBSD ARTiming150228 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r277133: > Tue Jan 13 20:18:52 PST 2015 > waitman@rpidev.waitman.net:/usr/home/waitman/crochet-freebsd/work/obj/arm.armv6/usr/src/sys/TMRDEV > arm > > # uname -a > FreeBSD raspberry-pi 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r279488: Sun > Mar 1 10:27:33 PST 2015 > waitman@rpidev.waitman.net:/usr/home/waitman/crochet-freebsd/work/obj/arm.armv6/usr/src/sys/TMRDEV > arm > > > # dmesg | grep iic > iichb0: mem 0x205000-0x20501f irq 61 on simplebus0 > iicbus0: on iichb0 > iic0: on iicbus0 > iichb1: mem 0x804000-0x80401f irq 61 on simplebus0 > iicbus1: on iichb1 > iic1: on iicbus1 > > > a) tried the DS1307 program from Vadim Zaigrin, without success. > > b) tried i2cscan from Winston Smith, > > only get errors. ie, > > ioctl(I2CRDWR) failed: Input/output error > > I have VCC pin 1, GND pin 6, SDA on 3 and SCL on 5. > > trying /dev/iic0 and /dev/iic1 > > Any help/suggestions apprecitated. > > Thank you, > > > -- > Waitman Gobble > Los Altos California USA > 510-830-7975 OOPs, I just realized that the code on Vadim's github is working. I had previously tried the code in the blog post. # ./ss -s -f /dev/iic1 # ./ss -r -f /dev/iic1 20:12:29 01/03/2015 root@raspberry-pi:~ # date Sun Mar 1 20:12:32 UTC 2015 https://github.com/vzaigrin/ds1307 Thank you, -- Waitman Gobble Los Altos California USA 510-830-7975