From patchwork Fri Aug 4 02:02:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Qiu X-Patchwork-Id: 130923 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f41:0:b0:3e4:2afc:c1 with SMTP id v1csp1533281vqx; Thu, 3 Aug 2023 19:30:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFSluD4+FyFeta/B8XQXY9MQqaHsP1RYxWn0Ekv43tGK7VMBFMNVbEWsW+99m+jcr5KfbjD X-Received: by 2002:a17:906:1099:b0:99c:9e69:6a1c with SMTP id u25-20020a170906109900b0099c9e696a1cmr315897eju.67.1691116216104; Thu, 03 Aug 2023 19:30:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691116216; cv=none; d=google.com; s=arc-20160816; b=hNxAM9JAhTAzFdRWbKsN4lt0rjn43Clp0Qc/M5xSlNhqtEdZZkstSjXRKD63b48+I7 AtQdnx8HvfJs/nHetpp7XxnF88h1Wii+Xb17gWAhckiVx3wteGejIEHI1Q+9W17oN0ZQ LO/gO+8CMAm2fBzwIbkj0ymt+hQBWvgysA+R/E+s0La6f5vmvJdXTywBRY4E9yqmyHp6 wEBe28KvxjvpeFS5TlPB0V7dF0zKK9yrLWq51d+KtmlUrGRqHBwdubfwVlVACKGfyZN0 YP6InxWK6t6f/Xa5Jyc0Wt25Mo0ySGKcmNUUw0P+qeNEkb1taBYD60/lCHMrL9LPmrbh eOTg== 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=FDK3czEZ4MiEPXOG4Kz3LGP8DV54T6JWxX/ewnAGyII=; fh=WCphHDjGHb2n6ExUxc8S0xlUZruKuzZWzdl57wRIMGI=; b=zZFmxg0OJbRHkCchbJt20VHZaj24+whHzVE9ZuSnfkdaoPuxdypwKhwsn9Ct6U4y6t Fn84HfYm2WSi0vK4rVNkgfdznO8dPPxPDXTCFIP+4B0Hrc8YgRLhP9V38NGFjRrVE4bu pYlAB9LFFLTyuvS/wqzW56s9rQccYRjs3dO7lFnAu54gr3MK7Nn8stC3ZY+bvf3T63Cr QMG5jtkLn/TT0oHdoZ8qULTBrK6vpKLMZkW36sflpy/fAgiSW+ayh+jT67Ujq3vhqXIT luYUoeITgPkxqqn06sU8/Mm3WzC1CDhg29BwfJhr9fEaPuJy12PWsrmoukonyBY1Qj38 RxVQ== 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 ka2-20020a170907990200b0099bd2067164si683454ejc.1041.2023.08.03.19.29.48; Thu, 03 Aug 2023 19:30:16 -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 S232661AbjHDCDB convert rfc822-to-8bit (ORCPT + 99 others); Thu, 3 Aug 2023 22:03:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232875AbjHDCC7 (ORCPT ); Thu, 3 Aug 2023 22:02:59 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C3744482; Thu, 3 Aug 2023 19:02:58 -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 3EB2980DF; Fri, 4 Aug 2023 10:02:57 +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; Fri, 4 Aug 2023 10:02:56 +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; Fri, 4 Aug 2023 10:02:55 +0800 From: William Qiu To: , , , CC: Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Emil Renner Berthing , Ziv Xu , William Qiu Subject: [PATCH v6 1/3] dt-bindings: qspi: cdns,qspi-nor: Add clocks for StarFive JH7110 SoC Date: Fri, 4 Aug 2023 10:02:52 +0800 Message-ID: <20230804020254.291239-2-william.qiu@starfivetech.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230804020254.291239-1-william.qiu@starfivetech.com> References: <20230804020254.291239-1-william.qiu@starfivetech.com> MIME-Version: 1.0 X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS061.cuchost.com (172.16.6.21) To EXMBX068.cuchost.com (172.16.6.68) X-YovoleRuleAgent: yovoleflag 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773263877299122412 X-GMAIL-MSGID: 1773263877299122412 The QSPI controller needs three clock items to work properly on StarFive JH7110 SoC, so there is need to change the maxItems's value to 3. Signed-off-by: William Qiu Reviewed-by: Hal Feng Reviewed-by: Conor Dooley --- .../devicetree/bindings/spi/cdns,qspi-nor.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml b/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml index 4f15f9a0cc34..cca81f89e252 100644 --- a/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml +++ b/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml @@ -86,7 +86,17 @@ properties: maxItems: 1 clocks: - maxItems: 1 + minItems: 1 + maxItems: 3 + + clock-names: + oneOf: + - items: + - const: ref + - items: + - const: ref + - const: ahb + - const: apb cdns,fifo-depth: description: