Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2139044rdh; Tue, 26 Sep 2023 13:50:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGuq0/vFtyUQ6ZjkZp01PxvPZYNEimZ2pE26gRLWLdFoYRzbIXXcgeg1LRGOY1OfrCu+ZTb X-Received: by 2002:a05:6a00:c91:b0:68a:53e6:1fed with SMTP id a17-20020a056a000c9100b0068a53e61fedmr155450pfv.23.1695761447149; Tue, 26 Sep 2023 13:50:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695761447; cv=none; d=google.com; s=arc-20160816; b=Md37zSQYRFh0sqBy12d/NCsvZe4yBOur790tLY/jW5x+0DI86eT9SJzzcmHWbDraCV ai+LiIzghf6nPOtd+GQxGwkeon3xkUCTQMPFWH2QKJJLbpRVBh8m1TaoLlFfsa8NwHGx u4jq1SXRHWsj4tvcRH0VEnvQjh5nAlLAgxSV6xcQ2KU/5RN4+3api/8m5ZoONZKTF8wi 7BRfIYXlDt+6B24045z4rTKhw+rsojLseghnIIdh7gGBlw4ldF/QpAI8YOlqCphI8rDv pljXD0GJ0D/iWyaOeTCT5K4oKY/6+HkrWKhvLPBy5BO65XFgL5i0A3rF6DkBBKglnHmn uIvA== 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 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id cj18-20020a056a00299200b0068fe12b361dsi13527021pfb.249.2023.09.26.13.50.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 13:50:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 B5C1C802C7DD; Tue, 26 Sep 2023 13:38:17 -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 S235891AbjIZUiN (ORCPT + 99 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 Content-Transfer-Encoding: 8bit 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:17 -0700 (PDT) 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) -- 2.39.2