From patchwork Thu Mar 29 19:15:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Escande X-Patchwork-Id: 10316103 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 3C8EB602D6 for ; Thu, 29 Mar 2018 19:17:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2FAF92A445 for ; Thu, 29 Mar 2018 19:17:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 23F892A479; Thu, 29 Mar 2018 19:17:27 +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=unavailable 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 BA4512A445 for ; Thu, 29 Mar 2018 19:17:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751216AbeC2TQq (ORCPT ); Thu, 29 Mar 2018 15:16:46 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:37094 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751204AbeC2TPt (ORCPT ); Thu, 29 Mar 2018 15:15:49 -0400 Received: by mail-wr0-f195.google.com with SMTP id l49so6335077wrl.4 for ; Thu, 29 Mar 2018 12:15:48 -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=DRaxPIIIjdlfJVMsUyLRIv2Qf+cJkFXQKIcEz4v/AcY=; b=jDrrn9y2W1joBv1gA/IWX+Pz38nhXxP34jVfa6pbci3TQDxy3fqO5EkbK7qqpfovZO yWAEueRn4F4iKgoimgdDMCZxk4c2LL9zVB9QyWuT608KbURm0ieF98seZ+mIfhpb4v0l A6PsohAqRwyKGZJm9qmDS+/I8RzCKfgLqE1Xs= 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=DRaxPIIIjdlfJVMsUyLRIv2Qf+cJkFXQKIcEz4v/AcY=; b=gRuK1+Zd81BX5aPtbHaPBnoTW5oXTi/C9gk6rhxcbT4h1gq4KBs871/RDQQJAsHk3Q Zy/u+kpqD4VpFT8X+s/kj4Qsu5Fev2et1coUjRcRyUwlY0w9ojk1jy7gdCWwqUbfS0Cj 9JZtWpPqCM26roV8pRG/U8OthxlCMBzXbD/sWA6S0Mr5LQ16ijxHRMWV8eGgCwI598Ht zOdYkBZJCmePugEX7tUvB4lP0vHCWPzkwEHu7NglhDDGIXVQ1osxc/ilgacXWJ7LD6JB 4wKj9PIeSNJemcvdP5eEW4LgUkbYnKNHdGCa1Em4wGq5A5hnWBfzOJ0gbtnXsYE3MxjJ Njwg== X-Gm-Message-State: AElRT7ElmdTmfm6sO994Yj4jnG3CNMrTah8X/RLCgmNU5wFneCjVEINu mhPJ3njdi1P5aVy6dfR24ZUWiQ== X-Google-Smtp-Source: AIpwx48KRuD1T44tjLO9GaGLFV9lA5rx4fSvFyqnYhM3CNY71kxlfbH714ZjmrfBARPpaH7thBp0bA== X-Received: by 10.223.175.211 with SMTP id y19mr7852389wrd.139.1522350947739; Thu, 29 Mar 2018 12:15:47 -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 b40sm16145099wrb.88.2018.03.29.12.15.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Mar 2018 12:15:47 -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 v7 1/4] arm64: dts: apq8096-db820c: Enable wlan and bt en pins Date: Thu, 29 Mar 2018 21:15:21 +0200 Message-Id: <20180329191524.30225-2-thierry.escande@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180329191524.30225-1-thierry.escande@linaro.org> References: <20180329191524.30225-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 From: Srinivas Kandagatla This patch enables regulators and gpios for the Qualcomm QCA6174 BT/WLAN combo controller. Signed-off-by: Srinivas Kandagatla Signed-off-by: Thierry Escande --- v7: - New patch in this patchset .../boot/dts/qcom/apq8096-db820c-pmic-pins.dtsi | 22 +++++++++++++++ arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi | 31 ++++++++++++++++++++++ 2 files changed, 53 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/apq8096-db820c-pmic-pins.dtsi b/arch/arm64/boot/dts/qcom/apq8096-db820c-pmic-pins.dtsi index 59b29ddfb6e9..5d50f45c4df7 100644 --- a/arch/arm64/boot/dts/qcom/apq8096-db820c-pmic-pins.dtsi +++ b/arch/arm64/boot/dts/qcom/apq8096-db820c-pmic-pins.dtsi @@ -14,6 +14,28 @@ }; }; + bt_en_gpios: bt_en_gpios { + pinconf { + pins = "gpio19"; + function = PMIC_GPIO_FUNC_NORMAL; + output-low; + power-source = ; // 1.8V + qcom,drive-strength = ; + bias-pull-down; + }; + }; + + wlan_en_gpios: wlan_en_gpios { + pinconf { + pins = "gpio8"; + function = PMIC_GPIO_FUNC_NORMAL; + output-low; + power-source = ; // 1.8V + qcom,drive-strength = ; + bias-pull-down; + }; + }; + volume_up_gpio: pm8996_gpio2 { pinconf { pins = "gpio2"; diff --git a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi index 1c8f1b86472d..ec5e6eee0a7a 100644 --- a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi +++ b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi @@ -139,9 +139,40 @@ pinctrl-0 = <&usb2_vbus_det_gpio>; }; + bt_en: bt-en-1-8v { + pinctrl-names = "default"; + pinctrl-0 = <&bt_en_gpios>; + compatible = "regulator-fixed"; + regulator-name = "bt-en-regulator"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + + /* WLAN card specific delay */ + startup-delay-us = <70000>; + enable-active-high; + }; + + wlan_en: wlan-en-1-8v { + pinctrl-names = "default"; + pinctrl-0 = <&wlan_en_gpios>; + compatible = "regulator-fixed"; + regulator-name = "wlan-en-regulator"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + + gpio = <&pm8994_gpios 8 0>; + + /* WLAN card specific delay */ + startup-delay-us = <70000>; + enable-active-high; + }; + agnoc@0 { qcom,pcie@600000 { + status = "okay"; perst-gpio = <&msmgpio 35 GPIO_ACTIVE_LOW>; + vddpe-supply = <&wlan_en>; + vddpe1-supply = <&bt_en>; }; qcom,pcie@608000 {