From nobody Sun Dec 28 17:30:32 2025 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BFE4FC4167B for ; Wed, 6 Dec 2023 22:16:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377491AbjLFWQa (ORCPT ); Wed, 6 Dec 2023 17:16:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377494AbjLFWQ1 (ORCPT ); Wed, 6 Dec 2023 17:16:27 -0500 Received: from aposti.net (aposti.net [89.234.176.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17B8E10C0; Wed, 6 Dec 2023 14:16:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1701900967; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=J7Gat5xEw2YkABlBCPURNwKi3WZsiT+3bFDUKj6PsyA=; b=iSkBdKepSayqda5WA4rmrRSNcXfR8Toke+qdFKqwV62t8Go/PtqoAp+8OyDTKnBYR7XpzQ 5eV3kNYrB5Aom1TNE4mz/Ss4He4KhcBV9qyTNAUb2wdVT55LNCp1KruxKW7Q3LWuQRcWZ/ YIg/OQYmGUU3xcz+9aOj9L5woebj0n4= From: Paul Cercueil To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alim Akhtar Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Cercueil Subject: [PATCH 3/3] ARM: dts: samsung: exynos4210-i9100: Add accelerometer node Date: Wed, 6 Dec 2023 23:15:56 +0100 Message-ID: <20231206221556.15348-4-paul@crapouillou.net> In-Reply-To: <20231206221556.15348-1-paul@crapouillou.net> References: <20231206221556.15348-1-paul@crapouillou.net> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Spam: Yes Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add a Device Tree node for the ST Microelectronics "K3D" accelerometer chip found in the Galaxy S2. Signed-off-by: Paul Cercueil --- arch/arm/boot/dts/samsung/exynos4210-i9100.dts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm/boot/dts/samsung/exynos4210-i9100.dts b/arch/arm/boot= /dts/samsung/exynos4210-i9100.dts index f03b03dbe9f2..7e57fe033e2b 100644 --- a/arch/arm/boot/dts/samsung/exynos4210-i9100.dts +++ b/arch/arm/boot/dts/samsung/exynos4210-i9100.dts @@ -421,6 +421,23 @@ touchscreen@4a { }; }; =20 +&i2c_1 { + status =3D "okay"; + + samsung,i2c-sda-delay =3D <100>; + samsung,i2c-slave-addr =3D <0x10>; + samsung,i2c-max-bus-freq =3D <100000>; + + lis3dh: accelerometer@19 { + compatible =3D "st,lis3dh-accel"; + reg =3D <0x19>; + + mount-matrix =3D "0", "-1", "0", + "1", "0", "0", + "0", "0", "1"; + }; +}; + &i2c_5 { status =3D "okay"; =20 --=20 2.42.0