From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796309413; b=m8BjvIerEWYXCWl9xBHE0hd/JXQLqmGeoQppiMoMnqaV5msCnhCOiKsz3wOl9UkFmIKY dohGddKNZLjenDRyp1uHIcyvVyR8eNYmwxjflpONiskTQ2tc4rGIebgpsOQzWSnnbjadQ CEPDxDWAIVkgMdJPqo+aLmrYbgxHO4P/CyvxeVvR+RpqHtsxmjIzeMF9WMLUj8ZW93U1f kcYDgoV+CWj9U40EbOQ7oar1n3L5570vk62m7609WLJa4CNbMJcu7LLWsFktWtOk1a+1j frsYdTRGM1OxylKsS4Cv/w0CEoXaGdpWen8vGybb0dnR92YdCp47mPvERP99vOYu8IA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796309413; h=Received:DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:Cc: References:Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; bh=TPGQoT0QDAFo4AU6aJ7kUVUQSJmRxDjr/eJJWrGD+Qc=; b=YYpy9i+Bzwrq/2Qo80dVxDNptiLCMgwjse0Xssx6laUb4KKec/nXp54CL0OBEBcDGeAq Ieaodu/tdiaFkyMH6T+XrL0szKT8gLkLZIW7qBi2rjS5vwtDrCC7tmOugGNpniulB+k9Z bY36yoWpJhIq8Ryf6Ha5xPLJg3sY4XMeLi2J1MV8N3PNP22w4iFuPu7SH4XNeoOnymuPH LKyS3zNynLiZt70SDAf06o4C7dsh/jkM573khmAwU/uX5G+wA3ig5QSkW7lW8YhHL6dIq Y2Ph7PYGde2FtiQiPu1fcg+7k3uo4pKFAGyAzugdyPHZlqlKuKS3Gp6q3PW6h5uxR6w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=gu4yfNcT; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 60AB6606A68D for ; Thu, 3 Dec 2026 14:50:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=gu4yfNcT Received: by smtp.kernel.org (Postfix) with ESMTPSA id 265D91F0089B; Thu, 3 Dec 2026 14:50:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796309412; bh=TPGQoT0QDAFo4AU6aJ7kUVUQSJmRxDjr/eJJWrGD+Qc=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=gu4yfNcT2rTzUsuiD8Aq13WQX6MNfV7AqofdH5674tJ6rjG4C3BuwXVEnnRNVZYMI Jm3a2F1Z8y2U5EKp771MIyngZYwfI3z02lITbtQdN4GbdF+ZGqs5JAoC2KW9lPPQ7A BM+k8x1RMjGt3712suqNQf4B2MAwrJZCB89OuJh4Iqm1sh9GW4JvdTUH2KT0UfoffJ Ljoi+6yzlIrttuSVU3w8GgAU1baxlsdTy/LBCW2gqmlV9KRQ60hbNpKWwD1bEOXNo3 +ute7IBNOLtQ5SsDXvvBm1z9fDkELeRxT24DBW/rhMUOp8pQHbbFFkcts0eAdSK+Yu S54nWlqX8myfA== Message-ID: Date: Thu, 3 Dec 2026 15:50:08 +0100 X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Subject: Re: [PATCH] iio: accel: kxcjk-1013: Add support for KX022-1020 To: Jakkapong Saksrisuwan , jic23@kernel.org Cc: dlechner@baylibre.com, nuno.sa@analog.com, andy@kernel.org, rayyan@ansari.sh, linux-iio@vger.kernel.org References: <20261202070029.94349-1-me@jakkapong.dev> Content-Language: en-US From: Joshua Crofts In-Reply-To: <20261202070029.94349-1-me@jakkapong.dev> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 02-Dec-26 8:00, Jakkapong Saksrisuwan wrote: > The KX022-1020 is documented in the binding and is used by the Microsoft > msm8226 devices (qcom-msm8226-microsoft-common.dtsi), but the driver has > no entry for it, so the accelerometer is never probed on those boards. > > Support was added once before in > commit d5cbe1502043 ("iio: accel: kxcjk-1013: Add support for KX022-1020") > and reverted in > commit b01b559682f3 ("iio: accel: kxcjk-1013: Revert "Add support for KX022-1020"") > because adding the chip to enum kx_chipset broke the ODR start-up times > of the KX023-1025. The driver now describes each chip with a > struct kx_chipset_info, so that problem no longer exists. > > The Rev 12.0 datasheets of the KX022-1020 and the KX023-1025 have the > same register map, the same CNTL1, ODCNTL (ODR encoding), INC4, WUFC, > INT_REL and CNTL3 descriptions, and the same start-up time table. They > differ in WHO_AM_I (0x14 vs 0x15), which the driver does not check. > So let the KX022-1020 use kx0231025_info, which keeps the INT1 routing > in kxcjk1013_chip_init() working. > > Link: https://fscdn.rohm.com/kionix/en/datasheet/KX022-1020%20Specifications%20Rev%2012.0.pdf > Link: https://fscdn.rohm.com/kionix/en/datasheet/KX023-1025%20Specifications%20Rev%2012.0.pdf I'd make these Datasheet tags, but perhaps this could be amended whilst applying. Reviewed-by: Joshua Crofts -- Kind regards, Joshua Crofts