Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.175.65.15 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796318914; b=HWHGgP+AANXhggzS/GUkDT7IG/rWAbOK4J6SY+mCkY2HOHVc1Kh4xe2vKrKa7wtWQTw3 HCRl6gB12lM6ivYxXo7ICPX318Vyy4GwhCQ5ESJzaCtd6G08kcZA2qQ8BWuEa3Qd5foTj ugUVVcFHEWQxnmsknocU6G07CrvE95zlyU8f/wlS9RuWP7/Y0chZdciIJQwIfhjVhp5hB ZfyIJq3b9SMidb9YUjGyayRKucnkIBkI7l+3720gDdgc0ZALe8oMT8bVOBMtmGuZYpNlT MTa7BdgYXPQ6ZEkywjug1MqsOSm7qr9jV7Qh9N0nXd0juPNBeBXyCCkZzyI2D6efDHQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796318914; 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:In-Reply-To:Organization; bh=zMCYahDtFLcC1fhJEU9LQcwqgCK6iyoc+0n8v+Iu7YA=; b=vausEfRoeLNJwPraOBypz5brSVgy8wemMW/NiKnGqj7y8e6F/cUtyVSXZ/nO7hoo8v8R R37drP+bsibn4KtVJMC7ROEfauVs6vMtJR9BiEnZxIi5tkZsv2fk6GT1jB3E9GANshzh/ bgk//UdD8uq+u7vCaLBitYg0TgxKFTNI2CPeQDmCixAtyMfi1hccdrDaomsKygNv8AW1E 9iPce9JAQfzR0I5oH7bIPP8fnaHUAAfFofszfmVbVlBTpuFEdmDzYoy6gXuo+LFsgBhyX m7+5aniV6VLO3+4ClwevXmbU9P+ukLUjXUg6lbKvOcktuZzbJrFmYkCJxavWUx2OIVg== 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=FNG49Ttm; arc=none smtp.remote-ip=198.175.65.15 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.15]) (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 29CAD606A322 for ; Thu, 3 Dec 2026 17:28:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 29CAD606A322 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=FNG49Ttm DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796318914; x=1827854914; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=zMCYahDtFLcC1fhJEU9LQcwqgCK6iyoc+0n8v+Iu7YA=; b=FNG49Ttmm2XE7gbOf7bjwXLjGVhk89+qv7KAIcw6dN7D2l0Xpg4J21ZV JTAA7b2dTSA+k2lKk37sMhpncjGi5vL66IB83NNKTGiRs36VgVV0YLK1Q j624/v+dvorJFkw0ak9byqZX4Wa+rmCEvli4vLrx6hRPLyBIViHB8rwfc IgctTNnISVydk0ijH2RIYAMA1nDsz03a4/lgK18FP5MiQrt6bAqqFexYY PG+Eih69RJu0ScrdKzKyi7ayNmFioB9Q4QDM8wCihaDzjbCyb8sAdx6ob m2y6aqs5f5gquSzmaTCKf1ST3h4SkpOlqfvy095Y2PvF1TOV9xggswfxc g==; X-CSE-ConnectionGUID: JioQutG3SjKoHGU2atTWDg== X-CSE-MsgGUID: dNk0NGqTQtu4IUOC7UwEXw== X-IronPort-AV: E=McAfee;i="6800,10657,11985"; a="5285199" X-IronPort-AV: E=Sophos;i="6.29,77,1794902400"; d="scan'208";a="5285199" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 09:28:33 -0800 X-CSE-ConnectionGUID: R4i7aZrpRSiaw7U5OwRqZQ== X-CSE-MsgGUID: p2po2g/TRKKiO9IIc/WOwQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.29,77,1794902400"; d="scan'208";a="13992245" Received: from inaky-mobl1.amr.corp.intel.com (HELO localhost) ([10.245.244.115]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 09:28:32 -0800 Date: Thu, 3 Dec 2026 19:28:29 +0200 From: Andy Shevchenko To: Jakkapong Saksrisuwan Cc: jic23@kernel.org, dlechner@baylibre.com, nuno.sa@analog.com, andy@kernel.org, rayyan@ansari.sh, linux-iio@vger.kernel.org Subject: Re: [PATCH] iio: accel: kxcjk-1013: Add support for KX022-1020 Message-ID: References: <20261202070029.94349-1-me@jakkapong.dev> 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261202070029.94349-1-me@jakkapong.dev> Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo On Wed, Dec 02, 2026 at 02:00:29PM +0700, 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 Convert them to Datasheet tags. -- With Best Regards, Andy Shevchenko