Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1337777pxb; Fri, 13 Nov 2020 10:02:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJxbbhnmo7zY7qZIfSbGs/teNy748WCkWKvPUzD830U5sIaUOSqaBUyR+RbG3r3Pc38q2wL3 X-Received: by 2002:a1c:490b:: with SMTP id w11mr704044wma.101.1605290539082; Fri, 13 Nov 2020 10:02:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605290539; cv=none; d=google.com; s=arc-20160816; b=f5qlCFWPp2zNZRj4CJAOpFTe9FJtsn0I0ykFnvAwHk7/v0RyYBbeLcZxgqV1yCGsJ8 6JxakcMpgSoOTNM2s45kQhVehL5cCLO8x3JGV1fq6tV3jOatWl0rlS6b7Z3ufBE91LjY eJsbEGxHFv6952kMZwLMDdSm1pNgv6XyhSHiN+deD7MNoErH9aVzORs6q5dewA91NPBA 36gkPadW3TntVKKvP4jeIbPtPgmkcKa8HiolwzzdUw9nvH1C0EWWvCIHknfN9H7vSNIQ OAmcDZRkqfNiFbdWuzuwS3nY44w3HU8el5ZphExCCHbNA21iShWWAo7K2uHhr7d5Aotj Z/SQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=CWzu43DCeyauYJ1F5BcQ3LeRiSYYRPXz26NLfU5raCA=; b=cm5pLt1GJkQCLWkK3dCD7CZvwoJwI6Ol5oHNZYEMX11Ky3tp/p7K11UXIkCZVNOgTw 9N6Hp0BLkVMdcKSW3OlIBo/QcpB74Cd7MWBobgmQmuZ3IelIUy49CMaYP1N/YQDXFJLJ uCal/eJiRaiDF26wLAYx3CAaJVJkoj7RxVAUVdT0u+vnvddl4LqkgTdGaPaBl0tvp6k2 HyqmXjAGNIqP4YQp3hOGMlUUVRMonn62mERyFYTdARAjlpxW/4KQpF31xQJTAXksfqG0 PwbD0TSMBUmikxe6T8Syu+xrizoDpT3mXVAjy7in5+AUgISTSOUZRPKrhcWqe9sb1Cx0 Dl4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bO5uZR33; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t6si6434205ejf.462.2020.11.13.10.01.56; Fri, 13 Nov 2020 10:02:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bO5uZR33; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726497AbgKMSAG (ORCPT + 99 others); Fri, 13 Nov 2020 13:00:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726416AbgKMSAA (ORCPT ); Fri, 13 Nov 2020 13:00:00 -0500 Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05A77C0617A6; Fri, 13 Nov 2020 10:00:00 -0800 (PST) Received: by mail-lj1-x242.google.com with SMTP id 11so11807359ljf.2; Fri, 13 Nov 2020 09:59:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=CWzu43DCeyauYJ1F5BcQ3LeRiSYYRPXz26NLfU5raCA=; b=bO5uZR33QoWdvnpfdzCdIj5Vp5615LRvv6EXtBEYIbGbGIwvIa2MTEAE1hkuXiJCf7 bW4jSKrugXh4l3Fajyic+3sE4JrasoLc09DROc1reA1SJxa5E/3sBsmnB0qcCciZmI/R FQVE6N+UeLCYoCh3iAIdWaIOxUrCQBjEz0DnU2ln+dyvR3uqEejYsYp1L5jotiNg0rCz kTU0NaZOXUprJiZkYCLh0TU9HUhsokeYphk89+7FYv707rlfjqxVgnA4ptsWOnFOYqOa g9w+v3xwIV8p0xO0CDSy3dGN7SCVwOXqMfQm4wPCSkX9nOAqd4nBT1i9N0KKxwP2AXWU r/eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=CWzu43DCeyauYJ1F5BcQ3LeRiSYYRPXz26NLfU5raCA=; b=QFjJ4EzMqB2p6lY88OoDsVq+ryzRo5PxG1BaU7SfHgO3zuSPDpuzaMz+iUCMAmxKgH uW5wC6KCEL9Gl0ok4DqB10jZz+N9bqziA8rqF7FcpWEmRigSCDdVILE+yyWsfYOzp/V+ AX816MtuZgv0lOy7eE0/AvWwSyhUNe6i0QdE1H/J53GWdb5KNxtJkGWxmgamxilkEBdN NIk9DEXiRz6lwFksLwmn8CFXW3dOtrveBAZCbuJl5zwlm1oclDTSHYcpWX2KLy8m/tnJ Pgjv06McYmn5J/D9I1veJKMSOQ1zWEwxWf7VfOMJXd4i0TFbBiNCkPlvMdPsvdzRHNyU MmCg== X-Gm-Message-State: AOAM533VayEWynzYiom0B4lUEYUXf+pe/BP6Z76VC4wdzwLo1IVdcKAu 3pwVcw2sDyzd8Am6txJTPB8= X-Received: by 2002:a2e:9614:: with SMTP id v20mr1621709ljh.13.1605290392925; Fri, 13 Nov 2020 09:59:52 -0800 (PST) Received: from localhost.localdomain ([2a01:540:2326:b00:1d75:252:b367:4629]) by smtp.gmail.com with ESMTPSA id c1sm1629363lfj.222.2020.11.13.09.59.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Nov 2020 09:59:52 -0800 (PST) From: nikitos.tr@gmail.com To: agross@kernel.org, bjorn.andersson@linaro.org Cc: robh+dt@kernel.org, stephan@gerhold.net, Michael.Srba@seznam.cz, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Nikita Travkin Subject: [PATCH 3/6] arm64: dts: msm8916-longcheer-l8150: Add position sensors Date: Fri, 13 Nov 2020 22:59:14 +0500 Message-Id: <20201113175917.189123-3-nikitos.tr@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201113175917.189123-1-nikitos.tr@gmail.com> References: <20201113175917.189123-1-nikitos.tr@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nikita Travkin L8150 has: - BMC156 accelerometer and magnetic sensor - BMG160 gyroscope sensor Add them to the device tree. Signed-off-by: Nikita Travkin --- .../boot/dts/qcom/msm8916-longcheer-l8150.dts | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts b/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts index 21f2e8e0d05e..79a2475e3cd5 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts @@ -67,6 +67,44 @@ reg_ctp: regulator-ctp { }; }; +&blsp_i2c2 { + status = "okay"; + + accelerometer@10 { + compatible = "bosch,bmc150_accel"; + reg = <0x10>; + + vdd-supply = <&pm8916_l17>; + vddio-supply = <&pm8916_l6>; + + 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>; + }; + + gyroscope@68 { + compatible = "bosch,bmg160"; + reg = <0x68>; + + interrupt-parent = <&msmgpio>; + interrupts = <23 IRQ_TYPE_EDGE_RISING>; + + pinctrl-names = "default"; + pinctrl-0 = <&gyro_int_default>; + + vdd-supply = <&pm8916_l17>; + vddio-supply = <&pm8916_l6>; + }; +}; + &blsp_i2c5 { status = "okay"; @@ -264,6 +302,14 @@ gpio_keys_default: gpio-keys-default { bias-pull-up; }; + gyro_int_default: gyro-int-default { + pins = "gpio23"; + function = "gpio"; + + drive-strength = <2>; + bias-disable; + }; + tp_int_default: tp-int-default { pins = "gpio13"; function = "gpio"; -- 2.25.1