Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp889819ybl; Tue, 28 Jan 2020 14:16:15 -0800 (PST) X-Google-Smtp-Source: APXvYqw6bd2UFJrGcDzJqDpFPsnJGYoYI3SlSt4XsGDznXepHoGyry7gnu+hpzDMEf8J9L/4Tfdd X-Received: by 2002:a05:6830:1184:: with SMTP id u4mr12908846otq.221.1580249775182; Tue, 28 Jan 2020 14:16:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580249775; cv=none; d=google.com; s=arc-20160816; b=CzunMay/WnFqbb+zvG01jwZvZe/RU/d2yxKeLqbyHka8f0CsPt8Gwyn78c4cLlbHx1 /5HVUvX5SmOGCPCAFPbHXT126wEauieMHWZMaFrn0WnBW4XnqhaVlgFdmd2zvnXmCN2x NgE4OQQ9AsFleCKQQB7NqeIO+GYmuzG1K7RVQGgLw2gVaDb5C/BS5iFvywwZcUCwvE4J /dYzrFaVJORsaW+PyJkuMgVXh2SOPyD0bshyLsXWyh6qK6MIN5szqHFhe3vyni7XWVob 3bONcXGdj2UDnRbJfaJkdbMknbbeuVFA+d/tr8Xsojbmov2803YEYTaSUXiH5w7n/vKu oUFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=0ppeKJOBGvLxnTzCgxUKqDP9S0O5vS9c5qswA2bfOgw=; b=ea9GwXnZ8PJ5SyrFjbxeIqOtc1gzwk8H6COWKKUfPx+4WhfNtTwIj22OaezydLIOgF BORClqEv3ZLmqVRUIR1l5mkgxEdCXUfwpYOXmoni0SMFaRn1W7KN/rAmIFy9M44b3VJf FgRZkJO4avqEZbHumDfc0RkabFK24q+72B61gHAYMJr6wRHKkuC0DSiBmsEEBbQv2iZS 20pWlVfFICw8IkwbqNLAmtGD+er6eJuKXtF3m+98WRIHA+5KgSBz3fhKMzcrsEK6QgPt ivreNyiHi4OtMiGkr30u7PhAMeyEupRRswMWrQXkg/nqshR40tYOtfcipBChk8oRCeHo E1sA== 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 d14si50879oic.201.2020.01.28.14.16.02; Tue, 28 Jan 2020 14:16:15 -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 S1726428AbgA1WN5 (ORCPT + 99 others); Tue, 28 Jan 2020 17:13:57 -0500 Received: from lists.gateworks.com ([108.161.130.12]:59531 "EHLO lists.gateworks.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726257AbgA1WN5 (ORCPT ); Tue, 28 Jan 2020 17:13:57 -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 1iwZ7X-0005iY-UE; Tue, 28 Jan 2020 22:14:08 +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] ARM: dts: imx: imx6qdl-gw553x.dtsi: add lsm9ds1 iio imu/magn support Date: Tue, 28 Jan 2020 14:13:26 -0800 Message-Id: <20200128221326.11393-1-rjones@gateworks.com> X-Mailer: git-send-email 2.9.2 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 --- 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 a106689..305b2f0 100644 --- a/arch/arm/boot/dts/imx6qdl-gw553x.dtsi +++ b/arch/arm/boot/dts/imx6qdl-gw553x.dtsi @@ -173,6 +173,25 @@ pinctrl-0 = <&pinctrl_i2c2>; status = "okay"; + lsm9ds1_m@1c { + compatible = "st,lsm9ds1-magn"; + reg = <0x1c>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_mag>; + interrupt-parent = <&gpio1>; + interrupts = <2 IRQ_TYPE_EDGE_RISING>; + }; + + lsm9ds1_ag@6a { + compatible = "st,lsm9ds1-imu"; + reg = <0x6a>; + st,drdy-int-pin = <1>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_acc_gyro>; + interrupt-parent = <&gpio7>; + interrupts = <13 IRQ_TYPE_LEVEL_HIGH>; + }; + ltc3676: pmic@3c { compatible = "lltc,ltc3676"; reg = <0x3c>; @@ -462,6 +481,18 @@ >; }; + pinctrl_mag: maggrp { + fsl,pins = < + MX6QDL_PAD_GPIO_2__GPIO1_IO02 0x1b0b0 + >; + }; + + pinctrl_acc_gyro: acc_gyrogrp { + fsl,pins = < + MX6QDL_PAD_GPIO_18__GPIO7_IO13 0x1b0b0 + >; + }; + pinctrl_pps: ppsgrp { fsl,pins = < MX6QDL_PAD_ENET_RXD1__GPIO1_IO26 0x1b0b1 -- 2.9.2