From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752963AbcHMDPN (ORCPT ); Fri, 12 Aug 2016 23:15:13 -0400 Received: from mail.kernel.org ([198.145.29.136]:39674 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752901AbcHMDPK (ORCPT ); Fri, 12 Aug 2016 23:15:10 -0400 From: Sebastian Reichel To: Sebastian Reichel , Tony Lindgren , Rob Herring , Mark Rutland , Marcel Holtmann , Greg Kroah-Hartman , Jiri Slaby Cc: Ville Tervo , =?UTF-8?q?Filip=20Matijevi=C4=87?= , Aaro Koskinen , Pavel Machek , =?UTF-8?q?Pali=20Roh=C3=A1r?= , ivo.g.dimitrov.75@gmail.com, linux-bluetooth@vger.kernel.org, linux-serial@vger.kernel.org, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC 3/7] dt: bindings: Add nokia-bluetooth Date: Sat, 13 Aug 2016 05:14:34 +0200 Message-Id: <1471058078-5579-4-git-send-email-sre@kernel.org> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1471058078-5579-1-git-send-email-sre@kernel.org> References: <1471058078-5579-1-git-send-email-sre@kernel.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --- .../devicetree/bindings/net/nokia-bluetooth.txt | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/nokia-bluetooth.txt diff --git a/Documentation/devicetree/bindings/net/nokia-bluetooth.txt b/Documentation/devicetree/bindings/net/nokia-bluetooth.txt new file mode 100644 index 000000000000..a0fceabb4cce --- /dev/null +++ b/Documentation/devicetree/bindings/net/nokia-bluetooth.txt @@ -0,0 +1,43 @@ +Nokia bluetooth UART devices +------ + +Some vendors have custom versions of their chips, that can be found in Nokia +devices. These chips are controlled differently, than the non-Nokia version, +so a different binding is required. All chips listed here implement the Nokia +H4+ protocol. + +Required properties: + + - compatible: should be one of the following: + * "nokia,brcm,bcm2048" + * "nokia,ti,wl1271-bluetooth" + - reset-gpios: Should specify the gpio for bluetooth reset + - host-wakeup-gpios: Should specify the gpio for host wakeup + - bluetooth-wakeup-gpios: Should specify the gpio for bluetooth wakeup + - clock-names: Should be "sysclk" + - clocks: Should contain a clock phandle for system clock + +Example: + +/ { + /* controlled (enabled/disabled) directly by wl1271 */ + vctcxo: vctcxo { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <38400000>; + }; +}; + +&uart2 { + bluetooth { + compatible = "nokia,ti,wl1271-bluetooth"; + + reset-gpios = <&gpio1 26 GPIO_ACTIVE_HIGH>; /* 26 */ + host-wakeup-gpios = <&gpio4 5 GPIO_ACTIVE_HIGH>; /* 101 */ + bluetooth-wakeup-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; /* 37 */ + + clocks = <&vctcxo>; + clock-names = "sysclk"; + }; + +}; -- 2.8.1