From patchwork Wed Sep 17 05:39:35 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 37504 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 753DE2057E for ; Wed, 17 Sep 2014 05:39:47 +0000 (UTC) Received: by mail-lb0-f198.google.com with SMTP id 10sf475083lbg.1 for ; Tue, 16 Sep 2014 22:39:46 -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:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=oNpqlMWxoAq531piLN34cCxDkRR8FkTQK59T/+OU7Vk=; b=bC84Vw66oBxkT7bYnZRrJh9tAOnZvFYxKJLFII3G7Gn1ydxBl1xlIViTRT62tmVAx5 UXPTD12Rbla7egX7J5o+5gWX5ibzEaPAyD+2UNssinsYGyrOHC1Qan9+2hQAEciTQZne 3neLDHdvQJcnDftqEQt79HShHcEdxZObgSsdDPxrG2/JKK15kwOyyXZkys+biE3Fpt7m R805tDfmS7Z6tZw/+RmXdbxt6kAKKz+p76YpFhqLdx84LSlIA1aCAerIoPxdyyLW22mf hoykwc9yx+CdYIW/5ahiTDfD1bU0uEieiXOoVSLn1jqF6p3WGSvYhZIyuA06URmb2uj2 krRA== X-Gm-Message-State: ALoCoQlpulF//+7bvxixOEw/WKjBKT8nU4vTUCV389lytEG8KHSvcXEItKNMj9aN5jVvLI0JoNFy X-Received: by 10.152.4.4 with SMTP id g4mr1895248lag.2.1410932386229; Tue, 16 Sep 2014 22:39:46 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.7.169 with SMTP id k9ls71955laa.91.gmail; Tue, 16 Sep 2014 22:39:46 -0700 (PDT) X-Received: by 10.152.27.66 with SMTP id r2mr12746071lag.84.1410932386092; Tue, 16 Sep 2014 22:39:46 -0700 (PDT) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com [209.85.217.175]) by mx.google.com with ESMTPS id j14si27032335laa.71.2014.09.16.22.39.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 16 Sep 2014 22:39:46 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) client-ip=209.85.217.175; Received: by mail-lb0-f175.google.com with SMTP id n15so1129977lbi.34 for ; Tue, 16 Sep 2014 22:39:46 -0700 (PDT) X-Received: by 10.152.7.8 with SMTP id f8mr41183766laa.27.1410932385982; Tue, 16 Sep 2014 22:39:45 -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.130.169 with SMTP id of9csp518086lbb; Tue, 16 Sep 2014 22:39:45 -0700 (PDT) X-Received: by 10.66.145.9 with SMTP id sq9mr29962290pab.117.1410932384363; Tue, 16 Sep 2014 22:39:44 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l4si33188195pdd.40.2014.09.16.22.39.43 for ; Tue, 16 Sep 2014 22:39:44 -0700 (PDT) Received-SPF: none (google.com: linux-arm-msm-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751157AbaIQFjn (ORCPT + 5 others); Wed, 17 Sep 2014 01:39:43 -0400 Received: from mail-pd0-f176.google.com ([209.85.192.176]:37709 "EHLO mail-pd0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751045AbaIQFjm (ORCPT ); Wed, 17 Sep 2014 01:39:42 -0400 Received: by mail-pd0-f176.google.com with SMTP id y13so1372732pdi.7 for ; Tue, 16 Sep 2014 22:39:42 -0700 (PDT) X-Received: by 10.68.69.79 with SMTP id c15mr1345927pbu.166.1410932381930; Tue, 16 Sep 2014 22:39:41 -0700 (PDT) Received: from localhost.localdomain ([38.126.120.10]) by mx.google.com with ESMTPSA id ty8sm16228080pab.26.2014.09.16.22.39.39 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 16 Sep 2014 22:39:40 -0700 (PDT) From: Srinivas Kandagatla To: Kumar Gala Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH] ARM: DT: apq8064: add support to sdcc4 for wlan. Date: Wed, 17 Sep 2014 06:39:35 +0100 Message-Id: <1410932375-4858-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-arm-msm@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.217.175 as permitted sender) smtp.mail=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: , This patch adds sdcc4 node to enable wlan support on IFC6410 Signed-off-by: Srinivas Kandagatla --- arch/arm/boot/dts/qcom-apq8064-ifc6410.dts | 4 ++++ arch/arm/boot/dts/qcom-apq8064.dtsi | 38 ++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts index 3287f12..a69a059 100644 --- a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts +++ b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts @@ -28,6 +28,10 @@ sdcc3: sdcc@12180000 { status = "okay"; }; + /* WLAN */ + sdcc4: sdcc@121c0000 { + status = "okay"; + }; }; }; }; diff --git a/arch/arm/boot/dts/qcom-apq8064.dtsi b/arch/arm/boot/dts/qcom-apq8064.dtsi index b1e476a..f31d20b 100644 --- a/arch/arm/boot/dts/qcom-apq8064.dtsi +++ b/arch/arm/boot/dts/qcom-apq8064.dtsi @@ -85,6 +85,13 @@ pinctrl-names = "default"; pinctrl-0 = <&ps_hold>; + sdc4_gpios: sdc4-gpios { + pios { + pins = "gpio63", "gpio64", "gpio65", "gpio66", "gpio67", "gpio68"; + function = "sdc4"; + }; + }; + ps_hold: ps_hold { mux { pins = "gpio78"; @@ -226,6 +233,16 @@ qcom,ee = <0>; }; + sdcc4bam:dma@121c2000{ + compatible = "qcom,bam-v1.3.0"; + reg = <0x121c2000 0x8000>; + interrupts = <0 95 0>; + clocks = <&gcc SDC4_H_CLK>; + clock-names = "bam_clk"; + #dma-cells = <1>; + qcom,ee = <0>; + }; + amba { compatible = "arm,amba-bus"; #address-cells = <1>; @@ -268,6 +285,27 @@ dmas = <&sdcc3bam 2>, <&sdcc3bam 1>; dma-names = "tx", "rx"; }; + + sdcc4: sdcc@121c0000 { + compatible = "arm,pl18x", "arm,primecell"; + arm,primecell-periphid = <0x00051180>; + status = "disabled"; + reg = <0x121c0000 0x2000>; + interrupts = ; + interrupt-names = "cmd_irq"; + clocks = <&gcc SDC4_CLK>, <&gcc SDC4_H_CLK>; + clock-names = "mclk", "apb_pclk"; + bus-width = <4>; + cap-sd-highspeed; + cap-mmc-highspeed; + max-frequency = <48000000>; + vmmc-supply = <&vsdcc_fixed>; + vqmmc-supply = <&vsdcc_fixed>; + dmas = <&sdcc4bam 2>, <&sdcc4bam 1>; + dma-names = "tx", "rx"; + pinctrl-names = "default"; + pinctrl-0 = <&sdc4_gpios>; + }; }; }; };