From patchwork Fri Jan 6 16:26:32 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: 90197 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp9519769qgi; Fri, 6 Jan 2017 08:27:41 -0800 (PST) X-Received: by 10.84.194.37 with SMTP id g34mr169052895pld.36.1483720061588; Fri, 06 Jan 2017 08:27:41 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t4si47515680plj.280.2017.01.06.08.27.41; Fri, 06 Jan 2017 08:27:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-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 devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759254AbdAFQ1Q (ORCPT + 7 others); Fri, 6 Jan 2017 11:27:16 -0500 Received: from mail-oi0-f66.google.com ([209.85.218.66]:36825 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759142AbdAFQ1B (ORCPT ); Fri, 6 Jan 2017 11:27:01 -0500 Received: by mail-oi0-f66.google.com with SMTP id u143so6692252oif.3; Fri, 06 Jan 2017 08:27:01 -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=15PKTlOZQp0qT9QPlVdKPTgnDite7OVE6Dh8aFgU4ow=; b=hMqYfumrcjODccwKC3yTQNmy8N1pEJ38cZ3oVzaBs88rC3vEuvwFAoUC+lChCBRgtI aFE5szFT2wOmQzRSYjUcrdtS8FUXQqlMJQeI6Enr42jxu16dlVPmfCHnLZaGvcjRd6K8 G4P2qChaeq7OmPRwqeVjDLyWM0Kc7sRZ1YqG9C7pfCiUGvgn4C0U9QfluE51sj8++Cbw OGUh3ixedHITQJCPAFEpfM+6zevihS3PS1KgxCibG1lIEFqYJ2Ec4SWjLK6BG+G4xTdF 27IewvpPVUPUCz1F+Pf+hXseB38lwVPfoJYlwzd3G6ftk9ltiCmgAJLHuFDS/7MLjzzY /tcg== X-Gm-Message-State: AIkVDXJ/+9j/JTrSck03HQRO94CqopJN/qIjgOeqrNyp/rHhrBpMtaDd2bSkpoD6HLez5g== X-Received: by 10.157.38.162 with SMTP id l31mr1722846otb.58.1483720015935; Fri, 06 Jan 2017 08:26:55 -0800 (PST) Received: from rob-hp-laptop.herring.priv (50-233-148-156-static.hfc.comcastbusiness.net. [50.233.148.156]) by smtp.googlemail.com with ESMTPSA id i135sm5245809oib.18.2017.01.06.08.26.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 06 Jan 2017 08:26:55 -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, Mark Rutland , devicetree@vger.kernel.org Subject: [PATCH 6/9] dt/bindings: Add a serial/UART attached device binding Date: Fri, 6 Jan 2017 10:26:32 -0600 Message-Id: <20170106162635.19677-7-robh@kernel.org> X-Mailer: git-send-email 2.10.1 In-Reply-To: <20170106162635.19677-1-robh@kernel.org> References: <20170106162635.19677-1-robh@kernel.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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. Signed-off-by: Rob Herring --- .../devicetree/bindings/serial/slave-device.txt | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/serial/slave-device.txt -- 2.10.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" 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..9b7c2d651345 --- /dev/null +++ b/Documentation/devicetree/bindings/serial/slave-device.txt @@ -0,0 +1,34 @@ +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. + +qSerial 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: + +- reg : A single cell representing the port/line number of the + host UART. Only used if the host UART is a single node + with multiple ports. + +Example: + +serial@1234 { + compatible = "ns16550a"; + interrupts = <1>; + + bluetooth { + compatible = "brcm,bcm43341-bt"; + interrupt-parent = <&gpio>; + interrupts = <10>; + }; +};