Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4327600rwb; Mon, 21 Nov 2022 06:27:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf6QDxNfxtgR5u9O78ehxX8zN+OmawdtJXuBRr3uWv6UXzSp8Vop80iM02OtvNphmhqDVEIk X-Received: by 2002:a05:6402:50a:b0:469:4cda:5466 with SMTP id m10-20020a056402050a00b004694cda5466mr8429619edv.301.1669040830042; Mon, 21 Nov 2022 06:27:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669040830; cv=none; d=google.com; s=arc-20160816; b=lLTaBYRE6g/5h6XXVAmAqqhvJ6t0zrptuv9qdVbqVVKZ5Sxm/eq/agJ9rB2gWpRdUh 1Jf8UQeU7z3CY9gm0RKNt+AEXiedpfl94uPiS5P1uVvxOm6pG6i7z8WBG6ZUDvRBYWO6 iEg4gNzs0RgZ6PCTxY9gdvhzc96Rkb9ve6YshnwX54rD2A2ora4RYm5DChF7RnxuQd2K W+MSlX9iLXkLdqxYk911Fk6m9UnWfOqt3fMbTA4jZfvlXKQ/O6j1MptXeJr2jUggDTeT 7OZ5Y6q4Gqgd5gMhjqIkOEj2YHnSlegCz47TQrdUT0EUhMBDzqiNt3xcBa6sM3heXC5I gmcA== 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=AhqCCaLvPKm6+EzCNox2qptaiFM8dp9eaZqm0qf77Bk=; b=UyEkFzbuBMO33XPeAP+lh3cn81xm90UEUBvqdPB9ED1hGs/fxnR9Mfk8Ve1hV0nLzw MUTlsKA4EexhZGbegigBlKa/r+MjKSX6qTob8FzZCLvGYmkfx3itWOKc9B2892knfWoC 7k7u5VLFzSejfZM26hNm112m7q66tCPEmUy60ng0A+6HamCfsnHlfARpr7CfeggZ5AF7 Y4L5zLgUQ9ufDyEQ87YpGJgaFvfB6CqV9x4BgKauchxv7k0xv/aHZdClpxho8OVUPLI3 IYvEkoKyscMVgSIQUbdL5oRb2Gm2iynmQkGkHzA+e4LMqLU26+SH30grrMC184bVr3qR 1aWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=gxiyJOuZ; 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 mp9-20020a1709071b0900b0078ed891fef3si9952170ejc.440.2022.11.21.06.26.47; Mon, 21 Nov 2022 06:27:10 -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=gxiyJOuZ; 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 S231374AbiKUNlC (ORCPT + 91 others); Mon, 21 Nov 2022 08:41:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231386AbiKUNkj (ORCPT ); Mon, 21 Nov 2022 08:40:39 -0500 Received: from mail-40141.protonmail.ch (mail-40141.protonmail.ch [185.70.40.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C52BD256 for ; Mon, 21 Nov 2022 05:40:38 -0800 (PST) Date: Mon, 21 Nov 2022 13:40:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1669038037; x=1669297237; bh=AhqCCaLvPKm6+EzCNox2qptaiFM8dp9eaZqm0qf77Bk=; 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=gxiyJOuZfm/DwaSnC5aZFzEao2aHeb2XubnxJxy2gKnyTjlsg4PKPge+9wHrdwQqg 11d5/jiT4A7VCv35rjk/29cTfx0HP3mIrUIrx5rXkPq+0wfmHsXLFYv8oCd6McAZaN To4TaDTQFqBUHldRXYNi1liN227W+wUPNaeTCBn1H/4bVagnMhgAAqdKJtHKci0VzP f11ve1w3eFT98r9bOOVYZSLw864iOQ9b3JzgXyv8yeQWJOsW/bRRkDt0ST0swsG3lc HAq6+OlQYsYJMdmLuLBTONQaVKkpN/q+M3vdGpyFj3qvTdEnLA4J2lnXzT2v7rf4y4 DzXWgqU1EaVUg== 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 v4 3/3] arm64: dts: qcom: msm8916-acer-a1-724: Add accelerometer/magnetometer Message-ID: <20221121133945.208263-1-linmengbo0689@protonmail.com> In-Reply-To: <20221121133732.207820-1-linmengbo0689@protonmail.com> References: <20221121133732.207820-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=unavailable 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 Reviewed-by: Konrad Dybcio --- .../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 593051ea92b6..bea0d022dd9a 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