From patchwork Tue Apr 12 09:34:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 8808541 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C53769F39A for ; Tue, 12 Apr 2016 09:42:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F038320154 for ; Tue, 12 Apr 2016 09:42:55 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 257C62014A for ; Tue, 12 Apr 2016 09:42:55 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1apuo4-0005ZY-8Z; Tue, 12 Apr 2016 09:40:24 +0000 Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1apuj3-0007De-Oj for linux-arm-kernel@lists.infradead.org; Tue, 12 Apr 2016 09:35:15 +0000 Received: by mail-wm0-x22f.google.com with SMTP id l6so179833844wml.1 for ; Tue, 12 Apr 2016 02:34:53 -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=CIYlGU7lSaGmIDyqya4Y5EMecmByR/6seuH8YHv6XZA=; b=gL3xHRn2ptGD2p6iEkHDne2gqbffzgGeJNvVHtPhq3lVjeQcfu6B3rsvuWDVQaJpqO ManjGjd/opg8U3xql++S4DqSo4ERSz6K677oUAmTlXkzEWDbNABz9FVn+p3bK4WM0JaM 5MdooKl3Elfer+oDvHSgl56NFv0BUKD+1PbTE= 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=CIYlGU7lSaGmIDyqya4Y5EMecmByR/6seuH8YHv6XZA=; b=SNwhU/oOif+mBtVqQal0g1h+fgS/wEW1jEHYW/B4oe5W5X9a8kiN8vMxNTztJBZCuy vqAx60eFQkTqK9HaP5zMJZAsTVUY7VUMhOE4tO4QL7k4O3OV7w6rk37iZpdihNCSSOwK wLC/IlipUXAWZ33kIGnW97UFvlMo8ib9ONNOUNq5mHPFMYURCHZCHCrsp4TqAtjPFDKa UB4bDZr4o3Ocn3VzoiMD7EqTBIKK2kxVA0JtOfFRSM9l1f7riL6pY9w3NFcv5hltEfLV DR26FqMVdvH41dKR3jVlbeVybPA/0ZQbOxpCH8fKkT6WD30y04pdzmC1SDbQbtDwbD2y 4H3Q== X-Gm-Message-State: AD7BkJLcdEEu38YxS0hD3YTeASJ3hxsQJGSB5pNbVo5r1cH0kyMeKkO6Q2z5rPQoEVSWHHcP X-Received: by 10.28.182.194 with SMTP id g185mr23933981wmf.41.1460453692316; Tue, 12 Apr 2016 02:34:52 -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.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 12 Apr 2016 02:34:51 -0700 (PDT) From: Srinivas Kandagatla To: Andy Gross , linux-arm-msm@vger.kernel.org Subject: [PATCH v2 13/13] ARM: dts: db600c: add support to magnetometer Date: Tue, 12 Apr 2016 10:34:02 +0100 Message-Id: <1460453642-5809-14-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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160412_023514_321227_946F6DCB X-CRM114-Status: GOOD ( 12.38 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, srinivas.kandagatla@linaro.org, linux-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds support to on board LIS3MDLTR magnetometer. Signed-off-by: Srinivas Kandagatla --- arch/arm/boot/dts/qcom-apq8064-arrow-db600c-pins.dtsi | 8 ++++++++ arch/arm/boot/dts/qcom-apq8064-arrow-db600c.dts | 13 +++++++++++++ 2 files changed, 21 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8064-arrow-db600c-pins.dtsi b/arch/arm/boot/dts/qcom-apq8064-arrow-db600c-pins.dtsi index 3b55bb9..a3efb97 100644 --- a/arch/arm/boot/dts/qcom-apq8064-arrow-db600c-pins.dtsi +++ b/arch/arm/boot/dts/qcom-apq8064-arrow-db600c-pins.dtsi @@ -31,6 +31,14 @@ output-low; }; }; + + magneto_pins: magneto-pins { + mux { + pins = "gpio31", "gpio48"; + function = "gpio"; + bias-disable; + }; + }; }; &pm8921_mpps { diff --git a/arch/arm/boot/dts/qcom-apq8064-arrow-db600c.dts b/arch/arm/boot/dts/qcom-apq8064-arrow-db600c.dts index 34bb415..e01b27e 100644 --- a/arch/arm/boot/dts/qcom-apq8064-arrow-db600c.dts +++ b/arch/arm/boot/dts/qcom-apq8064-arrow-db600c.dts @@ -153,6 +153,19 @@ /* On Low speed expansion and Sensors */ label = "LS-I2C0"; status = "okay"; + lis3mdl_mag@1e { + compatible = "st,lis3mdl-magn"; + reg = <0x1e>; + vdd-supply = <&vcc3v3>; + vddio-supply = <&pm8921_s4>; + pinctrl-names = "default"; + pinctrl-0 = <&magneto_pins>; + interrupt-parent = <&tlmm_pinmux>; + + st,drdy-int-pin = <2>; + interrupts = <48 IRQ_TYPE_EDGE_RISING>, /* DRDY line */ + <31 IRQ_TYPE_EDGE_RISING>; /* INT */ + }; }; };