Message ID | 20230324175456.219954-16-angelogioacchino.delregno@collabora.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp813011vqo; Fri, 24 Mar 2023 11:00:18 -0700 (PDT) X-Google-Smtp-Source: AKy350ZfYPzgCc2pv+JGszoUl9sMyl+D/mzhKYR9VppbA2p2DmNDm4lvNBPvoyaQGR41djn0MwfL X-Received: by 2002:a17:907:9d1a:b0:8a5:8620:575 with SMTP id kt26-20020a1709079d1a00b008a586200575mr3809089ejc.3.1679680818444; Fri, 24 Mar 2023 11:00:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679680818; cv=none; d=google.com; s=arc-20160816; b=VgjA/v0HpDKc+yu1EnTGtLV6gN1lEQeNzL1070FQ/XtWKM5FeY6kK54A1N4pzDXnVg kLXDHQaEvLVESNv+GXR4VuJ8xKvbi6fUw9weS+jB4EAN+2GenXnOXSAedToP5NrdLnbE fHR4pGE9fOATfI/dAHevHzGcD5OeUa8XqZLJvOltztBii9T2tCi7+JGJVqC/4g4VY/Wc TXJBcylSqrivuhDi9jODrROoc7vbGtOy3zIhvA6ZSTDO1ZYIxz4UlPREMWCCcLmCDdwH WsKtxMWV9S7kB3N5nUdMkuyS3wpMVTvJ/5ppj6d6w8S0bo3LhugbgMirV3xd1zGDtxST bbsQ== 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=yHxr1lWW4/hZtKoDo+ymZ6Halxk36is2h5OEVuaDMrE=; b=w0GnnrOofpv7TZ1Yln70tCn/l/oxODOyOBXbJZwmqFueemd0lrEGgdCYM1i6CgAUBI xwM5kRC1bxY8aWOX4EoJRY/ypyKXWm1Ni0bRfsiaQXS4PJN3VsL5MJkuyB8tB6ME5LU0 wVQdrKpKPNq7qHYp+qyzpp0ZUpF4bh+m5UqlxcWw0IjLtuV0KqKLaGVjDmLumXqxbiUY 51ar0uJajiC6LT1UW1CjC6isCZXorOGwMLUcH4M4XxVTv7VaJSDTblvApjlgdNdNitjZ skjDilfE6JGq9WPunUqkw63aHkHCcWzwiyY0oMS9v8my9s0IjFGcE1/zLDrhEyBFh6+X 8OJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Q5Qwgsjg; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bb6-20020a1709070a0600b0093deb7c6bfcsi3183325ejc.795.2023.03.24.10.59.55; Fri, 24 Mar 2023 11:00:18 -0700 (PDT) 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=@collabora.com header.s=mail header.b=Q5Qwgsjg; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232131AbjCXR5t (ORCPT <rfc822;makky5685@gmail.com> + 99 others); Fri, 24 Mar 2023 13:57:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231922AbjCXR5P (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 24 Mar 2023 13:57:15 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6F5920D0B; Fri, 24 Mar 2023 10:56:50 -0700 (PDT) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 575636603141; Fri, 24 Mar 2023 17:55:13 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1679680514; bh=M2x6XrfKatUDNCzi+SX1mFtgO/Okir8+l/Hd5u8MM30=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q5Qwgsjg8AYINobxCuKGoobK7lgFqgVaO38HO0RpzrQMMGsCSJU7V2uWZ+hmnUD1J FDZFWN+8QZG/wU5QpuUNJ6avrHh/he9KPWRk/hwSfCw0PrhIku7xz0MrpvUpJhrW4/ 5hfgekhpTF4rJUgtOwoM8dqYJHZzUxgcEXeVTRIhDBYmOohJeQe9fsFjCIz0oOBQzZ ZvBSJ+1OaLfU2LdHFUcIvaxOuD0RSjfKarwpNG4AAzYaEyz6+9DwRNURVCrQB3d3Uf jhWviIH9vyMFyyYRrpPJ4hvX5Rvzx8SiUdH0B7Ab0znN70mBztpP+9gcy4XVqcGoXW Ti5hpG/O9fw1g== From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> To: matthias.bgg@gmail.com Cc: qii.wang@mediatek.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, jassisinghbrar@gmail.com, houlong.wei@mediatek.com, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, kernel@collabora.com, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Subject: [PATCH v1 15/18] arm64: dts: mediatek: mt6795-xperia-m5: Add Bosch BMA255 Accelerometer Date: Fri, 24 Mar 2023 18:54:53 +0100 Message-Id: <20230324175456.219954-16-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230324175456.219954-1-angelogioacchino.delregno@collabora.com> References: <20230324175456.219954-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761272993870747885?= X-GMAIL-MSGID: =?utf-8?q?1761272993870747885?= |
Series |
MT6795 Helio X10 and Sony Xperia M5: DT step 2!
|
|
Commit Message
AngeloGioacchino Del Regno
March 24, 2023, 5:54 p.m. UTC
Add the BMA255 Accelerometer on I2C3 and its pin definitions.
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
---
.../boot/dts/mediatek/mt6795-sony-xperia-m5.dts | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts b/arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts index edab90f06a24..54a1f7f306f7 100644 --- a/arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts +++ b/arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts @@ -99,6 +99,13 @@ &i2c3 { pinctrl-names = "default"; pinctrl-0 = <&i2c3_pins>; status = "okay"; + + accelerometer@0x10 { + compatible = "bosch,bma255"; + reg = <0x10>; + pinctrl-names = "default"; + pinctrl-0 = <&accel_pins>; + }; }; &pio { @@ -115,6 +122,14 @@ pins-rst { }; }; + accel_pins: accelerometer-pins { + pins-irq { + pinmux = <PINMUX_GPIO12__FUNC_GPIO12>; + bias-pull-up; + input-enable; + }; + }; + i2c0_pins: i2c0-pins { pins-bus { pinmux = <PINMUX_GPIO45__FUNC_SDA0>,