Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp3999011rwp; Sat, 15 Jul 2023 14:06:44 -0700 (PDT) X-Google-Smtp-Source: APBJJlFkSQX6QZBB2ioMQJ7Rg3OtF4KUrwlIE/s8+CdaJr8G+z2AcqmoCEfEd5ksmtaR+LVhbTiw X-Received: by 2002:a05:6402:27ce:b0:51e:5e44:6508 with SMTP id c14-20020a05640227ce00b0051e5e446508mr3806351ede.1.1689455204140; Sat, 15 Jul 2023 14:06:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689455204; cv=none; d=google.com; s=arc-20160816; b=GwfAPxIZ01Twfx5SzWuj7+ad2ChJ1vRbxyBTBNzTMIYUfX3bhYoyG6aDNOApjWpoT0 JyBPEeOXRwW5FlmeDv8XAjRYpJoIS6pyoCH115JJdXoprv0QpAEUxFJwo+RJogXUHOiQ 9VV0WAwLZlzgw4QiPTS5l2510HXo5VtZ8jjuZ/2Qld83+m6davd27zI/CmdLWnV72lsB MSl/oTqHAFI+jKqj+rHLqUGN85ZUH1U19riID/gI5eJkLBUo4R90jCmtndz8qjKd91ua RjUnw/gD1OInN3BjtkUc00qS6vP4cE7pqIO7Rug1/nmmmVwREe9SFWHF6zYOjH9AcOuS LPgQ== 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=nfq894edfLj7KJhL0ovu2fYW+vNvVLWaaCXHQzABep4=; fh=MvBPGIPHPulC8Q1odG8LiYECIuv2LKYjDUHt1nt1gLY=; b=AxoZM21MfK+7G5ueNK2uC18hZ0wniF50Xp7vTr6JF7qouYgbzkaHPyqjwrvAOlLFqw /yqgDexDThOOQtmgRjF9752L5ytcephqDIHcqdBFxHTkGlXT9zqcA9/RX3O99PezF6Ui Bby0yj6SKE9hlfh8gNh0ZL3Lnb2bW092qlfsHLYAHgUytpxgu4v5Fvs4zNyDb1Kw/8dH GfsGlBJIET4ParWGIAZa7b7ATwE0LzoiPoLmiVxxggwIaCf2V+EZqsuFxZa2kyeTghVe D7ZjXrHklkkvT73iZK7rPAmx59HatmsP3EHV4xp+eeVpkDodZWPzK6ZdGCRFVhBeV6rr Re3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=vM9WFj3p; 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 d12-20020aa7c1cc000000b0051e26731172si11302749edp.672.2023.07.15.14.06.08; Sat, 15 Jul 2023 14:06:44 -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=vM9WFj3p; 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 S229595AbjGOUmD (ORCPT + 99 others); Sat, 15 Jul 2023 16:42:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229543AbjGOUmB (ORCPT ); Sat, 15 Jul 2023 16:42:01 -0400 Received: from mail-4027.protonmail.ch (mail-4027.protonmail.ch [185.70.40.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7F6BB3; Sat, 15 Jul 2023 13:42:00 -0700 (PDT) Date: Sat, 15 Jul 2023 20:41:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1689453718; x=1689712918; bh=nfq894edfLj7KJhL0ovu2fYW+vNvVLWaaCXHQzABep4=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=vM9WFj3pCl919CeJU2Yds05u/oO4rBXT2D4TgG9upfKRf7EmrDYVfv6K8VeTo5nOX pQEkqNJd5UYhGOZd+2p/t8D5ifDa2g8aGfTBLlIzdgQauGCMucsiFf8EmId0E75v/a N38NjQzWTkEV04a0Wb/gbzpI1Q4dhilVqTH2yPW1m7bJ0t4GtqnK5t59mghaU8xJ5X QIxU/1W05c2SrDLKl/IGLOqFEs+90sRsSzbqkNHMYPfHWv4qTr9MZMzqoUxZjHdeFy K9PAVwRr0k3dZKXHr8feRXBuMxi60dv5mmGMM10LgtiN85Wbu+yB2I2wS7k4nTVv7y +SOcoIVo4ngug== 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] arm64: dts: qcom: msm8916-samsung-e2015: Add accelerometer Message-ID: <20230715204128.12612-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 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..ef7c7ac40e05 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 <&msmgpio>; +=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