Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp280351ioo; Thu, 26 May 2022 03:37:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqIaa17G+r+SjtKU3vNfHM/HUczNVHtoUJha7YhdLH22qNPZzXI75eRiUacNA4AnrC0aEI X-Received: by 2002:a65:62d0:0:b0:3fa:c6aa:6901 with SMTP id m16-20020a6562d0000000b003fac6aa6901mr8504385pgv.314.1653561426495; Thu, 26 May 2022 03:37:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653561426; cv=none; d=google.com; s=arc-20160816; b=ia2hNd8iRGY2/nxoaZ4Nts5vsYj9g6n+G4TrGbGuc4CkW+mavXIlBho872qTrA0oC6 xLEiGK4DfSEC6ccMQypO5zxrgX+k+wm0A7MhcoT53BXADN678TpUsWWiJcO+P6dbQhNW aZHcqecaO55zKn2h9Or/7Lb7JzwRkeYBqvGVE7lWSjsiUb1VOB3UO8N79FNjfvkBuEiI Cak1xQSD4oaABPg6TO/tE49lhjrPUT0PTqLE15l8haBwxSd7Kp/udCUNn8Iv7S7xGiXo xn6Mbt04izRxcL7a6+oqj64o8gtz25jNoQK3t0VONGkIas/omfne+J0BZ0wMgQAHCaLK WUUA== 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=V4j12VsmH4QPQlwBN6dvPFEoYKoQXvswM7Kd+wCQnqk=; b=XUp2MoHlKujVQG4yVld80Ds61PkzaBiJa78avxWxTKyROjgjheOAHX64nDO1CwJ37h O5Bje4wCuN3P43pgYneIbjljxRZLu6FJdTO6O+FJ0xpKZFd97CsBoIQXIvxsj31/zrT2 SlEbu9lE6F6OQqymMK7pfmqeBR1r3IDMOC48vPLWQJpUbFT1kmCq66eIgh1lL7hSZ7xp uBLX5cxxoXg9zLfBLn6BzFF/kxJ07ck5gnV6RMPfShInDYuokUJmdEPe/bzJnwcMnHy6 hQqqJaeaDpwYfsU6MoA96Ju4lvC+EYmq10PxM7TGyw3EfEIXzbLr0cjpLhmoo1J0AQX8 g1Uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=BbYuoJH1; 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 f24-20020aa78b18000000b00518827f712asi1254822pfd.353.2022.05.26.03.36.53; Thu, 26 May 2022 03:37:06 -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=BbYuoJH1; 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 S1343709AbiEYSQE (ORCPT + 99 others); Wed, 25 May 2022 14:16:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343670AbiEYSPx (ORCPT ); Wed, 25 May 2022 14:15:53 -0400 Received: from mail.sberdevices.ru (mail.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93A32A7E12; Wed, 25 May 2022 11:15:50 -0700 (PDT) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mail.sberdevices.ru (Postfix) with ESMTP id B21B45FD0B; Wed, 25 May 2022 21:15:48 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1653502548; bh=V4j12VsmH4QPQlwBN6dvPFEoYKoQXvswM7Kd+wCQnqk=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version; b=BbYuoJH1Agd72K0ByFONCHlnvXNa1ztBEMTrCEucMsm/1KNZyA1HU6bW+VByRg2RK 5nGbE45+KO3Y86QqiosaF/zZCyZdREtTZoh0nTkoDWFQ0TLM3W4Y2NuOjPFjf3j5/X XHLx8Fun8n4UyvYPx4fQ8yZXeAanQdFkns/x0ZkAaDxtBTmhoIwJca5XgkIa8QGgUP Iza0+OAMo23fOAEOMMfkTmZgeDS+WWnmRNsUaGFqVMZX/GSRvckQ+BEgi00COH836h 0Hc/3kfIl8x+H2aDGXp52/ljoXvONoaydya56J+9YWw47Kk+2S79/f9pk449ifnLBe uu0ViS8wb4aeg== Received: from S-MS-EXCH02.sberdevices.ru (S-MS-EXCH02.sberdevices.ru [172.16.1.5]) by mail.sberdevices.ru (Postfix) with ESMTP; Wed, 25 May 2022 21:15:48 +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 v2 3/3] dt-bindings: iio: accel: add dt-binding schema for msa311 accel driver Thread-Topic: [PATCH v2 3/3] dt-bindings: iio: accel: add dt-binding schema for msa311 accel driver Thread-Index: AQHYcGNsHieJqKs6FU67Uad334M2Ag== Date: Wed, 25 May 2022 18:15:33 +0000 Message-ID: <20220525181532.6805-4-ddrokosov@sberdevices.ru> References: <20220525181532.6805-1-ddrokosov@sberdevices.ru> In-Reply-To: <20220525181532.6805-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/05/25 08:39:00 #19569940 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 --- .../bindings/iio/accel/memsensing,msa311.yaml | 62 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 63 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..8d9cd56288cb --- /dev/null +++ b/Documentation/devicetree/bindings/iio/accel/memsensing,msa311.yaml @@ -0,0 +1,62 @@ +# 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 + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + reg: + maxItems: 1 + description: I2C registers address + + interrupts: + maxItems: 1 + description: optional I2C int pin can be freely mapped to specific fun= c + + interrupt-names: + const: irq + +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>; + interrupt-names =3D "irq"; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 55aeb25c004c..be39e5c214fe 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12482,6 +12482,7 @@ MEMSENSING MICROSYSTEMS MSA311 ACCELEROMETER 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