From owner-freebsd-arm@FreeBSD.ORG Sun Feb 3 01:18:22 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 9091781A for ; Sun, 3 Feb 2013 01:18:22 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-ve0-f180.google.com (mail-ve0-f180.google.com [209.85.128.180]) by mx1.freebsd.org (Postfix) with ESMTP id 4C970DFA for ; Sun, 3 Feb 2013 01:18:22 +0000 (UTC) Received: by mail-ve0-f180.google.com with SMTP id jx10so3810435veb.25 for ; Sat, 02 Feb 2013 17:18:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to:x-mailer:x-gm-message-state; bh=Aog0UdkewN4hPy8BpMGkNAsSuRGx24ShIl/a12QIdB0=; b=C65aJV07xc2idFSdyUXhvyQRteqRx9hPa8uIZE7If0oAze3JVIZDKB0HiSFLlx4qca irRvJaPmC9eEOmGJgBIv6TbUY4b1rdxUDrotUSR3g0GUqthfv/Gr+hA4Jm3MhowxTd9U BKNYPDB9p8cCm8tuR7/mt4oSekfaTLRnLdySivSg4W6267QEJ19RzpDN9D9wEqoQkgcl U0s2yCrM8TO3Jz6hgJuM8fWDDJovvbYnBljqeWKWNtqA4EAkw6EbDtLcmVMTBGV4lXQh rTNB41hGtJ+MwMgLyKjyYIE4CoiC39dhDr8kG0AT47CC2ayo7jG4NGU/9ZkUoWUqJZV7 Q9OA== X-Received: by 10.52.177.163 with SMTP id cr3mr10076210vdc.94.1359854301264; Sat, 02 Feb 2013 17:18:21 -0800 (PST) Received: from dhcp107-18-61-166.hil-dentndt.den.wayport.net (dhcp107-18-61-166.hil-dentndt.den.wayport.net. [107.18.61.166]) by mx.google.com with ESMTPS id u5sm14116716vef.0.2013.02.02.17.18.19 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 02 Feb 2013 17:18:20 -0800 (PST) Sender: Warner Losh Subject: Re: Beaglebone Serial Ports Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <1359818003.93359.381.camel@revolution.hippie.lan> Date: Sat, 2 Feb 2013 18:18:17 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <81DAF389-BDED-4413-B1F8-C6308253F631@bsdimp.com> References: <510CE8E0.9070102@g7iii.net> <1359818003.93359.381.camel@revolution.hippie.lan> To: Ian Lepore X-Mailer: Apple Mail (2.1085) X-Gm-Message-State: ALoCoQlEIG9kwK79cBQz7o66AfvzTbArsDLYb9BcEzMPTIgWRpHr0q3DwxfJ3rra6SCO3mznfnH3 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: Sun, 03 Feb 2013 01:18:22 -0000 On Feb 2, 2013, at 8:13 AM, Ian Lepore wrote: > On Sat, 2013-02-02 at 10:22 +0000, Iain Young wrote: >> Hi Folks, >>=20 >> Just a quick question with regards to some clarification serial ports >> on the Beaglbone and FreeBSD. Am I correct in deducing that FreeBSD >> lacks support for UARTS1 thru 5 at the moment ? >>=20 >> I can see what I believe to be UART0 (which is attached to the USB) = as >> /dev/cuau0, but not the others. A few finds and greps through the >> kernel source didn't show up anything obvious either. >>=20 >> Is any one working on them ? Or is there a kernel module or option >> that I need to enable for them to build ? >>=20 >=20 > According to the datasheet all the onboard uarts should be supported = by > our standard uart driver (but only uart1 has all the modem-control = lines > wired). Two things need to be done to enable them: add entries to > the .dts file (easy), and configure the multipurpose pins for them at > runtime. I have no idea how we handle the latter in the FDT world. = In > the pre-FDT world it was pretty much ad-hoc and board-support routines > that ran at startup configured pins for that board. For Linux, there's a number of pin-mask registers that one just frobs to = select the active peripherals per pin. I don't think we have this pinmux = functionality yet. We should, since that's the right way to do it. Warner