From owner-freebsd-embedded@FreeBSD.ORG Fri Sep 6 19:22:01 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 63DF67AB; Fri, 6 Sep 2013 19:22:01 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: from mail-wg0-x22a.google.com (mail-wg0-x22a.google.com [IPv6:2a00:1450:400c:c00::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id AD493294B; Fri, 6 Sep 2013 19:22:00 +0000 (UTC) Received: by mail-wg0-f42.google.com with SMTP id b12so867385wgh.3 for ; Fri, 06 Sep 2013 12:21:59 -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=qCC1eWPNpzPggBRaNYeatqebr5OTezRsdfkpgpeAkxM=; b=ZnNXDFCek0ybCnUg59+9VzUGX5yocHnKmRq+BJXWy7K4a2HqXccQelrJDT2pdrpkl8 NU7vm+yIwC8mSV4swV2LDaW/RbgX+h2qeafhp1seKNNAXRskJdHDhMKQteF3Fvj6y64Y 5kn2CzQh94wnZ4A/VHV2RQIchE5Yc9ryouIGqQyLIGL6lITyemKMVnLi7uOJ+x6CFaoX 3SgXo8xVcWj95m2RBrtt272IryFr8uwhgw3+EHj4MNsOn92w2YV/5bwrlXallARbNZjd kC8lVH6jZ+rHSjAkyDucw4Y3Cq5o1KaAwL7hCw+j1OEAo6jiYdrQEkRJr331pc0qAXtK En8A== MIME-Version: 1.0 X-Received: by 10.180.198.79 with SMTP id ja15mr3230367wic.36.1378495319237; Fri, 06 Sep 2013 12:21:59 -0700 (PDT) Received: by 10.216.75.140 with HTTP; Fri, 6 Sep 2013 12:21:59 -0700 (PDT) In-Reply-To: <1378493166.48894.1.camel@localhost> References: <1378491503.48812.5.camel@localhost> <1378493166.48894.1.camel@localhost> Date: Fri, 6 Sep 2013 16:21:59 -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:22:01 -0000 Sean, I've looked at your changes and found this: +# GPIO I2C bus +hint.gpioiic.0.at="gpiobus0" +hint.gpioiic.0.pins=0x00a0 +hint.gpioiic.0.sda=0 +hint.gpioiic.0.scl=1 Unfortunately the gpioiic on -head doesn't support yet setting the sda and scl pin indexes, they are hardcoded in the code: #define SCL_PIN_DEFAULT 0 /* default index of SCL pin on gpiobus */ #define SDA_PIN_DEFAULT 1 Can you change them and check if it change anything ? Thanks, Luiz On 6 September 2013 15:46, Sean Bruno wrote: > On Fri, 2013-09-06 at 15:38 -0300, Luiz Otavio O Souza wrote: > > Maybe you're lucky and it is just > > supported: > http://svnweb.freebsd.org/base/head/sys/dev/etherswitch/rtl8366/ :-) (but > i'm not sure if 's' or the 'rb' suffix matter). > > > > > > Please check the TPLink 1043 kernel and hints for a setup example for > > this switch. > > Yeah, I did. and no, its not supported. Its not attaching when I > enable the driver and etherswitch. > > > > > > iicbb0: on gpioiic0 > > > iicbus0: on iicbb0 master-only > > > iicbus0: at addr 0xa8 > > > iic0: on iicbus0 > > >