From patchwork Tue Apr 12 09:33:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 65600 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp1814326qge; Tue, 12 Apr 2016 02:35:03 -0700 (PDT) X-Received: by 10.66.244.233 with SMTP id xj9mr3196455pac.19.1460453695319; Tue, 12 Apr 2016 02:34:55 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id mz1si9310585pab.72.2016.04.12.02.34.55; Tue, 12 Apr 2016 02:34:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756565AbcDLJep (ORCPT + 8 others); Tue, 12 Apr 2016 05:34:45 -0400 Received: from mail-wm0-f45.google.com ([74.125.82.45]:34612 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756505AbcDLJen (ORCPT ); Tue, 12 Apr 2016 05:34:43 -0400 Received: by mail-wm0-f45.google.com with SMTP id l6so179827703wml.1 for ; Tue, 12 Apr 2016 02:34:42 -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; bh=nY4X7ceK9aOjL6HU5t/XycnkIBEboZTZdQqgXApheKc=; b=E3Xv3NTyrKNfgJByeMuFQaitpnTSUkVr9RBUXye2tJE8zoCSJj+CQgZv0Z8A8aT3ni KULCYjH+SYoWUvZ9kld0J1zNC1l4vVKxgQX7ViC3yP7EHRsDzegDTrpPabHBNT4qbwFn LlxJ0Y5ggY4NNKQfaEDzCZA/WVORnJmgnASKY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=nY4X7ceK9aOjL6HU5t/XycnkIBEboZTZdQqgXApheKc=; b=hE2W3KKtBezX5HZ0OWku3Kvx8evtlIuoZaHLRK1YjvCqJzca/2fUHbFZu5UYltf0dr cN/aSx85qlgHCWiBm/fbLEL0d8XbLQfbN0zrBJ3X0tWCNpzUHc2i3C2Pw8cWVfbwgFdU DptTXlQXxfKdf395AmDWm5hz5tMVIp+p945BZdadCnVx4oy6ZIClLOjWNYnjnAraULT/ u52nUWSRQDvS6AnE8MLNMRtbq0ekmPZG5ftSQLkjehCNGJgGvQ0gZpMlQjcII+7fAjJS TrKUHiLPwIb7HjaUNWBAseQQcYUdSR4Q7QmlmxKstqwGyMcwAzUkRsMUJDkm5y6YRxnK pGqA== X-Gm-Message-State: AOPr4FVt8R2kkJFRdQksZF88zewJcqX1YwiKHn2bl9XbOQcUM5UB2zjAFw1tXbhOsyPmwLUR X-Received: by 10.194.216.40 with SMTP id on8mr2729339wjc.40.1460453682150; Tue, 12 Apr 2016 02:34:42 -0700 (PDT) Received: from localhost.localdomain (host-92-17-247-99.as13285.net. [92.17.247.99]) by smtp.gmail.com with ESMTPSA id gt7sm32431907wjc.1.2016.04.12.02.34.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 12 Apr 2016 02:34:41 -0700 (PDT) From: Srinivas Kandagatla To: Andy Gross , linux-arm-msm@vger.kernel.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-soc@vger.kernel.org, srinivas.kandagatla@linaro.org Subject: [PATCH v2 03/13] ARM: dts: apq8064: add gsbi7 i2c support Date: Tue, 12 Apr 2016 10:33:52 +0100 Message-Id: <1460453642-5809-4-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1460453642-5809-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1460453642-5809-1-git-send-email-srinivas.kandagatla@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This patch adds support to gsbi7 i2c which is used in some of the new boards. Signed-off-by: Srinivas Kandagatla --- arch/arm/boot/dts/qcom-apq8064-pins.dtsi | 25 +++++++++++++++++++++++++ arch/arm/boot/dts/qcom-apq8064.dtsi | 13 +++++++++++++ 2 files changed, 38 insertions(+) -- 2.5.0 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/boot/dts/qcom-apq8064-pins.dtsi b/arch/arm/boot/dts/qcom-apq8064-pins.dtsi index 8bb5e5f..4102a98 100644 --- a/arch/arm/boot/dts/qcom-apq8064-pins.dtsi +++ b/arch/arm/boot/dts/qcom-apq8064-pins.dtsi @@ -219,4 +219,29 @@ function = "gsbi7"; }; }; + + i2c7_pins: i2c7 { + mux { + pins = "gpio84", "gpio85"; + function = "gsbi7"; + }; + + pinconf { + pins = "gpio84", "gpio85"; + drive-strength = <16>; + bias-disable; + }; + }; + + i2c7_pins_sleep: i2c7_pins_sleep { + mux { + pins = "gpio84", "gpio85"; + function = "gpio"; + }; + pinconf { + pins = "gpio84", "gpio85"; + drive-strength = <2>; + bias-disable = <0>; + }; + }; }; diff --git a/arch/arm/boot/dts/qcom-apq8064.dtsi b/arch/arm/boot/dts/qcom-apq8064.dtsi index 81b4290..f064f59 100644 --- a/arch/arm/boot/dts/qcom-apq8064.dtsi +++ b/arch/arm/boot/dts/qcom-apq8064.dtsi @@ -417,6 +417,19 @@ clock-names = "core", "iface"; status = "disabled"; }; + + gsbi7_i2c: i2c@16680000 { + compatible = "qcom,i2c-qup-v1.1.1"; + pinctrl-0 = <&i2c7_pins>; + pinctrl-1 = <&i2c7_pins_sleep>; + pinctrl-names = "default", "sleep"; + reg = <0x16680000 0x1000>; + interrupts = ; + clocks = <&gcc GSBI7_QUP_CLK>, + <&gcc GSBI7_H_CLK>; + clock-names = "core", "iface"; + status = "disabled"; + }; }; rng@1a500000 {