Message ID | 20231206221556.15348-4-paul@crapouillou.net |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp4411434vqy; Wed, 6 Dec 2023 14:16:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IGLc7kP9nFTdrhLf7WM/PEO7NPIQyW643ze2fn/GhKDPfB4sUHgmr3jpDr1zZdXmPuJ0FH6 X-Received: by 2002:a05:6a21:6d88:b0:18f:d156:5b12 with SMTP id wl8-20020a056a216d8800b0018fd1565b12mr1654732pzb.118.1701901007043; Wed, 06 Dec 2023 14:16:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701901007; cv=none; d=google.com; s=arc-20160816; b=m3sPMngtTfYiCvow44jpU5QWZaUZD8Z5HWb4I8/ED3v1uzmBRgj4MJTi9NLaAjVaDH hVmZS0jeW+y8J6gbGW4D2ii4D51dhm+Nag0lfGEfXjmYSb3YDjCDYzbFC+fJ6JtVPvKM dw4YkWDAwNx1BRAvwWotOMsWjmrSNM39Avuvo/CI7q7dz0aI8wx4PheHJue5eg2byBav 3IZiaRAM3sCY9kR1tJnYXQiFE6fmHN0dKDi3SZl4n0ShX1htNNnMEShRf/vF8dsMkNKu jQg7oaElLdDi0fxHZFVxjs0tjRUy6KSJYxTElknik3Tp2lbOmXGb07qx43vW7dcjhzgy wzrg== 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=J7Gat5xEw2YkABlBCPURNwKi3WZsiT+3bFDUKj6PsyA=; fh=EbrzPF9Hbra4ubx5SdnVe7rPvxUq2aZ13iwrnZa+/1E=; b=T33GxxsGH++wf737/TY0QNn6qe4d4GlAf5sndQsmmyAr31gYGqYfQdMe8ryf9o17iu /mejdNJRNromUWeTq9dES7cybqWJVLTJXdP9DBDoltnLT/pQAdNYZX/W0LE0tMShq2/b B/kkjafw0KC3UQptWq5+f4yZOh7iN/GGcNDRRyVAU3Sk/AG88E8gfrq/QuPni59671An 7SiUsgdpoQwXbS0/O8UiCip2JkaUKWCKVfwBacvwN7/Y3rFEhJ2mafjCmarcbA4lK02m bzMyyW4ZYZ9nMDBFWnc2wFGPM2IwmmbLoBzXOpw9/AnfBpLOF2vqHsJ66cGnzz+bRzj5 DDTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=iSkBdKep; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id b1-20020a170902d50100b001d05450e410si466933plg.208.2023.12.06.14.16.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 14:16:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=iSkBdKep; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 86CB0802749E; Wed, 6 Dec 2023 14:16:44 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377619AbjLFWQa (ORCPT <rfc822;pusanteemu@gmail.com> + 99 others); 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <paul@crapouillou.net> To: Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Alim Akhtar <alim.akhtar@samsung.com> Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Cercueil <paul@crapouillou.net> 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: 8bit X-Spam: Yes X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, 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 fry.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 06 Dec 2023 14:16:44 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784572550491607238 X-GMAIL-MSGID: 1784572550491607238 |
Series |
ARM: dts: samsung: exynos4210-i9100 updates
|
|
Commit Message
Paul Cercueil
Dec. 6, 2023, 10:15 p.m. UTC
Add a Device Tree node for the ST Microelectronics "K3D" accelerometer
chip found in the Galaxy S2.
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
---
arch/arm/boot/dts/samsung/exynos4210-i9100.dts | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
Comments
On 06/12/2023 23:15, Paul Cercueil wrote: > Add a Device Tree node for the ST Microelectronics "K3D" accelerometer > chip found in the Galaxy S2. > > Signed-off-by: Paul Cercueil <paul@crapouillou.net> > --- > 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 { > }; > }; > > +&i2c_1 { Fixed placement, so nodes are ordered. If it was not the case in your DTS, it means you worked on some old tree, which should be avoided. Please work on mainline. Best regards, Krzysztof
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 { }; }; +&i2c_1 { + status = "okay"; + + samsung,i2c-sda-delay = <100>; + samsung,i2c-slave-addr = <0x10>; + samsung,i2c-max-bus-freq = <100000>; + + lis3dh: accelerometer@19 { + compatible = "st,lis3dh-accel"; + reg = <0x19>; + + mount-matrix = "0", "-1", "0", + "1", "0", "0", + "0", "0", "1"; + }; +}; + &i2c_5 { status = "okay";