Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp28484629rwd; Tue, 4 Jul 2023 20:58:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7kN8e1D4/4fnjLWpd6Tjvmf6ycW3W8UVCnbCCO2Cdd+e04+trtYqUehRNDDGe3MPtuGFYe X-Received: by 2002:ac8:5acf:0:b0:400:83a6:6e7 with SMTP id d15-20020ac85acf000000b0040083a606e7mr18731051qtd.67.1688529506573; Tue, 04 Jul 2023 20:58:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688529506; cv=none; d=google.com; s=arc-20160816; b=RjYarflFaoqHkvlkS73mAp51JV1tFuZLcJ185UB22JjiRS4EMU8BhkKqoBwV9K+yhq 59iA3owck3BfVDfScRm0shWjzaeCx86XaIQuqE/won9F2eoVLhY53XiRNROGr7RsQNlW VbbBAxYeITgk6EmDGwMaSRw9cAqc4rWMWkx8xzsfpyzu+tMtk1wMAZNaw8E1W4MGfMJw /5ZaBU+KOFcBj707rc2uYyD6YywNUKNKNbwnkqHR7UtjYwx3Adh9khHRS2zLU4cSgip+ YQd5GduhHm72eiFx4xgAjQ57cJDjSWDYWkRMJ7ErE2dWSKJeP1YjuJsq/5uW3yQK+HH7 1L2w== 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; bh=IdWiDjIz4dwcfnyFNLMzM4iKuM0IWaQIRBCzYmODexU=; fh=UvyQAWZ9Ly3QLUwE4K4VTJZyYaUKbg3Zdz9RzYWevzw=; b=OAV8H/k/vJlplR/PnAwFNQoVN0zRfss/Eo3Q8XODrybRqu29jWgzgHCbTfKSZkyc9w 94DMR5gNil8uG64kmoCcnZh9+OE6VcveS9QRUSs9tLdGqBEn/pzzQ89vjBeQHnHj/uad h260QHxLs4uxJHEMh4CS7tDVoxT/PN/mZGSCwWLBxHla7ea0nlt6E9gfz9yLSLAmCJSh ReztxUx1V2BNznoXAyEwfCeFtboTxK8LSIhxfAnl/r4S9GR5kpyJ4e73OHIjevBiqcjH L/Uuc09j4jF/4LkDn06amjbutyPPEsooxfeMyfjsx/PQ1YWOYw4TvMkKPpKaTWYjKmOL 0KrQ== 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 o14-20020a63e34e000000b0053f32b910c1si22086424pgj.700.2023.07.04.20.58.12; Tue, 04 Jul 2023 20:58:26 -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 S230446AbjGEDhw (ORCPT + 99 others); Tue, 4 Jul 2023 23:37:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbjGEDhu (ORCPT ); Tue, 4 Jul 2023 23:37:50 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD2DC1A2; Tue, 4 Jul 2023 20:37:45 -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 6E85B24E24B; Wed, 5 Jul 2023 11:37:41 +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, 5 Jul 2023 11:37:41 +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, 5 Jul 2023 11:37:40 +0800 Message-ID: Date: Wed, 5 Jul 2023 11:37:40 +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: [RESEND v1 1/2] dt-binding: spi: constrain minItems of clocks and clock-names To: Krzysztof Kozlowski , , , , CC: Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Emil Renner Berthing , Linus Walleij References: <20230704092200.85401-1-william.qiu@starfivetech.com> <20230704092200.85401-2-william.qiu@starfivetech.com> <1b65e8d1-d5e1-0d6b-1248-d9683be44db8@linaro.org> Content-Language: en-US From: William Qiu In-Reply-To: <1b65e8d1-d5e1-0d6b-1248-d9683be44db8@linaro.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS062.cuchost.com (172.16.6.22) 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/7/4 17:38, Krzysztof Kozlowski wrote: > On 04/07/2023 11:21, William Qiu wrote: >> The SPI controller only need apb_pclk clock to work properly on JH7110 SoC, >> so there add minItems whose value is equal to 1. Other platforms do not >> have this constraint. >> >> Signed-off-by: William Qiu > > I don't get why this is resent, but subject prefix is still wrong. It's > dt-bindings. > Will update. >> --- >> Documentation/devicetree/bindings/spi/spi-pl022.yaml | 11 ++++++++--- >> 1 file changed, 8 insertions(+), 3 deletions(-) >> >> diff --git a/Documentation/devicetree/bindings/spi/spi-pl022.yaml b/Documentation/devicetree/bindings/spi/spi-pl022.yaml >> index 91e540a92faf..42bb34c39971 100644 >> --- a/Documentation/devicetree/bindings/spi/spi-pl022.yaml >> +++ b/Documentation/devicetree/bindings/spi/spi-pl022.yaml >> @@ -11,6 +11,7 @@ maintainers: >> >> allOf: >> - $ref: spi-controller.yaml# >> + - $ref: /schemas/arm/primecell.yaml# > > This looks unrelated, so keep it as separate commit with its own rationale. > Because "arm,primecell-periphid" is need in JH7110 SoC, so I added them in one commit, so do I need to put them in two commit? >> >> # We need a select here so we don't match all nodes with 'arm,primecell' >> select: >> @@ -34,12 +35,16 @@ properties: >> maxItems: 1 >> >> clocks: >> + minItems: 1 >> maxItems: 2 >> >> clock-names: >> - items: >> - - const: sspclk >> - - const: apb_pclk >> + oneOf: >> + - items: >> + - const: apb_pclk >> + - items: >> + - const: sspclk >> + - const: apb_pclk > > Are you sure that your clock is APB pclk in such case? > Yes, in JH7110 SoC is APB pclk in such case. Thanks for taking time to review this patch series. > Best regards, > Krzysztof >