Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp27451568rwd; Tue, 4 Jul 2023 03:12:20 -0700 (PDT) X-Google-Smtp-Source: APBJJlH8dXxbfFhbZl4neMM6Zrtwmfk2BjEK0JEnMo2n+rdjRgAFZIdWc4cqT0dB4kItNmvR8aAe X-Received: by 2002:a05:6358:a51:b0:129:c6d6:ce40 with SMTP id 17-20020a0563580a5100b00129c6d6ce40mr8277841rwb.15.1688465540361; Tue, 04 Jul 2023 03:12:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688465540; cv=none; d=google.com; s=arc-20160816; b=WjWZ63c/t436CiE5muajY0eLqAOnO+6AGQLqtObknFgiqNS8esdPr7WL5G6Z/PU50h 2TTxc2AdpgWOQ3vHmiOIJb39ijRo05cAopgnOxKD8Gy+BJf9TNquiZB8Q+Q/s+kaxt7V 3foFt3zSQEM8KKuzPU93bjKul66C8C7einkKej4+NEckGLTDs8ePgHNUR/lLLqINx4NW WDwg8lw9ITng1/oiZmwV25zh+Zd5Vnkv16g7e1HRYPYv/zohW0ZDPRCfuZgLegyZgJQI MIQk+uSBQrA7vIgKvB2Krt4SEhxdsvjxu3NKWVbUdzL9ebeXeHSvD2dmI1JHVxzCZUis QeqA== 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=ERnzPIPRvWevLboQhEVq6zSzhxrqqEGbLmA9tpsiGI0=; fh=PUeCXPHy8sh8reQuZCSx5PTz1W5I1Xd+aM8HQYV2908=; b=k4k8EKdv3BF3Puna6Pl8SrEFVhbmHAL6WMA40wFCeFzBl0kHX8qPGdqD0vAFd3DE75 8lJSQSXzEw2w9XsIsEiK08flIuo6wKTGArOTR1bMUztWfwYrSkoXr4XctVj/27EAnZFR yzYo2nai5AdgiO1Dbm07b1DC4n7nm3EtvJwpc8k2hYBN7k5vd57e3czpflBhce/gekSC PF6u4N4xh3I3NFnLPMbL6q4yvUsZ1KFRBeDJg2Gvf284EDv2+2A6UBUwxpQ7aNIR8MEw Xz6DKY2OzgkfWoNVwtMs/4UGC+zo3zKb1FF5FYzg+dTEqzjQ2TximHw2VAkJHOgF+KQp fJZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=irSJlz54; 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 y193-20020a638aca000000b0055b52ba0a00si10284140pgd.48.2023.07.04.03.12.08; Tue, 04 Jul 2023 03:12:20 -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=irSJlz54; 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 S231540AbjGDJkn (ORCPT + 99 others); Tue, 4 Jul 2023 05:40:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231449AbjGDJkc (ORCPT ); Tue, 4 Jul 2023 05:40:32 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F1C41FDC for ; Tue, 4 Jul 2023 02:38:23 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-992b2249d82so633079466b.1 for ; Tue, 04 Jul 2023 02:38:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688463501; x=1691055501; 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=ERnzPIPRvWevLboQhEVq6zSzhxrqqEGbLmA9tpsiGI0=; b=irSJlz54V83Ic3w9B7kkZVmPaAKj8rOOaqqHxt4z2EndhT+6OFdL5rl1MkfCEmcUk+ U2b3+TQaYECpAxUhcgDPZVbeP7cp3TFOAOkaJ+YG79KoF6emCpXHgWnalOOjl96k8AGO BChhV9m4pIftAdSk9Kp1xjUO6V2DN+iBtuL63QZ8cLHiYbO3Jv4Dy+MG4fJ3Y/JvkmxW mqL67qqV68/4OU3HY+83C8Poen6m1u0qJGosTpTvaiFR854RekzI3K1js02j3ikaa9WU Hesu4hGDWk+U1b7eVMifuWg7maaeU1ydnTd+JRFeYMTltdJ0/71rP0kIpgJELFgP9HlB hS6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688463501; x=1691055501; 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=ERnzPIPRvWevLboQhEVq6zSzhxrqqEGbLmA9tpsiGI0=; b=l2VDOBuGwKtJvP15gOfSo1CEw0Cn1PBDyD8zyeQrsBtfJ0UdiIdRwk3/Kl4yPSCyZb SP1hDhcuufV7YiEx+T2MBkIXTStVHzyM0QAweOGIN/Jv87nwm3rO3x63OLmTISViFeFd 2RCIqu51Lz2wWX/lPAXq0Xp7TSaR/63u+Slo4RpLhXR/MaL93cX+dEwVS0TMzpwGdht8 r5hhpgOlulhPYHKpwiV3WGHjeQbClGikrSh8x8iokuVfZOXL/wyAC8WbxJt52El3K2LK Pvb7LgCa0hm9QNzCu5crKh20+cPMUOpr/HIwrWJhoVYDWKzlngWE4opwentSvvcvjveT kyRw== X-Gm-Message-State: ABy/qLbKY47QQXtxsA/YqhdUI/jDL+qqcu9TgcLXXvhkF80OwD9xe6su ufB40rFP5dbNOC20TiHrgPZM0Q== X-Received: by 2002:a17:906:594b:b0:988:a632:774a with SMTP id g11-20020a170906594b00b00988a632774amr10860901ejr.27.1688463501122; Tue, 04 Jul 2023 02:38:21 -0700 (PDT) Received: from [192.168.1.20] ([178.197.219.26]) by smtp.gmail.com with ESMTPSA id e19-20020a170906249300b0098e4aef0791sm11602644ejb.66.2023.07.04.02.38.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Jul 2023 02:38:20 -0700 (PDT) Message-ID: <1b65e8d1-d5e1-0d6b-1248-d9683be44db8@linaro.org> Date: Tue, 4 Jul 2023 11:38:17 +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: [RESEND v1 1/2] dt-binding: spi: constrain minItems of clocks and clock-names 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 , Linus Walleij References: <20230704092200.85401-1-william.qiu@starfivetech.com> <20230704092200.85401-2-william.qiu@starfivetech.com> From: Krzysztof Kozlowski In-Reply-To: <20230704092200.85401-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,URIBL_BLOCKED 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 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. > --- > 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. > > # 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? Best regards, Krzysztof