Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2277018rwb; Sat, 19 Nov 2022 12:29:40 -0800 (PST) X-Google-Smtp-Source: AA0mqf4Nb2Fc2nH8X4qrnBCqjJWiaaySlSQWtfeF3JIKkAz3EPc6Nc2LYfHcJ4c7VyfwTBJR3z2h X-Received: by 2002:a17:906:99d3:b0:78d:c7fd:f755 with SMTP id s19-20020a17090699d300b0078dc7fdf755mr10720933ejn.702.1668889780282; Sat, 19 Nov 2022 12:29:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668889780; cv=none; d=google.com; s=arc-20160816; b=eUJIkJ5EByUkc0DY+rtcV/BRIQCRH0GEqgUCRAf0roChVaFJ6xO7s/3uuRyGdAidGG vmtlnPy3zFa+j4J7+8aE/bI92OoMN7vubSGAHtvcfF0hKTrNqYP2RgZmc+WuD9fVwz9h wgGTA15O23scVx2SOt/EHCApk5zqO6REY7xfI9jvHrzRkBWd1z1R2OLzdCKeATealXN0 uSWoH10332Ub6HJQsmjF2wt+QsroNykb3y4jmBbOIWI/ey9Di66tmvj1SM6FLFof6Wti lu1LwOUWfMNM/xBo6OaiCphs117YNuXsnrpKzoAsG3zH3qLZFXE7ELjRmUQATcRxXXKX ZmdA== 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=RZgjb9/5OQctpPzuTFDZDZE4FEfMwb4kqi0lsraby84=; b=g5n4R6N5WHQA8nwt8Um/fJ9qfxJidFag8C9qs6o4+uYUwLjbMHvSc/t9cUufLzSeLQ GiOp5RLqAEhwsIbx2MotmQBC+HqkFmkEnrLQQUMjRnZJ7ixjjv4ZeIhAz1p1njdYZVXs 2t0H3BFYr+p4DREIKvRaImm/zszcvIP9JCg3+nzRIk29kqYMvn8x/3HxaWJLGRyHGLkt z3VotGiW5AILPE9QALvg2Xqg9so0ZrhCtPzwfKcJdifQdAhJ5Xwr25qYQsImd7ZP6eS0 m0fgrO1v8wlTJ7ra2TsOzK8/kJOJ7q9gc6U7sb8i9BhbqfGnyxRKMmn3A/UBb4iB1152 y++g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=bmjXCh6r; 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 cw7-20020a170906478700b007ae8b1704b9si6707743ejc.406.2022.11.19.12.29.17; Sat, 19 Nov 2022 12:29:40 -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=bmjXCh6r; 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 S234551AbiKSTsQ (ORCPT + 90 others); Sat, 19 Nov 2022 14:48:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234219AbiKSTsK (ORCPT ); Sat, 19 Nov 2022 14:48:10 -0500 Received: from mail-4027.protonmail.ch (mail-4027.protonmail.ch [185.70.40.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4CFC140A2 for ; Sat, 19 Nov 2022 11:48:09 -0800 (PST) Date: Sat, 19 Nov 2022 19:48:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1668887287; x=1669146487; bh=RZgjb9/5OQctpPzuTFDZDZE4FEfMwb4kqi0lsraby84=; 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=bmjXCh6r4dYxxZyWdbMlYrDOJ9FCxeTzDr8SoarfS1ALYHHP1BCEYF7NbMOrz5ipM 6G4n6+d52N/gRuz7aLalCrtIwHOaEsa+20EPdZosQGYsZq7478ekYKWTu/FrxWux4k vQR+HU5zwtuZl+JAavxXffNsGbtEWVH7/zrGMr43FFah2Prh/29ot2JfIniOuiN98V ip+HPV7DvrB1/FcEXk43pW3FY2r1M47o/bXNPXM2T7s9gLfjxaXr7Ip796/U1pNMWy R6SVPXWiGqbMdbNMmaotlkYqznbdaasbGlAGxwrKW5Gnwk9u9odeoq9Pafz13aKrwr Y9rDY9XvvaASw== 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 3/3] arm64: dts: qcom: msm8916-acer-a1-724: Add accelerometer/magnetometer Message-ID: <20221119194727.92107-1-linmengbo0689@protonmail.com> In-Reply-To: <20221119194340.91789-1-linmengbo0689@protonmail.com> References: <20221119194340.91789-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 --- .../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 acd909551a75..3461a39ee866 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