From owner-freebsd-arm@FreeBSD.ORG Tue May 26 06:14:04 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 0DA0F232 for ; Tue, 26 May 2015 06:14:04 +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 B6162A63 for ; Tue, 26 May 2015 06:14:03 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from th-04.cs.huji.ac.il ([132.65.80.125]) by kabab.cs.huji.ac.il with esmtp id 1Yx87V-000FjE-03; Tue, 26 May 2015 09:13:45 +0300 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Subject: Re: pwm for raspberry pi? From: Daniel Braniss In-Reply-To: Date: Tue, 26 May 2015 09:13:44 +0300 Cc: freebsd-arm Content-Transfer-Encoding: quoted-printable Message-Id: References: <1FD1336E-D99F-4114-AD33-FBA1DF844E93@cs.huji.ac.il> To: Luiz Otavio O Souza X-Mailer: Apple Mail (2.2098) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 May 2015 06:14:04 -0000 > On May 26, 2015, at 1:14 AM, Luiz Otavio O Souza = wrote: >=20 > On 25 May 2015 at 07:52, Daniel Braniss wrote: >> Hi, >> Now that I=E2=80=99m rapping up my spi/rfid driver (available on = demand :-), >> I would like to use the pwm interface to power on/off a lock, but >> have no idea how to go around it, so any clues would be mostly = welcomed. >>=20 >> cheers, >> danny >=20 > The PWM module is quite simple and has only two outputs, they can be > used only with recent 40 GPIO pins header (RPi-B+ or RPi2), in the > older models only one output was wired. >=20 I do have a B+ > The bcm2835 peripherals datasheet describes the PWM module registers I=E2=80=99ve read it, hence I know it=E2=80=99s possible, what I=E2=80=99 = missing is how to access it via FreeBSD. There is a some mention for the BeagleBoneBlack, but it seems broken, the FDT mentions the pins. Too many leads but not enough info on how to tie them up :-) cheers, danny