Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp27412062rwd; Tue, 4 Jul 2023 02:34:15 -0700 (PDT) X-Google-Smtp-Source: APBJJlHNjGqYnVcirUUDixOoCta/DwnSHguSHfAYmozlSVp/NrAqC9jmtZqPPrXAZiwZ9YSV4oEQ X-Received: by 2002:a17:903:2594:b0:1b8:6900:a368 with SMTP id jb20-20020a170903259400b001b86900a368mr13138544plb.66.1688463254947; Tue, 04 Jul 2023 02:34:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688463254; cv=none; d=google.com; s=arc-20160816; b=SZHRBCsEdeblCT8hH/oW9eH9bi1HKpaAg9U2UNvTrWLQHBW7kJjfr9V7sie+SAb0T9 pu4Xrz0mf454xOHrTN/ZYm7Djm+6ECotJzhR/UezXKuPcL7v9zC5qAF6IJh5rxf/ffhB Vqgp65S2e2Nn6rcOLmtQXBIUuO+PWx2+NfaXCMHapJP6Yk6wCdBY+7MuaVacz7zJbUw5 W/vrc7eerUZa9T0tHVjBBZX8eMIW0fQB0HHPgnT8IuzkNCPF5Dt2uccX23097oG7MWTI Lsa4n5lHsXVR6Bw/kxysa9Z9jibFJOse1uCT4GPeZ2hl/HAS2FOIrdHfGgbESdstC9AE Zreg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Vk8JP8dohNT35bkAG3X42tRd7QfGS3e+CnDpJU4UpZA=; fh=HeR1z4xuPdYyXdnbowCtDfwdHjMJjEuGs83+OtakOVA=; b=iiiRdyKKPq9cxRLHHDynT/VYPt7F+m7iT6ryC8z0sfs++6iogRkzrO2QvriH2SQMKx a0mVbqDcTZkWpcAlKT63vhcMoCNei20AMlrMohsbDuMGGHSN59uGgTnZ3wx5vP4aCbUq 6/KWUVgDwGlr1XVhpn4wIHnc2CX/DNEEIDHRshegTTznc0GzgFU62cme9m1iCZUFM/Tu 4oAOaZcB3e6CsM2hdMQoW4FqPDrrg7SuLbFjUBG2rYjFILxoG9LDEJlBHg/QOXkzdWzB LSHwLOhOHv0+csi4BHmYV2BUk4asL4VbM4zVylHPxrl/bhadjlD5VsUWyQ+C8z9hYZtG BGnQ== 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 u15-20020a170902e5cf00b001b8a89a2726si377524plf.80.2023.07.04.02.33.52; Tue, 04 Jul 2023 02:34:14 -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 S232035AbjGDJWf convert rfc822-to-8bit (ORCPT + 99 others); Tue, 4 Jul 2023 05:22:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231978AbjGDJWL (ORCPT ); Tue, 4 Jul 2023 05:22:11 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6302010E5; Tue, 4 Jul 2023 02:22:04 -0700 (PDT) Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id BCDB0828C; Tue, 4 Jul 2023 17:22:02 +0800 (CST) Received: from EXMBX068.cuchost.com (172.16.6.68) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 4 Jul 2023 17:22:02 +0800 Received: from williamqiu-virtual-machine.starfivetech.com (171.223.208.138) by EXMBX068.cuchost.com (172.16.6.68) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 4 Jul 2023 17:22:01 +0800 From: William Qiu To: , , , CC: Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Emil Renner Berthing , Linus Walleij , William Qiu Subject: [RESEND v1 1/2] dt-binding: spi: constrain minItems of clocks and clock-names Date: Tue, 4 Jul 2023 17:21:59 +0800 Message-ID: <20230704092200.85401-2-william.qiu@starfivetech.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230704092200.85401-1-william.qiu@starfivetech.com> References: <20230704092200.85401-1-william.qiu@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain 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 Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, 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 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 --- 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# # 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 pl022,autosuspend-delay: description: delay in ms following transfer completion before the -- 2.34.1