Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4459245ioa; Wed, 27 Apr 2022 04:28:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxD2Myq+JYC3krTouB9U7BEVJXeXtkcNTiGbQbsh/5qoNAC3QdZijVXQsvpElpY7dMhQwVP X-Received: by 2002:a17:903:40c6:b0:15d:197d:2abf with SMTP id t6-20020a17090340c600b0015d197d2abfmr14407019pld.89.1651058893071; Wed, 27 Apr 2022 04:28:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651058893; cv=none; d=google.com; s=arc-20160816; b=Lsrr1JXwDofUxPeQLA0vHRcjw2KAb/UZ00rg378bTjZZdUOm8VjpZerIqownTDqPRm d0FsLmDoqPacFv5lGa/5SGbCS/W+HKH0gN/UnsmPHOGq2lR2giFYP8HbiMYLx7lsxeqe 2dxdirxFbV2v9SDDXN93qU0+CxCZIOzr05QZHYeeVV0TrsMqDES4o7jclsOrJleuVKxh yqDJyzmAIHgPsddEvfhouNvbE3qN9QsPNOKIep+C8hruWukpfCs2HEfdYxVBWFRwL8WO atEk8PX8osrnK253mIkolcTOpJ3K6DQSkAnNt10pWfEWyPpnNLcrsDA770pEKpP7wtJ0 TMqA== 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-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=2mztbYGe3irG8fxZ5rjxop8bDyyrOgSYnSdRSoEfjfw=; b=AFmgblS4joaK2/0hsfF/IjkipTLQCWefFZ9qfFNMYsMD/M3JMH06LnX1tMS7BlwXQJ 65pI/+OKys0jbWHV++xCqA46a1MGh+oRp5dd9lKhIV7/RQxAd4l3R4UBKR3ADNbdhLCR MOtZI1OqaBvt42DprNVdWuLFwM5w3G7nncb9IWqJ283pgiF32s+o2vnPJM/JXeWkcHVM oValz9vqPTiSsGDtqow5YIMqVNarYZeUazsc8bnmhF2Um6/k+5ekhNWDaGZMPAU3LSKl XzGdX1zbc7ism/uYqj0crRoeu7k4rPVma+QOatU39eVgwtFKT11Qpixi0PKZykDhMr5+ JLag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b="N8/GFe9o"; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=sberdevices.ru Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id h3-20020a63f903000000b003aa16714acbsi1269117pgi.173.2022.04.27.04.28.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 04:28:12 -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; dkim=pass header.i=@sberdevices.ru header.s=mail header.b="N8/GFe9o"; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=sberdevices.ru Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0889649EED7; Wed, 27 Apr 2022 03:26:48 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232036AbiD0JDA (ORCPT + 99 others); Wed, 27 Apr 2022 05:03:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229573AbiD0JC6 (ORCPT ); Wed, 27 Apr 2022 05:02:58 -0400 Received: from mail.sberdevices.ru (mail.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 864AF1EE1FB; Wed, 27 Apr 2022 01:59:40 -0700 (PDT) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mail.sberdevices.ru (Postfix) with ESMTP id 2080B5FD13; Wed, 27 Apr 2022 11:59:37 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1651049977; bh=2mztbYGe3irG8fxZ5rjxop8bDyyrOgSYnSdRSoEfjfw=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version; b=N8/GFe9oGWqVXdZpcAqhkQTzEuWKGpGs9jS0MJW3KHEnbucix+eZCoP0rBS4fWiDT 9xOKwOFRQ5AHi2ogzhFWnMcA0Fw8YWco2F6LxiRc5CoWXebLrIMsYU5vttsnleITUE 2r/wSk6s4obIP8Rlb4tx7XsxjRJP9n67aW3OXBnYQYRK9IaN+gDqA8mNMjviAQxXUI Ubp1M6xN+abkInQi3e7kBk+QeId/uPq+F8bXwFjxdm6jNOzKxtU7VlxHwuvg8ZZ+G6 1pA/YHY/2EjqCQkskrSz0K77NUz60L9FtC7BfF5BB6hnCLamTYXiy2peGKwUk8Pa6B Wk46sDUbHePEw== Received: from S-MS-EXCH02.sberdevices.ru (S-MS-EXCH02.sberdevices.ru [172.16.1.5]) by mail.sberdevices.ru (Postfix) with ESMTP; Wed, 27 Apr 2022 11:59:36 +0300 (MSK) From: Dmitry Rokosov To: Rob Herring 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 Thread-Topic: [PATCH v1 3/3] dt-bindings: iio: accel: add dt-binding schema for msa311 accel driver Thread-Index: AQHYVASQQZC393Ji1keuDd+e+35bUq0CfseAgADRHQA= Date: Wed, 27 Apr 2022 08:58:45 +0000 Message-ID: <20220427085932.z3l7h2vash4km4r2@CAB-WSD-L081021.sigma.sbrf.ru> References: <20220419154555.24191-1-ddrokosov@sberdevices.ru> <20220419154555.24191-4-ddrokosov@sberdevices.ru> In-Reply-To: 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="us-ascii" Content-ID: <78FB6C8D15AE644680148FCB8B984191@sberdevices.ru> 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/27 03:59:00 #19365489 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 Hi Rob, Thank you for review! I agree with all things you mentioned. It will be fixed in the next v2 patchset. On Tue, Apr 26, 2022 at 03:31:05PM -0500, Rob Herring wrote: > On Tue, Apr 19, 2022 at 03:45:58PM +0000, Rokosov Dmitry Dmitrievich wrot= e: > > Introduce devicetree binding json-schema for MSA311 tri-axial, > > low-g accelerometer driver. > >=20 > > 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/memsens= ing,msa311.yaml > >=20 > > diff --git a/Documentation/devicetree/bindings/iio/accel/memsensing,msa= 311.yaml b/Documentation/devicetree/bindings/iio/accel/memsensing,msa311.ya= ml > > new file mode 100644 > > index 00000000..3e4660f > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/iio/accel/memsensing,msa311.yam= l > > @@ -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 f= or > > + sensitivity consumer applications. It has dynamical user selectable = full > > + scales range of +-2g/+-4g/+-8g/+-16g and allows acceleration measure= ments > > + 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 > > + >=20 > > + "#address-cells": > > + const: 1 > > + > > + "#size-cells": > > + const: 0 >=20 > These apply to 'reg' in a child node, but you don't have child nodes so=20 > drop them. >=20 Ack > > + > > + 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 { >=20 > i2c { >=20 Ack > > + #address-cells =3D <1>; > > + #size-cells =3D <0>; > > + > > + msa311: msa311@62 { >=20 > accelerometer@62 { >=20 Ack > > + 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 DR= IVER > > 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 > >=20 --=20 Thank you, Dmitry=