From patchwork Wed Jan 25 20:23:40 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: 92479 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp2384966qgi; Wed, 25 Jan 2017 12:25:14 -0800 (PST) X-Received: by 10.98.103.20 with SMTP id b20mr49179607pfc.166.1485375914460; Wed, 25 Jan 2017 12:25:14 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g11si24446627pfj.289.2017.01.25.12.25.14; Wed, 25 Jan 2017 12:25:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752384AbdAYUZC (ORCPT + 25 others); Wed, 25 Jan 2017 15:25:02 -0500 Received: from mail-oi0-f67.google.com ([209.85.218.67]:33187 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752117AbdAYUXs (ORCPT ); Wed, 25 Jan 2017 15:23:48 -0500 Received: by mail-oi0-f67.google.com with SMTP id j15so16532675oih.0; Wed, 25 Jan 2017 12:23:48 -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=Z00oK7anxDyN7avk2Dc0Z3gZtLY+k9iL8XXYFNexQt4=; b=OvQNjpkMEwPFb6V/QwjYwKDpgOmtVpvir7tWtklXFCZfFQatoVzQiIabD9ouTMVnsI /xK8E+VpyfYjKhWGwkDh7fnBfF6c0Ojc8dLSqqnWNPMU8/RHcXrDeqOCll1eN9v3K++Q aABGwcwAD1NSfmDtFouXPwJVxh1dtS0lFxszFdH4UnPVRrisWvbuMtXjF70RONYR/OHl 6gbaLmpFaIMeaXDijeMogOd05U3KkR5Z8yjSNoszcl6Uy39+ZhmuYrPEvxykSLJyeNvC NJ7Qny6Nvjv7kpSlYRcAjwrLarOX9O9GPsMAVrJO39yBb6J/Vw11bqFY1oz/2lUllbs0 LYvw== X-Gm-Message-State: AIkVDXKIlSBxdBoDnV+6J5Hb/pjcy/CNEqEgDo45m8kCsJfMuCBHtcGvhrSx6kZmW5wrEQ== X-Received: by 10.202.93.66 with SMTP id r63mr20816571oib.208.1485375828043; Wed, 25 Jan 2017 12:23:48 -0800 (PST) Received: from rob-hp-laptop.herring.priv (72-48-98-129.dyn.grandenetworks.net. [72.48.98.129]) by smtp.googlemail.com with ESMTPSA id v31sm680721ota.26.2017.01.25.12.23.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Jan 2017 12:23:47 -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 v3 2/5] dt/bindings: Add a serial/UART attached device binding Date: Wed, 25 Jan 2017 14:23:40 -0600 Message-Id: <20170125202343.30923-3-robh@kernel.org> X-Mailer: git-send-email 2.10.1 In-Reply-To: <20170125202343.30923-1-robh@kernel.org> References: <20170125202343.30923-1-robh@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 --- 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 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>; + }; +};