From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [PATCH v3 1/3] tty: serial core: provide a method to search uart by phandle Date: Fri, 16 Oct 2015 21:05:11 +0200 Message-ID: <6829927.BRrJSMeG05@wuerfel> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Return-path: In-Reply-To: Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: "H. Nikolaus Schaller" Cc: Jiri Slaby , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Jonathan Corbet , Sergei Zviagintsev , Peter Hurley , One Thousand Gnomes , Sebastian Reichel , NeilBrown , Grant Likely , LKML , linux-serial-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Marek Belisko , devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-doc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: devicetree@vger.kernel.org On Friday 16 October 2015 20:08:33 H. Nikolaus Schaller wrote: > --- /dev/null > +++ b/Documentation/devicetree/bindings/serial/slaves.txt > @@ -0,0 +1,16 @@ > +Device-Tree bindings for UART slave devices > + > +A node describing a slave device defines a phandle to reference the UART > +the device is connected to. In the (unexpected) case of two or more UARTs > +a list of phandles can be specified. > + > +properties: > + - uart: (list of) phandle(s) of UART(s) the device is connected to > + > + > +example: > + > + gps { > + compatible = "wi2wi,w2sg0004"; > + uart = <&uart1>; > + }; > I would have expected the gps device here to be a child node of the uart in DT. Can you explain why you chose differently? Arnd -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html