From patchwork Thu Feb 2 19:48:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring \(Arm\)" X-Patchwork-Id: 93125 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp266697qgi; Thu, 2 Feb 2017 11:48:40 -0800 (PST) X-Received: by 10.98.8.215 with SMTP id 84mr12690016pfi.149.1486064920028; Thu, 02 Feb 2017 11:48:40 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31si23224271plf.32.2017.02.02.11.48.39 for ; Thu, 02 Feb 2017 11:48:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751930AbdBBTsS (ORCPT ); Thu, 2 Feb 2017 14:48:18 -0500 Received: from mail-oi0-f66.google.com ([209.85.218.66]:33872 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750940AbdBBTsO (ORCPT ); Thu, 2 Feb 2017 14:48:14 -0500 Received: by mail-oi0-f66.google.com with SMTP id w144so2010248oiw.1; Thu, 02 Feb 2017 11:48:14 -0800 (PST) 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=CreJ+7DQJb5WPQbNKyJmcLPGUNbGWVRcZfyL1SP88rs=; b=aTuXqxwfYgPqJjLN+xIpk1GaLWHK6Pm9+lvaq0XYE2LpQ+0kFyfeU8gzxWzTUENI6c cOdJ/Ai+2bKJM65tJ9bod63oIMLgrajW18YfPQRCqo+DfrkY4XMK7eNC3Q4JI+XXDGFG VfPXuuqofMITvTrveQzRUZWJAOBxd8fCN87R00IW0c1vyh2P6Ms5ETJIysO+eFjVIYfk WxUXfGeuKRXi1uFdKmHcFyE/mkLozCApNUrm/hsDcZk3C3aeXKS9om3ROv2zL8520+iG KyDGYuZl6U14+t6xewMDXlXrPTsJRKV1ws7L6Rs96/ZApMdRX8Ybwu4I1nYcEYBCwxSA uarQ== X-Gm-Message-State: AIkVDXL9KrTkLieAa6wnBlRjM/ZFWsMl0oV1PFt1rNBdIpQldgaXjcLPd0n0aLOD94vzSA== X-Received: by 10.202.79.151 with SMTP id d145mr5236315oib.159.1486064893987; Thu, 02 Feb 2017 11:48:13 -0800 (PST) Received: from rob-hp-laptop.herring.priv (66-90-148-125.dyn.grandenetworks.net. [66.90.148.125]) by smtp.googlemail.com with ESMTPSA id y11sm13183471oia.2.2017.02.02.11.48.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Feb 2017 11:48:13 -0800 (PST) From: Rob Herring To: Greg Kroah-Hartman , Marcel Holtmann , Jiri Slaby , Sebastian Reichel , Arnd Bergmann , "Dr . H . Nikolaus Schaller" , Peter Hurley , Andy Shevchenko , Alan Cox Cc: Loic Poulain , Pavel Machek , NeilBrown , Linus Walleij , linux-bluetooth@vger.kernel.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 2/5] dt/bindings: Add a serial/UART attached device binding Date: Thu, 2 Feb 2017 13:48:06 -0600 Message-Id: <20170202194809.18274-3-robh@kernel.org> X-Mailer: git-send-email 2.10.1 In-Reply-To: <20170202194809.18274-1-robh@kernel.org> References: <20170202194809.18274-1-robh@kernel.org> Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org 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. Tested-By: Sebastian Reichel Signed-off-by: Rob Herring --- v4: - no change v3: - no change 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 -- 2.10.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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>; + }; +};