Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp875953rwp; Thu, 13 Jul 2023 02:30:00 -0700 (PDT) X-Google-Smtp-Source: APBJJlGRtr/O+DiYfc2kjCVz+H2V6a04AS3YMPfe4IZpw+JEmvwz42xg3GzMI0v9mePyl000YDwW X-Received: by 2002:a17:902:bd43:b0:1b3:c7c1:8ded with SMTP id b3-20020a170902bd4300b001b3c7c18dedmr566127plx.27.1689240600643; Thu, 13 Jul 2023 02:30:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689240600; cv=none; d=google.com; s=arc-20160816; b=rd6f9l0EGp5iA+V7p51K4ipgLFw73Sn0ctFXUtFnDPPRilvAmEEvx6CUQxGCOP0yZe MHw9xsuSJCguJOpNdZNZ1cZnEtQbkGqBkEvPBqZbTk08cOMH3MpSte2iLR/luHSxmvCm 0mUL0fxcLci+3XZW9O8grqQQrr/eja8dqPhuzcsTgO4CBX3gpxwt0H/D/4GwzjgLfoLx QcAgH4E8nPfUgPZp7HCE/lFQ7gj7gG0fr6kkatxGrRvIuOe5RjQGo5OTg4gbjndDoyKf SEoLFUfaX4vZbTHzSUvhATGZ4eegoGqYhlmUvnpsgmf5KjbzYCwX+JUNaVdKg1IiuE3E FzFA== 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=4dUwQt0mxBk9X9v+nkMyF06g3rHj2AF5BUskXqmUATk=; fh=KMHIlvMyk955GAHEXyGRN89XCb+h1B+4yCIVAgCT/kI=; b=B8kERdMxWBXfFR3Qjbb2G7YVOGRVAESTXigOs1tMQZxbrPy8DwcPU+aPufMdwjila+ V8Vz5OeiCR73V9Ld8CDhk6hZZ6dq7c2R39uLT4HUDUetOA1qvu+dtGdgIvbhoo7wXrd9 ZCCzq4KzqdCSzHWn8v85sFbtPBmq9Dmz+UsUAL+959xBzkqpdgD+O0CPnYok4Knj6rj/ DTD4M8bw0Yu/K5IPEIpVLb3iI7ImodsIxtmq+q7OW2Zciv/TIAdisQ0+7REagmTE//Jt 6oR064Hi1RTrTBjCtZeculmI6cLvf63Ucz9tUfSmIO/XuEp1VW6yfA6aLu5lzxPiMWA1 dBBA== 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 b18-20020a170902d51200b001b801bd7fbasi5191618plg.417.2023.07.13.02.29.49; Thu, 13 Jul 2023 02:30:00 -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 S234711AbjGMJAm convert rfc822-to-8bit (ORCPT + 99 others); Thu, 13 Jul 2023 05:00:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234660AbjGMJAZ (ORCPT ); Thu, 13 Jul 2023 05:00:25 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 797D71FF7; Thu, 13 Jul 2023 02:00:22 -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 3A41B82E4; Thu, 13 Jul 2023 17:00:18 +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; Thu, 13 Jul 2023 17:00:18 +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; Thu, 13 Jul 2023 17:00:17 +0800 From: William Qiu To: , , , CC: Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Emil Renner Berthing , Linus Walleij , William Qiu Subject: [PATCH v2 2/3] dt-bindings: spi: constrain minItems of clocks and clock-names Date: Thu, 13 Jul 2023 17:00:14 +0800 Message-ID: <20230713090015.127541-3-william.qiu@starfivetech.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230713090015.127541-1-william.qiu@starfivetech.com> References: <20230713090015.127541-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, RCVD_IN_DNSWL_BLOCKED,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 | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/spi/spi-pl022.yaml b/Documentation/devicetree/bindings/spi/spi-pl022.yaml index 5e5a704a766e..42bb34c39971 100644 --- a/Documentation/devicetree/bindings/spi/spi-pl022.yaml +++ b/Documentation/devicetree/bindings/spi/spi-pl022.yaml @@ -35,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