Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5515489rwp; Mon, 17 Jul 2023 05:35:29 -0700 (PDT) X-Google-Smtp-Source: APBJJlHhf0lQnTFmHPDRI4zUpHBjPq1sQqphrauQH17WNu3QA5eQM5PWdTTJ8WqqoRfxl3Hh1Yyb X-Received: by 2002:aa7:c709:0:b0:51a:7bcd:a82d with SMTP id i9-20020aa7c709000000b0051a7bcda82dmr10974199edq.23.1689597328775; Mon, 17 Jul 2023 05:35:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689597328; cv=none; d=google.com; s=arc-20160816; b=RMsEptRNGHdPBIveOZE7DjTmtx1iJr4hKKyxR9cwvt+9eLEBJvfR09hu0x7/Oq1NL1 UpdtMf3SIC5WKCuiXQckuUKk3xZP7m27aDJysoPKYKOsF1gNxCRR0H3arNoIEWl2yyck 1dvU4ClQAxlznkXKs3sF7ZgeMgd1sLoazLzjiekA0hPUPSujo0nlEZ7xBezDvhbUKSxe dPRWtpELwEkZvQgE22SWry2r3Ws4aeMALqtsABqGOcGJRDp9Ny6xh0VVM7H1FrJ5tD2R XrNpALww8/4LPgOqzxmKw7/jQiY/nl6xjUhU/DWEPohLsL3gA41GA12S+AgAA2eWjhXt UhLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=gqQWmYE6mikijhb+URcDev0GUwlO46fou+/8hKL8alM=; fh=eXJQe+rLuyls5oRJWmXgHxgwUPqvx2WBQ1+Wq8G39HU=; b=B8ZORbG9gQM89hDcKHNbod7L3Y8WxhOfFohaDvMgTWp6X9iFo6/zWtfHuu+TwemCXA sphz6qB9pD8GoSCE6q0VzlZpz3/IVpasZgd0D7+lodPzgBXkfF5yWsdN4JL4+uBhl4wZ FHdL5G6WU/3sYXgxBogn/wFXDEOyg3g3LtB3JWH821uibXuogC37VHTDTb/7YJhrYAQ1 sEGotE7jwClqQAKgNOaRNdSgwOKYiAYhXD0GtJI+cvv65h/iXQs4GNsgqiHBQhQPEtTY VoCA2PTwkI2nNwsweNxlBQz501yNKa4BQj3J3jp9Ayvqb7x8tAszQMEQadYk3Wmo99ub OY6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mWgM8gyI; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k4-20020a056402048400b0051da8586908si13801873edv.405.2023.07.17.05.35.04; Mon, 17 Jul 2023 05:35:28 -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=@linaro.org header.s=google header.b=mWgM8gyI; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229664AbjGQMan (ORCPT + 99 others); Mon, 17 Jul 2023 08:30:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229796AbjGQMam (ORCPT ); Mon, 17 Jul 2023 08:30:42 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5355126 for ; Mon, 17 Jul 2023 05:30:39 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2b743161832so65563361fa.1 for ; Mon, 17 Jul 2023 05:30:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689597038; x=1692189038; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=gqQWmYE6mikijhb+URcDev0GUwlO46fou+/8hKL8alM=; b=mWgM8gyI1LxJ1jt6p/Q+x1NKUulK53177cNhF7OyRsJsz7I93+gwnms4okO/iXydlR rTvVNgxyxjBasNNzXg9KcSj21F5063ezsBs5U0OS8gU+stxomq2U81zCOUiSjPGBOPEo ZrLAiSfXQlJEuVxwIC4ByBiE0pEabcdybjTcl9ITBpHF6NR02eFUUhhS6q3fcDBP5nEc x2ocG2P47WWDNEHD5I9l7JxKMx1zKTzhtLv1gD8Hi/5HBTl/aNL3eDr14Dc1PnvSlvwT vvmRM0aLSM2bQsqbMw3m0if2rsV/vJAGYKrPPjpj57qToM/gvKyKFhc2qp0MsPP7eWh5 aYBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689597038; x=1692189038; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=gqQWmYE6mikijhb+URcDev0GUwlO46fou+/8hKL8alM=; b=G0LF7zjL2kYiH0guplibki7KleJZFEYPYd90qyeVE6+rK9R+VSZfdw19ZGLCzUh+BL 5hBcsqUSZo+eMRNzZqeeASttLCy6D/TjMUsAcqrOPWKUXp60dT2Zb9Zh7HqcCkEVlLL0 uVRJZKBD6KCqrRAn1qfEE+Oo4UEP8Y89jXS9OdwTNdAn1WBV0oNbk2F9pNfqeuq4ncv7 g/xFEysVsnyLd2Gs7OVpr5jx47KRngPhgw1CXYligiE/XuA0KzqFN2lUWoDDePoxFRPc j0bmRW+/I5EX2AgFN17yFTZXURJhb4F32/6LSLYkdOUapVfQnBhIFBdidOnl2NU9yxLg vK5w== X-Gm-Message-State: ABy/qLZaHnCSIEiBpGLp8Iu2kJUWKNe/0ga/DEX+VRwB0m0USQYanD5B 6+EE6ykmTysnSiT8jm2p0qE/KA== X-Received: by 2002:a2e:978d:0:b0:2b6:df5d:8e08 with SMTP id y13-20020a2e978d000000b002b6df5d8e08mr8104203lji.28.1689597037933; Mon, 17 Jul 2023 05:30:37 -0700 (PDT) Received: from [192.168.1.101] (abyj181.neoplus.adsl.tpnet.pl. [83.9.29.181]) by smtp.gmail.com with ESMTPSA id a26-20020a2e861a000000b002b6c9927a3csm3649783lji.37.2023.07.17.05.30.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 Jul 2023 05:30:37 -0700 (PDT) Message-ID: Date: Mon, 17 Jul 2023 14:30:36 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH] arm64: dts: qcom: msm8916-samsung-e2015: Add accelerometer To: "Lin, Meng-Bo" , linux-kernel@vger.kernel.org Cc: Andy Gross , Bjorn Andersson , 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 References: <20230715204128.12612-1-linmengbo0689@protonmail.com> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <20230715204128.12612-1-linmengbo0689@protonmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,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 On 15.07.2023 22:41, Lin, Meng-Bo wrote: > E5, E7 and Grand Max have ST LIS2HH12 accelerometer. > Add support for it. > > Signed-off-by: Stephan Gerhold > Signed-off-by: Lin, Meng-Bo > --- Potentially missing Co-Developed-by? > .../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/arch/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 { > > &blsp_i2c2 { > /* lis2hh12 accelerometer instead of BMC150 */ > - status = "disabled"; > - > /delete-node/ accelerometer@10; > /delete-node/ magnetometer@12; > + > + accelerometer@1d { > + compatible = "st,lis2hh12"; > + reg = <0x1d>; > + > + interrupt-parent = <&msmgpio>; > + interrupts = <115 IRQ_TYPE_LEVEL_HIGH>; interrupts-extended = <&msmgpio 115 IRQ_TYPE_LEVEL_HIGH>; Konrad > + > + vdd-supply = <&pm8916_l5>; > + vddio-supply = <&pm8916_l5>; > + > + st,drdy-int-pin = <1>; > + mount-matrix = "1", "0", "0", > + "0", "-1", "0", > + "0", "0", "1"; > + > + pinctrl-0 = <&accel_int_default>; > + pinctrl-names = "default"; > + }; > }; > > ®_motor_vdd {