Received: by 10.213.65.68 with SMTP id h4csp1855861imn; Thu, 29 Mar 2018 12:18:38 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+sK0jAe8FUWAmwBh0R6+LgA91/O7Q6rtdrRJkRRa+OnZKYKB1ZioZlVM/fYZrSxviCC56Y X-Received: by 2002:a17:902:780d:: with SMTP id p13-v6mr9654703pll.281.1522351118416; Thu, 29 Mar 2018 12:18:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522351118; cv=none; d=google.com; s=arc-20160816; b=0zDIDIuRDYq8dHd7vyjpyTivt1f0Ccfr/3DQrPWlahckDtwZM9av39le2zTijj/nW8 xbP/CJcwfZry6qHRZr0OXomJ3KUe0t5k6km4fuBIzbWM/vOpHCAlkj1R/0pAyjvZWI08 h522AlhYvpqN2gMdSxSDtlRbFPhK1E5dF6xOg0AqyvJPLaj5rgTTACCvYFD64C4uJQ+H rcgmJ/V+N3WKEAF69dh57OU58V7/DvPsskcuHWppoF6ZuU01C8w+kWJw6wavfNZAg++1 oibimOJXpxmjHWvHFvVa44iQ1muu2HZaBZ9HLG028W/5sZQhA0w+a0I3NqSxSkaX/pCT vfxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfert-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=DRaxPIIIjdlfJVMsUyLRIv2Qf+cJkFXQKIcEz4v/AcY=; b=R3gBRYAbYwj1fNaNItKDWEuGkiclJWIAYmeuEPb8p/Dts8UuEPyP1ZttW+W9IKfGMB juPu7GnHVCIk3XK5dCT4RYE33qtemxTNZnuMvA+vn1JIU/ywxKRa7W5egzv6zmKMW734 SKQbnPVAWoLkeE6kog1vNHfuO/ir1t8klzpinQoXSZtanlAvpOwrfgKKd+m50ewGuf4O KY0JG7uQYUNRcC+FUuJspAHvJEZY6eG0N1wMVmqd2Psw1QpGD/gM+7CMEEtYQknVKudE SJmkRafLgvmDrmjEoTmTNvEHY9grpMMoJgikQ8tK8tpqa51ZjQlOHD3VZYATszyR3lVM nwtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jDrrn9y2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a59-v6si6646177pla.497.2018.03.29.12.18.24; Thu, 29 Mar 2018 12:18:38 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.s=google header.b=jDrrn9y2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752431AbeC2TQq (ORCPT + 99 others); Thu, 29 Mar 2018 15:16:46 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:42861 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751210AbeC2TPt (ORCPT ); Thu, 29 Mar 2018 15:15:49 -0400 Received: by mail-wr0-f193.google.com with SMTP id s18so6310323wrg.9 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=Xst6DPxMczU4qRH4M5wBWSGSbfhrEBNZQR3jmP5WJ6pQVJzDIG6WateQmirimCibsT r4bsFogkh58mACRXMslAODQFr9XpbXzTFtjlCp1ALbThX6FAxn7NwaJIQGF4wQ+kyJNF ATv8IKVrOUcwTllF5Vz7AdmBGA3RD2YKLV/wA+fsUWCEtSB5lKAb2DOHsG8hUk0Dd5/q VNdaolpqgzGb2F3e9pFd47tCj0yBlhVaqJktWn1enIpj4P0NULxK/aDqxcqdKWysZyjo 5y6XFePOpiJeLoxT8NNdslX7xy2Nvq/8QR1JKRUfIw9k84PPDGvI+jV6dnBkVFa7N+5e tIxQ== X-Gm-Message-State: AElRT7H3wvp1NaPthIup4nHoWzKNrevjWSIGRLD2heJFWYcczNepZ9zK dTRsxSpuDjehk6w/cP4D1qgoZg== 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-Type: text/plain; charset = "utf-8" Content-Transfert-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 { -- 2.14.1