From owner-freebsd-arm@FreeBSD.ORG Mon Feb 4 20:17:55 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 56BFDA3C; Mon, 4 Feb 2013 20:17:55 +0000 (UTC) (envelope-from damjan.marion@gmail.com) Received: from mail-we0-x235.google.com (we-in-x0235.1e100.net [IPv6:2a00:1450:400c:c03::235]) by mx1.freebsd.org (Postfix) with ESMTP id B170AAC0; Mon, 4 Feb 2013 20:17:54 +0000 (UTC) Received: by mail-we0-f181.google.com with SMTP id t44so5121617wey.12 for ; Mon, 04 Feb 2013 12:17:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :cc:content-transfer-encoding:message-id:references:to:x-mailer; bh=xz27n4mfimIW2drxIkNO/5Id0KiPdlMDj910l2ayD1Q=; b=BEPd0dmaNa1SgbRP0m0Aq9Dr15jAsXPU1jSaCtxlouVtYFrzQR9YT9lq0Fo3EsMJFO pzHNAQBMvJkgHXiFPc8bN4pcWf4XCmxFN05i7z82AGRUxoDxe2weDqaasVWzS9xwJ4CA FUbWVObja70nt3hJs0VAmNc7Y3/X9xofJvczxo1b9PvpTVDqUZF1FzRcW2kuL3E8hiue SuJ9fGKDhvZUdH695DWiS+aB80yboPFc+u8otl0lPHU04Uz26cNBOxj+0SpDZ4PyJUur QcfVlmKYhwmo8D/D8srlIK4RHRnflcLPWs11yo2BekLr7uEoWrKDvMhLP3cVZkEXvKIO dkqg== X-Received: by 10.194.118.166 with SMTP id kn6mr2729257wjb.18.1360009073124; Mon, 04 Feb 2013 12:17:53 -0800 (PST) Received: from ?IPv6:2001:470:72bb::12e? ([2001:470:72bb::12e]) by mx.google.com with ESMTPS id n10sm1942937wia.0.2013.02.04.12.17.49 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 04 Feb 2013 12:17:51 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: Beaglebone Serial Ports From: Damjan Marion In-Reply-To: <1359818003.93359.381.camel@revolution.hippie.lan> Date: Mon, 4 Feb 2013 21:17:49 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <6201EAD1-31FC-49C0-A990-D32EEBE4EF6F@gmail.com> References: <510CE8E0.9070102@g7iii.net> <1359818003.93359.381.camel@revolution.hippie.lan> To: Ian Lepore X-Mailer: Apple Mail (2.1499) 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: Mon, 04 Feb 2013 20:17:55 -0000 On Feb 2, 2013, at 4:13 PM, 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. Actually it should be quite simple. There is pinmux section in DTS file = where you can configure each pin you need. I put into DTS file only stuff which is hardwired on board. That's the = reason why just 1st serial port is enabled. To enable other serial ports just DTS file needs to be edited: 1) into SCM configuration proper triplets = should be inserted, =20 possible values are in sys/arm/ti/am335x/am335x_scm_padconf.c 2) uart0 config can be copied with modified memory address and = interrupt (proper values can be found in TRM) Would like to hear if it works as I never tried :) Damjan=