Message ID | 20230113221058.2355840-1-andreas@kemnade.info |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp3875wrn; Fri, 13 Jan 2023 14:12:11 -0800 (PST) X-Google-Smtp-Source: AMrXdXtFFiSgHBSrlOoZfP9NF1QHkqq/xucG0bS3dtQzoVjwn91j4zU5XU4U69vyOGtRe3o9NSzK X-Received: by 2002:a05:6402:3603:b0:46c:8544:42be with SMTP id el3-20020a056402360300b0046c854442bemr76650075edb.5.1673647931548; Fri, 13 Jan 2023 14:12:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673647931; cv=none; d=google.com; s=arc-20160816; b=i7NAMcPvygKxJe6+BXls2Qq9CEXk7Hgl17EEEW92kRjzBBhErDR6VBre5zfMw1c8H0 fPc7hlgIeEdtc877gOes4Oiutjio2JPE3sV5m/AbHJFLd6r+DRcyElemWEA2yYHPq/cA 2dDu4uEWg/3PIU5NGITlxNYyVDLiIZvKhdFQkHX4ZbAJEbj4FvcOhluZFBrKCGOFcG8G OkB2KDCpqZVT6jNUM5va4ub9IZ8FlPoNT6YVWmAgedVC3SgDa6cz/js7EL56EsXElNTr QvGFkn1oYODxHT025wvYArdx1tNNjMYUvki8+/q6ZSPj5tbECo61g31pY/eUYS9KXURO p18w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Y/z2c+U+yZ8a6/4g+++TbaCiP4JUH3QavrzL1WFbDPM=; b=Db2Ko4V0fwMZrgpzvxV9mXp+k4wWxC0cYd0PV6NAERDeaeFjSaFow5yjy7dx8eFvkZ tY4co8lA5rXHv3OISN12yVXcL134lmIYXZzDekO27WP/5ejL5qTLM0mohPg1oiojDVvq pKZa1eVwc8NE+dqcJ7DnDZHkuJ7VSKqNDHzgANYOe0W1V1kpKT2BazEQ08Xns4ojlEVt kEOEGIOnVCZmDhWhpGoAV/bx7WZAb42y+N67z4F0CXAbkeQ1lTY92otNL1eg9ptZcAic I3EkMUdexo3Qqx1gA3QqGBP46UH/rTUqyqUkTfs4L08YzGXJ/2Qw1aGU7oQOaD1f496m rgXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20220719 header.b="OxohLw1/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cx11-20020a05640222ab00b0046cd5d896c3si20977233edb.165.2023.01.13.14.11.47; Fri, 13 Jan 2023 14:12:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@kemnade.info header.s=20220719 header.b="OxohLw1/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229834AbjAMWLQ (ORCPT <rfc822;andrewvogler123@gmail.com> + 99 others); Fri, 13 Jan 2023 17:11:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230397AbjAMWLM (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 13 Jan 2023 17:11:12 -0500 Received: from mail.andi.de1.cc (mail.andi.de1.cc [IPv6:2a01:238:4321:8900:456f:ecd6:43e:202c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D16426B598; Fri, 13 Jan 2023 14:11:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20220719; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Y/z2c+U+yZ8a6/4g+++TbaCiP4JUH3QavrzL1WFbDPM=; b=OxohLw1/XhLpArkAWBTSE68XvB h+yR5nTUA3+bPyupKM96EEM6Fb2Od6Al+oPG3a6BUhKZE2OJ7Qar+kZIgY/fu+gz2EaDxTGpBiENd IGUWpBMemkbLTGjlJRb2PcB89TayqHh58a45IFyqAjNCGSzI8yzBVVpAJ8mEkEt8HIWcmSwYPrsZ+ VsY7kCAup3kngzMIX5tQjYE4tUzLmjc7Mo4TK9VJhM+enqrq2LQTEav2dp28u3IiNqO9kjMbitTOw iHIvkcDElFddCvmIR1tqUvxX9bU73kx9lfAU3snFGf2xmpJkvFNIBXqe3nrqZ3hg0sG6cyuXyDPwz w8juByMw==; Received: from p200300ccff089e001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:ff08:9e00:1a3d:a2ff:febf:d33a] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from <andreas@kemnade.info>) id 1pGSGM-0005ID-9Z; Fri, 13 Jan 2023 23:11:02 +0100 Received: from andi by aktux with local (Exim 4.94.2) (envelope-from <andreas@kemnade.info>) id 1pGSGL-009ssD-L9; Fri, 13 Jan 2023 23:11:01 +0100 From: Andreas Kemnade <andreas@kemnade.info> To: bcousson@baylibre.com, tony@atomide.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andreas Kemnade <andreas@kemnade.info> Subject: [PATCH] ARM: dts: omap: gta04: add BNO055 IMU chip Date: Fri, 13 Jan 2023 23:10:58 +0100 Message-Id: <20230113221058.2355840-1-andreas@kemnade.info> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.0 (-) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754947053444722177?= X-GMAIL-MSGID: =?utf-8?q?1754947053444722177?= |
Series |
ARM: dts: omap: gta04: add BNO055 IMU chip
|
|
Commit Message
Andreas Kemnade
Jan. 13, 2023, 10:10 p.m. UTC
There is finally a driver upstreamed, so add the
device.
Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
---
arch/arm/boot/dts/omap3-gta04a5.dts | 14 ++++++++++++++
1 file changed, 14 insertions(+)
Comments
On 13/01/2023 23:10, Andreas Kemnade wrote: > There is finally a driver upstreamed, so add the > device. > > Signed-off-by: Andreas Kemnade <andreas@kemnade.info> > --- > arch/arm/boot/dts/omap3-gta04a5.dts | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > > diff --git a/arch/arm/boot/dts/omap3-gta04a5.dts b/arch/arm/boot/dts/omap3-gta04a5.dts > index 0b5bd7388877..4f56f7fc0d1b 100644 > --- a/arch/arm/boot/dts/omap3-gta04a5.dts > +++ b/arch/arm/boot/dts/omap3-gta04a5.dts > @@ -75,6 +75,11 @@ OMAP3_CORE1_IOPAD(0x2138, PIN_INPUT | MUX_MODE4) /* gpin114 */ > >; > }; > > + bno050_pins: pinmux-bno050-pins { > + pinctrl-single,pins = < > + OMAP3_CORE1_IOPAD(0x2136, PIN_INPUT | MUX_MODE4) /* gpin113 */ > + >; > + }; > }; > > /* > @@ -136,4 +141,13 @@ bme280@76 { > vdda-supply = <&vio>; > vddd-supply = <&vio>; > }; > + > + bno055@29 { Node names should be generic. https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation > + compatible = "bosch,bno055"; > + reg = <0x29>; Best regards, Krzysztof
On Sun, 15 Jan 2023 15:58:05 +0100 Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> wrote: > On 13/01/2023 23:10, Andreas Kemnade wrote: > > There is finally a driver upstreamed, so add the > > device. > > > > Signed-off-by: Andreas Kemnade <andreas@kemnade.info> > > --- > > arch/arm/boot/dts/omap3-gta04a5.dts | 14 ++++++++++++++ > > 1 file changed, 14 insertions(+) > > > > diff --git a/arch/arm/boot/dts/omap3-gta04a5.dts b/arch/arm/boot/dts/omap3-gta04a5.dts > > index 0b5bd7388877..4f56f7fc0d1b 100644 > > --- a/arch/arm/boot/dts/omap3-gta04a5.dts > > +++ b/arch/arm/boot/dts/omap3-gta04a5.dts > > @@ -75,6 +75,11 @@ OMAP3_CORE1_IOPAD(0x2138, PIN_INPUT | MUX_MODE4) /* gpin114 */ > > >; > > }; > > > > + bno050_pins: pinmux-bno050-pins { > > + pinctrl-single,pins = < > > + OMAP3_CORE1_IOPAD(0x2136, PIN_INPUT | MUX_MODE4) /* gpin113 */ > > + >; > > + }; > > }; > > > > /* > > @@ -136,4 +141,13 @@ bme280@76 { > > vdda-supply = <&vio>; > > vddd-supply = <&vio>; > > }; > > + > > + bno055@29 { > > Node names should be generic. > https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation > the usual pitfall, just looking at the style around... Especially if it an old patch, not needing too much attention, just removing some now undefined properties. The file deserves some cleanup, since generic node names were not invented there yet. Regards, Andreas
diff --git a/arch/arm/boot/dts/omap3-gta04a5.dts b/arch/arm/boot/dts/omap3-gta04a5.dts index 0b5bd7388877..4f56f7fc0d1b 100644 --- a/arch/arm/boot/dts/omap3-gta04a5.dts +++ b/arch/arm/boot/dts/omap3-gta04a5.dts @@ -75,6 +75,11 @@ OMAP3_CORE1_IOPAD(0x2138, PIN_INPUT | MUX_MODE4) /* gpin114 */ >; }; + bno050_pins: pinmux-bno050-pins { + pinctrl-single,pins = < + OMAP3_CORE1_IOPAD(0x2136, PIN_INPUT | MUX_MODE4) /* gpin113 */ + >; + }; }; /* @@ -136,4 +141,13 @@ bme280@76 { vdda-supply = <&vio>; vddd-supply = <&vio>; }; + + bno055@29 { + compatible = "bosch,bno055"; + reg = <0x29>; + pinctrl-names = "default"; + pinctrl-0 = <&bno050_pins>; + /* interrupt at &gpio4 17 */ + }; + };