Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp4911025rwb; Tue, 20 Sep 2022 23:49:37 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4Risq8MPR054nTAw3MZhyX4K5UL0ISJQec2q2Q+p86kvcQDb4qz8sk/avKSw9geHg3aLqb X-Received: by 2002:a17:907:7b87:b0:781:83bd:cae5 with SMTP id ne7-20020a1709077b8700b0078183bdcae5mr7919575ejc.456.1663742977627; Tue, 20 Sep 2022 23:49:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663742977; cv=none; d=google.com; s=arc-20160816; b=wdDPqCa9gzNtvpEZ8vORKNJ1uec/SBZ0TZo1Qxxjz0Sp74N7j/3WcwZ1+jxlgbfac3 Iu4OBVhq2Fqh85mDV+fStbQrnpvYPMmVCIoc7H4OOtosPW9q+w5Sr3vA950nX4OfsZtM xQ4fwcILNg9j92nm0lSU2mJ8SOFTVp9QT17vSt0cvCTaRdDdh6hKQBWdaUUdfkducXWB eRoEvy52x0M43QhHNMxlgxLWo2rqznD2pXa28p1Fe4/PfTdCLODXSJNCbUVxyfblpVFu M3eyAy6HdR4l5P4qEJYKbvxoqgCjed+v3p2GuqOYfb242fd96NZDlK+q6c5nohP671qr d8fw== 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=K2Vn5G0yTW/j5XgAj9JCoNxrCyRR5X+mY8QlkyyA2rU=; b=nYoyEME1Kj0Xx7Tf3UW1CycsVvpVVDE2mVH9/PCh8DUHwuA+JTqeB2r04jdehC/twA QB1pU7EQe9imdchRxnBjwkYK+h0plotFkarjPvBIP3glo9lG1kDjvZPsPGOP3NuXEd5D IZF5rl3ZCRyqUm27QM+cyt0SMEhL55LdQ35B/Keuh3R0J021DJE2Z49ehl3/AeVl7734 GA8K2XzS2x0hfUKlhAZV1ZzzGN/phrHq1WADFzZnVdm6BC0OB45FHXpazk1W/THBQeM9 wO0RJ+MOCTRzvNYLbiYxTZQyNKoOYw5iA/3uPiN4L8hgkgnAhNmQaUndLngKZUZ/meqR fHYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ub0c82oC; 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 v12-20020aa7d80c000000b0045161c9a31fsi1594597edq.69.2022.09.20.23.49.11; Tue, 20 Sep 2022 23:49:37 -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=Ub0c82oC; 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 S229764AbiIUGUN (ORCPT + 99 others); Wed, 21 Sep 2022 02:20:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229739AbiIUGUL (ORCPT ); Wed, 21 Sep 2022 02:20:11 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7FC45F200 for ; Tue, 20 Sep 2022 23:20:09 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id a8so7462405lff.13 for ; Tue, 20 Sep 2022 23:20:09 -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=K2Vn5G0yTW/j5XgAj9JCoNxrCyRR5X+mY8QlkyyA2rU=; b=Ub0c82oCNX+DnfSTSMugjJOPXrTYCcLmbHxmkNTs8LEwnXNK6neBTaFjmCMw8YbAxO H6VV7KQPSNM2HrnYnCM6wWLEN9moUG6+nzr3/hHoIEC7tzhOyhuVVnKtqNQlOYt6XkL2 F3TlT5GDUIsehcBlq5tvpHTf2pIfT/Uqf+FQEO9g7YGL4THNQ4naUPApcY/7NzIu8uVz SxVT6SIhNyCnBXF/tvHfefliTILIuiRXHNA1340la8yJZKEUafl0RUp8BKD7NsRiVOYF C1CVYyyS0O2TnII2TsmEOnehR3DpjZJs6S89U/+pwTbSMQjGR7FPHgetC4mcBQBjv5G/ e/Aw== 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=K2Vn5G0yTW/j5XgAj9JCoNxrCyRR5X+mY8QlkyyA2rU=; b=EPqJXPpT2hRF6ooggLpe2GuxJFIxd+rWZ2zv6IXG3C84V3vt1FFCb9/esMXSGcMzx6 hdS4RjPdOJmKuQ7TCMLDfIyaUImkcSGpKPGW/9KwSZGXFFjLUlSCI0iUfaPlafosk0Qj 8WPOFQEr//Qvia0am06SuXbQTX2F+H9rALjIwKMlYXkoyVKCweGtuYH+Ibd1OF2Ree0p PEawwG/u2c1s/f1Hrr2wQeZ2o+cngfbIvo98VbGVEcBklPkbiJthvpB6sryHNKIOWW2x hKH5SDGsX6N4DA9ObDgVGXxss6yh0yYtsBqZ1y5zGUvpm9LrMxNrA4BELrXyo/kSMUin 95Ag== X-Gm-Message-State: ACrzQf2fV3gj6FHkvQeG0Dh/KiKDs/9ayZ4PoiNYzACqBaaIpdKTdT9K G9+02gL5AiabEXdcHoFAFqIZEA== X-Received: by 2002:a05:6512:3f01:b0:49f:d13e:3cc7 with SMTP id y1-20020a0565123f0100b0049fd13e3cc7mr3036097lfa.368.1663741207897; Tue, 20 Sep 2022 23:20:07 -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 o16-20020a05651205d000b00492aefd73a5sm295514lfo.132.2022.09.20.23.20.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Sep 2022 23:20:07 -0700 (PDT) Message-ID: Date: Wed, 21 Sep 2022 08:20:06 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH v9,2/7] dt-bindings: thermal: Add dt-binding document for LVTS thermal controllers Content-Language: en-US To: AngeloGioacchino Del Regno , bchihi@baylibre.com, rafael@kernel.org, rui.zhang@intel.com, daniel.lezcano@linaro.org, amitk@kernel.org Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, khilman@baylibre.com, mka@chromium.org, robh+dt@kernel.org, krzk+dt@kernel.org, matthias.bgg@gmail.com, p.zabel@pengutronix.de, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, james.lo@mediatek.com, fan.chen@mediatek.com, louis.yu@mediatek.com, rex-bc.chen@mediatek.com, abailon@baylibre.com References: <20220817080757.352021-1-bchihi@baylibre.com> <20220817080757.352021-3-bchihi@baylibre.com> <716d6471-f0e2-489e-5f9e-9e38e9e7953a@collabora.com> From: Krzysztof Kozlowski In-Reply-To: <716d6471-f0e2-489e-5f9e-9e38e9e7953a@collabora.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.3 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 14/09/2022 14:19, AngeloGioacchino Del Regno wrote: > >> + >> + nvmem-cell-names: >> + minItems: 1 >> + maxItems: 2 >> + description: Calibration efuse cell names for LVTS > > Actually, maxItems is not really two, but it depends on how many > eFuse arrays / nvmem cells we have for each SoC, so I was thinking... > > ...what about doing something like > > nvmem-cell-names: > minItems: 1 > items: > pattern: 'lvts-calib-data[0-9]+$' > > and then, > if: > properties: > compatible: > contains: > enum: > - mediatek,blahblah-something > then: > properties: > nvmem-cell-names: > maxItems: 2 (or 3, 4, 5...) > > P.S.: I haven't tried any binding check on the proposed lines. > Should work, but does not enforce the order, so I would rather propose something longer: properties: nvmem-cell-names: items: - lvts-calib-data0 - lvts-calib-data1 minItems: 1 and then in allOf:if:then set minItems:2 or maxItems:1 Best regards, Krzysztof