Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4670070ybg; Mon, 21 Oct 2019 12:32:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqzqHQpBFdqX6fJWn+d+drURbHpuR+wu09z1X9uUEDdJfGIHKjoye3dGvLiBl6QQo0wzZq/f X-Received: by 2002:a17:906:4806:: with SMTP id w6mr24528151ejq.44.1571686349516; Mon, 21 Oct 2019 12:32:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571686349; cv=none; d=google.com; s=arc-20160816; b=B7Nym1OsuZX0eWTYX6QtgGeH0BNUkTyw3uTtCewRtFf2+cEwzi4KoSlnXzE6qGDH40 /4EcngjBAMhAL/Iivn1zmqxTkpuNjOELMHsCXnXLMs/MWI++6064++PZU5vxr/IBQe6I REO2ulQrCSPdoy4Hbre5uee897iQyrRPJ1PEuWFG9VJ7LfPGazeLST4APsKqRlFrxxqH qkjCIHspVBQNcqzZZ9aZl3JsfJB94NfB7eMGm2EEnZSyNZgYj903RwXZvf6/25oMFSiI isUv2w6uP2TRApQQAcxGLAmhl09kdwGYSIxHoefkNhdajOtkcJh3937URsFX0+W8OLMZ ATAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=zDsFciMfBsOLw/gb8ypekdMT3bU4wcz+6SRnbgFeGvM=; b=u27rtLoHZ7fgb79BTzuRE9ruXOEKjE7K4TG0iLQf9oWGBTWWxaQBdzzpPeOZJZqQ8x XgrTtlYBibpY0GgkhViKQYAKJz9getMcQbfMMZ6JTe489m52/Ix4Hl+Dkmw5Od2fC3x7 d0QS/gRJhn+jkEm/weUG/juxn0rVzIhD4RJSr+g8Z56UhKM8Uo6BMGcLBza8I0ZhZbco hQ8TXAZsu8Xz35Y5QkEWSoo6zoxtAg9M/IRpEHt5ei0bfUVHtVJCo1qJ3ZR8l1gNKL+e 72oFk6Cj4JwBSwVMR0Fp1KGcfIEToogcAKRIm+gxkh1p9QhIfJV180G6tZ7Xa+oqXW4a Zxow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gateworks-com.20150623.gappssmtp.com header.s=20150623 header.b=udgCAere; 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 v14si12291186ede.424.2019.10.21.12.32.05; Mon, 21 Oct 2019 12:32:29 -0700 (PDT) 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=@gateworks-com.20150623.gappssmtp.com header.s=20150623 header.b=udgCAere; 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 S1730155AbfJUTbn (ORCPT + 99 others); Mon, 21 Oct 2019 15:31:43 -0400 Received: from mail-il1-f195.google.com ([209.85.166.195]:42131 "EHLO mail-il1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729869AbfJUTbn (ORCPT ); Mon, 21 Oct 2019 15:31:43 -0400 Received: by mail-il1-f195.google.com with SMTP id o16so5054195ilq.9 for ; Mon, 21 Oct 2019 12:31:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gateworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zDsFciMfBsOLw/gb8ypekdMT3bU4wcz+6SRnbgFeGvM=; b=udgCAereY9DnrEwQiiU0e1UuO6gXEheU+q6aI9sR9IAcp787s9g2obd9zulwpL5kWa Sf1qJdoYN1FMy+SLp0qk+s7Qlb2cvwXFstYtafwAojAvYlN+O5PA5PtNDUkiAxu47fx5 iIN1Y8fAcuSIxC6ftGD+bdh2D6dOpVWrTbMnwdi8bfyLPqo115Z9XIXwB+FrCLK19N2a qiF+cu3p9tJ4cSo8DPIxf1ZPSDSklrocyic2lqE7bjJ+T5MHjekhK4c9Ap845cY0oI8l AvPc+FWeNLDN7HpXZqxyP2b7lbBXJ6pNQAFtF4oG6GPWQaH6TCnFSFvVbO1CezOJG/7H uodA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zDsFciMfBsOLw/gb8ypekdMT3bU4wcz+6SRnbgFeGvM=; b=qqlJaS6uk9d8WNCeE12kvTqOe5vAlhere3R8u/LKumi4EuOwLxofB2/XHIt52yBG4J ImeZrb/kmEeGlvg1qepQhu/+NIU0nP1Tmegb0hqIy36KU8r93DeaDh0GvMb9/LArfvHI 3zKlOnoVIoQcaspwhoaMPg0UI6WA0bOJJO5JZBSwix+kLRAEuLligrFreJ4L9xQJ4kt2 U+DPfNfXDuZuhmuPCLrAiqcITtK4Fc74YsyuJDMv04U3RNSSN5WoUT+DvK5b8vIkby3k 7osFEFqzA48fuXgfM6GlmlmK9YC2jefNK+sQVkbWQJ763VCril/8WuDhINhSqG9hwHlx zWhg== X-Gm-Message-State: APjAAAV5uBCLqHgJVraJLlFPKoKZXhDhMBMvEdpg3bFHa+4TSH6Xz6ms 4hpk/fK3tBNel2x29250JLqGwd8LFyTvjChV2q2Agw== X-Received: by 2002:a92:c8cb:: with SMTP id c11mr26747744ilq.119.1571686301952; Mon, 21 Oct 2019 12:31:41 -0700 (PDT) MIME-Version: 1.0 References: <20191018232124.4126-1-rjones@gateworks.com> <20191021081945.o7knknxacm6uvd3c@pengutronix.de> In-Reply-To: From: Bobby Jones Date: Mon, 21 Oct 2019 12:31:31 -0700 Message-ID: Subject: Re: [PATCH] ARM: dt: add lsm9ds1 iio imu/magn support to gw553x To: Marco Felsch Cc: Rob Herring , Mark Rutland , Shawn Guo , Sascha Hauer , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, NXP Linux Team , Pengutronix Kernel Team , Fabio Estevam , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 21, 2019 at 11:30 AM Bobby Jones wrote: > > On Mon, Oct 21, 2019 at 1:19 AM Marco Felsch wrote: > > > > Hi Robert, > > > > same here, don't name it 'ARM: dt: ...' instead name it 'ARM: dts: imx: > > ventana: ..' or 'ARM: dts: imx: imx6qdl-gw553x: ..'. > > Sorry about that, I'll follow that format from now on. > > > > On 19-10-18 16:21, 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..55e6922 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_ag@6a { > > > + compatible = "st,lsm9ds1-imu"; > > > > Didn't found this compatible string. > So this is a compatible string for a driver that's being mainlined > now. The devicetree bindings for which has already been reviewed-by > Rob Herring as seen here: > https://www.spinics.net/lists/linux-iio/msg47297.html. If possible I'd > prefer to get this in the same kernel release so let me know if > there's anything else I can do to make that happen. > I mixed up my replies here. That link points to the "nxp,fxos8700" compatible string that you brought up in your other response. The "st,lsm9ds1-imu" compatible string is described in Documentation/devicetree/bindings/iio/imu/st_lsm6dsx.txt which was an August commit that made it into the imx/dt branch. > > > > > + reg = <0x6a>; > > > + st,drdy-int-pin = <1>; > > > + pinctrl-names = "default"; > > > + pinctrl-0 = <&pinctrl_acc_gyro>; > > > + interrupt-parent = <&gpio7>; > > > + interrupts = <13 IRQ_TYPE_LEVEL_HIGH>; > > > + }; > > > + > > > + lsm9ds1_m@1c { > > > + compatible = "st,lsm9ds1-magn"; > > > + reg = <0x1c>; > > > > Nodes are sorted according their i2c-addresses. > > > I'll resubmit with that change, thanks! > - Bobby > > > Regards, > > Marco > > > > > + pinctrl-names = "default"; > > > + pinctrl-0 = <&pinctrl_mag>; > > > + interrupt-parent = <&gpio1>; > > > + interrupts = <2 IRQ_TYPE_EDGE_RISING>; > > > + }; > > > + > > > ltc3676: pmic@3c { > > > compatible = "lltc,ltc3676"; > > > reg = <0x3c>; > > > @@ -462,6 +481,18 @@ > > > >; > > > }; > > > > > > + pinctrl_acc_gyro: acc_gyrogrp { > > > + fsl,pins = < > > > + MX6QDL_PAD_GPIO_18__GPIO7_IO13 0x1b0b0 > > > + >; > > > + }; > > > + > > > + pinctrl_mag: maggrp { > > > + fsl,pins = < > > > + MX6QDL_PAD_GPIO_2__GPIO1_IO02 0x1b0b0 > > > + >; > > > + }; > > > + > > > pinctrl_pps: ppsgrp { > > > fsl,pins = < > > > MX6QDL_PAD_ENET_RXD1__GPIO1_IO26 0x1b0b1 > > > -- > > > 2.9.2 > > > > > > > > > > > > > -- > > Pengutronix e.K. | | > > Industrial Linux Solutions | http://www.pengutronix.de/ | > > Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | > > Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |