From patchwork Wed Mar 14 15:55:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Escande X-Patchwork-Id: 10282635 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4F5806061F for ; Wed, 14 Mar 2018 15:59:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3F76028389 for ; Wed, 14 Mar 2018 15:59:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3347A2838F; Wed, 14 Mar 2018 15:59:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9C87E28389 for ; Wed, 14 Mar 2018 15:59:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752177AbeCNP7j (ORCPT ); Wed, 14 Mar 2018 11:59:39 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:38336 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752583AbeCNPzl (ORCPT ); Wed, 14 Mar 2018 11:55:41 -0400 Received: by mail-wr0-f195.google.com with SMTP id l8so5284029wrg.5 for ; Wed, 14 Mar 2018 08:55:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfert-encoding; bh=qNK9NaC8dNprOUbcnYFQ2dlQ1rURZzSDftM+sYfg0bM=; b=Z4M/xg8c4cfaRLNuKv7dYAbeH9uywY/gOnTQFZd1+r2olcBRo1Mu0KRHysfycgDbMG MdCZYlHtGGUCgh14oNPhIP2AQVwoPUVgdUFPSz2K/eoDPalCsNP7TKKMXsg04aqToZpz 0C0qcB0/lRQAfNpqDT+/PrvYkfDDj+i3lHmwI= 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:mime-version:content-transfert-encoding; bh=qNK9NaC8dNprOUbcnYFQ2dlQ1rURZzSDftM+sYfg0bM=; b=iGUevDxWs5VFVfla4WMlfGjuGYnARqdvEzN0yku+RByTfJ+D0ORAMMNAmTZ3Ejc4TH 1K+Z3tWJCOAy8ncfAK3RQg/gOwQEWNn/sUdX10ZtvVzWNOR4UAT7bOZy3giMXBySnfba Fbj04eiqfhGPIRFLHC7MU8/HMvXQdhSCns08ejMQb6SgL6zA6a6KWdxii1Pxb2es16jZ BNQOG22z6ofE7bRIWSLNscG5ySwf/99/a6ZSZ8OV4MGWRjw8IjH2OeJtgfB2qi41DnZG UGfwXqvxwmiCSd+bcN+8cMbw/TLcRrgLMIIk6XnMUpUhHhqTZMBKSNeasckztqJg3FyP yFqw== X-Gm-Message-State: AElRT7E2mq5QQylYz+01vdNB1WtPJoAuLvZTE75tikaR2+dg+Oy7ZAJc NB4LwOjp7I2wgDkIz+efWX6Q8w== X-Google-Smtp-Source: AG47ELvokbpiHTpUCuRv1n9higSIlkZTDNsQjARx1fZxp82Jzu/DfutYHKv7+yZzZMEBCAJacLffrA== X-Received: by 10.223.163.23 with SMTP id c23mr4359322wrb.103.1521042939901; Wed, 14 Mar 2018 08:55:39 -0700 (PDT) Received: from localhost.localdomain (aig34-1-88-167-228-121.fbx.proxad.net. [88.167.228.121]) by smtp.gmail.com with ESMTPSA id n127sm1418909wmb.5.2018.03.14.08.55.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Mar 2018 08:55:39 -0700 (PDT) From: Thierry Escande To: Rob Herring , Andy Gross , Marcel Holtmann , Johan Hedberg , David Brown , Mark Rutland , Andy Shevchenko , Loic Poulain , Bjorn Andersson Cc: Srinivas Kandagatla , linux-bluetooth@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 2/3] dt-bindings: net: bluetooth: Add qualcomm-bluetooth Date: Wed, 14 Mar 2018 16:55:13 +0100 Message-Id: <20180314155514.3374-3-thierry.escande@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180314155514.3374-1-thierry.escande@linaro.org> References: <20180314155514.3374-1-thierry.escande@linaro.org> MIME-Version: 1.0 Content-Transfert-Encoding: 8bit Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add binding document for serial bluetooth chips using Qualcomm protocol. Signed-off-by: Thierry Escande --- v4: - Move bt-disable-n-gpios to required properties section - Add clocks and pinctrl-0 as required properties v3: no change v2: no change .../devicetree/bindings/net/qualcomm-bluetooth.txt | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/qualcomm-bluetooth.txt diff --git a/Documentation/devicetree/bindings/net/qualcomm-bluetooth.txt b/Documentation/devicetree/bindings/net/qualcomm-bluetooth.txt new file mode 100644 index 000000000000..cdb14b96c229 --- /dev/null +++ b/Documentation/devicetree/bindings/net/qualcomm-bluetooth.txt @@ -0,0 +1,34 @@ +Qualcomm Bluetooth Chips +--------------------- + +This documents the binding structure and common properties for serial +attached Qualcomm devices. + +Serial attached Qualcomm devices shall be a child node of the host UART +device the slave device is attached to. + +Required properties: + - compatible: should contain one of the following: + * "qcom,qca6174-bt" + - bt-disable-n-gpios: gpio specifier, used to enable chip during probe + - pinctrl-0: pin phandle for bt_en gpio + - clocks: clock phandle for SUSCLK_32KHZ + +Example: + +serial@7570000 { + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&blsp1_uart1_default>; + pinctrl-1 = <&blsp1_uart1_sleep>; + + bluetooth { + compatible = "qcom,qca6174-bt"; + + bt-disable-n-gpios = <&pm8994_gpios 19 GPIO_ACTIVE_HIGH>; + + pinctrl-names = "default"; + pinctrl-0 = <&bt_en_pin_a>; + + clocks = <&divclk4>; + }; +};