Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp4020871rwp; Sat, 15 Jul 2023 14:45:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlEivkRlegzBbKK58DDxp2EfhQH7Zli+otQ2P79YeGUifGGPPr21TDRkSweRiA1vzwAbu3iI X-Received: by 2002:a05:6a20:5483:b0:133:862e:3ba0 with SMTP id i3-20020a056a20548300b00133862e3ba0mr4512368pzk.5.1689457503390; Sat, 15 Jul 2023 14:45:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689457503; cv=none; d=google.com; s=arc-20160816; b=052I0EzALDZotfH6OdYuSdKXveQ3OEx0Axwn4585pm2L55NxeaPdWcORAMuZIetxBU qnsisLdoXYtyfeiXLkvvbCSPiXrDjdOvh7V5L614pbtZBbI2DFCoQecOh+MYjD4LOc0h sdQjogyPTY9ZT8Hx18ACd5k9sijAfQJaDelEMgdAtytVTctROAEKeAYRTRwjprPQ3R37 mxkEuzzM6z5DN0POH34Ir1dE8IFhygtI4pL9HiYHSAeDCN4Aq8Ye2QqWzUJOz1lt0s1P YFIBLX3D2ZT/WYRdyUiU98rQhLPV2/I8EWy3uAuNgq0Nf9NfZRd3wJOoaZ2B1yzcmMRZ TtTg== 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=p4IaxbwpaHv+xOOMu8SedVmfPdSj/FMf57pnmMhXBrA=; fh=MvBPGIPHPulC8Q1odG8LiYECIuv2LKYjDUHt1nt1gLY=; b=LvC50KktZBB1iiK/vrI4UvcdViFiNxo8FAFPcBHAWj5wYSb9S5uyx6K2YYs8KSqyE7 3izkj+ddhCI/BWfAdpi6O9HoDs6V2el/17DvXyfq+rAdzjuh5N0QJF/pVm1Onlf63+3n RGTS2hX5w2X6SXhVhNgA76azuAFrxI3Yyf7p+ZLqRCEiD2f0gI7PmvHb+kgPNXnLfm2z IArbgEUi8rn6jmE1zSZgC7QNdJuMkqEnPiwZXaKbt7v9QEGJga+ClCtwAmp9tabpsP0T ImG1W1EBg+GopmTq24XyUUvzi2f4CiMNjGSRvHOF2AvHJROOcVpCO2iVIzSdnJOLgvcF zh0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=oZPOyal7; 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 r20-20020a6560d4000000b0055c95e91f69si4786122pgv.388.2023.07.15.14.44.51; Sat, 15 Jul 2023 14:45:03 -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=oZPOyal7; 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 S229812AbjGOVFm (ORCPT + 99 others); Sat, 15 Jul 2023 17:05:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229530AbjGOVFk (ORCPT ); Sat, 15 Jul 2023 17:05:40 -0400 Received: from mail-4318.protonmail.ch (mail-4318.protonmail.ch [185.70.43.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1A5A2738; Sat, 15 Jul 2023 14:05:39 -0700 (PDT) Date: Sat, 15 Jul 2023 21:05:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1689455137; x=1689714337; bh=p4IaxbwpaHv+xOOMu8SedVmfPdSj/FMf57pnmMhXBrA=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=oZPOyal7jiELXgpPFrXV4x0bXBjCM3MRG5a0sj+aF9n/iidZ+kzWf+KxNEdB97+eu cbE//hMFM96tzR2gii+/01V3p3ZKn5l61opRtARNe6unExvHnyh3d8xpFV95UNO1+J I/4CyiSSEw685i2AI6oVf3Y00yNFLQyKycFK65Iv4KjUgCr/bybpczD8ezQNQxkqYz BUvnEGRvH6csy4xhnawLQ61qhTPDTJCFMexnO66lR51xkiyLWhhwDwEXbo42lppHnd RAqTPXwcR4lOIXSKSpiPKl7ydEy4ynhNHKH6MDWGlrOoB5KNZTRMnclEqmOI2CLden S5kaPwopdJVLw== 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 v2] arm64: dts: qcom: msm8916-samsung-e2015: Add accelerometer (v2) Message-ID: <20230715210515.13783-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_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 v2: fix interrupt-parent =3D <&msmgpio>; E5, E7 and Grand Max have ST LIS2HH12 accelerometer. Add support for it. Signed-off-by: Stephan Gerhold Signed-off-by: Lin, Meng-Bo --- .../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