Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2176727ybv; Fri, 14 Feb 2020 13:03:37 -0800 (PST) X-Google-Smtp-Source: APXvYqwu05qLRuTDTXsjEo48nDNrzypAdcKh00uSKwsAOxtNZY5Sbpn/1saMksugAoHps9xvdt/B X-Received: by 2002:a05:6830:114c:: with SMTP id x12mr3828772otq.324.1581714217197; Fri, 14 Feb 2020 13:03:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581714217; cv=none; d=google.com; s=arc-20160816; b=v8NeCZkEYB/siP/xQw5v42kx04bx1tjtMtlhjSSEkLhBz1D03YQvNFgdlwKXtz6UlA HQVXXlfnQgleCF9X6+uQbXgvr7V1Anc/JSvoV99tQQi/7oZ4hgzLHHMaSS8ZJ/qQ4X7N zY/iroDtQIwTKCxO9q623hdNVWOY1AWOY6lUR6Emr0AOJ8RjxJcdBFyS9TMbeSpMzD3u M44kZrKM5CsakjN52GCvArHpZ+BWQv2jIUGapUF18arnb4OWG2ERVe0fOABTIGASXw1M LBJNJeIqWbL6lccZo2WNha3Fysdzr7zru5SDXXMY1FHozwUbyX1rOVfyVoZdCNCx+eAU ruhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=cMY+b4+zCdHdXbbqvanR//NUkWCHWQnzL4s5t1Avvlc=; b=U8N7M7imO9ZS3c2j5s2YAuv2BWT1BtFDoIR4jcaa09+T+6End5HNBJ0GClHXy1XJN0 4LO9rOPrEh0WxekktcxdUbeuYhcmVGl1shJFGKEm20YWz/lX1dgi/s+yKedWBgknYoDI r42VvM5Qz9ReAT1LqL2newVkr8APIz+QNIrxuy6Wl8kdbixOL5kHIp1hHIoGxVUivtBy 4aNwGmErJi7okht7fjmOr6NSfC4CySenhckvsyb9l9TP+hnzUpu3S3ECXOwbGhvEOJwj Er2Q7RI/U2Q3BTPEIfmkPi6VpbEZMihUmLTFZqjjim6u7wBwwy9BUF0xbQfZA3uMIzOo 8Vag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t1si3382592oic.140.2020.02.14.13.03.24; Fri, 14 Feb 2020 13:03:37 -0800 (PST) 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; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387629AbgBNVCx (ORCPT + 99 others); Fri, 14 Feb 2020 16:02:53 -0500 Received: from lists.gateworks.com ([108.161.130.12]:38389 "EHLO lists.gateworks.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728173AbgBNVCw (ORCPT ); Fri, 14 Feb 2020 16:02:52 -0500 Received: from 68-189-91-139.static.snlo.ca.charter.com ([68.189.91.139] helo=rjones.pdc.gateworks.com) by lists.gateworks.com with esmtp (Exim 4.82) (envelope-from ) id 1j2i7Y-0007HC-Tm; Fri, 14 Feb 2020 21:03:33 +0000 From: Robert Jones To: Rob Herring , Mark Rutland , Shawn Guo , Sascha Hauer Cc: Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Robert Jones Subject: [PATCH v2] ARM: dts: imx6qdl-gw553x.dtsi: add lsm9ds1 iio imu/magn support Date: Fri, 14 Feb 2020 13:02:41 -0800 Message-Id: <20200214210241.32611-1-rjones@gateworks.com> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add one node for the accel/gyro i2c device and another for the separate magnetometer device in the lsm9ds1. Signed-off-by: Robert Jones --- Changes in v2: - Use generic node names - alphabetize pinctrl entries - shorten patch title prefix arch/arm/boot/dts/imx6qdl-gw553x.dtsi | 31 +++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-gw553x.dtsi b/arch/arm/boot/dts/imx6qdl-gw553x.dtsi index a1066897be18..ee85031c3916 100644 --- a/arch/arm/boot/dts/imx6qdl-gw553x.dtsi +++ b/arch/arm/boot/dts/imx6qdl-gw553x.dtsi @@ -173,6 +173,25 @@ &i2c2 { pinctrl-0 = <&pinctrl_i2c2>; status = "okay"; + magn@1c { + compatible = "st,lsm9ds1-magn"; + reg = <0x1c>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_mag>; + interrupt-parent = <&gpio1>; + interrupts = <2 IRQ_TYPE_EDGE_RISING>; + }; + + imu@6a { + compatible = "st,lsm9ds1-imu"; + reg = <0x6a>; + st,drdy-int-pin = <1>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_imu>; + interrupt-parent = <&gpio7>; + interrupts = <13 IRQ_TYPE_LEVEL_HIGH>; + }; + ltc3676: pmic@3c { compatible = "lltc,ltc3676"; reg = <0x3c>; @@ -426,6 +445,12 @@ MX6QDL_PAD_GPIO_6__I2C3_SDA 0x4001b8b1 >; }; + pinctrl_imu: imugrp { + fsl,pins = < + MX6QDL_PAD_GPIO_18__GPIO7_IO13 0x1b0b0 + >; + }; + pinctrl_ipu1_csi0: ipu1csi0grp { fsl,pins = < MX6QDL_PAD_CSI0_DAT12__IPU1_CSI0_DATA12 0x1b0b0 @@ -449,6 +474,12 @@ MX6QDL_PAD_KEY_ROW2__GPIO4_IO11 0x1b0b0 >; }; + pinctrl_mag: maggrp { + fsl,pins = < + MX6QDL_PAD_GPIO_2__GPIO1_IO02 0x1b0b0 + >; + }; + pinctrl_pcie: pciegrp { fsl,pins = < MX6QDL_PAD_GPIO_0__GPIO1_IO00 0x1b0b0 -- 2.25.0