From patchwork Sun Jan 30 03:44:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 12729726 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E07EDC433FE for ; Sun, 30 Jan 2022 03:44:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353909AbiA3Dow (ORCPT ); Sat, 29 Jan 2022 22:44:52 -0500 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:37539 "EHLO wout1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353905AbiA3Dot (ORCPT ); Sat, 29 Jan 2022 22:44:49 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 4E9C33200E79; Sat, 29 Jan 2022 22:44:48 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sat, 29 Jan 2022 22:44:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; bh=hB9+7EnNhFV5urMiaRwrW1JWlNFko0 oUlOFnMx58nQQ=; b=iYA0jYPFdtehRSviRbf0H4zU/5xDFTxR0odwA8pldJZq+/ SZ0XVL8FwcZBipulosOpGx1DGjvomva9XsbxeK4e1AbXcvmoQG4ZPI19Mp9NmytZ anEcZbh6F3qO3vvxUY8BolJTYn65c0jn4bJmNW7b8brQPBtbpSu7Dk9eNeJUxim1 WnH/W3lfQJoRDusOpRBhxvau0MiieO9BYyul+bcNmuKHk7Qg7VzwAN4riWgMA7Jd bxh20zVFXR93Xo0+56yVx3Qofn462X5PCH2oAGJwFOjD+L37QuzH5f8u9rxTdofc pluaFUphzFgE8QjzweAKu3JJJi0Ypgo0/NwL06pQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=hB9+7E nNhFV5urMiaRwrW1JWlNFko0oUlOFnMx58nQQ=; b=PZdX55XE23fa3RVZ+nBbcI ZESXKFYIHaSh51Y3t7GiS8pYz0r+O3M+t89o3w3dm6u4/+XfmF5h9Oq2Dr60DkTg eMdjOah/KAm2u8Ip6QvE01uAhVo7UGGlGmXfAC5ZjhUfNZ6mJfTQstWh5/a1kKTd hl+USDG3uzBua0+F9KsEinSkJIBSD/cukB5d/7OFHqNjfViFmb3kuCKU6qK01P90 F/ikUn8HFLW7KbIT6B/8Mzk/I+AHsWR9HZHDQ1E0rpmJZwkdQOpPEDJ97q6Q/BKZ Hm1Jd7MrVRP2oaG7zRpiYXZyd53dV2Vn6guLQdO+zzaKUMcv2XGf75iagVMRVPBQ == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrfeekgdegvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepufgrmhhuvghl ucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecuggftrf grthhtvghrnhepvdeiteevueettdehuedvueduhfelhffgjeduleeiudevhedugfdttefg heelhefhnecuffhomhgrihhnpehsihhlrghnrdgtohhmrdgtnhenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsrghmuhgvlhesshhhohhllhgr nhgurdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 29 Jan 2022 22:44:47 -0500 (EST) From: Samuel Holland To: Jonathan Cameron , Lars-Peter Clausen , Denis Ciocca , Linus Walleij , Rob Herring , devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, Samuel Holland Subject: [PATCH 1/3] dt-bindings: vendor-prefixes: Add silan vendor prefix Date: Sat, 29 Jan 2022 21:44:39 -0600 Message-Id: <20220130034441.15474-2-samuel@sholland.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220130034441.15474-1-samuel@sholland.org> References: <20220130034441.15474-1-samuel@sholland.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org Hangzhou Silan Microelectronics Co., Ltd. (http://www.silan.com.cn/) is a manufacturer of ICs, including MEMS sensors. Signed-off-by: Samuel Holland --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index 294093d45a23..b923be2c8172 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -1082,6 +1082,8 @@ patternProperties: description: Silicon Image "^silabs,.*": description: Silicon Laboratories + "^silan,.*": + description: Hangzhou Silan Microelectronics Co., Ltd. "^silead,.*": description: Silead Inc. "^silergy,.*": From patchwork Sun Jan 30 03:44:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 12729727 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E1107C43219 for ; Sun, 30 Jan 2022 03:44:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353912AbiA3Doy (ORCPT ); Sat, 29 Jan 2022 22:44:54 -0500 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:47621 "EHLO wout1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353913AbiA3Dox (ORCPT ); Sat, 29 Jan 2022 22:44:53 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 86625320100E; Sat, 29 Jan 2022 22:44:52 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sat, 29 Jan 2022 22:44:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; bh=vdWWCNOtJvWc4sMrKaZZ7I/SeIW2B8 e2LLS4nBVAU2M=; b=kaE7rsUVy8lFlRiBHM2GAdsWjWbwMdRcKligo/vfB27bGP PQCeaZq8ibZXOnspM6W+gfl4ENiSnQOYEo6kJukLVZDyfN457b/BNZ+CTpuzTvat /SKWR24QJySEojggo1/ReKBKFOQfgI9z57Qr2jkvUFkpOGd6VuBp/4nyFch7OF19 ksh/xOhssFGf/72MuE92pKor7CldwrffKMn7HlqwTXTwx2ckq6K3BxsgFbg9TGfG aAGjayYo/bghHpq4vlKd9z2r4zAfzMZi9Q3DB4grdlz71daOkowEgksNEGngczlC P038solEzsrn3z12TFNLlHya3VbGi/yx9ZY92GvQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=vdWWCN OtJvWc4sMrKaZZ7I/SeIW2B8e2LLS4nBVAU2M=; b=EFLXC3mp/1KoJgdgaqkArI z0EylMzESu+zRCeTZFBcOC1o1SGAnmETpfzo+wSKIfRqBaUbymBQ+E56zDtEsVJk kh+3pHF88fPDliu0+T4e1IWuv/ykxGvUtVYFsXGloDXs/RgBlMmuSFR2k13KVnHR c24gKkxubJDuPP5gl016wgG1yV0QUQEuI0Rc7kq0hLQwh9cJzyUiCKD8E2oYczIn FB4T+pOq23aahndi13fxagccE1VS/kQ3/yORce5eKrLK9okbLIoIiWwJZsliAhQj RLytUeuBHX6MwUTx4U8BG8QVVXptNi2juSBCyxhrJk4Xa7p8AQblXummPQyjvCJQ == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrfeekgdegvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepufgrmhhuvghl ucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecuggftrf grthhtvghrnhepudfhjeefvdfhgfefheetgffhieeigfefhefgvddvveefgeejheejvdfg jeehueeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epshgrmhhuvghlsehshhholhhlrghnugdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 29 Jan 2022 22:44:51 -0500 (EST) From: Samuel Holland To: Jonathan Cameron , Lars-Peter Clausen , Denis Ciocca , Linus Walleij , Rob Herring , devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, Samuel Holland Subject: [PATCH 2/3] dt-bindings: iio: st: Add Silan SC7A20 accelerometer Date: Sat, 29 Jan 2022 21:44:40 -0600 Message-Id: <20220130034441.15474-3-samuel@sholland.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220130034441.15474-1-samuel@sholland.org> References: <20220130034441.15474-1-samuel@sholland.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org This chip appears to be a clone of the LIS2DH, as the register bit definitions match exactly. Signed-off-by: Samuel Holland --- Documentation/devicetree/bindings/iio/st,st-sensors.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/iio/st,st-sensors.yaml b/Documentation/devicetree/bindings/iio/st,st-sensors.yaml index 71de5631ebae..70f755041d8a 100644 --- a/Documentation/devicetree/bindings/iio/st,st-sensors.yaml +++ b/Documentation/devicetree/bindings/iio/st,st-sensors.yaml @@ -24,6 +24,7 @@ properties: oneOf: - description: STMicroelectronics Accelerometers enum: + - silan,sc7a20 - st,h3lis331dl-accel - st,lis2de12 - st,lis2dw12 From patchwork Sun Jan 30 03:44:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 12729728 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9269CC433FE for ; Sun, 30 Jan 2022 03:45:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353933AbiA3Do7 (ORCPT ); Sat, 29 Jan 2022 22:44:59 -0500 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:48187 "EHLO wout1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353926AbiA3Do5 (ORCPT ); Sat, 29 Jan 2022 22:44:57 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id C9AAE320167D; Sat, 29 Jan 2022 22:44:56 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Sat, 29 Jan 2022 22:44:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; bh=kK2U+mdU12rx5tRGN21QFrTCFOKPO9 nuqkez8Dekhy8=; b=oZ71AkN+cHDUSGHiri2Z2yTOYRp8ht+X40eNJfO8EIVdC+ NCiGJ//t7Whz8JbdrJjGlM7Z/GdbQkts0RdEpyeLu6VEuoz54Pm42s5A5pX+kkPY HUBuuDAlgmg1taDxb0HhH95PAChY5YqgaTTI6+Ar/+147MvEGbHdQm0nZ8Vsio7A OUhTwmfd+Re5tjpGtDBR5pxAHfUxRcGTTlzNpiUhihOrtHe8M7iLCGnNYpW1ZaWJ adEHD9kgPUyalfPE9cflKk+cWUlBKS1JdNaVKdSXIQJ9t/C4SS/+wIxQc1bgyuV5 NAV7q6X+GWb0fLAq5kfpuCSzyigfXA1UlvJqC3Kw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=kK2U+m dU12rx5tRGN21QFrTCFOKPO9nuqkez8Dekhy8=; b=f+u4N1gzjm8vqDlHnFi0is dM/o51La+zQHMvtKYKktIoEaCcYmhEZoJeMyO2HlqbyCJl79PDkZrCTW1EQDsrOX hfUF5zwZJ1A1+xR3PKLItjQAcxQK9Is4arM5QqTujO8xdX2UmXNq96y2eZZE5C9c zLaS8EHvIIUtjDUuig+CzBfFi6VCqjQs5hRyxK4H93AUJgknGn6kKdul6W3RHTvL 53tBHL1PSKI6S+nw69Pb3NPPXjyCztrC8/KYHUu3LAUpcg8mz25F/ZYTCbjyh8Pb fQcW8mPCtPHtzjN577QBpQqW3MuGNfCWUFz1GKY9SmqjQCq7niQzz/+ePErWyVMA == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrfeekgdegvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepufgrmhhuvghl ucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecuggftrf grthhtvghrnhepudfhjeefvdfhgfefheetgffhieeigfefhefgvddvveefgeejheejvdfg jeehueeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epshgrmhhuvghlsehshhholhhlrghnugdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 29 Jan 2022 22:44:55 -0500 (EST) From: Samuel Holland To: Jonathan Cameron , Lars-Peter Clausen , Denis Ciocca , Linus Walleij , Rob Herring , devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, Samuel Holland Subject: [PATCH 3/3] iio: accel: st_accel: Add support for Silan SC7A20 Date: Sat, 29 Jan 2022 21:44:41 -0600 Message-Id: <20220130034441.15474-4-samuel@sholland.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220130034441.15474-1-samuel@sholland.org> References: <20220130034441.15474-1-samuel@sholland.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org This chip appears to be a clone of the LIS2DH. The new description is a copy of the LIS2DH's description with a different WAI value. Signed-off-by: Samuel Holland --- drivers/iio/accel/st_accel.h | 2 + drivers/iio/accel/st_accel_core.c | 79 +++++++++++++++++++++++++++++++ drivers/iio/accel/st_accel_i2c.c | 5 ++ 3 files changed, 86 insertions(+) diff --git a/drivers/iio/accel/st_accel.h b/drivers/iio/accel/st_accel.h index 8750dea56fcb..00e056c21bfc 100644 --- a/drivers/iio/accel/st_accel.h +++ b/drivers/iio/accel/st_accel.h @@ -36,6 +36,7 @@ enum st_accel_type { LIS3DHH, LIS2DE12, LIS2HH12, + SC7A20, ST_ACCEL_MAX, }; @@ -61,6 +62,7 @@ enum st_accel_type { #define LIS3DE_ACCEL_DEV_NAME "lis3de" #define LIS2DE12_ACCEL_DEV_NAME "lis2de12" #define LIS2HH12_ACCEL_DEV_NAME "lis2hh12" +#define SC7A20_ACCEL_DEV_NAME "sc7a20" #ifdef CONFIG_IIO_BUFFER int st_accel_allocate_ring(struct iio_dev *indio_dev); diff --git a/drivers/iio/accel/st_accel_core.c b/drivers/iio/accel/st_accel_core.c index 31ea19d0ba71..d9aa0ff1922b 100644 --- a/drivers/iio/accel/st_accel_core.c +++ b/drivers/iio/accel/st_accel_core.c @@ -1087,6 +1087,85 @@ static const struct st_sensor_settings st_accel_sensors_settings[] = { .multi_read_bit = true, .bootime = 2, }, + { + .wai = 0x11, + .wai_addr = ST_SENSORS_DEFAULT_WAI_ADDRESS, + .sensors_supported = { + [0] = SC7A20_ACCEL_DEV_NAME, + }, + .ch = (struct iio_chan_spec *)st_accel_12bit_channels, + .odr = { + .addr = 0x20, + .mask = 0xf0, + .odr_avl = { + { .hz = 1, .value = 0x01, }, + { .hz = 10, .value = 0x02, }, + { .hz = 25, .value = 0x03, }, + { .hz = 50, .value = 0x04, }, + { .hz = 100, .value = 0x05, }, + { .hz = 200, .value = 0x06, }, + { .hz = 400, .value = 0x07, }, + { .hz = 1600, .value = 0x08, }, + }, + }, + .pw = { + .addr = 0x20, + .mask = 0xf0, + .value_off = ST_SENSORS_DEFAULT_POWER_OFF_VALUE, + }, + .enable_axis = { + .addr = ST_SENSORS_DEFAULT_AXIS_ADDR, + .mask = ST_SENSORS_DEFAULT_AXIS_MASK, + }, + .fs = { + .addr = 0x23, + .mask = 0x30, + .fs_avl = { + [0] = { + .num = ST_ACCEL_FS_AVL_2G, + .value = 0x00, + .gain = IIO_G_TO_M_S_2(1000), + }, + [1] = { + .num = ST_ACCEL_FS_AVL_4G, + .value = 0x01, + .gain = IIO_G_TO_M_S_2(2000), + }, + [2] = { + .num = ST_ACCEL_FS_AVL_8G, + .value = 0x02, + .gain = IIO_G_TO_M_S_2(4000), + }, + [3] = { + .num = ST_ACCEL_FS_AVL_16G, + .value = 0x03, + .gain = IIO_G_TO_M_S_2(12000), + }, + }, + }, + .bdu = { + .addr = 0x23, + .mask = 0x80, + }, + .drdy_irq = { + .int1 = { + .addr = 0x22, + .mask = 0x10, + }, + .addr_ihl = 0x25, + .mask_ihl = 0x02, + .stat_drdy = { + .addr = ST_SENSORS_DEFAULT_STAT_ADDR, + .mask = 0x07, + }, + }, + .sim = { + .addr = 0x23, + .value = BIT(0), + }, + .multi_read_bit = true, + .bootime = 2, + }, }; /* Default accel DRDY is available on INT1 pin */ diff --git a/drivers/iio/accel/st_accel_i2c.c b/drivers/iio/accel/st_accel_i2c.c index c0ce78eebad9..7f5888570e87 100644 --- a/drivers/iio/accel/st_accel_i2c.c +++ b/drivers/iio/accel/st_accel_i2c.c @@ -107,6 +107,10 @@ static const struct of_device_id st_accel_of_match[] = { .compatible = "st,lis2hh12", .data = LIS2HH12_ACCEL_DEV_NAME, }, + { + .compatible = "silan,sc7a20", + .data = SC7A20_ACCEL_DEV_NAME, + }, {}, }; MODULE_DEVICE_TABLE(of, st_accel_of_match); @@ -142,6 +146,7 @@ static const struct i2c_device_id st_accel_id_table[] = { { LIS3DE_ACCEL_DEV_NAME }, { LIS2DE12_ACCEL_DEV_NAME }, { LIS2HH12_ACCEL_DEV_NAME }, + { SC7A20_ACCEL_DEV_NAME }, {}, }; MODULE_DEVICE_TABLE(i2c, st_accel_id_table);