Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp5802551rwb; Wed, 21 Sep 2022 12:39:24 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5zfoaxYXtlqqwGhJeQyGh5BHQ825rb9AxaXQvndjGmJRIfTNVcw253BN3prQ0JNgYQQFzF X-Received: by 2002:a17:906:cc56:b0:779:ed37:b59e with SMTP id mm22-20020a170906cc5600b00779ed37b59emr22064017ejb.536.1663789163810; Wed, 21 Sep 2022 12:39:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663789163; cv=none; d=google.com; s=arc-20160816; b=VxCex3PbMrQhOUDmGZgbSF2TppvVsoxDFCZXF4X5z2efo7oBsdpqwkvQXBL02LvBf0 to70LtiGbiyOEoqJNXY26szsBkIc3JdxzQYcMChziLdbC+UwykvKD3+oSYTFqay4vz8P Cige+P4ZAw1eftrF7oplgkblwrfc+QqdjRn6xgYx67tZe6TkZE9zEWbOwjO5vmN3KF/0 nVBfyniRdjeYLnxzM6m6f2AM+vA28tSUfqa9rbGoH+W3dYOA9+lNhaQoBV49cYHVRRoN LVlEMdIYXIO8H5pPEfopAH2lusJGZlEfO/j4MTagMbrKbpmxFIUKnXL8AD+Cl2tlNBbU +gZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=DsL/1QAW5Bz74NZ7JK4PQf/yeBCXaXFI7fLPgzIIgJ4=; b=xWstl6V1Kk9n+A9Tu2QNANW5Bqs7XTfap1sa+T5aOL08Mla10B4yMpbFNpc0YmLW9m hNNdo1LTa1jFiie/EYjpBbLTLd5LYNqnML6Claa2L5jjldlwYSCNt2gCLEcENR6oZTqv Qjc17MTKK7ObMGm4smSLhq0HUFO2qBvFwX6ICgIFFEg6Fo6qvPcsL/4jHwir4AY1P4BD IwXehZqZTjDMBUMA70+DhyedJCt/2x+LdmEN+564ds+NfrqVJK5QYoKuVXmoRd8ZZbNd bBCxeRV6Xlr5LgYEchOhOK/E7TJAEPyG8pNoRzvV1/o0W4HhfAXrpFM3Z5Qot3+6hbWp AO0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QTCIWf1s; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ho9-20020a1709070e8900b0078248dc1d7asi151373ejc.716.2022.09.21.12.38.57; Wed, 21 Sep 2022 12:39:23 -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=@linaro.org header.s=google header.b=QTCIWf1s; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229872AbiIUTL7 (ORCPT + 99 others); Wed, 21 Sep 2022 15:11:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229805AbiIUTL5 (ORCPT ); Wed, 21 Sep 2022 15:11:57 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A78F5754B8 for ; Wed, 21 Sep 2022 12:11:55 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id j16so10860164lfg.1 for ; Wed, 21 Sep 2022 12:11:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=DsL/1QAW5Bz74NZ7JK4PQf/yeBCXaXFI7fLPgzIIgJ4=; b=QTCIWf1sf8YYJTHRUCzPsvcipWx3NlPq4la99JrxuUSJ6+dCeA1P9nVQtc/kmAHl7Y DM9So4VlJzfCgzpKxBSGKyQPEZJyDkAgL1++XZY3kDeYKTJQCvVZl9TvlsqBZmvVhmb9 JLVBswq48TeMuQRgDGiiSiPGYeJ0jY7TkuAsNfZsqwjrn1eed2dr2ny0+VQIb78q9ie6 ANrQpu6eG1QRDEiC5tPQMyFgOBrZAa+ofcrIPPiSPo7N+Am4U+cc78FVwCBOBw1b3bqD b2r9+3mw4L0fe6hlSUyrxV4e0A670NyLbcuPfNh1menjQTxQ0xtOzRsV6yDB9j5A2Ce6 5v7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=DsL/1QAW5Bz74NZ7JK4PQf/yeBCXaXFI7fLPgzIIgJ4=; b=YJ3YCugaV1pdHD30xUvWDSToBkqmQxokW8ERGNwPkBsq29W23EOs/ZCntGPLYnPrer B2zkV9MtIPtMrxKjjYPUyYOMijnjP0nKxokBYzcazehMkt1hQLhj2TGWpac1X4/O8PsR IbZ7hSyjXpUtd+wDWBS5DGMDN78qS+0m1Q4U7S/cuxudefg5sxqLk8Ivgz2qcDmbcS5R b/ZWHWmVAkK2iQJrPd8DATMzpkJN9kMbd852V9ktuDMA6xrOE4o8B2L9kZvrkF8Ffdhn n8oMLkHnoBCCWR/gwWPccdOcukGdoEn4lX24uwAdRfKYsf6/gGpLB83moy+eVrTFIP+T o7jQ== X-Gm-Message-State: ACrzQf09enw3j6nvAQ3YSmEshneXGPDEk594mpPky1eIlnYvUUkEl+5E xybLmrHNpEFteerp4IHbl6Gv0g== X-Received: by 2002:a05:6512:2006:b0:49f:6087:124a with SMTP id a6-20020a056512200600b0049f6087124amr9099091lfb.163.1663787513970; Wed, 21 Sep 2022 12:11:53 -0700 (PDT) Received: from [192.168.0.21] (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id k10-20020ac257ca000000b004998d9ccb62sm557803lfo.99.2022.09.21.12.11.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 21 Sep 2022 12:11:53 -0700 (PDT) Message-ID: <482c5a54-3d53-5760-fc8e-8aa3b9341707@linaro.org> Date: Wed, 21 Sep 2022 21:11:52 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [RFC PATCH 3/5] dt-bindings: iio: Add KX022A accelerometer Content-Language: en-US To: Matti Vaittinen , Matti Vaittinen Cc: Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Andy Shevchenko , Nikita Yushchenko , Cosmin Tanislav , Jagath Jog J , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 21/09/2022 13:45, Matti Vaittinen wrote: > KX022A is a 3-axis Accelerometer from ROHM/Kionix. The senor features > include variable ODRs, I2C and SPI control, FIFO/LIFO with watermark IRQ, Thank you for your patch. There is something to discuss/improve. > tap/motion detection, wake-up & back-to-sleep events, four acceleration > ranges (2, 4, 8 and 16g) and probably some other cool fatures. s/fatures/features/ > +$id: http://devicetree.org/schemas/iio/accel/kionix,kx022a.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: ROHM/Kionix KX022A Accelerometer bindings Drop "bindings" > + > +maintainers: > + - Matti Vaittinen > + > +description: | > + KX022A is a 3-axis accelerometer supporting +/- 2G, 4G, 8G and 16G ranges, > + output data-rates from 0.78Hz to 1600Hz and a hardware-fifo buffering. > + KX022A can be accessed either via I2C or SPI. > + > +properties: > + compatible: kionix,kx022a Missing const. I wonder how did it pass testing... > + > + reg: > + description: > + I2C slave address or SPI chip-select. Skip description, it's obvious. > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + vdd-supply: true > + io_vdd-supply: true No underscores, so io-vdd-supply > + > + mount-matrix: > + description: | > + an optional 3x3 mounting rotation matrix. > + > +required: > + - compatible > + - reg > + - interrupts > + > +additionalProperties: false > + > +examples: > + - | > + #include > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + accel@1f { Messed up indentation. > + compatible = "kionix,kx022a"; > + reg = <0x1f>; Best regards, Krzysztof