From patchwork Tue Jul 4 09:19:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Qiu X-Patchwork-Id: 115636 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1083534vqx; Tue, 4 Jul 2023 02:22:04 -0700 (PDT) X-Google-Smtp-Source: APBJJlHbwvAjRjGfejO5cKTR4yrJrO9BTzHVcidmB0exbzNVJiLMcQ+o0D2/SAUCWH+/WlWpxiI0 X-Received: by 2002:a0d:fa06:0:b0:56f:e7b0:1753 with SMTP id k6-20020a0dfa06000000b0056fe7b01753mr12354588ywf.17.1688462524112; Tue, 04 Jul 2023 02:22:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688462524; cv=none; d=google.com; s=arc-20160816; b=H4XctVLRnWxrTRYUO4EdfeHx7liMSxBMnkV5str+2GxUS9MkYQNqKllTXacVhB1m8m VO7PkNYJk/qLj5n6pEuASXrjaynkcC0Awn0HKjtqtBct06HbtBfu+ssAEvu8AOe41ZaO ZsaKGztVOpfWfu18oQrRIv/OYqNxY2Aj+pZ23xiRJPeORADwZu1jcJVZiKbj4QEwKn8R mkFRkNQfOKtZ4TXzji1GHofnZSBSlCCcg1xQ5jd7LQW3vcOI4Srb1hhjn3kqLuEoY36e q2UtMfEbcc3T1RKCyLQyONnhcImLCJUWMd/Q7xCGS8IWjNRirbCZhfENE3jrjPSRZazS /hOw== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j62-20020a638041000000b005577fd7efa4si20964761pgd.427.2023.07.04.02.21.48; Tue, 04 Jul 2023 02:22:04 -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 S231913AbjGDJUA convert rfc822-to-8bit (ORCPT + 99 others); Tue, 4 Jul 2023 05:20:00 -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 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=-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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770481279818402915?= X-GMAIL-MSGID: =?utf-8?q?1770481279818402915?= 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