Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1150232rwb; Thu, 6 Oct 2022 09:04:01 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6eakLbMfL4EEXjqpBtiEZ5psazyyruInfb5iIFxPwtwhJw0qNOFq7juoeQ1rgBs4fKj7Nr X-Received: by 2002:a05:6402:51c9:b0:459:6d90:2b19 with SMTP id r9-20020a05640251c900b004596d902b19mr456034edd.219.1665072241094; Thu, 06 Oct 2022 09:04:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665072241; cv=none; d=google.com; s=arc-20160816; b=zXvl1ph8tFIsA+OlQPrOewwjDGMTzFIFRr2vLtF405dlLr3WT9kaMhgI4UGtftfwqK NyuVxrjA5vwl7E2Xq7wujtsFiKc7zA8MScuMPzOLTwKqKCqy4+AgnYS/Cpkzx5+PLb5A /bwtZZcmLOofBwSz62PoDfRonZG3eJoKAJc/dv9qx+6LpaTkJWq4Y0v/QEkHOUh0SIW8 tvhB6JBaPtGe3nhSDuGc/RIHYF4VtDOEQ5t3BT6n8ukBAgyi0OmjjzeWo4pGXCCleqca uYAmRZCE4wwtL5V+YBrOJIHoat3G2cY9pWP0VB2yNYd1CXefG0Rg7lrdkat/SqzVCo1q Mx0w== 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=v5igb7gwPlo9b9xJTbh+HYwPUReqdxp8k/iwdLyM9EU=; b=loXMj7lyRly921yyZkCJYelNno/LOfqBbjI1LuX4K1kODZzAxJw6wCc/jyAtGGEequ y/ZllGAD39sFQE7ZmgAI1xDy4HDo4bU+5E85dkbkb08ZRP9GPLllKnTCnD0//vPXQ3pj YfcPTEk3G+9EYO98zG5qxNvWr3xi5JSNAbHugZGJaqYPzAO/Jbuw0pMP6RYqWoZsBUvD ARk5kSLcImVZvgWe3n8hIgFcafk8NrwWIJYu/7AX6fkIagaeOvGtjO6usp2X9smlJY5p fTX1MfB0jxbKlZ/0i5PltSvGjqAFB6f0Q0o0ABbvz8/6mF0+jK7Xteo3da3zuqNC+Wcj KpEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eYmYAeve; 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 he41-20020a1709073da900b0078d4dcceb5dsi174781ejc.717.2022.10.06.09.03.14; Thu, 06 Oct 2022 09:04:01 -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=eYmYAeve; 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 S231444AbiJFPXP (ORCPT + 99 others); Thu, 6 Oct 2022 11:23:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231386AbiJFPXK (ORCPT ); Thu, 6 Oct 2022 11:23:10 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98BFEB517C for ; Thu, 6 Oct 2022 08:23:08 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id bn8so2619796ljb.6 for ; Thu, 06 Oct 2022 08:23:08 -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=v5igb7gwPlo9b9xJTbh+HYwPUReqdxp8k/iwdLyM9EU=; b=eYmYAeveDQX8Z1ffiggnnncFTrH0EMubH0QAEpO8D/gyMnPafpdvTGP9eXlvnw3D9J w+oQ2nUztfJsZGp2tcgdPc/p+J75svQrhKVDOc+Td3WCwhHTA2drZVu8In+81LMjzjbq uySqjkaH9Z/0S5D54Q9qyt0EsT7YB6Ghb5fMGYczJaW7V6mrDmBZkeQRN4dKFkrD4BrL OPMavks5I21EWR+f+6gcCGPdddaaZLaXEekgD5ZEbyFW+HdX44SANbqIvAazGzk3mLYc /fuZ8o04YBbHa7SqE4pX9unLbv3WT3a96qfGd95H+iUqNXNozqHBKrpt794HpBHjJ0Ts U09g== 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=v5igb7gwPlo9b9xJTbh+HYwPUReqdxp8k/iwdLyM9EU=; b=rXYn1fT8SSdplhAoKda5IcGfGcc4fFo0aCTlZW/jjXBb5iWWNryXZ7O3FwSAYfhkaE 4ZFYPzE04U3Ko/STC7lD4SdDLgLxkjy84vIFCGQvWyk2CxwV6TS01Ck9E3RPdfu2zu/5 XGCZXhwAHEVTE8zhNL7lcw7hN5sAvFXN+reVe2MSbv/YTzK5I4uUzQTrFnkjwoCnTuUq pEqdGxENxF1nMbkJeIf5TKPlzavfWJawq6QCWNmymOgPqtsdEpdBA7ngQVjrWJ5FRlM2 2VS/e8MkDn3erL9+NoS2OhKlu80x6+CPXIoepZ3Kmm/Hx5dw28kGhVY4sHHuSi5RwWZD S4uQ== X-Gm-Message-State: ACrzQf3hvX+baMcmL9SI7ElgQOgtOQDlx8n6/+M3urFthd2NTXLUOvE6 aiSZodQSQo4NrZAVwHUbDG/v7Q== X-Received: by 2002:a05:651c:1509:b0:26c:6194:9c03 with SMTP id e9-20020a05651c150900b0026c61949c03mr74583ljf.314.1665069786936; Thu, 06 Oct 2022 08:23:06 -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 w20-20020a05651c119400b0026ab83298d6sm1910856ljo.77.2022.10.06.08.23.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Oct 2022 08:23:06 -0700 (PDT) Message-ID: Date: Thu, 6 Oct 2022 17:23:05 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: [RFC PATCH v2 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 , Jagath Jog J , Nikita Yushchenko , Cosmin Tanislav , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <80fa42040f385eb47f4f3c71b9b02f643a643e38.1665066397.git.mazziesaccount@gmail.com> From: Krzysztof Kozlowski In-Reply-To: <80fa42040f385eb47f4f3c71b9b02f643a643e38.1665066397.git.mazziesaccount@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.5 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 06/10/2022 16:37, Matti Vaittinen wrote: > KX022A is a 3-axis Accelerometer from ROHM/Kionix. The sensor features > include variable ODRs, I2C and SPI control, FIFO/LIFO with watermark IRQ, > tap/motion detection, wake-up & back-to-sleep events, four acceleration > ranges (2, 4, 8 and 16g) and probably some other cool features. > Thank you for your patch. There is something to discuss/improve. > + > +properties: > + compatible: > + const: kionix,kx022a > + > + reg: > + maxItems: 1 > + > + interrupts: > + minItems: 1 > + maxItems: 2 > + > + interrupt-names: > + minItems: 1 > + maxItems: 2 > + items: > + enum: > + - INT1 > + - INT2 This allows any order, which I assume was your intention. However maybe at least fix it a bit like: minItems: 1 items: - enum: [ int1, int2] - const: int2 OTOH, the names are not really descriptive. Do they match pin names? Best regards, Krzysztof