Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp5217923rwb; Wed, 21 Sep 2022 05:02:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7CzHtSIEDXCIBPwttwYqqBYgTexW5RLDpw2sYFbnbrI5ns6uRQ9ac3yE7caoR6cTw+473+ X-Received: by 2002:a17:907:d8e:b0:77d:2649:1a78 with SMTP id go14-20020a1709070d8e00b0077d26491a78mr20798361ejc.521.1663761775371; Wed, 21 Sep 2022 05:02:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663761775; cv=none; d=google.com; s=arc-20160816; b=XXyMGvkROaADwu+MXsnyvfR3w/6qKE2Ufgq70NaruGgnK+/Id60Uwc0r53G5b6pSia h/Mku3otXCtB/jez3o28t5tfCQEEholXuABrvbbkg4HFw0BwGVrj9cgpSF4LsSXf1g0p 8v0uLlamVREMwEGuTRL8P7l16wfL7b+LdlkRnPL0r2v9GUcwgh4hbuHWGGyIbZDsY4FS eXTuUscj0cUUcqlimrhjIiFA83N33HzXo7Y2nyooGA8GjxH5NOt8S6EDb86olHcwJ/XX d1OF3BuSsQT6gGFL+tfxRIEdxM7k/ANKzcDcjqNuTiA0JQwzOOipi7lNeigmXJ/AT6pI kzDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=sX0VGnOv15V/mUkTpC6ThB5wqXUnNiQX+K/+Fn8NYpU=; b=PFfln5hXMLkF18cqJm7MtojHXt3ei6LWK/ji9wS5V8ug1a8mqlwwnjHqoi0xzINonh vx4PFUpICABk8jhpkE4rM/KGkLOvYxG9HW19MoKTz0zp76go2ITmALdGb9levzTY5DcO u9MYN3CsJZO4PWiQQ2Sgb3wDXPICYlb2UswbDeQSLrvP19Phb/H/YkLUXbGvyR7k8sw2 kN9l5h9QKxj1aevjOhT3GyJu/+C+ISn6sB+JSE9gOAY8IixGVBKc2lUFk3m3nBazaXKl +3kT8GXqVarD/FI2vDgnt44S/Pn09e5bgkL9ICQSDFg10THn+4msjb1nJGE3qQ1UIOEo JYUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=fbGo9iAG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b7-20020a170906708700b007417a74299fsi1925963ejk.773.2022.09.21.05.02.25; Wed, 21 Sep 2022 05:02:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=fbGo9iAG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229496AbiIULpX (ORCPT + 99 others); Wed, 21 Sep 2022 07:45:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229932AbiIULpR (ORCPT ); Wed, 21 Sep 2022 07:45:17 -0400 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FDD6883EE; Wed, 21 Sep 2022 04:45:15 -0700 (PDT) Received: by mail-lj1-x234.google.com with SMTP id j24so6149670lja.4; Wed, 21 Sep 2022 04:45:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=sX0VGnOv15V/mUkTpC6ThB5wqXUnNiQX+K/+Fn8NYpU=; b=fbGo9iAGa8xYTMTxsMpjRU3Uyt7r68gnZOtk8Uf3A8j3VogQDK8ujH1FdOZfpHICdX pka517jO91fWsth9u9H7FMl0EeLKkKjQt62/s3W/tt86wwTcHRNx6tj8dq8qo+4lk4Xw MhJkNOa0E/SOayM6O2bQjsH5qkZIfLY71XBoppBK6w0PgLSpKp2w6v+PFkxqAgzdSYaI i6fDO1tNsw8UJyzGZRfiPGIQ3LS51TPZM1umo2x11R1dRLrt5EyKt2TV/1CHll9Kn/yn /Q5unIy5OhZSV6o45NZ1kWqAir6wBt+kXoxr+MnnOMxMVhJv+lXKMlsISQ8tPRnPfjXG EqBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=sX0VGnOv15V/mUkTpC6ThB5wqXUnNiQX+K/+Fn8NYpU=; b=dRD4dG0j+Qe08Uk0OXLmBcmGHFCOozawVTOhlkuFWJRO3KYPxKlHVKkhxFvwUcUDkG 5nVre3hkZQnzczHCwTblZd7YMVBY2FU8ihOn6JoqKlb8MzIG8ykbpM1AaQPRU7lCQHXS TI+n1LNnlaeIoX3J3rB2n/01AMvGojdqeo6LZbIDOiYGvr8nSPBQSnU/uKIZKRo7Phs9 w+w5ZAnyNsaMv1JTr+3aAegSii0qSlyZ0fiDjP1cDPoMEojYs5yx+HR1XVbMLpk2LgZu wX+cHyoJIiTQ2RKznIN/EgVeQPvnll8sCV72SaKaYUipDm4uM1uIcdvhKDC6eUsT1t7d H1ZQ== X-Gm-Message-State: ACrzQf0jbMIhUEQyaG2cIF4gotXdW8A2d5u6Ji7QUiMH5P9yU3vVpajC pgcyhfzlCs7Apl3f308Svks= X-Received: by 2002:a05:651c:222c:b0:25f:e654:36e3 with SMTP id y44-20020a05651c222c00b0025fe65436e3mr8445192ljq.20.1663760713051; Wed, 21 Sep 2022 04:45:13 -0700 (PDT) Received: from dc75zzyyyyyyyyyyyyyyt-3.rev.dnainternet.fi (dc75zzyyyyyyyyyyyyyyt-3.rev.dnainternet.fi. [2001:14ba:16f3:4a00::1]) by smtp.gmail.com with ESMTPSA id o17-20020ac24e91000000b0049964f68457sm388161lfr.262.2022.09.21.04.45.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Sep 2022 04:45:12 -0700 (PDT) Date: Wed, 21 Sep 2022 14:45:06 +0300 From: Matti Vaittinen To: Matti Vaittinen , Matti Vaittinen Cc: Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Matti Vaittinen , Andy Shevchenko , Nikita Yushchenko , Cosmin Tanislav , Jagath Jog J , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 3/5] dt-bindings: iio: Add KX022A accelerometer Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="RbbfspudEEx6WiZD" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --RbbfspudEEx6WiZD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable KX022A is a 3-axis Accelerometer from ROHM/Kionix. The senor features include variable ODRs, I2C and SPI control, FIFO/LIFO with watermark IRQ, tap/motion detection, wake-up & back-to-sleep events, four acceleration ranges (2, 4, 8 and 16g) and probably some other cool fatures. Add the basic device tree description for the accelerometer. Only basic accelerometer features are considered as of now - new properties may or may not be needed in the future if rest of the features are to be supported. Signed-off-by: Matti Vaittinen --- .../bindings/iio/accel/kionix,kx022a.yaml | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/accel/kionix,kx02= 2a.yaml diff --git a/Documentation/devicetree/bindings/iio/accel/kionix,kx022a.yaml= b/Documentation/devicetree/bindings/iio/accel/kionix,kx022a.yaml new file mode 100644 index 000000000000..62a0c7991a62 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/accel/kionix,kx022a.yaml @@ -0,0 +1,58 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/accel/kionix,kx022a.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ROHM/Kionix KX022A Accelerometer bindings + +maintainers: + - Matti Vaittinen + +description: | + KX022A is a 3-axis accelerometer supporting +/- 2G, 4G, 8G and 16G range= s, + output data-rates from 0.78Hz to 1600Hz and a hardware-fifo buffering. + KX022A can be accessed either via I2C or SPI. + +properties: + compatible: kionix,kx022a + + reg: + description: + I2C slave address or SPI chip-select. + maxItems: 1 + + interrupts: + maxItems: 1 + + vdd-supply: true + io_vdd-supply: true + + mount-matrix: + description: | + an optional 3x3 mounting rotation matrix. + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + #include + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + accel@1f { + compatible =3D "kionix,kx022a"; + reg =3D <0x1f>; + + interrupt-parent =3D <&gpio1>; + interrupts =3D <29 IRQ_TYPE_LEVEL_LOW>; + + io_vdd-supply =3D <&iovdd>; + vdd-supply =3D <&vdd>; + }; + }; --=20 2.37.1 --=20 Matti Vaittinen, Linux device drivers ROHM Semiconductors, Finland SWDC Kiviharjunlenkki 1E 90220 OULU FINLAND ~~~ "I don't think so," said Rene Descartes. Just then he vanished ~~~ Simon says - in Latin please. ~~~ "non cogito me" dixit Rene Descarte, deinde evanescavit ~~~ Thanks to Simon Glass for the translation =3D]=20 --RbbfspudEEx6WiZD Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEIx+f8wZb28fLKEhTeFA3/03aocUFAmMq+UIACgkQeFA3/03a ocX/9wf/aEyDZ2Tkm81m6dzPPBdWImZn7+sq9NaBVGD8sXolz3sRxag3y60kxImT SB3rMi2t1DFKZxbroYZ0y9c+tbxO0zMBIKpakgatVhcSaHsGxvKehuZT9XClKFai XkE+J2OXWH4yVr/dIFFDt0eL77AteEQPIlOHYJtGE9b7/3Iqe8fc0asJZ7vaFzD1 i9k/1TpXK6NShvTsvTv+c/Z97KT1Wh70TpN/T5YKCyzWDE0fFNP0PHmEP8SN/49t dr13OVd93RfI7mfbKphViB3nDD9o+mqQQIWynI85vXkNM0WuNRf8Ty/xugyjZ6ek sxaRQ/UDyQLs2gQYplTPKTWUqIj4OA== =BX82 -----END PGP SIGNATURE----- --RbbfspudEEx6WiZD--