Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp27399901rwd; Tue, 4 Jul 2023 02:21:40 -0700 (PDT) X-Google-Smtp-Source: APBJJlHVo0a1xb23ztAqGpH9pj1S1gsjMh6wa42FSUU2Absr1F8uI7Gn5aLSWAMna3nV0UGEbSbj X-Received: by 2002:a17:902:c202:b0:1b7:f649:f49a with SMTP id 2-20020a170902c20200b001b7f649f49amr9240661pll.3.1688462499774; Tue, 04 Jul 2023 02:21:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688462499; cv=none; d=google.com; s=arc-20160816; b=Nb07e04oSJIGIJEhK5YFhLA3KTkA0zJCqbV+xYb5SaLd38sJmaazZIwEtKy6wnXRlr pJRv1u0wG0QqW0IZlAICbbd7zghQUMWrWpg+vp1yPr74PMdA5K2fHMt5FsFj+lVHzR5W AdjuOnRySVddDlJr9qUjICEGSFLXFopV1t0cef/vpzAJRc0ttA6zUR2kOYkbv/iZqpYU en2UEIbhgUZoCYFS4czML0iqkpU54UfzStjhAOSYGVndZF90pUcfr9vWIo5fuOaOgDv4 LRWP4mHDylrDoROlPiWLqTFjLps7B9MDS4JBnttbAdyO58QG9pJyXnBNI7k7doVnYdJ8 MEeQ== 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=IYnjM1zkOLK55CG3IVOXsA/NfnKvElOknm4v/yrYAzdxrriMH1tmcFsKQYLyxnXijb W5/9PN1HiDQnhJxp8Mc1F+I98t9rnK0FWb/Mu7z6Bcgj9kQM1NvuLeumEkBEKXrL59Cf PKK8TcY4Mr9XXX+2O7Je8CxVJi8P9/oOrQ/jJJmxaVkwN9fJCQugM8qsBHJu69JeWLK9 Wnwx20txuYWyo2TqeOfvRqS2rO80Cotyq8pCzsqxWT1+st01HHFwWBqZ60Z/SfnejwWU bjB7UfFnxvbPR1BIpmNeEcvsVrdBy3jtFrPW37ujqkaS0mmvSC3fMhD4orxUFgZJ4LZ2 Paew== 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 q7-20020a170902a3c700b001b8842ffd3dsi6619991plb.176.2023.07.04.02.21.24; Tue, 04 Jul 2023 02:21:39 -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 S231911AbjGDJT7 convert rfc822-to-8bit (ORCPT + 99 others); Tue, 4 Jul 2023 05:19:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231857AbjGDJTz (ORCPT ); Tue, 4 Jul 2023 05:19:55 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 663D1136; Tue, 4 Jul 2023 02:19:52 -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 fd01.gateway.ufhost.com (Postfix) with ESMTP id 1E140828C; Tue, 4 Jul 2023 17:19:51 +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; Tue, 4 Jul 2023 17:19:51 +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:19:50 +0800 From: William Qiu To: , , , CC: Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Emil Renner Berthing , Linus Walleij , William Qiu Subject: [PATCH v1 1/2] dt-binding: spi: constrain minItems of clocks and clock-names Date: Tue, 4 Jul 2023 17:19:43 +0800 Message-ID: <20230704091948.85247-2-william.qiu@starfivetech.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230704091948.85247-1-william.qiu@starfivetech.com> References: <20230704091948.85247-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