From owner-freebsd-embedded@FreeBSD.ORG Fri Sep 6 19:26:49 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id BF860AEA; Fri, 6 Sep 2013 19:26:49 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: from mail-wg0-x236.google.com (mail-wg0-x236.google.com [IPv6:2a00:1450:400c:c00::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1303829CE; Fri, 6 Sep 2013 19:26:48 +0000 (UTC) Received: by mail-wg0-f54.google.com with SMTP id e11so2285744wgh.9 for ; Fri, 06 Sep 2013 12:26:47 -0700 (PDT) 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 :cc:content-type; bh=B0Dvh8r0gwO4ryD4FI/ByWbrTZXrhPNWnhRoDM7RN64=; b=g4TQkd7KuydUzr57a22KZO+B8i1u62clJPndfQPmfAiSGuqLNkBIUlNzb1EKwQ51L1 ZQaAz7soIRAgfG52AOZXm7aSylaHoX5csa+ZbYKfvaKnxlCHJuDAU5LoVo8Krwl0OW7A 4g3cgLJZz8XMZ57ZEYaccAoeyKdsMeNfdlyinC4Kv5+g755AsVlYDCeLyXziLlUj4G/5 NQNOvRn2h3SX2Qy2PGM6bkYyn+JyVniO/wj1D2nhnDEER5oJUUsJX4RntUaYyrjsM3nw Ras8pcXgsriXx8pBtGTpX55b++7E58LmOFSVa8E/Cxj3+XPRAquk5yAr+ItAyfcdiPag Wt+A== MIME-Version: 1.0 X-Received: by 10.180.75.239 with SMTP id f15mr3221840wiw.43.1378495607560; Fri, 06 Sep 2013 12:26:47 -0700 (PDT) Received: by 10.216.75.140 with HTTP; Fri, 6 Sep 2013 12:26:47 -0700 (PDT) In-Reply-To: References: <1378491503.48812.5.camel@localhost> <1378493166.48894.1.camel@localhost> Date: Fri, 6 Sep 2013 16:26:47 -0300 Message-ID: Subject: Re: DIR-825B1 iicbus thing From: Luiz Otavio O Souza To: Sean Bruno Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-embedded X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Sep 2013 19:26:49 -0000 On 6 September 2013 16:21, Luiz Otavio O Souza wrote: > Sean, > > I've looked at your changes and found this: > > +# GPIO I2C bus > +hint.gpioiic.0.at="gpiobus0" > +hint.gpioiic.0.pins=0x00a0 > > Humm and 0x00a0 also seems wrong for DIR825: +# Pin 5 - WPS (LED blue) --> works +# Pin 6 - RTL8366RB switch data line +# Pin 7 - Planet (LED orange)--> works +# Pin 8 - RTL8366RB switch clock line If i'm not mistaken the correct mask is 0x140 (for pin 6 and pin 8) and then set the correct pin index for sda and scl. Luiz