From patchwork Tue Mar 20 03:23:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Escande X-Patchwork-Id: 10296229 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 466D16039A for ; Tue, 20 Mar 2018 03:24:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6860B1FF3E for ; Tue, 20 Mar 2018 03:24:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5B82C294F7; Tue, 20 Mar 2018 03:24:32 +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 D15571FF3E for ; Tue, 20 Mar 2018 03:24:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751455AbeCTDYa (ORCPT ); Mon, 19 Mar 2018 23:24:30 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:38373 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751786AbeCTDYG (ORCPT ); Mon, 19 Mar 2018 23:24:06 -0400 Received: by mail-pg0-f67.google.com with SMTP id a15so119652pgn.5 for ; Mon, 19 Mar 2018 20:24:05 -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=3IWG8ihoqwKdnvEledQQpbrPSbVpYzghcPG3fXR5GvE=; b=BZEGDcg9Oo6FFS4Trmx2ltyzQ2KgG98XWvx369N3PhnicUg/meA1GIaUrdeyOviJAi I8nNGOyvkbRkd9jBzvBl8SdIb6Vgt6P0poU1W14w3kYiHQQN8yl8QcICXxcYY0MsuHPD qyQ//WkSr8GPNkyTgISwUKF9gKS7BtWvt3IFk= 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=3IWG8ihoqwKdnvEledQQpbrPSbVpYzghcPG3fXR5GvE=; b=qMtFuQrIV+mvI6j1IWEleupA3QUW/0YEeQu+KzIohphourbpzqRdu9Uq45S5dhyDCY fxZjMAO535rfycqFrd+V+WFQ71LamzHe35bErWQitzHMUQ5zTTpiLl99vWkADYfjRnvX d/YMQ8vmUTQJc9risvhTsXX15nD5BOxFbqOt3t2UAlZa4L5s2TfTISquoc7MG/ZtMkxz OJ/MUvZtOMX70G5ZFxKwr6WCRlVBiS/AlSAbO1RKg5NiDuHYWE560w5G6nemDfGiLFYD uns3rkiJh+77QOTyXg6PoTh5+/Q1d1ghwZtzjQzQj6QdqGvBZP7s8WieyXGoz3D8c49/ f4HA== X-Gm-Message-State: AElRT7G1n2OPT4JEruRVt68z0Rol+ms5ZmMlnYhaUWObhzKrVWZmbxb8 BuKPPj2P/m70YvuiRGEGmuAV6w== X-Google-Smtp-Source: AG47ELufKSdC/HHffSAbneZ1STdqZRqVU/dI4KjnN1r9yzFD+iholMs7MrddpBwR+kX6cXoXjV0FsA== X-Received: by 10.98.46.197 with SMTP id u188mr12379658pfu.32.1521516245563; Mon, 19 Mar 2018 20:24:05 -0700 (PDT) Received: from localhost.localdomain ([218.255.99.6]) by smtp.gmail.com with ESMTPSA id c14sm741286pfn.185.2018.03.19.20.24.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Mar 2018 20:24:05 -0700 (PDT) From: Thierry Escande To: Rob Herring , Andy Gross , Marcel Holtmann , Johan Hedberg , David Brown , Mark Rutland Cc: Andy Shevchenko , Loic Poulain , Bjorn Andersson , Srinivas Kandagatla , linux-bluetooth@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 2/3] dt-bindings: net: bluetooth: Add qualcomm-bluetooth Date: Tue, 20 Mar 2018 04:23:30 +0100 Message-Id: <20180320032331.29865-3-thierry.escande@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180320032331.29865-1-thierry.escande@linaro.org> References: <20180320032331.29865-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 Reviewed-by: Rob Herring --- v5: - Rename 'bt-disable-n' gpio as 'enable' 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..bbc2973634b2 --- /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" + - enable-gpios: gpio specifier used to enable chip + - 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"; + + enable-gpios = <&pm8994_gpios 19 GPIO_ACTIVE_HIGH>; + + pinctrl-names = "default"; + pinctrl-0 = <&bt_en_pin_a>; + + clocks = <&divclk4>; + }; +};