From patchwork Tue Aug 18 13:10:01 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 52511 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by patches.linaro.org (Postfix) with ESMTPS id 1F3B322DB1 for ; Tue, 18 Aug 2015 13:10:12 +0000 (UTC) Received: by lbbpd10 with SMTP id pd10sf31904439lbb.3 for ; Tue, 18 Aug 2015 06:10:11 -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=XYAv8HBt5UJgM/fVocFBti0B/685uZ9lnFAa1mVY9MA=; b=IiTgO+cgxUdOTQE79IB7svZh8PkmtqLTITF3sj8NIJxNIARtNbjh5uG5g7ccNbFAP6 dR9unzLT5VHQNfhNTMJS1k6apfYV4eOimSQpxOomAjKNHaUHK9N4KZxdgbxt19yqCb1E P/0GLwAmwHTk+vvJhJEGXGhlj5L/0Qy/ZCX0LWpILVQXcm5T+TcJSLTvmn4r5LYRajBC AcFzuQHIGDzKYfz80P80ddGZtQiqareNaVQus3VxgHV5VFv8KQGxHo039hRDysJzUvvV wrGW+0L2mJ4m88MOLPQryYQEOO/ThrIw/MaTHpeVMgYTRezWfyg0Xh0Iis4v8CCq/Mbt ksUw== X-Gm-Message-State: ALoCoQnMDnSgbzGI/tq17uPLl7mwcxxVX/a1e2eH28LOgMIQljLJzMeRXCW/0nUG9WJ0iPL43W0f X-Received: by 10.180.82.101 with SMTP id h5mr6285918wiy.1.1439903411098; Tue, 18 Aug 2015 06:10:11 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.26.1 with SMTP id h1ls697489lag.36.gmail; Tue, 18 Aug 2015 06:10:10 -0700 (PDT) X-Received: by 10.152.22.99 with SMTP id c3mr6451692laf.32.1439903410804; Tue, 18 Aug 2015 06:10:10 -0700 (PDT) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id dk7si14092471lad.58.2015.08.18.06.10.10 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Aug 2015 06:10:10 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by lahi9 with SMTP id i9so98600960lah.2 for ; Tue, 18 Aug 2015 06:10:10 -0700 (PDT) X-Received: by 10.152.29.132 with SMTP id k4mr6247475lah.88.1439903410699; Tue, 18 Aug 2015 06:10:10 -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.162.200 with SMTP id yc8csp472200lbb; Tue, 18 Aug 2015 06:10:09 -0700 (PDT) X-Received: by 10.68.196.233 with SMTP id ip9mr13266670pbc.139.1439903409381; Tue, 18 Aug 2015 06:10:09 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ol11si30351313pab.5.2015.08.18.06.10.08; Tue, 18 Aug 2015 06:10:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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 S1753116AbbHRNKH (ORCPT + 8 others); Tue, 18 Aug 2015 09:10:07 -0400 Received: from mail-wi0-f179.google.com ([209.85.212.179]:34223 "EHLO mail-wi0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753113AbbHRNKG (ORCPT ); Tue, 18 Aug 2015 09:10:06 -0400 Received: by wicne3 with SMTP id ne3so100323128wic.1 for ; Tue, 18 Aug 2015 06:10:05 -0700 (PDT) X-Received: by 10.194.63.42 with SMTP id d10mr14051345wjs.92.1439903405215; Tue, 18 Aug 2015 06:10:05 -0700 (PDT) Received: from localhost.localdomain (host-92-13-246-184.as43234.net. [92.13.246.184]) by smtp.gmail.com with ESMTPSA id vl1sm11687042wjc.0.2015.08.18.06.10.03 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Aug 2015 06:10:04 -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 v2 2/6] ARM: dts: qs600: add pwrseq support to WLAN Date: Tue, 18 Aug 2015 14:10:01 +0100 Message-Id: <1439903401-20189-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1439903069-19752-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1439903069-19752-1-git-send-email-srinivas.kandagatla@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@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.52 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 --- 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 34ccb26..ebde2b7 100644 --- a/arch/arm/boot/dts/qcom-apq8064-cm-qs600.dts +++ b/arch/arm/boot/dts/qcom-apq8064-cm-qs600.dts @@ -1,9 +1,25 @@ #include "qcom-apq8064-v2.0.dtsi" +#include +#include / { model = "CompuLab CM-QS600"; compatible = "qcom,apq8064-cm-qs600", "qcom,apq8064"; + 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 { pinctrl@800000 { i2c1_pins: i2c1 { @@ -155,6 +171,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 { @@ -173,6 +204,7 @@ status = "okay"; vmmc-supply = <&v3p3_fixed>; vqmmc-supply = <&v3p3_fixed>; + mmc-pwrseq = <&sdcc4_pwrseq>; }; }; };