Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4380570ioa; Wed, 27 Apr 2022 02:30:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAywGiqFxwnH1WtALHels3v8FXs2Gna0fR+ND+Dvf7CmgOX1c/SdG8RMSK79mSf4FcHon7 X-Received: by 2002:a17:90a:4897:b0:1c7:5fce:cbcd with SMTP id b23-20020a17090a489700b001c75fcecbcdmr42766688pjh.45.1651051816620; Wed, 27 Apr 2022 02:30:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651051816; cv=none; d=google.com; s=arc-20160816; b=AwlIYlM6yFlZAgF4sBX7rh17d3kVgrEYqplBUp1Pb+Jt3YUl2Fub0i3YSXt5BffTPr OSsN/0d2GIJekmDeIH7dhWhnTctdQvcW4GCqTeLQ8Q07QONzNSYCj50M8YNdtjIjV5s9 ZYP1AahFRAtnyEKAetwLvqewPn9x2EtAla/+VN/J4h6C3TlADPEVFWPD6FWKBLRZ4Sbr 2ElviMy4mCdX0Ma595ElgLLrUu4G+jx3wMf1+wgYDELoGZtO/1/COU3dnsC3lrW8OONx SJEKIf9P++AJyrHKXrdpzSKJLKiNWmEQbRi3oJom1k+F3doN1RecX6IUahb9WPwZ7mPk wFPg== 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; bh=wXjPKtNZTtKNBuOy/a9KKwId4T2O7MJMpPr2sIf2PbY=; b=c5cUt0BpX8ajCm4hJ3eKXwou4cmapJGJV2T7sgjUVqSTNAEQqYLfAoEdWjB0htjFRE VkhKTKK57rlJ510qjgqdUmQ0eL5zgTo3soe3GQgiub4kYa6xvA9LYsuFq30SHQvmKh30 09Nuc8X9VJPQgbGJiWb2mdOCN2hB+Als5jjxcnJB8OXPu9qhOosPTNOZ/ot7/KrFENQc jhlOPtgkTwX52q0u1Z25l3pRz6hPxml8H5MQ0h4ExmCvXrgAv5d5c1Oc8ykKLKik/OTV oUznRRJzO476MMASjYDKcZYHVcGCYfxd6qcTQY52speaoVHa9jt4j7fPSWv5MKQh3p6U ae8g== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id lx3-20020a17090b4b0300b001d2827e4df2si5825481pjb.9.2022.04.27.02.30.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 02:30:16 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CE534247A4C; Wed, 27 Apr 2022 02:11:16 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354956AbiDZUeQ (ORCPT + 99 others); Tue, 26 Apr 2022 16:34:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349201AbiDZUeP (ORCPT ); Tue, 26 Apr 2022 16:34:15 -0400 Received: from mail-ot1-f53.google.com (mail-ot1-f53.google.com [209.85.210.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 115DA2CE01; Tue, 26 Apr 2022 13:31:07 -0700 (PDT) Received: by mail-ot1-f53.google.com with SMTP id t6-20020a056830224600b00605491a5cd7so13831238otd.13; Tue, 26 Apr 2022 13:31:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=wXjPKtNZTtKNBuOy/a9KKwId4T2O7MJMpPr2sIf2PbY=; b=U12n1SP9zIMrH0YG+APnlncHzWREQSEJH2W4zoFKtreAW5wpxisVc21qQTBX/cMS06 iT4MXRr/Rw14oZ7dJnqdWvh64mqVnmhWcmeMgz3Z/LpKz1kKuUZ1Sd1tkiugBndoeCDL lg7XoHeZPigLciWAvpPL6uuRNIODb04/9ExnHVnVhnaRA4MoeVWYD0GIdLfqzTdYuma7 HuaqHcUb7AihjH1TSy7d45cQzmZGIpL/5/EOW16v9wxtfadnrVvgqtvXn0JLMX+FCVXo TDwFP/dSRxOtSttxjGLw9oovnvEe44E9Z2NdZrHMHXXw781RtXV0MefDtPN5tACVa7NN 6S7w== X-Gm-Message-State: AOAM530E6VKI/xBcma7dcJhD4zGe9bpv3sOCFz3PVBIJ4XtLmzej+7Ie OkpEutzxaw6yfkz3a+bfXA== X-Received: by 2002:a05:6830:8d:b0:605:4b4f:cdf7 with SMTP id a13-20020a056830008d00b006054b4fcdf7mr9324809oto.45.1651005066307; Tue, 26 Apr 2022 13:31:06 -0700 (PDT) Received: from robh.at.kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id x21-20020a4a6215000000b0033993dc1d65sm6006125ooc.8.2022.04.26.13.31.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Apr 2022 13:31:05 -0700 (PDT) Received: (nullmailer pid 2484879 invoked by uid 1000); Tue, 26 Apr 2022 20:31:05 -0000 Date: Tue, 26 Apr 2022 15:31:05 -0500 From: Rob Herring To: Rokosov Dmitry Dmitrievich Cc: "stano.jakubek@gmail.com" , "shawnguo@kernel.org" , "jic23@kernel.org" , "lars@metafoo.de" , "andy.shevchenko@gmail.com" , "stephan@gerhold.net" , "linux-iio@vger.kernel.org" , "devicetree@vger.kernel.org" , kernel , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v1 3/3] dt-bindings: iio: accel: add dt-binding schema for msa311 accel driver Message-ID: References: <20220419154555.24191-1-ddrokosov@sberdevices.ru> <20220419154555.24191-4-ddrokosov@sberdevices.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220419154555.24191-4-ddrokosov@sberdevices.ru> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,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 On Tue, Apr 19, 2022 at 03:45:58PM +0000, Rokosov Dmitry Dmitrievich wrote: > 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 measurements > + 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 These apply to 'reg' in a child node, but you don't have child nodes so drop them. > + > + reg: > + maxItems: 1 > + description: I2C registers address > + > + interrupts: > + maxItems: 1 > + description: optional I2C int pin can be freely mapped to specific func > + > + interrupt-names: > + const: irq > + > +required: > + - compatible > + - reg > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + i2c0 { i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + msa311: msa311@62 { accelerometer@62 { > + compatible = "memsensing,msa311"; > + reg = <0x62>; > + interrupt-parent = <&gpio_intc>; > + interrupts = <29 IRQ_TYPE_LEVEL_HIGH>; > + interrupt-names = "irq"; > + status = "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 > > MEN A21 WATCHDOG DRIVER > -- > 2.9.5 >