Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1560149

[PATCH v2 6/9] dt/bindings: Add a serial/UART attached device binding

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Rob Herring <robh@kernel.org>
Newsgroups linux.kernel
Subject [PATCH v2 6/9] dt/bindings: Add a serial/UART attached device binding
Date Tue, 17 Jan 2017 00:00:01 +0100
Message-ID <t0opP-760-9@gated-at.bofh.it> (permalink)
References <t0opP-760-5@gated-at.bofh.it>
X-Original-To Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Marcel Holtmann <marcel@holtmann.org>, Jiri Slaby <jslaby@suse.com>, Sebastian Reichel <sre@kernel.org>, Arnd Bergmann <arnd@arndb.de>, "Dr . H . Nikolaus Schaller" <hns@goldelico.com>, Peter Hurley <peter@hurleysoftware.com>, Andy Shevchenko <andriy.shevchenko@linux.intel.com>, Alan Cox <gnomes@lxorguk.ukuu.org.uk>
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=sp1C0AwDoplLZdsAHww0LhNuDxt+aDElRlur4mDs7jQ=; b=iOzxjTTeyy92JBJHFi7WKUXDLiOwFfveHAxeLrXsm5rCuLopIBobqwH+V5G8GoqPib o5vGYE322zIvgqe45wzOEcdOQvCnKiVn757nB8bZjwi4gScaktyB4ns0RLNU1Z3Zw76R 7oSXJZqZ2pjSebv5kCADoo7mCSsoaLfnPPnJEqcloG6Tmjc6AZfwQ2xTPJSCzlZhPVkD TpjXtzYwE2aQhQIeR7Sv6xWqCtee1fFwjfPOatR5OiaWDgq0nVoZPgN+vwe3k8VDm2r5 9nb98hMDlhtcHfNe8fyrsSprN8Adrk5/aEaQHrXh5WxuPbMDUhbQHS/TnqPwRHOJF4Pg wX7w==
X-Gm-Message-State AIkVDXK++/UyPWhv10mATzjyAlFQ7Gy8GlwSNpQjAf8d2inmoz6UA6dzv52vXVHchNfrzg==
X-Received by 10.157.52.253 with SMTP id t58mr19201213otd.161.1484607286868; Mon, 16 Jan 2017 14:54:46 -0800 (PST)
X-Mailer git-send-email 2.10.1
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 61
Organization linux.* mail to news gateway
X-Original-Cc Loic Poulain <loic.poulain@intel.com>, Pavel Machek <pavel@ucw.cz>, NeilBrown <neil@brown.name>, Linus Walleij <linus.walleij@linaro.org>, linux-bluetooth@vger.kernel.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org
X-Original-Date Mon, 16 Jan 2017 16:54:33 -0600
X-Original-Message-ID <20170116225436.17505-7-robh@kernel.org>
X-Original-References <20170116225436.17505-1-robh@kernel.org>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1560149

Show key headers only | View raw


Add a common binding for describing serial/UART attached devices. Common
examples are Bluetooth, WiFi, NFC and GPS devices.

Serial attached devices are represented as child nodes of a UART node.
This may need to be extended for more complex devices with multiple
interfaces, but for the simple cases a child node is sufficient.

Signed-off-by: Rob Herring <robh@kernel.org>
---
v2:
- Drop reg property
- Add max-speed property

 .../devicetree/bindings/serial/slave-device.txt    | 36 ++++++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/serial/slave-device.txt

diff --git a/Documentation/devicetree/bindings/serial/slave-device.txt b/Documentation/devicetree/bindings/serial/slave-device.txt
new file mode 100644
index 000000000000..f66037928f5f
--- /dev/null
+++ b/Documentation/devicetree/bindings/serial/slave-device.txt
@@ -0,0 +1,36 @@
+Serial Slave Device DT binding
+
+This documents the binding structure and common properties for serial
+attached devices. Common examples include Bluetooth, WiFi, NFC and GPS
+devices.
+
+Serial attached devices shall be a child node of the host UART device the
+slave device is attached to. It is expected that the attached device is
+the only child node of the UART device. The slave device node name shall
+reflect the generic type of device for the node.
+
+Required Properties:
+
+- compatible 	: A string reflecting the vendor and specific device the node
+		  represents.
+
+Optional Properties:
+
+- max-speed	: The maximum baud rate the device operates at. This should
+		  only be present if the maximum is less than the slave device
+		  can support. For example, a particular board has some signal
+		  quality issue or the host processor can't support higher
+		  baud rates.
+
+Example:
+
+serial@1234 {
+	compatible = "ns16550a";
+	interrupts = <1>;
+
+	bluetooth {
+		compatible = "brcm,bcm43341-bt";
+		interrupt-parent = <&gpio>;
+		interrupts = <10>;
+	};
+};
--
2.10.1

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH v2 6/9] dt/bindings: Add a serial/UART attached device binding Rob Herring <robh@kernel.org> - 2017-01-17 00:00 +0100

csiph-web