From owner-freebsd-arm@FreeBSD.ORG Wed May 15 00:14:30 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 950D1CBE for ; Wed, 15 May 2013 00:14:30 +0000 (UTC) (envelope-from tom@0x544745.com) Received: from mail-oa0-f49.google.com (mail-oa0-f49.google.com [209.85.219.49]) by mx1.freebsd.org (Postfix) with ESMTP id 5F34F8EF for ; Wed, 15 May 2013 00:14:30 +0000 (UTC) Received: by mail-oa0-f49.google.com with SMTP id k14so1451617oag.36 for ; Tue, 14 May 2013 17:14:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:x-gm-message-state; bh=ACV5HLNULX+q+OzPhC0SHo0CL5TtIoXUEVC1GW1YheI=; b=IBphLPAAxF5ylAC9MykBeAStsKG1MaHvIAERUuDBeZ+t3/+ONAgC4C/7dnbvPSubrI kKEp3JCb0vFcsavYtzftQcxNIBxZ0otoJX7m7Rxzqu+u8tR29/jgwQuARES/al5YptKX FN8TVrOA7h+7OABOhHqRaLW9t45Nq3R01vNA/BhPAxhILJNWwR0WNrN0FkATtfA5Fat9 BS8blln6ZZU1w5lvcFl2Fr1DdggSmyLhw8blhmX/71oknEq8ZX4QmCKvntWLje0k1vcd 7sfPp79JhLr59H6oACYSsX56DnUN2T1hIHR6SfoLNoL3JWHsggwbCdPC7hDnDWP3mkIh lzqQ== MIME-Version: 1.0 X-Received: by 10.60.116.3 with SMTP id js3mr15729364oeb.142.1368576869543; Tue, 14 May 2013 17:14:29 -0700 (PDT) Received: by 10.182.31.11 with HTTP; Tue, 14 May 2013 17:14:29 -0700 (PDT) In-Reply-To: <20130515021751.8848a996.ray@freebsd.org> References: <20130514192448.7b48e095.ray@freebsd.org> <20130515021751.8848a996.ray@freebsd.org> Date: Tue, 14 May 2013 18:14:29 -0600 Message-ID: Subject: Re: RS-232 driver for GPIO From: Tom Everett To: Aleksandr Rybalko X-Gm-Message-State: ALoCoQmpZUuk8Xp2SOev0rcido/38EIY8owjwrCYtZrvn6k64pLNR41FeNTJqZF0inou+t76nIr+ Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "freebsd-arm@freebsd.org" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 May 2013 00:14:30 -0000 Did you mean 14 &15, or 14 & 16? On Tue, May 14, 2013 at 5:17 PM, Aleksandr Rybalko wrote: > On Tue, 14 May 2013 12:20:08 -0600 > Tom Everett wrote: > > > ok so the FDT definition would have to be added here? > > > > > http://svnweb.freebsd.org/base/head/sys/boot/fdt/dts/bcm2835-rpi-b.dts?view=markup > > > > Yeah, right. > > But I have bad news. Both UARTs can be connected to pairs(tx+rx) 14+16, > 32+33, 40+41 and both UARTs can be connected to any of this pins. > But only 14, 16 and 40(PWM0) wired to ext.pin. > > > > > > > On Tue, May 14, 2013 at 10:24 AM, Aleksandr Rybalko > > wrote: > > > > > On Tue, 14 May 2013 09:06:44 -0700 > > > Adrian Chadd wrote: > > > > > > > ... the r-pi actually has an RS232 port exposed via GPIO. It's > > > > only 3.3v but it's there. > > > > > > > > Someone just needs to write up an SIO driver for it and then put > > > > the GPIO pins in question into RS232 "mode". > > > > > > we have it already :) (console works on uart) > > > only FDT definition is required. > > > And maybe some fixes for boudrate setting and/or format setup > > > (bits/parity/stop bits/etc) > > > > > > > > > > > Yay multi-function GPIO pins! > > > > > > > > > > > > > > > > adrian > > > > > > > > > > > > On 14 May 2013 08:58, Tom Everett wrote: > > > > > Good morning ARM mailing list. > > > > > > > > > > I've been running FreeBSD on my Pi, and I've now got two XBee > > > > > Pros which I hope to connect. XBee's communicate over RS-232. > > > > > > > > > > https://www.sparkfun.com/products/8742 > > > > > > > > > > I see from the source tree that it was possible to attach the > > > > > iic driver to GPIO pins in software: > > > > > > > > > > > http://svnweb.freebsd.org/base/head/sys/dev/gpio/gpioiic.c?view=markup > > > > > > > > > > I'm wondering, it is possible to connect the FreeBSD serial > > > > > driver for RS-2332 to GPIO in a similar way to how iic was > > > > > connected? > > > > > > > > > > > > > > > > > > > > -- > > > > > A better world shall emerge based on faith and understanding - > > > > > Douglas MacArthur > > > > > _______________________________________________ > > > > > freebsd-arm@freebsd.org mailing list > > > > > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > > > > > To unsubscribe, send any mail to > > > > > "freebsd-arm-unsubscribe@freebsd.org" > > > > _______________________________________________ > > > > freebsd-arm@freebsd.org mailing list > > > > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > > > > To unsubscribe, send any mail to > > > > "freebsd-arm-unsubscribe@freebsd.org" > > > > > > > > > -- > > > Aleksandr Rybalko > > > > > > > > > > > -- > > A better world shall emerge based on faith and understanding - > > Douglas MacArthur > > > -- > Aleksandr Rybalko > -- A better world shall emerge based on faith and understanding - Douglas MacArthur