From mboxrd@z Thu Jan 1 00:00:00 1970 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 12107C5AC67 for ; Thu, 6 Aug 2026 19:49:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=eJyYuIzEP97cm89L88l359VJouC3QafW8DAfksKCUYw=; b=p9owbzgtxOJu+mY1MsKn5aarzl BRm1CJxz0N8U87mc1p5uvfNjom+aW4HwUHyoeR7R6WYMBEyKzEzJG/pHE+xF2U0iZpk2B5HqwD0gI Ok5u4c2JluoQCB5tHc7WOxYtf0wkG5/r+xrS5pzxXuhq8p8rU6iMlhmp6VHt8Hn2lrvqDxhMfwDH5 aO6C/GiztcFq3h8LlQZMg9FadadpxnlUVYS88w+JCcwwSBXRpBOeIGyY85KKNalWijJE0mjrEAhex qU3+SlyGa4meyX2i1Kt3d9ipwWNmyZ/OqxO9u0AwKYyRsPI7x+zN4NNYP3eEPCeUD0cE1/TfC5ULk OrnyPTnw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1ws45l-00000006aLu-45iC; Thu, 06 Aug 2026 19:49:25 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1ws45k-00000006aL1-1lUk for linux-arm-kernel@bombadil.infradead.org; Thu, 06 Aug 2026 19:49:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Cc:To:In-Reply-To:References: Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Sender:Reply-To:Content-ID:Content-Description; bh=eJyYuIzEP97cm89L88l359VJouC3QafW8DAfksKCUYw=; b=H2MFwTzWMkSh4OhgP7yCLp40Yk xj1RP7LFr0zZcj1Jv9pIH75mfMRony1os1VbnrAMAQVOPvd1K1/l15iALSaZVKTfeBr4Jy6duv2lV GROVFhzU09avgLtTW56lgloVnQ4YQhczO7XpL3uTZLa849aGnTzrERs2edKr7Lp+2uYjR+MYi/t0u 2YyPB7XMI/5DBPeOSjmsK14rIQqAB44GYJPRq+PM79EVRIBkkfPCQyw91S6CUYNhjt03JpYWO2CFr mYxUoJNJWSnpT8lQmvvusrZ7h3TrxG0Hj0HA+6shwVBZuJSC1d8rIS2RvoQ2TxdjowCfQyFwNzp/5 6B5PKfjw==; Received: from layka.disroot.org ([178.21.23.139]) by desiato.infradead.org with esmtps (Exim 4.99.2 #2 (Red Hat Linux)) id 1ws45h-0000000BnWX-1s5Z for linux-arm-kernel@lists.infradead.org; Thu, 06 Aug 2026 19:49:23 +0000 Received: from mail01.layka.lan (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 752B541912; Thu, 06 Aug 2026 21:49:14 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 0eZVW6ZCSgtJ; Thu, 6 Aug 2026 21:49:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1786045753; bh=HOw79g3ooG6NNzkyYSEvjfgfmCBbxswKnKtrHqLTX78=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=CQViigoh1Wj77XqViuITPP0uHfgEnK9TNml11c6Ts3lTlvg1xSNhnuAVswN8r0Wgj VsYmzBXJEmCFqZGI1iV9yN2pjaqwNGSL+2RRWakxEToMXP2wiIdvC8S/F5Xf49/GqW /vyXD91CzLpzzW3H6RpHYb8fxVOtXPmkJsp3Ko4EDCWUCURKFME5eTp43vn5bZ9aFO z1QDPdoXuH45RzXQ+jQv+7S6gEvAuxeDs0lxyZLdl0IYW1s2KNF2pHaNVqVVEwxT3i Y6VU1QYzc13+aGGmXWa7R7uHyZVf4TV94NFvUduO8Cqj+DHTJq8BQ4SwdYq7Q2e2AY p65AvPOm0dqkA== From: Kaustabh Chakraborty Date: Fri, 07 Aug 2026 01:18:43 +0530 Subject: [PATCH v4 3/3] arm64: dts: exynos7870-j6lte: add Sharp GP2AP070S proximity sensor MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260807-gp2ap070s-v4-3-74f6a67b6272@disroot.org> References: <20260807-gp2ap070s-v4-0-74f6a67b6272@disroot.org> In-Reply-To: <20260807-gp2ap070s-v4-0-74f6a67b6272@disroot.org> To: Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kaustabh Chakraborty , Peter Griffin , Alim Akhtar Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260806_204921_619747_8C6F185D X-CRM114-Status: GOOD ( 12.20 ) 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 The Sharp GP2AP070S is a proximity sensor, which is connected to a GPIO-driven I2C line. Define the devicetree node for the sensor. The sensor requires two voltage supplies, one of which is from the primary regulator bank of the device, while the other one is controlled by the GPIO. Add a regulator wrapping over the concerned GPIO so as to feed it to the sensor node. Signed-off-by: Kaustabh Chakraborty --- arch/arm64/boot/dts/exynos/exynos7870-j6lte.dts | 55 ++++++++++++++++++++++++- 1 file changed, 53 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/exynos/exynos7870-j6lte.dts b/arch/arm64/boot/dts/exynos/exynos7870-j6lte.dts index de30d0970336..dd493138fed6 100644 --- a/arch/arm64/boot/dts/exynos/exynos7870-j6lte.dts +++ b/arch/arm64/boot/dts/exynos/exynos7870-j6lte.dts @@ -73,6 +73,35 @@ key-volup { }; }; + i2c-proximity { + compatible = "i2c-gpio"; + #address-cells = <1>; + #size-cells = <0>; + + pinctrl-names = "default"; + pinctrl-0 = <&i2c_proxm_bus>; + + sda-gpios = <&gpf4 3 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; + scl-gpios = <&gpf4 2 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; + + i2c-gpio,delay-us = <2>; + + proximity@39 { + compatible = "sharp,gp2ap070s"; + reg = <0x39>; + interrupt-parent = <&gpa0>; + interrupts = <5 IRQ_TYPE_EDGE_BOTH>; + + pinctrl-names = "default"; + pinctrl-0 = <&proxm_irq>; + + vdd-supply = <&vdd_fixed_proxm>; + vled-supply = <&vdd_ldo33>; + + proximity-near-level = <500>; + }; + }; + memory@40000000 { device_type = "memory"; reg = <0x0 0x40000000 0x3d800000>, @@ -94,6 +123,16 @@ vdd_fixed_mmc2: regulator-fixed-mmc2 { enable-active-high; }; + /* proximity: vdd */ + vdd_fixed_proxm: regulator-fixed-proxm { + compatible = "regulator-fixed"; + regulator-name = "vdd_fixed_proxm"; + regulator-max-microvolt = <3300000>; + regulator-min-microvolt = <3300000>; + gpio = <&gpd2 3 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + reserved-memory { #address-cells = <2>; #size-cells = <1>; @@ -354,13 +393,12 @@ vdd_ldo32: ldo32 { regulator-ramp-delay = <12000>; }; + /* proximity: vled */ vdd_ldo33: ldo33 { regulator-name = "vdd_ldo33"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; regulator-ramp-delay = <12000>; - regulator-boot-on; - regulator-always-on; }; /* touchscreen: vdd */ @@ -556,6 +594,13 @@ pmic_irq: pmic-irq-pins { samsung,pin-drv = ; }; + proxm_irq: proxm-irq-pins { + samsung,pins = "gpa0-5"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + touch_irq: touch-irq-pins { samsung,pins = "gpa0-6"; samsung,pin-function = ; @@ -579,6 +624,12 @@ bt_enable: bt-enable-pins { samsung,pin-pud = ; }; + i2c_proxm_bus: i2c-proxm-bus-pins { + samsung,pins = "gpf4-3", "gpf4-2"; + samsung,pin-function = ; + samsung,pin-pud = ; + }; + wlan_enable: wlan-enable-pins { samsung,pins = "gpd3-6"; samsung,pin-function = ; -- 2.54.0