Message ID | 20230327083647.22017-17-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 b10csp1359487vqo; Mon, 27 Mar 2023 01:43:29 -0700 (PDT) X-Google-Smtp-Source: AKy350Zf6tBZ2SDWmqPUvUoJ9HqjW604hzAJjfzSblQtVfraRCXourtV1DsyZv2Ed/bmV05mOTNT X-Received: by 2002:a17:90b:1d01:b0:23f:dd27:169b with SMTP id on1-20020a17090b1d0100b0023fdd27169bmr12179870pjb.2.1679906609151; Mon, 27 Mar 2023 01:43:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679906609; cv=none; d=google.com; s=arc-20160816; b=hi8l535jvkEEFjmVIDiDkZNVbg0M0We7gmm14GCFvm0sb0erICEcRfJK1hkQ+s1itq 1Ee3d/+585nU7STFbgIFlojjESiMhc5NuQYQPxVWQmGYfWQPF1sIj3pNabxDTjt4VWZT fZ0Mc4gvWxAzGlAfO4PLsma3XKuhKcMgWDxnaI9Ij9A1YVcpLiH4ifSePhBzzaQ0PGM4 R1qcaGZIV9bLGFf517fReXwiBXWadtSJUdwSxbpkm8O53FMeueeHa5OpM76O+Reql/ZS 2wCFnopV2aD9dAGqsxqW8bi/SJ9C9FgAxSL3QK8KUWLE9YlNHPXMSqBFFn41ogqJGGuQ moVQ== 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=GV4iKXq9m6RWITAoD8Qah7JE1fYZPEC85DzSL6+CoPc=; b=lQXWfH+0MPUd0/bFIFr/u7E1Gba0ezY15kdArlZLJlTdfP/Vj9YiTnK4jXrW9zYA4c +Q/Fc7B8b59TfZJs5jxdscQbCvlTK9zdN7UZF5BJ1T7dwLT45e4JKnAsjf4Gt/RGVyuo Yifkq8++l0qkw+/HwaiyKdL3MYiLofCogzm06m7QsODy4wpvyPejtiu7shKLisOut0Uw sn1TGn25Dg3lx7MM+ICnPvmNq66aMD//0cPSIfr9Mt6b1FeHNhLOBVe8MMlewkPr0aLl jU27Y/I926IiLlRt+Gkw0A1p9JPJCuVU29witYODj6LKv1H5K+nWBXMRskdCO50XZKvy x+2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=QsI8K4n5; 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 v3-20020a17090a088300b0023def94be71si5662721pjc.162.2023.03.27.01.43.16; Mon, 27 Mar 2023 01:43:29 -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=QsI8K4n5; 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 S232813AbjC0IlX (ORCPT <rfc822;makky5685@gmail.com> + 99 others); Mon, 27 Mar 2023 04:41:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233165AbjC0Ikh (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 27 Mar 2023 04:40:37 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3B914223; Mon, 27 Mar 2023 01:37:09 -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 0E0BC660313F; Mon, 27 Mar 2023 09:37:08 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1679906228; bh=7QwlmzO687lgIQQgZpeWHJxJZ30x74RVdHCWiqIGrHY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QsI8K4n5cpOLQks7dZVx4i6uJ9HjWsEQAlKW+DbF9bo4EIcCe46FRybKyB9NWRis0 TXpfQhUcUlWnwzYQmiEr1xdo7gPgzjvusfzYqBmVIqy9HLoIPhlcmMrHmZgySKkv/X SaNHe8bitzxIQ/J58yqQIVnmc0Xi20iNjpuhOPlfbvL6vb0Y3zjfAcPjFCAcU6Ifcw pBq4daGqPdQGfUxOrJbc67Nwh4jdg426wykSzQPIEsoeZVjKcT3J3277ydztpb15O6 /LJZZq2Z4E5oY7c3N0CjX8Qgct9pNPucvXfS72KCwyurFDu2yCWMggXb9jCnu2JGO5 KbPuPiAgq0XuQ== 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 v2 16/17] arm64: dts: mediatek: mt6795-xperia-m5: Add Sensortek STK3310 Proximity Date: Mon, 27 Mar 2023 10:36:46 +0200 Message-Id: <20230327083647.22017-17-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230327083647.22017-1-angelogioacchino.delregno@collabora.com> References: <20230327083647.22017-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?1761509752414385607?= X-GMAIL-MSGID: =?utf-8?q?1761509752414385607?= |
Series |
MT6795 Helio X10 and Sony Xperia M5: DT step 2!
|
|
Commit Message
AngeloGioacchino Del Regno
March 27, 2023, 8:36 a.m. UTC
Add the STK3310 Proximity sensor and its pins.
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
---
.../boot/dts/mediatek/mt6795-sony-xperia-m5.dts | 16 ++++++++++++++++
1 file changed, 16 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 bda14c74a8af..bff0760cc1c8 100644 --- a/arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts +++ b/arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts @@ -111,6 +111,14 @@ magnetometer@0x12 { compatible = "bosch,bmm150"; reg = <0x12>; }; + + proximity@48 { + compatible = "sensortek,stk3310"; + reg = <0x48>; + interrupts-extended = <&pio 8 IRQ_TYPE_EDGE_FALLING>; + pinctrl-names = "default"; + pinctrl-0 = <&proximity_pins>; + }; }; &pio { @@ -127,6 +135,14 @@ pins-rst { }; }; + proximity_pins: proximity-pins { + pins-irq { + pinmux = <PINMUX_GPIO8__FUNC_GPIO8>; + bias-pull-up; + input-enable; + }; + }; + accel_pins: accelerometer-pins { pins-irq { pinmux = <PINMUX_GPIO12__FUNC_GPIO12>;