Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp350265imn; Wed, 3 Aug 2022 06:36:22 -0700 (PDT) X-Google-Smtp-Source: AA6agR61k54jtlRt1hDX87rpcG4wOHmCYgp+0aLx9cqj03Vgvvq97dfMRScK0Wv2T4Hu4mdrou4b X-Received: by 2002:a17:902:7845:b0:16e:d647:a66c with SMTP id e5-20020a170902784500b0016ed647a66cmr18392025pln.64.1659533781715; Wed, 03 Aug 2022 06:36:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659533781; cv=none; d=google.com; s=arc-20160816; b=TwE/pWYI97jdo7ap6Iua8P4SGdbkRdCv32GHg4lvvWD1KKkTo6CNEajXMYonJVVxpv iHvWvr0Sqi5d34yYwp2QMVaTIU3zVT3qpiQ1NdPms1tvOe3afLq9Q3l8gOHa1u0+ye5A IjwWcTJa8WpdbXRSXeRrJ0ROPlNHYM66sxbiSXEKaHwYBPHaEth3WX4QBpeUyiH/edQX gczD5hac2gShrdHvNQrau7cN7nsTAiCTbuqwCqtMsB3CWl3WIf6EFHGamfmPAbTZMGpQ MN0Kz9DghP6WtTPnZORWEgWM/IhynEQqQvh7xI6i7Kj962iWNmg0r8j4OIMyEpWlJjyY Vk7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=8KRzqEDez80a6Fla3YCLE+Yxt/rXo5WEg6+zZJr2i6w=; b=SaLnUL1WHghA3dYcSfwm2fjOpi4a/PTwSMl1TnHdnP+fUD+aNDnxuVIazRNWUw+qeY ec3xh3BSX0kK2UYnv9gJCz7p6G+nZv3NdXyUuj+M3lTYAP22zDvYQag5FRJjDEHj4v9i VyVR9rb4iQb6wGr4s6x5asEqJFe4LnrVwr+VJqaqKXoLCh53N+Vv9fBF81yNpAwLlF1i 8zNzNZdz1BFZTyeIHAZRBWR3703magrbfwJ92l71lgYgYGCuMtJs939mrZQ+abEd4gtD HmR/I0b/yj+Kn1CfmizYDTScUMctHKu+bAO70QETQxEDFmDmnWWTRNlYl0dOjN9nhUg5 fjjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=rt6PYZ8A; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=sberdevices.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s12-20020a056a0008cc00b00528c39ccb81si21107368pfu.277.2022.08.03.06.35.53; Wed, 03 Aug 2022 06:36:21 -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=@sberdevices.ru header.s=mail header.b=rt6PYZ8A; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=sberdevices.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237804AbiHCNLr (ORCPT + 99 others); Wed, 3 Aug 2022 09:11:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237124AbiHCNLp (ORCPT ); Wed, 3 Aug 2022 09:11:45 -0400 Received: from mail.sberdevices.ru (mail.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62162165BF; Wed, 3 Aug 2022 06:11:40 -0700 (PDT) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mail.sberdevices.ru (Postfix) with ESMTP id B5B265FD31; Wed, 3 Aug 2022 16:11:38 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1659532298; bh=8KRzqEDez80a6Fla3YCLE+Yxt/rXo5WEg6+zZJr2i6w=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version; b=rt6PYZ8APP5Yir869gX10E+CmEhHsgw5nIMgV1vef5UVpy4Zyu3ekJK2posW23TXJ wQ5RUAoee6UaEAl1kUG1iaxeqoOhYnk8vZDciL0m6sJmd+SXMzKcHAz8H4m0k8lp03 5T1r2s9RXc2CJ+uO4kL7wVB6hZe0xdldbqOG3ybT/TCXv3rgexF67VdwPQT1WUlI3k KokplLjardyjLiokFKvu5GlU89XQNF4PxrR7GJQQ03g+e1zyBqG2vi47LeAAzuxGU3 VPdHLripXfEeyBVXNc5yHtpTpmeWZ1lGk0e9sgt/H/lmO27sJGhbEkhhzGN/CaCWvL HVVQM3ldR+Q6g== Received: from S-MS-EXCH02.sberdevices.ru (S-MS-EXCH02.sberdevices.ru [172.16.1.5]) by mail.sberdevices.ru (Postfix) with ESMTP; Wed, 3 Aug 2022 16:11:38 +0300 (MSK) From: Dmitry Rokosov To: "robh+dt@kernel.org" , "stano.jakubek@gmail.com" , "shawnguo@kernel.org" , "jic23@kernel.org" , "lars@metafoo.de" , "andy.shevchenko@gmail.com" , "stephan@gerhold.net" CC: "linux-iio@vger.kernel.org" , "devicetree@vger.kernel.org" , kernel , "linux-kernel@vger.kernel.org" , Dmitry Rokosov Subject: [PATCH v4 3/3] dt-bindings: iio: accel: add dt-binding schema for msa311 accel driver Thread-Topic: [PATCH v4 3/3] dt-bindings: iio: accel: add dt-binding schema for msa311 accel driver Thread-Index: AQHYpzqJoQsbpSO7IUSq/BqscJq0cQ== Date: Wed, 3 Aug 2022 13:11:25 +0000 Message-ID: <20220803131132.19630-4-ddrokosov@sberdevices.ru> References: <20220803131132.19630-1-ddrokosov@sberdevices.ru> In-Reply-To: <20220803131132.19630-1-ddrokosov@sberdevices.ru> Accept-Language: ru-RU, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.16.1.12] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-KSMG-Rule-ID: 4 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Status: not scanned, disabled by settings X-KSMG-AntiSpam-Interceptor-Info: not scanned X-KSMG-AntiPhishing: not scanned, disabled by settings X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 1.1.2.30, bases: 2022/08/03 07:41:00 #20041172 X-KSMG-AntiVirus-Status: Clean, skipped X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Introduce devicetree binding json-schema for MSA311 tri-axial, low-g accelerometer driver. Signed-off-by: Dmitry Rokosov --- .../bindings/iio/accel/memsensing,msa311.yaml | 53 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 54 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/accel/memsensing,= msa311.yaml diff --git a/Documentation/devicetree/bindings/iio/accel/memsensing,msa311.= yaml b/Documentation/devicetree/bindings/iio/accel/memsensing,msa311.yaml new file mode 100644 index 000000000000..23528dcaa073 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/accel/memsensing,msa311.yaml @@ -0,0 +1,53 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause + +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/iio/accel/memsensing,msa311.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: MEMSensing digital 3-Axis accelerometer + +maintainers: + - Dmitry Rokosov + +description: | + MSA311 is a tri-axial, low-g accelerometer with I2C digital output for + sensitivity consumer applications. It has dynamical user selectable full + scales range of +-2g/+-4g/+-8g/+-16g and allows acceleration measurement= s + with output data rates from 1Hz to 1000Hz. + Datasheet can be found at following URL + https://cdn-shop.adafruit.com/product-files/5309/MSA311-V1.1-ENG.pdf + +properties: + compatible: + const: memsensing,msa311 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + vdd-supply: true + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + accelerometer@62 { + compatible =3D "memsensing,msa311"; + reg =3D <0x62>; + interrupt-parent =3D <&gpio_intc>; + interrupts =3D <29 IRQ_TYPE_EDGE_RISING>; + vdd-supply =3D <&vcc_5v>; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 010e7d854bf7..4b76052e81cf 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12996,6 +12996,7 @@ MEMSENSING MICROSYSTEMS MSA311 DRIVER M: Dmitry Rokosov L: linux-iio@vger.kernel.org S: Maintained +F: Documentation/devicetree/bindings/iio/accel/memsensing,msa311.yaml F: drivers/iio/accel/msa311.c =20 MEN A21 WATCHDOG DRIVER --=20 2.36.0