Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2019554rwb; Fri, 12 Aug 2022 10:25:48 -0700 (PDT) X-Google-Smtp-Source: AA6agR7QFlmj+TuFyo7gK8RUxW2TAh2nOtMT02tlRZxKn7ndfAQ3bSsWOpiIlAk8qZvTf5E3Fjsl X-Received: by 2002:a17:906:7945:b0:72f:e584:10f2 with SMTP id l5-20020a170906794500b0072fe58410f2mr3247784ejo.534.1660325148220; Fri, 12 Aug 2022 10:25:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660325148; cv=none; d=google.com; s=arc-20160816; b=x9O2FIyQmVDRrBzwTa70uCj/36qbZhJB3L9HCeTy1zUtUmR9unaoZTkYsUb/Bv2HcR NaKv1DsUxHzJC9Fnx3hJu92u3rY2tRVlwIiKZYukAJlm+fyTRNotUoO8qTfQCCUQvKoW +HPW6Nj7SaxhjwRLmQbV4evXmfhBiwt0j1kmDM5JeSOlMipmtFCO5pjNsV1Qtzx6UyJc jOmZoQ7tX2sv0bUCZ7LMTFKmrWeL5y7aJjzdKC6zKD8vifZxSQfVcwvyf83fC97AeyU6 oaYne8UBihSG+FHLvwQk0+TAsoVcRSbmKyEBin9qLb1EjT7VmSJpQkdt7E4WJ+mkrx4C PpQw== 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=Bbi+SLMOoMKYhDWFHxpCLS4LEv2765hs3myRdLHQvxg=; b=UcO70gUBxeZ3y3+Sg1i12FxYo3AbP2mmxUU3MNL2h3Zn4kkvEeVh2Hk9B3dnzYLG3b FCFaO1AvZ/K30FXW9ZIwPogtujVD368VqqtnMg7ia9iVE7I2P0Basm1pw5hB52wvKg90 egTTsmNzt5NJ3WhBdvRWdPJdeimiANTiS8KS6Z1LLEYgK2bU/JT0d2ERuIeH2e/RNybQ kfaaWWBbdmCI/Js8fFxX7Qm67YA/2B9m4maw4WHX+KvjwIlYYndli8tEgCPuXJz9hSe9 4ZbQf8iVcQfa6Bq0TnuUh76n61Z7ivxe6rMfcvcbO5DrWLxUfz/bDnB5eWWefXJSakeg UvNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=kWXYHJ8N; 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 hd43-20020a17090796ab00b00734b26a17e8si2992251ejc.36.2022.08.12.10.25.22; Fri, 12 Aug 2022 10:25:48 -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=kWXYHJ8N; 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 S239451AbiHLQxa (ORCPT + 99 others); Fri, 12 Aug 2022 12:53:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239400AbiHLQxG (ORCPT ); Fri, 12 Aug 2022 12:53:06 -0400 Received: from mail.sberdevices.ru (mail.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83639AE9D6; Fri, 12 Aug 2022 09:53:05 -0700 (PDT) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mail.sberdevices.ru (Postfix) with ESMTP id 667C25FD0E; Fri, 12 Aug 2022 19:53:00 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1660323180; bh=Bbi+SLMOoMKYhDWFHxpCLS4LEv2765hs3myRdLHQvxg=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version; b=kWXYHJ8Negj//XuQJMqPl03/EgGlOoTapUgBIqycWvw60hqvZzL1E+QvgSBLR1y2w TNp5Q+o5PfVAkhLSO4QEBIgLoc5dXKYWg+8uFgplZpPnCmr8/ga65p+NHH4lxnGkj2 ggZBS4TvdJpydWaTB5h2ZCbq3+5kTwYT2S5g6PYZxfAbVX8L9VGZ3RXc9JUcdnNY24 DQvQg9+B9fs2UhLloamHlJZh1uNRklXXBT72K2SdA1HnUw8cnzHGO8SHNwfeGz0kMo GXwY4T8/bjwZO/m/xFBicmv55ECXA9zr/j1GUdTZGYsojGI9k1E8MK0iRV/SeNqpGS 9bQY+1Y6Wdgmw== Received: from S-MS-EXCH02.sberdevices.ru (S-MS-EXCH02.sberdevices.ru [172.16.1.5]) by mail.sberdevices.ru (Postfix) with ESMTP; Fri, 12 Aug 2022 19:53:00 +0300 (MSK) From: Dmitry Rokosov To: "akpm@linux-foundation.org" , "jic23@kernel.org" , "robh+dt@kernel.org" , "andriy.shevchenko@linux.intel.com" , "andy.shevchenko@gmail.com" , "christophe.jaillet@wanadoo.fr" , "stano.jakubek@gmail.com" , "shawnguo@kernel.org" , "stephan@gerhold.net" , "daniel.lezcano@linaro.org" , "wsa@kernel.org" , "lars@metafoo.de" , "Michael.Hennerich@analog.com" , "jbhayana@google.com" , "lucas.demarchi@intel.com" , "jani.nikula@intel.com" , "linus.walleij@linaro.org" CC: "linux-iio@vger.kernel.org" , kernel , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Dmitry Rokosov , Rob Herring Subject: [PATCH v5 7/7] dt-bindings: iio: accel: add dt-binding schema for msa311 accel driver Thread-Topic: [PATCH v5 7/7] dt-bindings: iio: accel: add dt-binding schema for msa311 accel driver Thread-Index: AQHYrmvpUOvTEwv3+0e+JUg++8/prg== Date: Fri, 12 Aug 2022 16:52:30 +0000 Message-ID: <20220812165243.22177-8-ddrokosov@sberdevices.ru> References: <20220812165243.22177-1-ddrokosov@sberdevices.ru> In-Reply-To: <20220812165243.22177-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/12 13:28:00 #20103614 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, T_SCC_BODY_TEXT_LINE 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 Reviewed-by: Rob Herring --- .../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