Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2758050rdh; Wed, 27 Sep 2023 11:44:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHMJpq1fCYV1t0EPSODpnsp+HU6n1Sz7XBYzrmUKJJJpbkbsnh3ZSDLDfhbOFSmutDVJyCv X-Received: by 2002:a25:2302:0:b0:d85:b0a0:4853 with SMTP id j2-20020a252302000000b00d85b0a04853mr3336611ybj.58.1695840271382; Wed, 27 Sep 2023 11:44:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695840271; cv=none; d=google.com; s=arc-20160816; b=fskkOklvfYm3FGqjuqOx4gATj/flNvlLBK0+GccHsiq+hP/Yz1FIdw+sRUYBuD2KHv 6eFuMMfBjGFT7fX4rwrA7WfhpPkU8cpj3Tyz8SqRFneHfsvAd5AHEF7lWGJgW55pKogS 0SZGU20xFJzQXnrYS7gJNr3ylosqnOQ1CJ6CqKDRaMW6Vn8DnkkrYsI5QE/1qeiUeA10 U/IHFXL0J+qku1pZOmnn+U4F1MmGs2/O1Ik/qLzJv4fyF0AzBJfTL9oiZivyQc0O8f6+ aFo169AEH8jUjAsaDub+CN+IEKiO5aW0yZGlACMFFr13xvugeMwNfy1bN4DCt1B3azG5 w2Ew== 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=DZtiuiAu2NHAU0Fk/ZmZ4wEe9j+erBR99fvh+tyApQI=; fh=uVMhKb/P8+EizzubcPWcViM8LxVsgVlwKzTll1iXK0Y=; b=Ct8tIkgURQyMIfGmrsZ7qBWu6WtrAH9v28us07JLzs81iB1bkRbbRrI8unfMHgof0q QxfJyJFPlpnlSfiN/64OTNFAant8NFUbFC+dxlxY5cPt6Ko7IW7NB8ZUL7uF3Xz4PFYi 6W1vZpm97UOHvLuYEVl4txRaqOaO7uE6VKWRqXf5kVDmY+yrzegzCHcuFvDjeSLT2+Z/ uE7jKr+36CALfvlr9BSKq/Hsrsh6rnqcEG3bWvZuJUUyc4xeO2tzJujruTK3LdDMXMBZ r1mgFT2qvfA5nnFfedletwi2MxuZ9DYD1Z3aM1fkxzHVuttTuqcbI5Z9s/v6AWU+pSvF 5fzg== 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 k64-20020a638443000000b00573fc1f288csi16115583pgd.569.2023.09.27.11.44.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 11:44:31 -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 9E5338217064; Wed, 27 Sep 2023 10:33:19 -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 S229616AbjI0RdI (ORCPT + 99 others); Wed, 27 Sep 2023 13:33:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbjI0RdD (ORCPT ); Wed, 27 Sep 2023 13:33:03 -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 76A79E5; Wed, 27 Sep 2023 10:32:59 -0700 (PDT) Received: from p200300ccff4287001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:ff42:8700: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 1qlYP2-004Ey1-FE; Wed, 27 Sep 2023 19:32:48 +0200 Received: from andi by aktux with local (Exim 4.96) (envelope-from ) id 1qlYP1-0091bQ-2R; Wed, 27 Sep 2023 19:32:47 +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, andreas@kemnade.info, chenhuiz@axis.com, jean-baptiste.maneyrol@tdk.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 v3 3/3] ARM: dts: omap: omap4-embt2ws: Add IMU at control unit Date: Wed, 27 Sep 2023 19:32:45 +0200 Message-Id: <20230927173245.2151083-4-andreas@kemnade.info> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230927173245.2151083-1-andreas@kemnade.info> References: <20230927173245.2151083-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]); Wed, 27 Sep 2023 10:33:19 -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..284a438fc5dcf 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