Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6295287rwd; Mon, 19 Jun 2023 05:26:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7RUfMBTdnCbzcT4htd0D1aboFgcuFE8p0LLNMUBgCTor4HAEq87KnpztLnkweijgXWW+y2 X-Received: by 2002:a05:6a00:1743:b0:646:f971:b179 with SMTP id j3-20020a056a00174300b00646f971b179mr24080862pfc.16.1687177614821; Mon, 19 Jun 2023 05:26:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687177614; cv=none; d=google.com; s=arc-20160816; b=emSlGznqejCjLH23DYW8618rzYW2xrvNo64pZNNrrCio/OszOJWvHdnh+VJn2upcnx c7BDN05dW2p7Erpu/wjjxralk/q5MHywO+7y2Sm3J1yFABnRKhQIoFwSNfmVIQRq/YMz ti2BsS+t0O/J2NowIQVRyCbkmkcQMGT3iEC1i+/F8tC/VIHBgzmMrcP8ecc6SSeioQVZ +hrxFHQwD2J7iO+8MvCOo3fztKdzbjE8bQqa4TP8EDBLSM9MgJ6F9znXsfuA69YO+HUF uI2r4usC1K38talsayW31SZNpJ8Q96TrZC7VDbh1GEmlCKN0g8znru1BcozgzoYYZyd4 CtXg== 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=f3JGorfIUhRBEEat5SkdMS+cAsBErGeh9mcIh09Qj5Y=; b=Q05b5W5/wibogQw0FgjKzWXieV3cGSSiqB2zfGkk8qD5CRQmFqML+6Ac+UmjGy0nMJ ZxqnP2UlJosMrnx3uhKQakWDD0rDLLNYEdi+getEzA+HOLeflhyZzxzpXxlN/IEykyaW 7HsjnQ4BpuaAY4UN94uUwcF3djyYswA/jkI636HJEtIWP3FIbibToenAUA96+rvMmMjp W5MfNvg2DXE0EQnwYaA+b0PiH0bVAIwvMn8m0wDNS5PjsGOmCwZWJ9BGiI7PL4EXNXRC Hy7fhO+fKbolJNMPAzgXVLL2lQRy/pNdC9jwEYZ0JCJm44f4nHEvBO3wyj7pD+YSAP7N Gc3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ftxfXuW3; 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 e28-20020a056a0000dc00b0065930ad0643si10282376pfj.79.2023.06.19.05.26.40; Mon, 19 Jun 2023 05:26:54 -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=ftxfXuW3; 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 S229542AbjFSMSF (ORCPT + 99 others); Mon, 19 Jun 2023 08:18:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229683AbjFSMSE (ORCPT ); Mon, 19 Jun 2023 08:18:04 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E939D128 for ; Mon, 19 Jun 2023 05:18:02 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-9829b12b80fso529483766b.2 for ; Mon, 19 Jun 2023 05:18:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687177081; x=1689769081; 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:message-id:reply-to; bh=f3JGorfIUhRBEEat5SkdMS+cAsBErGeh9mcIh09Qj5Y=; b=ftxfXuW39arEC753qySrvJyMUiTqn6xXH5WaTT1BEErA00SpJLIGp9w1kBUhU5vEJv f6anxtOmKpET56EN48/cEnd0SwK+yj51n1MEtBCTPp7el9yUoItaJ6F/hFGj4gShuteI BaQ1LQa6nXrDN0P5PelotjCKHziaLP6gEuIS0sK3MPkvSK5q14sHaTbIdMqqeWK4KuUP Fc7Kk3JX16pEdBOl1xbceR7RizKgfzdt849uuItHQfnmyhTplWRPVWhgxectJ2aAwkrY NSApPi7LL9fZJGS3slUXFwI/emASv9VZqaYzA9/0RB6ZswwB0K2OAXTimSVDYDMgSXhI /C8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687177081; x=1689769081; 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:message-id:reply-to; bh=f3JGorfIUhRBEEat5SkdMS+cAsBErGeh9mcIh09Qj5Y=; b=Iu7wjfRaNf7NN0bdAIClTdJ6EN2xSjXJw0VLmIQVsPKguzQSDMZdFOGeb/4Hybyg0N IP2mF/0d4KIkPVCCMKyqBRbt+fwJDbzfVbrj9ssG248eIoQsdx7h4LDP40KFEOnpOG3e dhWjzs2PJZtPZ46iHJWw9rLPDoG7/uGvThceoDsdc8rvG7C6yp3JINirqehpp2mgoHX+ PUyqNnRFUtA8jo/SGdr0Jya0Jr4tx5sMCqZB7gG4k+JZGD4lnu3/YtQKeZI80NLWi1HV OqnFuv2KGvsIppOyoPTZzoRrVsRT+l3KPAi2TeZT9LACbXIvvFqW2XfAVIICv53H4FSC P/9A== X-Gm-Message-State: AC+VfDwbTxr6E67S48vJnvDEQRFaYhQU4YpmSSunuYhtloUt+00kKk0c UXj3oZz7lHmaTZ6df0aHjtb/xg== X-Received: by 2002:a17:907:e8b:b0:988:9b29:5647 with SMTP id ho11-20020a1709070e8b00b009889b295647mr2506074ejc.77.1687177081353; Mon, 19 Jun 2023 05:18:01 -0700 (PDT) Received: from [192.168.1.20] ([178.197.219.26]) by smtp.gmail.com with ESMTPSA id qw19-20020a170906fcb300b00988c3e96294sm1029432ejb.30.2023.06.19.05.17.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 19 Jun 2023 05:18:00 -0700 (PDT) Message-ID: <4937f9c4-a0e0-fd37-d71b-e7488b2a1062@linaro.org> Date: Mon, 19 Jun 2023 14:17:58 +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 v3 1/3] dt-bindings: qspi: cdns,qspi-nor: Add clocks for StarFive JH7110 SoC Content-Language: en-US To: William Qiu , devicetree@vger.kernel.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Cc: Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Emil Renner Berthing , Ziv Xu References: <20230619083517.415597-1-william.qiu@starfivetech.com> <20230619083517.415597-2-william.qiu@starfivetech.com> From: Krzysztof Kozlowski In-Reply-To: <20230619083517.415597-2-william.qiu@starfivetech.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 19/06/2023 10:35, William Qiu wrote: > The QSPI controller needs three clock items to work properly on StarFive > JH7110 SoC, so there is need to change the maxItems's value to 3. Other > platforms do not have this constraint. > > Signed-off-by: William Qiu > Reviewed-by: Hal Feng > Reviewed-by: Conor Dooley > --- > .../bindings/spi/cdns,qspi-nor.yaml | 20 ++++++++++++++++++- > 1 file changed, 19 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml b/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml > index b310069762dd..1b83cbb9a086 100644 > --- a/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml > +++ b/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml > @@ -26,6 +26,15 @@ allOf: > const: starfive,jh7110-qspi > then: > properties: > + clocks: > + maxItems: 3 > + > + clock-names: > + items: > + - const: ref > + - const: ahb > + - const: apb You are duplicating top-level property. Define the items only in one place. If this list is applicable to everything, then in top-level property. > + > resets: > minItems: 2 > maxItems: 3 > @@ -38,6 +47,9 @@ allOf: > > else: > properties: > + clocks: > + maxItems: 1 clock-names is missing. They must be in sync with clocks. What is the first clock? > + > resets: > maxItems: 2 > > @@ -70,7 +82,13 @@ properties: > maxItems: 1 > > clocks: > - maxItems: 1 > + maxItems: 3 You did not test it before sending. minItems is missing. > + > + clock-names: > + items: > + - const: ref > + - const: ahb > + - const: apb > > cdns,fifo-depth: > description: Best regards, Krzysztof