Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp8940287rwd; Wed, 21 Jun 2023 00:28:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ66AzLgx9XgbSNaLuLv0my7WRLvYf+4Gc0ETyPvSIxjoQ0Hp5mXc8oGo/96I63ZNbGxX94z X-Received: by 2002:a05:620a:4552:b0:762:1b77:c349 with SMTP id u18-20020a05620a455200b007621b77c349mr20306796qkp.31.1687332497916; Wed, 21 Jun 2023 00:28:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687332497; cv=none; d=google.com; s=arc-20160816; b=Fi9bjVODGjeeBXTpqMtVvMQ6e2CNxLQe4UyiVvvuhi4HUSwPmqaQ3Ovk7FtuVLuLS+ MADVJkVJImmeU7K0Hs+XLKqUK+E+wBoC4HmA4KwPpwoLoWl51LlZ//hs8Ih1jkxtOlB7 O/Isk8c/dBW8tXpvYuHNi3XHNnGANyNhciVlpE0LwIMcYD7f/Onhj/hZv0PjVoQNb6ST Uxzx+1EfcLaTWSOSKONCLyGqRgl0C0RsPb+3iIhHD0PMW2kq1iXD5nEwPzMXTAGelxrx vV34GCJjdBi0Eb554zybCJRdLJYeGwg4+NIdXkpwBCDe17lTHS4xfrJGaxE1OiI6kR3G EhqQ== 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; bh=MUvjLLBm1PHcmDcLSWASx6NacKD/ibLZrgxWB+br+nU=; b=YWlyO8WSj7qrold0R+m07IqN6shIKEX9bmrL7szGF76dDQsGtwjcT68VJDk0xNC1MT 3QmcR/rVhaQPs5TkuP7c1eg/n4hPLqfHSZLlZeiAnJu2AP+LnpdFVHCK90nGsV7A+4aw /+dJFWag1+vMFsbcma89Nurq6yC+RVNSSaw6gLE6khK0MAySizkN5mFyobtgeXXsldZ3 /tS2bfqEQez3Joki5uwFiUu9sUJtIXUJ7QYY4In0zKLDHubGSRB/fB2e+SZfjLXdnXv+ kTG77i4kd4v8q5X4WInJDMlFiTvGzBQqMjzGQWZ2Oqm4W1lFG/hHZvyn2RKh1Qr/nTq1 kNUg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g19-20020a633753000000b005533c53f577si3297558pgn.138.2023.06.21.00.28.06; Wed, 21 Jun 2023 00:28:17 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230520AbjFUGrY (ORCPT + 99 others); Wed, 21 Jun 2023 02:47:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229716AbjFUGqr (ORCPT ); Wed, 21 Jun 2023 02:46:47 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 901D41FF2; Tue, 20 Jun 2023 23:45:15 -0700 (PDT) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id E998E24E1AC; Wed, 21 Jun 2023 14:45:13 +0800 (CST) Received: from EXMBX068.cuchost.com (172.16.6.68) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 21 Jun 2023 14:45:13 +0800 Received: from [192.168.120.57] (171.223.208.138) by EXMBX068.cuchost.com (172.16.6.68) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 21 Jun 2023 14:45:12 +0800 Message-ID: Date: Wed, 21 Jun 2023 14:45:11 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; 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: Krzysztof Kozlowski , , , , 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> <4937f9c4-a0e0-fd37-d71b-e7488b2a1062@linaro.org> From: William Qiu In-Reply-To: <4937f9c4-a0e0-fd37-d71b-e7488b2a1062@linaro.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS063.cuchost.com (172.16.6.23) To EXMBX068.cuchost.com (172.16.6.68) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, 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 2023/6/19 20:17, Krzysztof Kozlowski wrote: > 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. > Only in JH7110 SoC need there clocks, other platforms do not have this constraint. So I need to duplicating 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? > But there are no clock-names before, should I add it? >> + >> 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. > I will add it. As for other platforms, should I use enum to constraint the clocks? >> + >> + clock-names: >> + items: >> + - const: ref >> + - const: ahb >> + - const: apb > > >> >> cdns,fifo-depth: >> description: > > Best regards, > Krzysztof > Thanks for taking time to review this patches series. Best regards, William