From patchwork Tue Sep 26 20:37:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Kemnade X-Patchwork-Id: 145033 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp2184917vqu; Tue, 26 Sep 2023 13:50:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE+grOSAnLuXmSH74d9pTwYFbTPIwjhzRfQcXUwSqXGWddrVvOWI+GKq9l5M5ioumhYs83o X-Received: by 2002:a05:6358:e49a:b0:143:7fc3:324f with SMTP id by26-20020a056358e49a00b001437fc3324fmr277569rwb.5.1695761428154; Tue, 26 Sep 2023 13:50:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695761428; cv=none; d=google.com; s=arc-20160816; b=zQs2+lEvRH0M3uW0OB7eM3tM5DS45KNd0uFL5rPxsrGbjZjgx8L/zcrgF5bdjhY9Xc Xo0j8arr/AmO69YZxhGmdb7lRWal/hwFLTxtfDHs7sjCD7DYN+lAI999N5jpc183Mhx7 1bnGyeoN2HQSdlGo6KT+aaCKIo+yET5YHonXCwg2S9aOC7SqidwRoNlc09jqsFXP9xxf kKuX7ofG0joL9JYCRbbNv4KhcRdAKuKzt3TgDXjuVauUxim+KXsUzQP04ps6rcNhox7x NNhI+Jlp6gGVb5opNtwyRSPMCy8ToQo4v0kl0vKIthrbJa1J91ezVZeMV1jwHcqXnqSx 5pZQ== 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 :references:in-reply-to:message-id:date:subject:to:from; bh=wzoQEy6emx3FuwlNjvZMDTec0CXRe2D5Y5F5w6i6xDY=; fh=WAyu9NuhnG8NHsIS9bVNJ1j0r77W9n0xwF/YeArNuwY=; b=r77pDtIhBYEWX1P2MyhKceJZVzNVNBneqO2ahKkxtVd9Tn22Pwl+dzWzA8/ukfbCQ1 PrEzOcPA467u8GmLdO7HjvS3x75kX79FHdYZs0SHEJ8kcxL3xp6MJSxcpXd6PgtmhxJh jazAmCn/cr9SUQMUbPmPjueOWv5My9IkSSAWj7fR/38GanREtidFpWyTVaMOoUV+v3CB 5OexjuGsdSQRTO/wg79hAPLwZv9XhnjWxmAxtvBuNIzQDaivr2H1bz/6YNcTO/8SgATy zDyzXOTeEarzMRDcLONb8OXpD+SSi83qbplp8Ht/OwHOtBc41BBG/Qax8hS1BPFhp+Jx 0Lyg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id m1-20020a656a01000000b0055379a7131csi14763606pgu.721.2023.09.26.13.50.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 13:50:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 42ED08028D70; Tue, 26 Sep 2023 13:38:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235888AbjIZUiN (ORCPT + 28 others); Tue, 26 Sep 2023 16:38:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235870AbjIZUiK (ORCPT ); Tue, 26 Sep 2023 16:38:10 -0400 Received: from mail.andi.de1.cc (mail.andi.de1.cc [IPv6:2a02:c205:3004:2154::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B5E1126; Tue, 26 Sep 2023 13:38:04 -0700 (PDT) Received: from p200300ccff2a5b001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:ff2a:5b00:1a3d:a2ff:febf:d33a] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qlEoY-004D5A-SA; Tue, 26 Sep 2023 22:37:50 +0200 Received: from andi by aktux with local (Exim 4.96) (envelope-from ) id 1qlEoY-008tVV-0Z; Tue, 26 Sep 2023 22:37:50 +0200 From: Andreas Kemnade To: jic23@kernel.org, lars@metafoo.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, bcousson@baylibre.com, tony@atomide.com, jean-baptiste.maneyrol@tdk.com, andreas@kemnade.info, chenhuiz@axis.com, andy.shevchenko@gmail.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org Subject: [PATCH v2 3/3] ARM: dts: omap: omap4-embt2ws: Add IMU at control unit Date: Tue, 26 Sep 2023 22:37:39 +0200 Message-Id: <20230926203739.2119963-4-andreas@kemnade.info> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230926203739.2119963-1-andreas@kemnade.info> References: <20230926203739.2119963-1-andreas@kemnade.info> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,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: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 26 Sep 2023 13:38:21 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778134735549851310 X-GMAIL-MSGID: 1778134735549851310 Add also the level-shifter flag to avoid probe failure in magnetometer probe. Signed-off-by: Andreas Kemnade --- .../boot/dts/ti/omap/omap4-epson-embt2ws.dts | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts b/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts index cd4f858d846ab..0cc66e158a8d5 100644 --- a/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts +++ b/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts @@ -391,7 +391,16 @@ tlv320aic3x: codec@18 { reset-gpios = <&gpio2 23 GPIO_ACTIVE_LOW>; }; - /* TODO: mpu9150 at control unit, seems to require quirks */ + mpu9150: imu@68 { + compatible = "invensense,mpu9150"; + reg = <0x68>; + + pinctrl-names = "default"; + pinctrl-0 = <&mpu9150_pins>; + interrupt-parent = <&gpio2>; + interrupt = <7 IRQ_TYPE_LEVEL_HIGH>; + invensense,level-shifter; + }; }; &keypad { @@ -530,6 +539,12 @@ OMAP4_IOPAD(0x0fc, PIN_INPUT | MUX_MODE0) /* abe_mcbsp2_fsx */ >; }; + mpu9150_pins: pinmux_mpu9150-pins { + pinctrl-single,pins = < + OMAP4_IOPAD(0x5e, PIN_INPUT_PULLUP | MUX_MODE3) + >; + }; + mpu9150h_pins: pinmux-mpu9150h-pins { pinctrl-single,pins = < OMAP4_IOPAD(0x76, PIN_INPUT_PULLUP | MUX_MODE3)