From patchwork Tue Jul 4 09:19:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Qiu X-Patchwork-Id: 115648 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1088803vqx; Tue, 4 Jul 2023 02:34:37 -0700 (PDT) X-Google-Smtp-Source: APBJJlFZzNw8milpXcFPM3Fo+pOowwb9eUWHCq9eMwhgJDr2qB2G5nmuxvABxstuaOSpIONg1Lpn X-Received: by 2002:a17:90a:4e82:b0:263:560a:e794 with SMTP id o2-20020a17090a4e8200b00263560ae794mr10243672pjh.21.1688463276777; Tue, 04 Jul 2023 02:34:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688463276; cv=none; d=google.com; s=arc-20160816; b=Bz7NDJ7hBgVUTVK2LU/s+Qx0J1CpsVbH58dpf6XYzUcBRdI5KvLYtvC6aDKjJwtY/8 oNMPre+ZKLr22efJIgSOmFv7+osKv1JykweRx/cRAluGmFAZm3J0eoHgxhkZ/D2ADiPe A7hN6aa9U2xOQ23WKOgPgf1ZKbYbjLQTndzgJuQhsrlyf8ZypHwIupkvcFtPosCW1qpP V9ScjyKW1DcTrcTLkzWUMgn7rOWkaBJQVTMs8jgt8WW9H2Vy8IdtD+ERPqIw5p1dBp8b OR4RHtDqnsaCDgaEsEcLfBhHY9BYnXaWC+yfo6j5FL1Qan4Wx3GT0QgrHgIrsRj+CNdE ecMg== 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=EJ5Y4oZ9mGskbnswsLP7XY75FwWEUBmBo5J0iTDVhDY=; fh=HeR1z4xuPdYyXdnbowCtDfwdHjMJjEuGs83+OtakOVA=; b=YYJNADmYqrzQH7tfm8VmoYAanvrXIHEBbUTbisDc85YwFf/E+EIj60ESQTEnnlFy7f /59RZIeydeysntuhWCv9Gk9eXULS4NKka3U8qeTYbu6D5xmARYjDhpWIfKD1/4jMduXz YaDwdiHlNda7ttMtGwpYk2k9ksdiV2QRaJXs9Luz78Old4Vm7U7k0ZciKerEyoL7NZjS 1iJjuVQyd/lh7jJdVBAd0iBixbpzL3Ux2nFRcCLq9s5p/IetAH52L06Rw0s+wySC3Gp8 ispuOIcz3vM5VERqHZTg4aFHWy1frf3m611uXkR2PyE6Fw3usID77HSo6Amdr9wGIRFw UB2Q== 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 lx2-20020a17090b4b0200b00260a6621b4bsi13483742pjb.117.2023.07.04.02.34.24; Tue, 04 Jul 2023 02:34:36 -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 S231975AbjGDJUE convert rfc822-to-8bit (ORCPT + 99 others); Tue, 4 Jul 2023 05:20:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231894AbjGDJT5 (ORCPT ); Tue, 4 Jul 2023 05:19:57 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A7EE1B7; Tue, 4 Jul 2023 02:19:54 -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 4071A823D; Tue, 4 Jul 2023 17:19:53 +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:19:53 +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:52 +0800 From: William Qiu To: , , , CC: Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Emil Renner Berthing , Linus Walleij , William Qiu Subject: [PATCH v4 1/3] dt-bindings: qspi: cdns,qspi-nor: Add clocks for StarFive JH7110 SoC Date: Tue, 4 Jul 2023 17:19:46 +0800 Message-ID: <20230704091948.85247-5-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?1770482068786635620?= X-GMAIL-MSGID: =?utf-8?q?1770482068786635620?= 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 b310069762dd..e048cf63215b 100644 --- a/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml +++ b/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml @@ -70,7 +70,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: