Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp942219pxb; Fri, 22 Apr 2022 14:58:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQhiMkMvcpcc5sTOrd6N4SJ1aMdyTKqYBME2KdtT89hyt1AY1XNSOFM7t2M/K701x0ygIE X-Received: by 2002:a63:384e:0:b0:374:ae28:71fc with SMTP id h14-20020a63384e000000b00374ae2871fcmr5558036pgn.159.1650664694229; Fri, 22 Apr 2022 14:58:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650664694; cv=none; d=google.com; s=arc-20160816; b=hkUBbN32EQbx5kKJpU4VcYWzTLrMa3CCeJw1VPi/cl/m2Mp99bskfxlID8vIHJfwJH AJslytPQgFUC5jEovihg/SqKPFs/uyPRbTN0c93YvkVWKYpv7RWYbCfrnrKIe8ma02Xl oBMb4ZkSqfs/ITvPhE4bwgUAk6HzK6HQ/dmrcSNRayT3WFh9G9Vx79dCPFTfuZKLHYs+ RxyzuyP5N9J68n2NfwLVv2iEVKzfYuJUQ33PBDUIDb7DbxPscnF+xejTMc9tgSyCn+05 KZLj7X4ezcDJrdVTvtz4z6Aq28xnh5HaZuXyRp04TVw7Mz96hJ/Ab/FfczS+I6PfrSDA 15ow== 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=ueswjV/XHoMLOcUb0AgzqxhPxdZ9Fy3DQLChOJKaPrs=; b=vgRArokrIf96oHWrplNJm3lM4JBVMvYUn0ix0zCIQ5G+07y2F0GjCzNaKilchnOdi3 QAH7WVFw+w6suIBoWfhf7bjztojAYV5LuGVmpziQqAWtDmB6pKEOOwpRdhQMjNdFjKWo lbPS7tNuEleoCw15zGehdtOtTZQ5dt3/w9WipF490/rpDEireUASSV1RVpHnIVg+W5Iz dK9LBVf5e1+6kix6WrRz1XeeAHkepzldIj5k6QQemjV4nnWr9GVCwTyL7uJn2cVPhCIh G5HyKlcANpSlhoRrDbeHXb+l+G3Vz5wRCburqwYXmR2yWM+IZ20K9aY5dD9i6BtCN+Yv oyLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=c232lX1i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id v22-20020a631516000000b003aa9c7afd16si5273690pgl.158.2022.04.22.14.58.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 14:58:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=c232lX1i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=sberdevices.ru Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5C3092266D0; Fri, 22 Apr 2022 13:06:01 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354351AbiDSQHq (ORCPT + 99 others); Tue, 19 Apr 2022 12:07:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354283AbiDSQHV (ORCPT ); Tue, 19 Apr 2022 12:07:21 -0400 Received: from mail.sberdevices.ru (mail.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61157326DB; Tue, 19 Apr 2022 09:04:35 -0700 (PDT) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mail.sberdevices.ru (Postfix) with ESMTP id 045645FD07; Tue, 19 Apr 2022 18:46:54 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1650383214; bh=ueswjV/XHoMLOcUb0AgzqxhPxdZ9Fy3DQLChOJKaPrs=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version; b=c232lX1i9ZwtOvn4+xiTwaAgxMlCkkIhPWeH7ctgh5Ibeel+kFPcn6dtNwIqVephm wrQ1ZzsyCnI4bjy5tnFnMBUyhiS7VmA1yBLbuFGd1cVxQMm9czZYSYFKqbAHj919u4 x0XjYE0cjPIasvsoASnki5WAaa5vR51TivfLh9ryADrGYZbH4byT1iYUPWsJMzkEBA GDYWaliV2/4rjYZdSYAYnYiwV5Glzoe6NK4XXEk69fMitJ2pqR9ZAG1rxqRxeMPBvl GiasCipotYl3OJPtOQu47FKtUVUuvQYef4Tb1Ow/Si45UeVeRcmPdSmr1ioDX4sKuF wlJ6YxM+PEu7g== Received: from S-MS-EXCH02.sberdevices.ru (S-MS-EXCH02.sberdevices.ru [172.16.1.5]) by mail.sberdevices.ru (Postfix) with ESMTP; Tue, 19 Apr 2022 18:46:53 +0300 (MSK) From: Rokosov Dmitry Dmitrievich 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" , Rokosov Dmitry Dmitrievich Subject: [PATCH v1 3/3] dt-bindings: iio: accel: add dt-binding schema for msa311 accel driver Thread-Topic: [PATCH v1 3/3] dt-bindings: iio: accel: add dt-binding schema for msa311 accel driver Thread-Index: AQHYVASQQZC393Ji1keuDd+e+35bUg== Date: Tue, 19 Apr 2022 15:45:58 +0000 Message-ID: <20220419154555.24191-4-ddrokosov@sberdevices.ru> References: <20220419154555.24191-1-ddrokosov@sberdevices.ru> In-Reply-To: <20220419154555.24191-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/04/19 10:34:00 #19304456 X-KSMG-AntiVirus-Status: Clean, skipped X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=no 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 | 64 ++++++++++++++++++= ++++ MAINTAINERS | 1 + 2 files changed, 65 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 00000000..3e4660f --- /dev/null +++ b/Documentation/devicetree/bindings/iio/accel/memsensing,msa311.yaml @@ -0,0 +1,64 @@ +# 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 + #include + i2c0 { + #address-cells =3D <1>; + #size-cells =3D <0>; + + msa311: msa311@62 { + compatible =3D "memsensing,msa311"; + reg =3D <0x62>; + interrupt-parent =3D <&gpio_intc>; + interrupts =3D <29 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names =3D "irq"; + status =3D "okay"; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index c75be17..4227914 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.9.5