From patchwork Mon Oct 4 20:19:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephan Gerhold X-Patchwork-Id: 12534759 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 74AB8C433F5 for ; Mon, 4 Oct 2021 20:24:40 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 396636140B for ; Mon, 4 Oct 2021 20:24:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 396636140B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=gerhold.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=GYyn/UbJJLhhSMlBsLVqVl0825xKINjCZI8rD6mHpB0=; b=POsoKRTAbWzfdn b/JFY9vz05Wcf657m1G4RLIaYoWA/xZ/MmNrxt2TsNzVf6dXlgPfwyOfQBJtiljyt3LyYWmXwapps Gg7W7KVLIj7UTZtVkT7dqSGMEH+BUb2lpRPCZY4HSOITPbRZC00C4Y+FoggAKTkYKsVCLetaSH/Be t0f8WOg1yn8fp3CQxBZJ2KphJ6sDe9DjB/unp7RLtQqnXV9MrUsloqwCPnqGKdlff7XaaQDklXsbo C53Fbp4GRehhduFteg7MeOZqUA2po/MBAPudfEkh8ZE5HqRiKrNoAL/UfH6cdrnx5q2W9FKfGfV9v pwXeyXva7H/i4mDhKH9g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mXUTe-007xfp-6I; Mon, 04 Oct 2021 20:22:22 +0000 Received: from mo4-p02-ob.smtp.rzone.de ([85.215.255.80]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mXUTE-007xbT-UE for linux-arm-kernel@lists.infradead.org; Mon, 04 Oct 2021 20:21:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1633378911; s=strato-dkim-0002; d=gerhold.net; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=A4mG38TJdtwZpXWSkGNr8WpEhX95atrjR7MADgIRuJY=; b=X5Cjf7Amr4+LsiIkFuk0l5/iB8Ph5aZQTFy4kgvDL46GDOgVcG/TjRAX4yaHIzlAY4 tbk/yJBtdrlcP+rEgWQ2OJV7naw2dscIXgW0xIyiRVrw+IDBmrs6S3AJAE1qk1gtD3vj puseBih+PiaJBmTB3rrfgW9J+DXibb0PT7Wf323OVGGU3PCZqGg6yF2iEEWGLvrmhcL5 9/OdNcZBLsh6p5In/3+W+smGRsI2K50xhkDdRCy074mINTvD6w2Tmv4sWC1SRwnMN+6i 4Kpmt1lUzzK3f6dHdyepu1zPUzf+AGhU/HIGRhF/xJh6630t3YKwSLhoaJ7z23uC2f4+ IgKg== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":P3gBZUipdd93FF5ZZvYFPugejmSTVR2nRPhVORvLd4SsytBXTbAOHjRHIhr2eFePxBA=" X-RZG-CLASS-ID: mo00 Received: from droid.. by smtp.strato.de (RZmta 47.33.8 DYNA|AUTH) with ESMTPSA id 301038x94KLpKQo (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Mon, 4 Oct 2021 22:21:51 +0200 (CEST) From: Stephan Gerhold To: Bjorn Andersson Cc: Andy Gross , linux-arm-msm@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Stephan Gerhold Subject: [PATCH v2 04/15] arm64: dts: qcom: msm8916-samsung-serranove: Add IMU Date: Mon, 4 Oct 2021 22:19:10 +0200 Message-Id: <20211004201921.18526-5-stephan@gerhold.net> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211004201921.18526-1-stephan@gerhold.net> References: <20211004201921.18526-1-stephan@gerhold.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211004_132157_150021_8556A906 X-CRM114-Status: UNSURE ( 9.26 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add the STMicroelectronics LSM6DS3 IMU that is used in the S4 Mini VE to the device tree. Signed-off-by: Stephan Gerhold --- Changes in v2: None. --- .../dts/qcom/msm8916-samsung-serranove.dts | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-serranove.dts b/arch/arm64/boot/dts/qcom/msm8916-samsung-serranove.dts index 564f4f6d4f0f..2280b2e4b09f 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-serranove.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-serranove.dts @@ -170,6 +170,21 @@ touchkey@20 { }; }; +&blsp_i2c2 { + status = "okay"; + + imu@6b { + compatible = "st,lsm6ds3"; + reg = <0x6b>; + + interrupt-parent = <&msmgpio>; + interrupts = <115 IRQ_TYPE_EDGE_RISING>; + + pinctrl-names = "default"; + pinctrl-0 = <&imu_irq_default>; + }; +}; + &blsp_i2c5 { status = "okay"; @@ -372,6 +387,14 @@ gpio_hall_sensor_default: gpio-hall-sensor-default { bias-disable; }; + imu_irq_default: imu-irq-default { + pins = "gpio115"; + function = "gpio"; + + drive-strength = <2>; + bias-disable; + }; + muic_i2c_default: muic-i2c-default { pins = "gpio105", "gpio106"; function = "gpio";