Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp4856140rwp; Sun, 16 Jul 2023 12:30:43 -0700 (PDT) X-Google-Smtp-Source: APBJJlHoqJQFMMaEM/clKLFz/G0Ff8JYk/puufsaIxeL+syn3+JmfWz4oOrO76pZ6RnZTUxr6ZVw X-Received: by 2002:a05:6a20:3c86:b0:134:d4d3:f0a5 with SMTP id b6-20020a056a203c8600b00134d4d3f0a5mr1415026pzj.2.1689535843134; Sun, 16 Jul 2023 12:30:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689535843; cv=none; d=google.com; s=arc-20160816; b=EnewFmyPO2xQECs1iJLkoxE0VThwhMzUxObV1mfDOvjo24X1d2NUwfakN9U81S1Hzy EqgeeHeJICfzA/0qIYl0HFY21Ng9151g9oyXfnSa3wxKW9f9xMXRuoTnR0s8Vu3HOHws CP8oESlSMtqe1js0QnY3Wc9xPQ0nyyvcEjcmKKqcC820G+xvbgIsLcwid32KSGRfX51A XtmTk7hQ1TGAZcWCpLlU1zf7OEEd/bXZBRgCs3rRewWTh5q1EET1lK57m96sNkD/zkr9 MOfIYVq2BSsV4aSI19BZEzk79Pom0ptsBH2llg++5LZZ+e8xd9vQvFsXthVN+OKghs/h kDhA== 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:message-id:subject:cc:from:to:dkim-signature:date; bh=NHCzzPytfSVKjaTxkJEdeQTvd4IhORtsH1WAjlQdHQk=; fh=MvBPGIPHPulC8Q1odG8LiYECIuv2LKYjDUHt1nt1gLY=; b=wRtbKrBqnRjXedws8kFtjPUqES2uhLRV2xLz+2/OYTCN4lndt1pZcRueYBPUWz1znR CAwx5xM7N7SRnH05UBjwAgarfsoF4fz0I3VNxplEM+N9AZzto/ugcoN+CkePGytaW7A9 ciFbiqkygrH31GM/2HxKWUFJQm4hJ3NYk9qrQAn/IsicVYjJbpCO49MWw4SEGB3E0vK3 ImPiBoMU59hkkPzo9+XXK9EtXN+COs0Z+edszKFsIH0U4dTQWWoZxGporLGlfCjXLLMI 0FhHFsS7crZtpBcO0TVDpYw0FHoJmIZoY3LntQRSm+j/n9h6OSUpDXInHhEGae7RC+OC avXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=sikBKvFv; 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 j11-20020a65428b000000b0055baed7e7efsi10168747pgp.671.2023.07.16.12.30.30; Sun, 16 Jul 2023 12:30:43 -0700 (PDT) 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=sikBKvFv; 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 S230160AbjGPTIl (ORCPT + 99 others); Sun, 16 Jul 2023 15:08:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbjGPTIk (ORCPT ); Sun, 16 Jul 2023 15:08:40 -0400 Received: from mail-40132.protonmail.ch (mail-40132.protonmail.ch [185.70.40.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38F689F; Sun, 16 Jul 2023 12:08:39 -0700 (PDT) Date: Sun, 16 Jul 2023 19:08:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1689534516; x=1689793716; bh=NHCzzPytfSVKjaTxkJEdeQTvd4IhORtsH1WAjlQdHQk=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=sikBKvFvTk0awAJkzIkjJjP71sfIcYpmEMkVNUu7dIe9q+5G2oObEEnpt60Ul49WS SiFrLfCn0CqBoT0N4UacouocDUVjxH50uAUvHZZn9rj2+0qQMDXqdRyGRdez1In80w kVmfVkwtMcFAtHs8Qd+XYDRnKa7vI1VTSqFDEQX4CwqlVcW6jIZ8k1EVrfEEm5OkfU UT5eboQjPwhbb5IknvNiGzIPWvAwrCsAEIY17D1E5ljsD4fxm5uI1VgLNFZ9dcl2I3 lSk7eo5ysG5JIyiCz6Ud30qDLFNCAfOY+SXtZPdc6nvy4JdIGmv1ogXaTBtlN9j7nj 8tdPjwZ+zHV4Q== To: linux-kernel@vger.kernel.org From: "Lin, Meng-Bo" Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Stephan Gerhold , Nikita Travkin , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht Subject: [PATCH v3] arm64: dts: qcom: msm8916-samsung-e2015: Add accelerometer Message-ID: <20230716190807.7056-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=-2.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_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 E5, E7 and Grand Max have ST LIS2HH12 accelerometer. Add support for it. Signed-off-by: Stephan Gerhold Signed-off-by: Lin, Meng-Bo --- v3: fix subject and changelog v2: fix interrupt-parent =3D <&msmgpio>; .../qcom/msm8916-samsung-e2015-common.dtsi | 21 +++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-e2015-common.dtsi b/a= rch/arm64/boot/dts/qcom/msm8916-samsung-e2015-common.dtsi index 0cdd6af7817f..6f65fd4b3ed3 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-e2015-common.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-e2015-common.dtsi @@ -42,10 +42,27 @@ reg_touch_key: regulator-touch-key { =20 &blsp_i2c2 { =09/* lis2hh12 accelerometer instead of BMC150 */ -=09status =3D "disabled"; - =09/delete-node/ accelerometer@10; =09/delete-node/ magnetometer@12; + +=09accelerometer@1d { +=09=09compatible =3D "st,lis2hh12"; +=09=09reg =3D <0x1d>; + +=09=09interrupt-parent =3D <&tlmm>; +=09=09interrupts =3D <115 IRQ_TYPE_LEVEL_HIGH>; + +=09=09vdd-supply =3D <&pm8916_l5>; +=09=09vddio-supply =3D <&pm8916_l5>; + +=09=09st,drdy-int-pin =3D <1>; +=09=09mount-matrix =3D "1", "0", "0", +=09=09=09 "0", "-1", "0", +=09=09=09 "0", "0", "1"; + +=09=09pinctrl-0 =3D <&accel_int_default>; +=09=09pinctrl-names =3D "default"; +=09}; }; =20 ®_motor_vdd { --=20 2.39.2