Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752461Ab1FSHgL (ORCPT ); Sun, 19 Jun 2011 03:36:11 -0400 Received: from tx2ehsobe002.messaging.microsoft.com ([65.55.88.12]:55637 "EHLO TX2EHSOBE004.bigfish.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751999Ab1FSHgJ (ORCPT ); Sun, 19 Jun 2011 03:36:09 -0400 X-SpamScore: -9 X-BigFish: VS-9(zz1432N98dKzz1202hzzz2dh2a8h668h839h61h) X-Spam-TCS-SCL: 0:0 X-Forefront-Antispam-Report: CIP:70.37.183.190;KIP:(null);UIP:(null);IPVD:NLI;H:mail.freescale.net;RD:none;EFVD:NLI Date: Sun, 19 Jun 2011 15:41:49 +0800 From: Shawn Guo To: Grant Likely CC: Arnd Bergmann , , , , Jason Liu , , Jeremy Kerr , Sascha Hauer , Subject: Re: [PATCH 1/3] serial/imx: add device tree support Message-ID: <20110619074148.GC23171@S2100-06.ap.freescale.net> References: <1308410354-21387-1-git-send-email-shawn.guo@linaro.org> <1308410354-21387-2-git-send-email-shawn.guo@linaro.org> <201106181821.46574.arnd@arndb.de> <20110618162655.GK8195@ponder.secretlab.ca> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20110618162655.GK8195@ponder.secretlab.ca> User-Agent: Mutt/1.5.21 (2010-09-15) X-OriginatorOrg: freescale.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1825 Lines: 50 On Sat, Jun 18, 2011 at 10:26:55AM -0600, Grant Likely wrote: > On Sat, Jun 18, 2011 at 06:21:46PM +0200, Arnd Bergmann wrote: > > On Saturday 18 June 2011 17:19:12 Shawn Guo wrote: > > > > > > +Required properties: > > > +- compatible : should be "fsl,-uart", "fsl,imx-uart" > > > +- reg : address and length of the register set for the device > > > +- interrupts : should contain uart interrupt > > > +- id : should be the port ID defined by soc > > > + > > > +Optional properties: > > > +- fsl,has-rts-cts : indicate it has rts-cts > > > +- fsl,irda-mode : support irda mode > > > + > > > +Example: > > > + > > > +uart@73fbc000 { > > > + compatible = "fsl,imx51-uart", "fsl,imx-uart"; > > > + reg = <0x73fbc000 0x4000>; > > > + interrupts = <31>; > > > + id = <1>; > > > + fsl,has-rts-cts; > > > +}; > > > > Should this also support the "clock-frequency" property that 8250-style > > serial ports support [1]? > > > > For the flow-control properties, should we name that more generic? The > > same property certainly makes sense for other serial-ports if it does > > here. OTOH, I'm not sure it's actually reliable, because it also depends > > on whether the other side of the connection and the cable support hw flow > > control. > > I'd like to see a few use cases before defining a common property. > That said, has-rts-cts does sound like a useful generic property. > Or maybe named "uart-has-rts-cts" to make it clear that it is a uart > specific binding? > I would keep the name as it is if you do not mind, since it's been under uart node. -- Regards, Shawn -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/