Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp815574pxb; Fri, 22 Apr 2022 11:46:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNne0NTSJ5wGr3xYW2lT1cyjKx8cx0EkGeiFd3+1C4Y5Ir11mC2nJyDkMHVglyEZpmhRt+ X-Received: by 2002:a17:902:be13:b0:159:8e2:b72d with SMTP id r19-20020a170902be1300b0015908e2b72dmr5890955pls.79.1650653173132; Fri, 22 Apr 2022 11:46:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650653173; cv=none; d=google.com; s=arc-20160816; b=rj0vZs39SKj3dJVqzBsd0FEQgnFW/CiQkkOj/ZtK2rlMyAZITseaERFAtDS3+dhujh 1XjuQtt8teklXSSKLRqbsKeaH1EPfMMLv8riltj4w2kEks1X/HNace729wST7LO1aBgm kk1HleGZ4RF3oucchCyZseYZdx64Wif38ggDzoriNSPIW50osBqVuRtPFjQgLgQ7IKY2 CTe446A0X9kT1y9RvD3ep9k9CNggIzIThzgAU1dplMSl18+hl4UeqKtobVpRKIsWBDcO ICOp48MQHeZ/+KHluOfcUJlU3is3bprFbuuNxcKQ7Mm+hsMZUVn2XD4k0WijI0Ol6eAN HgIQ== 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=Vx0fQIL15yRo1tQ1B3ku9JZaBjnreUllysZQgmgiL3Q=; b=AwyES4KjQsWnq2jzhj8+MQxcOw+jcZHihzhFxAIj5WflOzITxYC0wbpUPPz3wqbW1P ol5ot+wJivS6xeKH82t/r47A2SlGBABzkU13JqYpUBb321u/hIuFCTdpSnXLSkPnoR1R LT+ItsX5heNCIuhSvn+IOCkgarSIRYyMT4bTu6RjFw/igawuFT5BuEyH5v2QSMUaMO2o YK3Ym6ufu7RsGNumwTkWFiv5K2FPbL+haDhLhKECHNSDqTxSQcF9kDCXGkr/44a6i4Uh u4EPyfsfkDxh/AUFLBdLSIlp3zN6RvVGh40ujKeczv+XMkV/uAhnmzZF6Tsiusshiqcc kXnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=Q0rv00JC; 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 q22-20020a632a16000000b0039db957a111si9335236pgq.500.2022.04.22.11.46.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 11:46:12 -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=Q0rv00JC; 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 CA216165EF3; Fri, 22 Apr 2022 11:13:54 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1388390AbiDUN6O (ORCPT + 99 others); Thu, 21 Apr 2022 09:58:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1388321AbiDUN6M (ORCPT ); Thu, 21 Apr 2022 09:58:12 -0400 Received: from mail.sberdevices.ru (mail.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D51C22BB1B; Thu, 21 Apr 2022 06:55:20 -0700 (PDT) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mail.sberdevices.ru (Postfix) with ESMTP id A07805FD06; Thu, 21 Apr 2022 16:55:17 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1650549317; bh=Vx0fQIL15yRo1tQ1B3ku9JZaBjnreUllysZQgmgiL3Q=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version; b=Q0rv00JCvcd+EQczEOKRA9bRPlKgNKE7Y1QjVasvOVqwcM20f11lnPZtgBzKGYUKw XRZT2hEcgLxEqmJNay40LOOvvGJis8d3a7eIccZc70NtSaQsmud2HnJxL7DR4cTQsA 5PtemGvEjCdN1U9FYdz4I1L3GIAykjayuMPmBvsRXlLFBIRCpW1ZVA1yaPwBpsFclp temG3CF9lCjfb5C8zBUU7EJJSvFWFMnX15lZKQ91nDVJfXri5dNFaovsvtX1HCf55C /bvljLoHkLpjIqVcekG9oQq5I4mOE6EB63WlBnWlvg04zmVQDqRk7kkDR+Yw1FOvmd RowmP1v2/KFfA== Received: from S-MS-EXCH01.sberdevices.ru (S-MS-EXCH01.sberdevices.ru [172.16.1.4]) by mail.sberdevices.ru (Postfix) with ESMTP; Thu, 21 Apr 2022 16:55:14 +0300 (MSK) From: Dmitry Rokosov To: Jonathan Cameron CC: "robh+dt@kernel.org" , "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+35bUqz4TVCAgAHnLgA= Date: Thu, 21 Apr 2022 13:55:07 +0000 Message-ID: <20220421135457.ldtsff6ii4nhjkh5@CAB-WSD-L081021.sigma.sbrf.ru> References: <20220419154555.24191-1-ddrokosov@sberdevices.ru> <20220419154555.24191-4-ddrokosov@sberdevices.ru> <20220420095127.000059d4@Huawei.com> In-Reply-To: <20220420095127.000059d4@Huawei.com> 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: <9F4944C50A2B3F4CB31F52FCB5B5F289@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/21 06:36:00 #19322218 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 Hello Jonathan, Thank you for the quick feedback. I completely agree with all of your comments. Please find my notes below. On Wed, Apr 20, 2022 at 09:51:27AM +0100, Jonathan Cameron wrote: > On Tue, 19 Apr 2022 15:45:58 +0000 > Rokosov Dmitry Dmitrievich wrote: >=20 > > Introduce devicetree binding json-schema for MSA311 tri-axial, > > low-g accelerometer driver. > >=20 > > Signed-off-by: Dmitry Rokosov > Hi Dmitry and welcome to IIO. >=20 > Sign off generally matches the From: of the email. > Makes it easier for scripts to check than having different name forms. >=20 Yes, looks like this problem is located on the corporative Exchange server = side. I use DavMail local proxy to send emails, so server changes From: statement= . I have already discussed it with our IT guys, it should be fixed starting f= rom current email. > > --- > > .../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 > > + > > + "#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= func > > + > > + interrupt-names: > > + const: irq >=20 > For a single IRQ giving it a name isn't that useful so I would drop this. >=20 >=20 Based on Documentation/devicetree/bindings/example-schema.yaml I thought interrupt-names must contain irq name regardless of interrupt count, because it helps to understand right property name. I'll delete it for v2. > > + > > +required: > > + - compatible > > + - reg > > + > > +additionalProperties: false > > + > > +examples: > > + - | > > + #include >=20 > Why have this? >=20 I agree, this header is needed for GPIO constant values, which is not used = here. I'll remove it for the v2 then. > > + #include > > + i2c0 { > > + #address-cells =3D <1>; > > + #size-cells =3D <0>; > > + > > + msa311: msa311@62 { > Generic naming required. > accelerometer@62 { >=20 Okay, I will change it in the next version. > > + 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"; >=20 > We don't often have status in the examples.=20 >=20 Sure, status is useful for real dts declarations. It's there because I copied this declaration from by tested real board dts = :-) >=20 > Otherwise looks good to me. >=20 > Thanks, >=20 > Jonathan >=20 > > + }; > > + }; > > 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 --=20 Thank you, Dmitry=