Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4073208rwb; Mon, 21 Nov 2022 03:25:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf70NMXaV9gcx0vbqcNbjA5kOQTDjaPlPczh058KtE2DzeZXU5u4HnbP52xm+jQpGrwpo3x1 X-Received: by 2002:a63:5802:0:b0:46f:59af:c1f4 with SMTP id m2-20020a635802000000b0046f59afc1f4mr719780pgb.344.1669029934785; Mon, 21 Nov 2022 03:25:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669029934; cv=none; d=google.com; s=arc-20160816; b=CK4BiHftzw3JgHIcLQ1yFu13UyTTOwwN+MhGe7fplSkI2UPIg/CvDxnyZFjjFPQ9u4 1aPK7OvT7n4VliZgtGxaYjlwDYNoG4hGGAQXbl8C+pyol5Zd37jCW5dg4DcQAPlw8CAr oYlKgQ8qTEUdR7katI/IvutK5uc1YreAnBGsqW79l2nmiXLVhccY8C4CaytCaVMAs5D5 rG+VSpldUXdskYkEh3RqwZ948RZwiR7ql3IelQVTv++klSmWXi+/5lB+RT1iaQaAvNHT zyHG5ZAFP9GQIjDAgVMDMLnWYKZtNzc6t1Ei/tsdG/z8uIczni2O2ylcppbVUj+kxid8 K8LQ== 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 :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=KyIZntu8KvsJCS2yaTq1/+UlX2o8vrPqHuwnWpawZaM=; b=jMtcMg9sqSapsrWC+hhCy6x1xKb6uIM/8UCa51epaIxnObaX9eB6GvyWtblUvfMCZF c42lpsPyzIpWg3ZdxuMERZDTy4SZAM+UhOSjWn2IqrbeJPpgPw9ceBiRMnMylEIn411/ VTJx0tbwblvvAut67o6e/xMrOV/5LcPrZB/OonlUrTq6MCTWoBi8ti5QKOwV0SSOyGdu uRC/ZdewRH+mF++affYjTQALJxqAEOe210WdQrKusLS090KVbXgJ+nGsEvZU6wOjCgXC ZPKenb6MxmaCV4fOn9fDIUiE+GO+7VDm8Kd7ECg+GOr1aad8rvdNuHFHgqBJPObO9lMy m4jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="lwd0U6a/"; 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 b14-20020a17090acc0e00b00213120e0c85si13606763pju.156.2022.11.21.03.25.21; Mon, 21 Nov 2022 03:25:34 -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=@linaro.org header.s=google header.b="lwd0U6a/"; 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 S231196AbiKULSx (ORCPT + 92 others); Mon, 21 Nov 2022 06:18:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230309AbiKULS2 (ORCPT ); Mon, 21 Nov 2022 06:18:28 -0500 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35A78BEAEB for ; Mon, 21 Nov 2022 03:13:48 -0800 (PST) Received: by mail-lf1-x132.google.com with SMTP id g7so18326308lfv.5 for ; Mon, 21 Nov 2022 03:13:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=KyIZntu8KvsJCS2yaTq1/+UlX2o8vrPqHuwnWpawZaM=; b=lwd0U6a/+TY0wH3trHyg0RiR2UeNMXrdC/ErrtlUAAqLPaBWkjmMOvQWePwu3BGBq+ 2QgY+2Exouia7t6QaiHixfdwBwwByr8msPNsrugwwNKXpUZKvyMH+8lHldI0IecNn61Z nkgDBubB2WytZUfgpgpAQYygX1hv3M5nzyFMFyrRQ30sbvegBwSSuq1Z6MHbUeKrOH8V lA5myOCd5Z8s/hG0jTooO0PUlQ8xZBlGPE+YPKu48VV5jfsKPSGUnrxhbVLhdUq3bZLx WavSiHw0ygbMD/eDfRymUPPQnSpVYKWPECUjM2skDOzAG+EbDb8Qm8L3x09rttwSPGMB 4vyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=KyIZntu8KvsJCS2yaTq1/+UlX2o8vrPqHuwnWpawZaM=; b=7SZIpHELsYKQ5MLiZROVRmWIjaGsKLF2PuUIe9o2LMA6kG2LcS9Y11+2IhFB0f/yqo 9mTy6+9o50HJmiDZ57/nCWWNgisQCvUhxY+AQWKU23yAOLous0zJxhJ/BcEhq/uv1wpe P/GBo0wrcmKKG1JT+k56CT+aVGqtnBfaIROU1nOOuctKnDXy2rd3cfOSKjyHHaDswXi7 Q1hcabA9aNSDum6rcZb6fQ9NsdQPkPSxVKRUNUcYQSypi8VuLxbKBKuOHQ5RbP5wxIP3 wQCR4BStSARD29GkHsOnNY71BLO7sV8fcZNMn3xgmkxMqKxLKYqu/N4AR41JePQrpHtE Vpcw== X-Gm-Message-State: ANoB5pnhCK5NAjN+6Zr5SgzKRGKVX0aCTtllO1lxodMcFFE3Njaw91tt XPyQjNWILSuW9ARF02AS4z5i9w== X-Received: by 2002:ac2:4c42:0:b0:4a5:bf09:a700 with SMTP id o2-20020ac24c42000000b004a5bf09a700mr5553203lfk.656.1669029224617; Mon, 21 Nov 2022 03:13:44 -0800 (PST) Received: from [192.168.1.101] (95.49.32.48.neoplus.adsl.tpnet.pl. [95.49.32.48]) by smtp.gmail.com with ESMTPSA id p19-20020a2e9ad3000000b0026c2d2a9b92sm1410486ljj.101.2022.11.21.03.13.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 21 Nov 2022 03:13:44 -0800 (PST) Message-ID: <6e0ee9a9-7d6c-6fda-270e-183d63667375@linaro.org> Date: Mon, 21 Nov 2022 12:13:42 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH v3 3/3] arm64: dts: qcom: msm8916-acer-a1-724: Add accelerometer/magnetometer Content-Language: en-US To: "Lin, Meng-Bo" , linux-kernel@vger.kernel.org Cc: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Stephan Gerhold , Nikita Travkin , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht References: <20221121004116.3458-1-linmengbo0689@protonmail.com> <20221121004559.3778-1-linmengbo0689@protonmail.com> From: Konrad Dybcio In-Reply-To: <20221121004559.3778-1-linmengbo0689@protonmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,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 On 21.11.2022 01:47, Lin, Meng-Bo wrote: > 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 > --- Reviewed-by: Konrad Dybcio Konrad > .../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 67187673364c..a87de8af9f15 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 @@ > > #include > #include > +#include > > /* > * NOTE: The original firmware from Acer can only boot 32-bit kernels. > @@ -51,6 +52,35 @@ usb_id: usb-id { > }; > }; > > +&blsp_i2c2 { > + status = "okay"; > + > + accelerometer@10 { > + compatible = "bosch,bmc150_accel"; > + reg = <0x10>; > + interrupt-parent = <&msmgpio>; > + interrupts = <115 IRQ_TYPE_EDGE_RISING>; > + > + vdd-supply = <&pm8916_l17>; > + vddio-supply = <&pm8916_l6>; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&accel_int_default>; > + > + mount-matrix = "0", "-1", "0", > + "-1", "0", "0", > + "0", "0", "1"; > + }; > + > + magnetometer@12 { > + compatible = "bosch,bmc150_magn"; > + reg = <0x12>; > + > + vdd-supply = <&pm8916_l17>; > + vddio-supply = <&pm8916_l6>; > + }; > +}; > + > &blsp1_uart2 { > status = "okay"; > }; > @@ -199,6 +229,14 @@ l18 { > }; > > &msmgpio { > + accel_int_default: accel-int-default-state { > + pins = "gpio115"; > + function = "gpio"; > + > + drive-strength = <2>; > + bias-disable; > + }; > + > gpio_keys_default: gpio-keys-default-state { > pins = "gpio107"; > function = "gpio";