Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1246273ybv; Thu, 13 Feb 2020 19:04:57 -0800 (PST) X-Google-Smtp-Source: APXvYqx0xzK/nh5SAbmDcr/I8B0RxUrdu2kfxxDYYeofRXVv00ZQacPQsDTxjlRE6lqyP3qx9nP6 X-Received: by 2002:a9d:4c14:: with SMTP id l20mr547510otf.125.1581649497826; Thu, 13 Feb 2020 19:04:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581649497; cv=none; d=google.com; s=arc-20160816; b=Ze1IH/LEG8SuiS7j1FR1GNHOkZZcqucoRXjj4exAFvaiZiQPECIRe5ag5qoqVOy09X mhHxa+G18PiAhvS7OXJeBnyzk7kWry1b4OugTnarjK9ti2Mvn3i627oi4NWoHdpn3NaB DbftPf6Z4IfeClaQPqfdMBgLfi3w5N7Q4yccZIW6cPWixz/COEioslVCsQLLhq2SetrC sTg/2l16eRCJkNM7f9gpGcjYqogF/Q232WP4Dt5n5Qx7D5IVcDf/bwZ10+O4JxehXjre iuKJUMaRFTIr/mSI6hV1P3yxgVt3x3fzO7DkLtH0fqr1CIWbFTUj4dwOlCGkyODZ+Yv4 +P0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=U2dPXn7Kp4KRNPn4K9C7XY7xF8lGBKTFkQDZMzkBSf4=; b=QRb5b+sYY5tvya4czLPGq90BAyfmQ/JIxjOPlAwGhMiL78mpDS+NB4zncEK6KGZegC Dcber20QmlpXzswqheD6jo1ayGGAJ+svGIQyYqsBOc4mseHf6L6Mcq8weYCgpAqjb1Vp twuSs7F1cZfjFahpLHpMrodGY8HF+uWUEfE4rwiesg/f977n2SgdXV3MNmUoi+G9ydfl 2v2zLUp0YXbMLyhv7Fu1cfoYTKu8EH+j5ZirnPWeoXO4A2tj8vl5Atq4iwoP+iP7jcWt 8R7ivQEzOt69VdGrvKoBpoki32truGhYRKOqqs+ZxmpUziNerXB8PmZ1WTMHHtsou3wp 4rJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bRSLEz7I; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z22si1964256otq.94.2020.02.13.19.04.43; Thu, 13 Feb 2020 19:04:57 -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; dkim=pass header.i=@kernel.org header.s=default header.b=bRSLEz7I; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728195AbgBNDET (ORCPT + 99 others); Thu, 13 Feb 2020 22:04:19 -0500 Received: from mail.kernel.org ([198.145.29.99]:39216 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727604AbgBNDET (ORCPT ); Thu, 13 Feb 2020 22:04:19 -0500 Received: from dragon (80.251.214.228.16clouds.com [80.251.214.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F165F2168B; Fri, 14 Feb 2020 03:04:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581649459; bh=+I1VNRsZ6mWUl7yjg8iW9NTuGybpG3UgnjAdjCwz3ic=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bRSLEz7I7/K3VqtF0M2R2NyvENXiY3sDn2SIk7ASR3xWL1JkeOBbygFpG/w7xCe6R 3dVtdZ+e/jndq2Oq5aNyIECOfydLcfemhMWMv86S7ksSERC868vbJBYTFNDA+GWMwW 32kfJ7qnYJqzFnNUglzaO833bB1pZW8kdztVxwK8= Date: Fri, 14 Feb 2020 11:04:11 +0800 From: Shawn Guo To: Robert Jones Cc: Rob Herring , Mark Rutland , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] ARM: dts: imx: imx6qdl-gw553x.dtsi: add lsm9ds1 iio imu/magn support Message-ID: <20200214030409.GJ22842@dragon> References: <20200128221326.11393-1-rjones@gateworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200128221326.11393-1-rjones@gateworks.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 28, 2020 at 02:13:26PM -0800, Robert Jones wrote: > 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 { Please use a generic node name? > + 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 { Ditto > + 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 { Sort pinctrl nodes alphabetically. Also we generally do not use underscore in node name. Shawn > + fsl,pins = < > + MX6QDL_PAD_GPIO_18__GPIO7_IO13 0x1b0b0 > + >; > + }; > + > pinctrl_pps: ppsgrp { > fsl,pins = < > MX6QDL_PAD_ENET_RXD1__GPIO1_IO26 0x1b0b1 > -- > 2.9.2 >