Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3585589rwb; Sun, 20 Nov 2022 17:35:30 -0800 (PST) X-Google-Smtp-Source: AA0mqf5b3nNG/97rZ9WV4EhNsN9kYBdzPXbhHE7MIAJfOhEy/0fz0CjUjlqwKfwW1+Mw/R1+vpU6 X-Received: by 2002:a05:6402:1f03:b0:468:7be6:55e7 with SMTP id b3-20020a0564021f0300b004687be655e7mr14261211edb.345.1668994529940; Sun, 20 Nov 2022 17:35:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668994529; cv=none; d=google.com; s=arc-20160816; b=qfh6vB1baI463j3t46mBW76Fo+spZS9bAosIKb3RXZzX0GtKCwxkY6LRLurVy13eQ0 CVQO1X/wmIAOK9bkzMXeXuKVle/KStbtiVPMo4n+CV7cN9pUeeEwqjr3Jh4tTNiNbKy3 VnN+wIjGbpX9xDOgWoVsi3O7R2u4sh65x5RkfdkXRK3h/2xpWWkXEkWBgb24wkgjasFi Yk0knR+3iw4KxzVQtyIM3ZbzzWkSJXn03rXiXdp1NaRwiY1wCYInhyUXJpoAEqEumhCQ PtrBQJlI9Ai94h7ZETyxU65PrsaMTdkdTrJeexP5v/MqBbLgsRKASIEsszwz3vdT88X0 aF+Q== 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 :feedback-id:references:in-reply-to:message-id:subject:cc:from:to :dkim-signature:date; bh=t2Bd0v8T+bxMK925HrPsTn0a2Qw4xXwWmY/aKNhN7uw=; b=W1Dex34HmTj0f8A5WC+TWOIAbIAgySY7Ckx0kUxkhxJroO6LoWEThCOCPj/6Na5iFU xI26I1Hs3lWezmiHKiZp+6hdogU/8TUryu76diiwpa03jNEsdmccXd4avhhvWuXwgKa8 f/MrHKnJZ6jGwdE51/cBqznAdxHST4Y/8Zs+thbWT5n2jawflraTZs474alHwvGYZxrs Drrjr3JqvsmxPXNcuacDSLT8pGdYe0XrHMbn0TsLb6yZ3Fn1y+Mp3IsMnhdGilajGI5k BLUKt2vrgEATDK9SKl8pYO5iER5QLSEt4aCoVzx6Jwh/fbo9h0NqLsuscexPD8fgEdxM 6aXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=V9krzvvg; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id by12-20020a0564021b0c00b00462273b6b75si7535773edb.361.2022.11.20.17.35.06; Sun, 20 Nov 2022 17:35:29 -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=pass header.i=@protonmail.com header.s=protonmail3 header.b=V9krzvvg; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229719AbiKUArd (ORCPT + 90 others); Sun, 20 Nov 2022 19:47:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229890AbiKUArX (ORCPT ); Sun, 20 Nov 2022 19:47:23 -0500 Received: from mail-4324.protonmail.ch (mail-4324.protonmail.ch [185.70.43.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB1CE193D0; Sun, 20 Nov 2022 16:47:22 -0800 (PST) Date: Mon, 21 Nov 2022 00:47:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1668991641; x=1669250841; bh=t2Bd0v8T+bxMK925HrPsTn0a2Qw4xXwWmY/aKNhN7uw=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=V9krzvvgzSkK0+xWKFLPGammHdHKA5U+TLY50V4kqMl1Yn2ERranTYow46bTsV+a2 aqsEWr2f7wC5S7gomVjwR94W7b7lqpBVALfhA6U0D55BcsQ3mYv/N8QO34pAMn8Z3s MWNArBM8Y2W/a/DDucP7kMmM9aB1GE+rtbErKLKXO7XLxTfK+XhCvb6nOiJvuW/8LZ l8zLXZUYz8XhhMyAfNas64siKL+O3kIhEmoxgJCg2avmqibjIJPLFouGk9s9jaX1sq 1A41ejWH/+yOmKli2W7t2AGff8DlOEeB0PYjXQHM0ylkz1gmecvs3Cmyxe4DQfFvs0 NPynRqDa83wqw== To: linux-kernel@vger.kernel.org From: "Lin, Meng-Bo" Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Stephan Gerhold , Nikita Travkin , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht Subject: [PATCH v3 3/3] arm64: dts: qcom: msm8916-acer-a1-724: Add accelerometer/magnetometer Message-ID: <20221121004559.3778-1-linmengbo0689@protonmail.com> In-Reply-To: <20221121004116.3458-1-linmengbo0689@protonmail.com> References: <20221121004116.3458-1-linmengbo0689@protonmail.com> Feedback-ID: 40467236:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 Iconia Talk S uses a Bosch BMC150 accelerometer/magnetometer combo. The chip provides two separate I2C devices for the accelerometer and magnetometer that are already supported by the bmc150-accel and bmc150-magn driver. Signed-off-by: Lin, Meng-Bo --- .../boot/dts/qcom/msm8916-acer-a1-724.dts | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916-acer-a1-724.dts b/arch/arm64/= boot/dts/qcom/msm8916-acer-a1-724.dts index 67187673364c..a87de8af9f15 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-acer-a1-724.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-acer-a1-724.dts @@ -6,6 +6,7 @@ =20 #include #include +#include =20 /* * NOTE: The original firmware from Acer can only boot 32-bit kernels. @@ -51,6 +52,35 @@ usb_id: usb-id { =09}; }; =20 +&blsp_i2c2 { +=09status =3D "okay"; + +=09accelerometer@10 { +=09=09compatible =3D "bosch,bmc150_accel"; +=09=09reg =3D <0x10>; +=09=09interrupt-parent =3D <&msmgpio>; +=09=09interrupts =3D <115 IRQ_TYPE_EDGE_RISING>; + +=09=09vdd-supply =3D <&pm8916_l17>; +=09=09vddio-supply =3D <&pm8916_l6>; + +=09=09pinctrl-names =3D "default"; +=09=09pinctrl-0 =3D <&accel_int_default>; + +=09=09mount-matrix =3D "0", "-1", "0", +=09=09=09 "-1", "0", "0", +=09=09=09 "0", "0", "1"; +=09}; + +=09magnetometer@12 { +=09=09compatible =3D "bosch,bmc150_magn"; +=09=09reg =3D <0x12>; + +=09=09vdd-supply =3D <&pm8916_l17>; +=09=09vddio-supply =3D <&pm8916_l6>; +=09}; +}; + &blsp1_uart2 { =09status =3D "okay"; }; @@ -199,6 +229,14 @@ l18 { }; =20 &msmgpio { +=09accel_int_default: accel-int-default-state { +=09=09pins =3D "gpio115"; +=09=09function =3D "gpio"; + +=09=09drive-strength =3D <2>; +=09=09bias-disable; +=09}; + =09gpio_keys_default: gpio-keys-default-state { =09=09pins =3D "gpio107"; =09=09function =3D "gpio"; --=20 2.30.2