From patchwork Tue Jul 4 09:21:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Qiu X-Patchwork-Id: 115651 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1089091vqx; Tue, 4 Jul 2023 02:35:10 -0700 (PDT) X-Google-Smtp-Source: APBJJlFpI11BbYSUAfRjJ6AS1mgtUlSj8awJw6TUEvP5EKTR6V7sQwNXcr8jdRsu49OjASshCIwr X-Received: by 2002:a05:6870:3055:b0:1b0:843:b983 with SMTP id u21-20020a056870305500b001b00843b983mr12455248oau.54.1688463310311; Tue, 04 Jul 2023 02:35:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688463310; cv=none; d=google.com; s=arc-20160816; b=KK43eDDDZkoq+Y2hTOj6t0DaS8eYMF6CquqFYMDTjjpL5VrXst/aIbTC48N4PcczWu Z/3Dw/JUTgc2nf59Coi0sj9GAn2uH7h/CnnHIYD5fL8AwsKbfTd2XuHMr3SGuZLvmsjN rUHZia6Y2EdIm82Ns5zlEGeFNwCBvP2O2pdsA8ibhRuVfZQvkT/+ti+NFn8nqccc1Ir4 ZHRGeUaQHYCtAH6mGnq0s7Xl2IetLzKr+lZbHwsYfao0Sb4J3oK6XlcY1Wy8T1BnQMPP sEbPIbK1cR8ZyxQ9VMVqPvkubFkqQhSY4/rHxqNd9iUYqwgUSimU4/qRNZyFdxe4GXs9 rZpQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l184-20020a6388c1000000b0054481da6ee5si20031570pgd.418.2023.07.04.02.34.57; Tue, 04 Jul 2023 02:35:10 -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 S232089AbjGDJWf 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 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?1770482103879114774?= X-GMAIL-MSGID: =?utf-8?q?1770482103879114774?= 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(-) -- 2.34.1 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