Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp857267rdh; Sun, 24 Sep 2023 15:26:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHRk+gQM6sV6vbzNaD2+EWGNZjHREmS8Jn1y+S/CduxD5MZ24GDJbhN7ozm373/KxF88yXn X-Received: by 2002:a05:6a00:2283:b0:68f:d6db:5d66 with SMTP id f3-20020a056a00228300b0068fd6db5d66mr4532110pfe.16.1695594407324; Sun, 24 Sep 2023 15:26:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695594407; cv=none; d=google.com; s=arc-20160816; b=ImhRqogHrReKeNKmUJldvUrCbcTJsM2WPoh3llb6tlTOtLE5pdwtsIszuo45DDyRUd rUp1+gc0s6kSMvUU9uaB4rO9DxQHHcz4z83pOh0/ssaMvHZw80AX0+cpD+xEYDV6elCl ySY8dP6K6okBxraBmv+ImURxzQMCQMdjrWI3A7XQYJEFMzB7J/4RCMRno9Zpkpx3Gc3x PdGUoauE7pz5ZodowNkbVyZyK98be0m9f6B4P/vG3Kux16xOO0xLZqlnZPYJbbHTA7xz dQagqc5EtKaDanMh6QJEbpNQHcJ1C7YShpz+VSGdZWT15QwGdTCC1OdovaAapE8U+qq6 tCtQ== 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=qyB8RS0PunL4k5gN32e6TBvaR8s5oblzIpWZ5sEb3J0=; fh=+Os7fJLYj/39z3ta/T2h7/7B0lHU/gUNeWnGcWhqI1Q=; b=x6gbo9WzEd4B6gHfKOGk2Mzbw9BTEVtIJ8xm5jZaWEjYRUNrwhj5LElQQNcpO9pB// 3ZI2WGLrxti63qX1MLGOaDKCmQBZp+QOoAyRIXzI8Pcmf7ldZNMI8ii61reF+tVM2ULG pR7mnGVoV+mMPi7gg2LRzpe/o5ajskPaAlWQWgG2nvAyX6JkK0YYUo7jJLUt1oByM+wQ uSRdVnbA+l90oCglq5enZMkXGAaJctrGJHSYVyrfO5ipePmGSJBdFOHS5FAfqekZStdZ C52vCylAvT+QRFJKu5M6ZFCxd99sbFvfNwDqWTGomwOaGDCOS21VIAuAsgZVzvdI0CLO DsVw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id v186-20020a6389c3000000b0054fdb18c877si8414557pgd.607.2023.09.24.15.26.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Sep 2023 15:26:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id 90683823FAEE; Sun, 24 Sep 2023 15:26:41 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230256AbjIXW0m (ORCPT + 99 others); Sun, 24 Sep 2023 18:26:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229489AbjIXW01 (ORCPT ); Sun, 24 Sep 2023 18:26:27 -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 D40AD83; Sun, 24 Sep 2023 15:26:19 -0700 (PDT) Received: from p200300ccff1ebc001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:ff1e:bc00: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 1qkXYB-00492H-83; Mon, 25 Sep 2023 00:26:02 +0200 Received: from andi by aktux with local (Exim 4.96) (envelope-from ) id 1qkXYA-008YN6-1b; Mon, 25 Sep 2023 00:26:02 +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, chenhuiz@axis.com, andreas@kemnade.info, 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 3/3] ARM: dts: omap: omap4-embt2ws: Add IMU at control unit Date: Mon, 25 Sep 2023 00:25:59 +0200 Message-Id: <20230924222559.2038721-4-andreas@kemnade.info> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230924222559.2038721-1-andreas@kemnade.info> References: <20230924222559.2038721-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 (howler.vger.email [0.0.0.0]); Sun, 24 Sep 2023 15:26:41 -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..0e6b050d588ac 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