Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30129982rwd; Thu, 6 Jul 2023 01:03:29 -0700 (PDT) X-Google-Smtp-Source: APBJJlFAVUzbX6WHx3P17+5dtBYEmgkXlWvgtyFKyWOKtHasS45u8NLJQKfvzamuA2TVZDi69+hz X-Received: by 2002:a05:6a00:a14:b0:666:b254:1c9c with SMTP id p20-20020a056a000a1400b00666b2541c9cmr1045290pfh.27.1688630609689; Thu, 06 Jul 2023 01:03:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688630609; cv=none; d=google.com; s=arc-20160816; b=QZxFaPL4MdoHWUaSrqtTt9Tz7HpNi0RM85+dWHCWPwvKAqvUhPLuRbA9Rqa1G4W4LN nCW0ZggWhS5gZhDpk4Jcs/zy+2V2CLS8tD1cNVlpQAS+4TQUY4HhCRSmEnOQHJvPYvBn eP+0YYwswjjWehdQtsu2VZSFlNIYb9sNLvT2MvUuR/HljpvO0OmxXhAPkcRQNw04BWKF rV/eu390Q21M/YQBBLDRFLsDWZkv/tCNCgqtFJFetpNKXZgHFtssv2a9l/yjGJVUEcM+ U2wDnBo/kyHMRpmJB5USWgoYNltbaL9LEx3o6NH8qfZkiW3ZxcQtrVSdC2NdUBCHoS9a RIkg== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=3XPuUPdPd4IL646MDP7xQxkm1mxaIaMz/LLFTlhEzpE=; fh=crRUCaF66uMe1mq3JFdta02oScfgQvPvihkzkMyb6jw=; b=M25/JJmZbZ85X+g1/RZs/c2lcS+kjQzK66vQXKqYQDdakdg4NgWS4RXv5jOOwj6C6e JPgXituU95n/OyFXaUfZ7/QMugbK7I2HJfx/VI2H3LzIiM398s6ymBW5q0tcNKHsNNPZ V3w6F1BdvKy7MBsFMKSVz69qL28GD1XnPw/rAaNlrt+2+qxNnc+DLEwTP6oaoYXjLK43 qSXjIERsRgyIxFGV4JLADvA8zVM0jynppolmZZhi8wrVxvzcwM8JOIb+JIaMAb43/KDL I+zWq8MRo7drWdNL60rXGSRoH17akFenoyDH1gbm/Rdrj/CK3lB0gvg91cTDW/40gUXm AGhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jeihfA3S; 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 f23-20020a635557000000b00553b9b18886si948435pgm.638.2023.07.06.01.03.15; Thu, 06 Jul 2023 01:03:29 -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=jeihfA3S; 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 S229527AbjGFHvk (ORCPT + 99 others); Thu, 6 Jul 2023 03:51:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229528AbjGFHvj (ORCPT ); Thu, 6 Jul 2023 03:51:39 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8ABB310B for ; Thu, 6 Jul 2023 00:51:38 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-992dcae74e0so45124266b.3 for ; Thu, 06 Jul 2023 00:51:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688629897; x=1691221897; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=3XPuUPdPd4IL646MDP7xQxkm1mxaIaMz/LLFTlhEzpE=; b=jeihfA3SSlUzxo1jmrNrjXL158/UeCT7uZNbXEIqrzTux9MU7iS5WGGbJDTyncIKef a5qOL8cxKFTRDK1JEAQhioSHbp+K3JShdU14BfRA+g8bPiK13EUwSpK51+ZbTJLqGH+U EkbIsgnUJso8nWScVjexmDbyyM5QWz0enpCjUOis3Eid+Al+yBXkdYxC/W4mwXD4SIFi P3JuNpBuLAB55CRQAjYRboSOBZmUO0sh3I7xfVVVEj/UYh1WFZX9UyGz5piDNVQyz1Qk EoJTv3RTM97sM2FRGR1Wo0dHQYvUlmcT974XIJe1mdkkhrmFuB4q6NhcjLQUsOyjyc8X h7fA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688629897; x=1691221897; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=3XPuUPdPd4IL646MDP7xQxkm1mxaIaMz/LLFTlhEzpE=; b=cGv7yMW3CIVlOqQ8DsUE3MZ69/3wLXbVULpUYmnzF17iLBZvic4EBaq+pQiDLFmLiN h1yFhakdErtgVYoV7/7k37RpF/bpR4OFEIX3sC89vNY1jgF2hpD5TGLPyMgTEZO4BetJ zj7xF912JLh+m/mCsSwQTNkH6LB7/7l6KgPFqNOTnvWaxMDA3L8HW7CWkHJahobi+FvA i0yy9S8KnmjmXGi+VkLwHSmo8B42HUOg6QAVXA+/4pB+JcT3rgyyH7fJK1AUi54zgu16 bVrt4c/3+8Enj3zjXmvzlHQ4rekdV68GD7liB3VA/5PqZnrjWnfcmUkg+pCCGQiz/lfG JdNw== X-Gm-Message-State: ABy/qLbSyuGLHvqWZBwxqOM5fz2HJYS9We4kbxVaIdD0fFn+lXG80iBg qD4i9rlG4hUaJAvMMpyCTPoViw== X-Received: by 2002:a17:906:5346:b0:992:13c7:56d with SMTP id j6-20020a170906534600b0099213c7056dmr708586ejo.33.1688629897001; Thu, 06 Jul 2023 00:51:37 -0700 (PDT) Received: from [192.168.1.20] ([178.197.219.26]) by smtp.gmail.com with ESMTPSA id lh6-20020a170906f8c600b0098e48ad11f2sm462030ejb.93.2023.07.06.00.51.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Jul 2023 00:51:36 -0700 (PDT) Message-ID: Date: Thu, 6 Jul 2023 09:51:34 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v2 2/3] dt-bindings: clock: amlogic: convert amlogic,gxbb-aoclkc.txt to dt-schema To: Jerome Brunet , Rob Herring , Neil Armstrong Cc: Michael Turquette , Stephen Boyd , Krzysztof Kozlowski , Conor Dooley , Kevin Hilman , Martin Blumenstingl , linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20230705-b4-amlogic-bindings-convert-take2-v2-0-22be915ddc3b@linaro.org> <20230705-b4-amlogic-bindings-convert-take2-v2-2-22be915ddc3b@linaro.org> <20230705195631.GA1732680-robh@kernel.org> <1jttuh5www.fsf@starbuckisacylon.baylibre.com> Content-Language: en-US From: Krzysztof Kozlowski In-Reply-To: <1jttuh5www.fsf@starbuckisacylon.baylibre.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.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,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 On 06/07/2023 09:15, Jerome Brunet wrote: >>> + then: >>> + properties: >>> + clock-names: >>> + minItems: 2 >>> + items: >>> + - const: xtal >>> + - const: mpeg-clk >>> + - const: ext-32k-0 >>> + - const: ext-32k-1 >>> + - const: ext-32k-2 >> >> As the names are always the same, move this to top-level and just set >> the length here (except the constraints are the same as top-level, so >> you can just drop this if/then). > > If this is done, aren't we losing information ? > > For example, "ext-32k-1" would become valid with a g12a as long as the > number of clocks is alright, which it is not. How it would be valid? It would be fourth item but only three are allowed. > > I'm not concerned by the automated verification, more the information > provided to the users, which we used to have in the txt format. No information is lost here, unless you claim that entries are entirely different? Best regards, Krzysztof