From owner-freebsd-current@freebsd.org Tue Aug 23 06:16:10 2016 Return-Path: Delivered-To: freebsd-current@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 2BEA1BC387F; Tue, 23 Aug 2016 06:16:10 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.116.210]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A677F1B19; Tue, 23 Aug 2016 06:16:09 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from bach.cs.huji.ac.il ([132.65.81.13]) by kabab.cs.huji.ac.il with esmtp id 1bc50A-000992-KL; Tue, 23 Aug 2016 09:15:58 +0300 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: rpi-b leds From: Daniel Braniss In-Reply-To: <0DB7BED3-A29F-497C-ACB9-6E678111764E@cs.huji.ac.il> Date: Tue, 23 Aug 2016 09:15:59 +0300 Cc: Andrey Fesenko , freebsd-arm , freebsd-current Message-Id: References: <8004FC58-40BE-404B-905F-C15C872FD084@cs.huji.ac.il> <0DB7BED3-A29F-497C-ACB9-6E678111764E@cs.huji.ac.il> To: Luiz Otavio O Souza X-Mailer: Apple Mail (2.3124) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Aug 2016 06:16:10 -0000 > On 23 Aug 2016, at 09:00, Daniel Braniss wrote: >=20 >>=20 >> On 23 Aug 2016, at 01:00, Luiz Otavio O Souza = wrote: >>=20 >> On 22 August 2016 at 08:55, Andrey Fesenko wrote: >>> On Mon, Aug 22, 2016 at 1:29 PM, Daniel Braniss wrote: >>>> Hi, >>>> I see that now both leds on the rpi-2 are operational, >>>> any chance it can happen on the rpi-b too? >>>>=20 >>>=20 >>> A year or two ago, rpi-b had operational leds, it's make not working >>> after rework fdt/std layer >>=20 >> I tested the leds on two different rpi-b and the leds are working. >> Maybe you are talking about the b+ model ? >>=20 >> The ACT or OK led for the old boards (< b+) are wired to gpio 16. The >> b+ has two leds, they are wired to pins 47 and 35. >>=20 >> For a quick fix, edit your dts and the leds will work. >>=20 >> Can you check the board revision for your rpi ? (sysctl = hw.board.revision) >>=20 >> These are the ones I tested: >>=20 >> hw.board.revision: 3 >> hw.board.revision: 14 >>=20 >> Tested with r301978. > tested with revision 303422: > hw.board.revision: 16 >=20 > and it=E2=80=99s a b+ >=20 > managed to get pin 35 to work, but not 47. > 50% success! > thanks, > danny >=20 maybe this can shed some light: gpio0: mem 0x200000-0x2000af on = simplebus0 gpio0: read-only pins: 46-53. gpio0: reserved pins: 48-53. gpiobus0: on gpio0 gpioled0: at pin 16 on gpiobus0 gpioled1: at pin 47 on gpiobus0 gpioled2: at pin 35 on gpiobus0 gpioled3: at pin 6 on gpiobus0 gpioled4: at pin 12 on gpiobus0 gpioled5: at pin 13 on gpiobus0 gpiobus0: warning: pin 16 is already mapped gpioled6: at pin 22 on gpiobus0 gpioled7: at pin 23 on gpiobus0 gpioled8: at pin 24 on gpiobus0 gpioled9: at pin 5 on gpiobus0 gpioc0: on gpio0 >>=20 >>=20 >> Luiz >=20 > _______________________________________________ > freebsd-current@freebsd.org = mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current = > To unsubscribe, send any mail to = "freebsd-current-unsubscribe@freebsd.org = "