Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp208965ioo; Thu, 26 May 2022 01:39:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJOdD7s9oNWMMri9bPUFjvI+hITiUWq82ygJO5wyD6umwj+pe3mVJyrSqcvmv9PUQZ/5fM X-Received: by 2002:a17:907:1b24:b0:6ff:235c:2ffd with SMTP id mp36-20020a1709071b2400b006ff235c2ffdmr2127307ejc.116.1653554362069; Thu, 26 May 2022 01:39:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653554362; cv=none; d=google.com; s=arc-20160816; b=g1aOTEIXhB4VpW6PCsAV2wQ0NyFtjSIOmpV4I34hvZjTWQ8vfFQcmYF7MSrs9HXsY6 Ckv8F5R9mT0N2TmMBuiv9Uc+/15K4Xvl1umDwDJsUBu2+Yp0+5e534dYt17hO+AqQa2B W9Xi7RF/IBNclg3yIfx2zShNQMeoCFQBHH5B4BFAzmKV7HxJxOCg92EY4zskf3ajAqvr NkcK8UJoIAsXIYL36c8NTRAKUq9QxVOM+fB/nNuGp7QH7ZpAANaVmZw4jKbIY7EJfwCm iFt/K2LjdaXsEbWXf+GeQ04BN5M7nfgYetaSWLPR5yDqZa2LOH+++pDFYxP5aTf3AAEF X1EA== 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=tvWh1ibvCJsyGIVQLT1gENhgJ+AQlRqgCyy8xsbnb1A=; b=lEKYG9+OMGLWqjdukd6+p1Ry3a05piDxVNpVOF70Le6lMcjH+8wPed7N7+u3NW4QZ2 IU1gNYvUXnpWNfted4Kiq4RwQbybDoHX0+G5wnBPZce+VLiFJM1GpWcZ5Qh1E6xv6HPz wald/NQgm2/u50ldfg9/qOcolpeNReDXPLvkQcuyLvQvSdxVVqXbvyJ9T10fnjlkLPEc vdEAteu/t3TU8oa0OegkRErV9hiR9bFt/kdy5vIS6KhV1TssGr+z34eavT93jrh/Dm1S IiBMITqmvBDMwdWjztXlqT2OICqpZyoZMJEjGvDN667ouV2iVDivPZh44zUVUgII88Uw AH2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=SOhR+T1n; 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 nc33-20020a1709071c2100b006fee279c2absi955684ejc.388.2022.05.26.01.38.55; Thu, 26 May 2022 01:39:21 -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=SOhR+T1n; 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 S243811AbiEYSdI (ORCPT + 99 others); Wed, 25 May 2022 14:33:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236476AbiEYSdG (ORCPT ); Wed, 25 May 2022 14:33:06 -0400 Received: from mail.sberdevices.ru (mail.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3332B0D36; Wed, 25 May 2022 11:33:03 -0700 (PDT) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mail.sberdevices.ru (Postfix) with ESMTP id C98E15FD08; Wed, 25 May 2022 21:33:01 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1653503581; bh=tvWh1ibvCJsyGIVQLT1gENhgJ+AQlRqgCyy8xsbnb1A=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version; b=SOhR+T1n5P/4AtlMfTu4x8p53WqEqh0DVuYZm9g4Or4kj/XLp/s9t5kf26XvGsdt6 vd4/Z08nMNdUcmZF/2/SsgE4csUNpSWq4GCVZHH0gVSna+fmfdibBb29y4FTexVwJB 1y2SP17MYLee2aTNYtXX3SmHjnLLALCBv9EiDl/Wk9dkK85EUSlkD0ev+VH91NF2Oq +qAK5FC3RJOQWgpt8SOLXINPiHC6aFwtPQ3ekf3J1SODB+dozKfRqDTHWKLC7mCmqO BRlpUfaFX2Wn9ZE59Yh0i+xObyjSw8uB0Mc7gYp2oopgGFkZV+aMhr41EsBJcRVlqS eSGqBEg1cHLWQ== 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:33:01 +0300 (MSK) From: Dmitry Rokosov To: "robh+dt@kernel.org" , "jic23@kernel.org" CC: "linux-iio@vger.kernel.org" , "devicetree@vger.kernel.org" , kernel , "stano.jakubek@gmail.com" , "shawnguo@kernel.org" , "lars@metafoo.de" , "andy.shevchenko@gmail.com" , "stephan@gerhold.net" , "linux-kernel@vger.kernel.org" Subject: Re: [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: AQHYcGNsHieJqKs6FU67Uad334M2Aq0vuKGA Date: Wed, 25 May 2022 18:32:45 +0000 Message-ID: <20220525183255.lc7hmmcfj47yrxc3@CAB-WSD-L081021.sigma.sbrf.ru> References: <20220525181532.6805-1-ddrokosov@sberdevices.ru> <20220525181532.6805-4-ddrokosov@sberdevices.ru> In-Reply-To: <20220525181532.6805-4-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="us-ascii" Content-ID: <7F17E0A41BA3844FBDBE49EB9ACAC5FF@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/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 Hello Jonathan and Rob, I didn't change two places which you mentioned in the v1 review, please find my comments below. On Wed, May 25, 2022 at 06:15:33PM +0000, Dmitry Rokosov wrote: > + interrupt-names: > + const: irq I stay interrupt-names node here, because otherwise dt_binding_check command shows such a warning: =3D=3D=3D=3D CHECK Documentation/devicetree/bindings/iio/accel/memsensing,msa311.exa= mple.dt.yaml Documentation/devicetree/bindings/iio/accel/memsensing,msa311.example.dt.ya= ml: accelerometer@62: 'interrupt-names' does not match any of the regexes: = 'pinctrl-[0-9]+' =3D=3D=3D=3D I can't delete this node from the example as well, because it's required fo= r msa311 dts i2c irq declaration. Please help me to resolve this problem properly if possible. If we can ignore such warning I'll delete interrupt-names in the next patchset's version. > +examples: > + - | > + #include > + i2c { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + Properties #address-cells and #size-cells are still located in the schema example, because otherwise dt_binding_check raises the below=20 warnings if we delete these properties: =3D=3D=3D=3D=3D DTC Documentation/devicetree/bindings/iio/accel/memsensing,msa311.exa= mple.dt.yaml Documentation/devicetree/bindings/iio/accel/memsensing,msa311.example.dts:2= 7.17-30: Warning (reg_format): /example-0/i2c/accelerometer@62:reg: propert= y has invalid length (4 bytes) (#address-cells =3D=3D 2, #size-cells =3D=3D= 1) Documentation/devicetree/bindings/iio/accel/memsensing,msa311.example.dt.ya= ml: Warning (pci_device_reg): Failed prerequisite 'reg_format' Documentation/devicetree/bindings/iio/accel/memsensing,msa311.example.dt.ya= ml: Warning (pci_device_bus_num): Failed prerequisite 'reg_format' Documentation/devicetree/bindings/iio/accel/memsensing,msa311.example.dt.ya= ml: Warning (simple_bus_reg): Failed prerequisite 'reg_format' Documentation/devicetree/bindings/iio/accel/memsensing,msa311.example.dts:2= 4.13-32.11: Warning (i2c_bus_bridge): /example-0/i2c: incorrect #address-ce= lls for I2C bus Documentation/devicetree/bindings/iio/accel/memsensing,msa311.example.dts:2= 4.13-32.11: Warning (i2c_bus_bridge): /example-0/i2c: incorrect #size-cells= for I2C bus Documentation/devicetree/bindings/iio/accel/memsensing,msa311.example.dt.ya= ml: Warning (i2c_bus_reg): Failed prerequisite 'reg_format' Documentation/devicetree/bindings/iio/accel/memsensing,msa311.example.dt.ya= ml: Warning (i2c_bus_reg): Failed prerequisite 'i2c_bus_bridge' Documentation/devicetree/bindings/iio/accel/memsensing,msa311.example.dt.ya= ml: Warning (spi_bus_reg): Failed prerequisite 'reg_format' Documentation/devicetree/bindings/iio/accel/memsensing,msa311.example.dts:2= 5.30-31.15: Warning (avoid_default_addr_size): /example-0/i2c/accelerometer= @62: Relying on default #address-cells value Documentation/devicetree/bindings/iio/accel/memsensing,msa311.example.dts:2= 5.30-31.15: Warning (avoid_default_addr_size): /example-0/i2c/accelerometer= @62: Relying on default #size-cells value Documentation/devicetree/bindings/iio/accel/memsensing,msa311.example.dt.ya= ml: Warning (unique_unit_address_if_enabled): Failed prerequisite 'avoid_de= fault_addr_size' =3D=3D=3D=3D=3D What is best way to resolve such issues without providing #address-cells and #size-cells values? --=20 Thank you, Dmitry=