Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2494540rwb; Mon, 3 Oct 2022 01:17:02 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5MeugynWItQIKFI7k+x8hESLBpU0tKdmrbYKhdY+cu+fu7gUAKfzyihkBxGgHtUZ5OgUPv X-Received: by 2002:a65:56ca:0:b0:439:169f:f027 with SMTP id w10-20020a6556ca000000b00439169ff027mr17490256pgs.580.1664785021799; Mon, 03 Oct 2022 01:17:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664785021; cv=none; d=google.com; s=arc-20160816; b=zDiugLYi0i0ZLtImFmxr+eVTIjcjcra1cMyF7livXC6Agn7svaQ/W1U4de5kT3uK65 S4B5ZJHGG8sVEkNBrtulrLYcx0w/CY07U94Nu31lvB/r/Uhv80S7ESgkYizzVijYDQ3m 4bUyEOYATEjbSawow6CVChK15D/SmkzCVnl90SSO54a37O2yoCU6MD0HFcCk+L4jU6Za Q8tqkyqkFrYEoALmZ7kGX24yjzL/NT+fSxrvK+cIit84ez/Lb2Jo93CvETrIcHT2h/Ad +KW4rGSowpDzglGz0rLn3EjYCud/5pfQdOSXwPoVj2T/gGknK/tQIklCBP3AciOlQP9z G6XA== 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=JZCN+l1Bd5s8HEXunwhs1Z1CSkyF5LvZixdlYY+BVRM=; b=GnxfA6bWO6wf9gug0D9DpmLVcfbZBO4U9DO/foGqFKU2u0nbSQsXyomVSr6pNkPBNQ rYUmuPxuNrjw9EgfHO2eB+0JtMo3jvcMsN6ly3gGMNfZJICcOoQFwb5OPujYLMqVEsk0 aLYOp+pIqZpwJEyUlkNidQMR7ZIcoPpZkBgfRYoLv1wW8QWtPV0e68gPHmYd0c8o1OP0 Y8R1M7Fvz5ruOjORTdHQtdA7+C1IWcKCVv6+z1grnAolQbeSe8bNLuTZ3nyNGYktnhdK p9uS4Av51joJAFMdZTKWWXObZBmKs2wzCYdSZFEL/jbZh8hWfNtDFU+YJ4MHa35Omgoo evPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=H8MJiZaB; 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 iz10-20020a170902ef8a00b001780f0f7ed9si8993504plb.47.2022.10.03.01.16.49; Mon, 03 Oct 2022 01:17: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=H8MJiZaB; 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 S229785AbiJCGzh (ORCPT + 99 others); Mon, 3 Oct 2022 02:55:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229808AbiJCGzO (ORCPT ); Mon, 3 Oct 2022 02:55:14 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0310A40BE0 for ; Sun, 2 Oct 2022 23:54:07 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id bs18so9122067ljb.1 for ; Sun, 02 Oct 2022 23:54:07 -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=JZCN+l1Bd5s8HEXunwhs1Z1CSkyF5LvZixdlYY+BVRM=; b=H8MJiZaBTfvFz3G/GO7dRGmQqLSkUhpThJ0amF8l12XCTerd78eIhuKw+8hGQygCpd Ve7M97N1yD6er5wBx/GTtSho+kyxAgkLPUpHlcNiIFnfMLpliZ3wibx142fKGtFbfZ+Z zBWq+u4vLXa467/Lels3bDM3D292bvJZHcIKOOyGHWBXa5HGdHgzU3anevgDouD11wBc oOS5oDieQ4i0sXhnTMteQGdNhuaNBgvPV5HumA5vLpNfdcaxd6HsM5fyJe4Oqcsl89Ie vEmNG1bFgZnOWzlQ7staLjr2q2RSBUlDY8BZ9fmb4e5FuIyNoGDiho+D0KoRUfipbUOt S+OA== 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=JZCN+l1Bd5s8HEXunwhs1Z1CSkyF5LvZixdlYY+BVRM=; b=YBc1mAHC4syLT9ds/raxR9Bj1Z9FE3MtLspjLf23fht2yeP/LR7Q5LUCoRIuZDms5J twelHWN4oDbJr7+s21FvJ7+x/q9+5ni6XXJG8aZOVZozCHyfjQqW4pOYNGKMBF8HnXGP YMAa8a6hb3uORDa7JtoK0vJdNCKxVkpDVdp2LjmCVx2GzV/J4CtYLZOvameMYpkoyCYo tjmoKHCc5BfKf5a3f1O1Dxzsswkc4Wh7373mtQBq6rbUBuJ7vEDlwEkiiODvvt7ihrUu wmqmrtdK/HwbINeKJZIkVX8xDmsh++S0mNuwMVnFutTL4A2t70A0EWiXj9zw5gI2+6cz Sufg== X-Gm-Message-State: ACrzQf30qwFnHUlJHjAJrHm2pisE9qiwenUsoixywFkCdP6t6TjVyzWi SiccUCJgxMjPSTikDJzDbhZX3w== X-Received: by 2002:a2e:9b90:0:b0:26d:d55f:f1d1 with SMTP id z16-20020a2e9b90000000b0026dd55ff1d1mr1358224lji.465.1664780038334; Sun, 02 Oct 2022 23:53:58 -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 k21-20020a05651210d500b00494618889c0sm1343325lfg.42.2022.10.02.23.53.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 02 Oct 2022 23:53:58 -0700 (PDT) Message-ID: <5c4016f8-f915-a5ce-6213-d50f69699b79@linaro.org> Date: Mon, 3 Oct 2022 08:53:57 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: [PATCH v6 2/3] dt-bindings: iio: adc: add adi,max11410.yaml Content-Language: en-US To: Jonathan Cameron , linux-iio@vger.kernel.org Cc: Ibrahim Tilki , Nuno.Sa@analog.com, Nurettin.Bolucu@analog.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220927141851.279-1-Ibrahim.Tilki@analog.com> <20220927141851.279-3-Ibrahim.Tilki@analog.com> <20221002140652.1d51109a@jic23-huawei> From: Krzysztof Kozlowski In-Reply-To: <20221002140652.1d51109a@jic23-huawei> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.2 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 02/10/2022 15:06, Jonathan Cameron wrote: >>> + interrupts: >>> + minItems: 1 >>> + maxItems: 2 >>> + >>> + interrupt-names: >>> + description: Name of the gpio pin of max11410 used for IRQ >>> + items: >>> + - enum: >>> + - gpio0 >>> + - gpio1 >> >> This is wrong. You said in interrupts you can have two items, but here >> you list only one. I don't know what do you want to achieve here. > > Aim is 0, 1 or 2 interrupts + knowing which ones they are. > Device has two pins that have very similar functionality and board > designers are likely to pick one or the two more or less at random depending > on which trace is easier to route. > > So my guess is this needs minItems, maxItems. The current choice allows 0 or 1 interrupt. If you want 0-2 then it should be: minItems: 1 items: - enum: [gpio0, gpio1] - const: gpio1 This one would also work: minItems: 1 maxItems: 2 items: enum: [gpio0, gpio1] but the order of interrupts should be rather defined, so I would prefer first. Best regards, Krzysztof