From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.175.65.12 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796468898; b=N/Rqv7PD+bNWr9wvaX2UR2hTU6o63aJPd5x/ngE4ewUakc3AQT/xEE8GKx0AGqtzra9Y qGvGP+PXAY4qSzU70tK14cuoTB5MRAOgRPI+DTifqCo6BR7+l86M5luytAGp6jqxCf5dd pz03DRl2emMUIKUh9kJdx4L970lBb/USTnvtYvcJN20p8xzT/GO+kvtI1vFRWMn4IeYuT FKCCvXFHzUwRAdZyk0iBPm90+6E3qm/HBAJhv3QpMzS86fEeLU/XMtoLh1RbiMjH+4uhm sMRcgpIQ6zeyMcE1Z3Jsf9ElodCZOpeXJtkfRYfePJMvNn3U8W1Cj168QbheXh+WmWw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796468898; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:Content-Transfer-Encoding:In-Reply-To: Organization; bh=m6y5vWHo8emPzb4g6lRSPPkHY66yp7qhgDjv5DSE0Zs=; b=5QuOhSfGvqbqeViwDLBKzJOkaIKyE7VVLx7NAkVO9PrCpXk0yz+xGAJNl02dai/lcvFH /QinWOL0Z7l42NmQ/lUGCbXSaKf7K29x7g1SPtu/94JtC3TAA8mlZXUi+z9ibIe07GG1T Tyd82VQsZQAmLyX7auVt09GkpDaeZDMpvRnRqPDL8mTyZ28rRhyArigEUYg2TraWWXHp5 rjh3OxhJ6jPhXKyh/xLfVxPRnZHjFfvRJ+P0rAOeJNnarWSrLiBNg4qDfeSIG79d5kOzS VvXIHLxT4InwKQStLISvChvgAUObHvlao6UJNRJjLuE0wylzOztciaqfsMkrVi/E0aA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=K+ELMFQr; arc=none smtp.remote-ip=198.175.65.12 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ACE5D606A322; Sat, 5 Dec 2026 11:08:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org ACE5D606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=K+ELMFQr DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796468897; x=1828004897; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=m6y5vWHo8emPzb4g6lRSPPkHY66yp7qhgDjv5DSE0Zs=; b=K+ELMFQrP8OQ1iNznsxZ7TSL+Qbs+F+Op6OXaqTLFWcHf/T0eLYYhNSY pS5IdfR7kLylqXXZtD+JBn2B0E7m5PbmrLJMFICYvTcphPP+TgGBdS7lo RQZWH8uWDducVrnFWZiHlzRaqDGUh3Xu/EU5WO6nwAuseQmL1vIogzJ7Z Zk0gsBVNVi9pHuLhckP8KJP6k2tKqJSfXJxEsQaDOTiC7uUdzgKjqH54G zxI6p9K0leHgnur9SMATgNOLHZWr+IbcSEzhouToenfzbyuiubyiXNhXN qU8zqzBHHmCWu5+LfgTL1MIByB/MH3z/s6I7N0UNZzXDvD/v6kc7C6MRh g==; X-CSE-ConnectionGUID: RVQo4QH2Q2awZQa31GYXaw== X-CSE-MsgGUID: xcch+n7GQxqGIhrwZc2kNg== X-IronPort-AV: E=McAfee;i="6800,10657,11987"; a="5364163" X-IronPort-AV: E=Sophos;i="6.29,80,1794902400"; d="scan'208";a="5364163" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Dec 2026 03:08:17 -0800 X-CSE-ConnectionGUID: 1xqgojPdQlWaKdhpQDkO2w== X-CSE-MsgGUID: h9htpRtBTw2mXqDoCCZTjg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.29,80,1794902400"; d="scan'208";a="14488701" Received: from conormcd-mobl2.ger.corp.intel.com (HELO localhost) ([10.245.245.126]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Dec 2026 03:08:14 -0800 Date: Sat, 5 Dec 2026 13:08:11 +0200 From: Andy Shevchenko To: Adil =?iso-8859-1?Q?H=FCsrev?= Tepe Cc: Jonathan Cameron , David Lechner , Nuno =?iso-8859-1?Q?S=E1?= , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, Joshua Crofts Subject: Re: [PATCH v4 0/2] iio: proximity: add Imagis ISG5320A (Samsung Galaxy XCover5) Message-ID: References: <20261205-isg5320a-v4-0-a9bb8573c064@gmail.com> X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20261205-isg5320a-v4-0-a9bb8573c064@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo On Sat, Dec 05, 2026 at 06:35:39AM +0300, Adil Hüsrev Tepe wrote: > This series adds an IIO driver and its DT binding for the Imagis > ISG5320A capacitive SAR/grip proximity sensor (I2C), as fitted on the > Samsung Galaxy XCover5 (SM-G525F, Exynos850). > > Andy asked on v1 why this is a brand new driver: mainline has no driver > for this chip or its register map. The two Imagis drivers in the tree, > drivers/input/touchscreen/imagis.c (IST30xx touchscreen controllers) > and drivers/input/misc/isa1200.c (a haptic driver), are for unrelated > devices, and the SAR drivers in drivers/iio/proximity are for chips > from other vendors (Semtech, Awinic, TYHX). Right, but sometimes different vendors doesn't mean completely different IPs. Have you checked for similarities? (I think it's implied by "mainline has no driver for this chip or its register map".) > v4 reworks the driver along the v3 reviews from Jonathan Cameron and > Joshua Crofts and the v2 review from Andy Shevchenko, which v3 had not > addressed, and fixes the two Sashiko AI findings on v3: > > - Reads much less like a vendor driver: the per-line vendor references, > the init-table read-back check, the CHIPID read and the dev_info() > noise are gone, constant write sequences use regmap_multi_reg_write(), > and the 16-bit registers use get_unaligned_be16(). > - The init table was checked against the values read back after a soft > reset (one unit): 29 of the 150 entries repeat them. Two are dropped. > The other 27 are next to a register that the table changes and stay, > because the register layout is not documented. > - The binding now requires vdd-supply, so Krzysztof's Reviewed-by on > v3 1/2 is dropped. The driver uses devm_regulator_get_enable() > instead of the _optional variant and always applies the power-on > delay. > - Power management is simpler: no disable_irq(), no wakeup support for > now (DEFINE_RUNTIME_DEV_PM_OPS), devm_pm_runtime_set_active_enabled(), > no shutdown(), and the chip is put back to sleep if probe fails after > starting it. -- With Best Regards, Andy Shevchenko