From patchwork Fri Sep 18 12:32:05 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 53872 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by patches.linaro.org (Postfix) with ESMTPS id 93472218E3 for ; Fri, 18 Sep 2015 12:32:20 +0000 (UTC) Received: by lagj9 with SMTP id j9sf18996101lag.0 for ; Fri, 18 Sep 2015 05:32:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=X5I42LyMm3dFfv2Xs6HmaK74pcQjp67xiRdsMuXXZwE=; b=lzXrb9vXCHztsMIPSMwZiUxT/g9Pq4uYgfyFfukIYw3Su7BfYFJLKnsBrP9saPCM2S VES/kxuYFerBqqEQ6WTyO6uPFsQWmgewa+xUXlcvOx6EpBhVivRL3BlK1Q6kN3LO9HF2 ppdeSD+sKoP1eHIF56oKPgB/6W61rcUqu2pSe9uGy7/xHV7sMPHWXQE6JcuWxIEZ2Ec1 i1zimwxoBLQ61zGpjmhtvt5vl2fQ1LSt7E7O4ESzuDfKvz1P94/PNXL8oOieyCLJkgTK HHXn29vOwRQVnoXRaZHww6rFaeYMLhZ49mo3qu0VOHX88Wl6KY2/lqXVO0tLYmZgt3QE TmlA== X-Gm-Message-State: ALoCoQn0vzjXAyIWcK3b+u2EpqCgBBbKNaBxrWEvdEMH5L7252hGjL7YcFQJBem/PewtQ9gnvenc X-Received: by 10.152.1.129 with SMTP id 1mr856233lam.3.1442579539669; Fri, 18 Sep 2015 05:32:19 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.234.108 with SMTP id ud12ls193889lac.68.gmail; Fri, 18 Sep 2015 05:32:19 -0700 (PDT) X-Received: by 10.152.6.201 with SMTP id d9mr3072229laa.66.1442579539413; Fri, 18 Sep 2015 05:32:19 -0700 (PDT) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com. [209.85.215.53]) by mx.google.com with ESMTPS id z15si5716331lbn.158.2015.09.18.05.32.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Sep 2015 05:32:19 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) client-ip=209.85.215.53; Received: by lanb10 with SMTP id b10so29400018lan.3 for ; Fri, 18 Sep 2015 05:32:19 -0700 (PDT) X-Received: by 10.112.130.70 with SMTP id oc6mr3123740lbb.32.1442579538698; Fri, 18 Sep 2015 05:32:18 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp263991lbq; Fri, 18 Sep 2015 05:32:17 -0700 (PDT) X-Received: by 10.50.79.129 with SMTP id j1mr13136715igx.63.1442579537304; Fri, 18 Sep 2015 05:32:17 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id kb8si6501932igb.2.2015.09.18.05.32.16; Fri, 18 Sep 2015 05:32:17 -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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754071AbbIRMcM (ORCPT + 30 others); Fri, 18 Sep 2015 08:32:12 -0400 Received: from mail-wi0-f178.google.com ([209.85.212.178]:35316 "EHLO mail-wi0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754044AbbIRMcJ (ORCPT ); Fri, 18 Sep 2015 08:32:09 -0400 Received: by wicge5 with SMTP id ge5so30789982wic.0 for ; Fri, 18 Sep 2015 05:32:08 -0700 (PDT) X-Received: by 10.180.37.76 with SMTP id w12mr16706032wij.0.1442579528004; Fri, 18 Sep 2015 05:32:08 -0700 (PDT) Received: from localhost.localdomain (host-92-13-246-184.as43234.net. [92.13.246.184]) by smtp.gmail.com with ESMTPSA id bs8sm8641588wjc.47.2015.09.18.05.32.06 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 18 Sep 2015 05:32:07 -0700 (PDT) From: Srinivas Kandagatla To: agross@codeaurora.org, linux-arm-msm@vger.kernel.org Cc: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Russell King , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, srinivas.kandagatla@linaro.org Subject: [PATCH 12/14] ARM: dts: qs600: add pwrseq support to WLAN Date: Fri, 18 Sep 2015 13:32:05 +0100 Message-Id: <1442579525-20440-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1442579371-19822-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1442579371-19822-1-git-send-email-srinivas.kandagatla@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: srinivas.kandagatla@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add pwrseq support to sdcc4 which would enable a proper reset of WLAN without ugly hacks in the board support file. Signed-off-by: Srinivas Kandagatla Acked-by: Igor Grinberg --- arch/arm/boot/dts/qcom-apq8064-cm-qs600.dts | 32 +++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8064-cm-qs600.dts b/arch/arm/boot/dts/qcom-apq8064-cm-qs600.dts index 8aac3be..cc9d942 100644 --- a/arch/arm/boot/dts/qcom-apq8064-cm-qs600.dts +++ b/arch/arm/boot/dts/qcom-apq8064-cm-qs600.dts @@ -1,4 +1,6 @@ #include "qcom-apq8064-v2.0.dtsi" +#include +#include / { model = "CompuLab CM-QS600"; @@ -12,6 +14,20 @@ stdout-path = "serial0:115200n8"; }; + pwrseq { + #address-cells = <1>; + #size-cells = <1>; + ranges; + compatible = "simple-bus"; + + sdcc4_pwrseq: sdcc4_pwrseq { + pinctrl-names = "default"; + pinctrl-0 = <&wlan_default_gpios>; + compatible = "mmc-pwrseq-simple"; + reset-gpios = <&pm8921_gpio 43 GPIO_ACTIVE_LOW>; + }; + }; + soc { rpm@108000 { regulators { @@ -154,6 +170,21 @@ regulator-always-on; }; + qcom,ssbi@500000 { + pmic@0 { + gpio@150 { + wlan_default_gpios: wlan-gpios { + pios { + pins = "gpio43"; + function = "normal"; + bias-disable; + power-source = ; + }; + }; + }; + }; + }; + amba { /* eMMC */ sdcc1: sdcc@12400000 { @@ -172,6 +203,7 @@ status = "okay"; vmmc-supply = <&v3p3_fixed>; vqmmc-supply = <&v3p3_fixed>; + mmc-pwrseq = <&sdcc4_pwrseq>; }; }; };