From patchwork Wed Jul 19 09:25: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: 122483 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp2311884vqt; Wed, 19 Jul 2023 02:31:10 -0700 (PDT) X-Google-Smtp-Source: APBJJlFK/Iy7Yg3GppqG1hnCy8KmE40ERRUQ+25xpEh5In0qifww6m/rEP2Luv0bnO+LoOS6MlUN X-Received: by 2002:a05:6a00:23cd:b0:682:4ef7:9b0b with SMTP id g13-20020a056a0023cd00b006824ef79b0bmr3079122pfc.0.1689759069916; Wed, 19 Jul 2023 02:31:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689759069; cv=none; d=google.com; s=arc-20160816; b=w+mHWneC4ml+YXwiyJ3fUj9vfslk6/5QlGXauipepLNBgAyG04VnqON5BR3Wrxe+Sy RqArawEzNFDun7QgE0Xjo2fVGOTOUn8QQViM0IltE2WIiUM8k/YQXKRbRz6X7Ky3BhYO oSFo1nINcn3/m1xxtCFf9RPAyl2oezZ/c+4bdmvvbI6YkHo1hi1W5xr0+p7AG98MSNLF 9eCnflLJaTUVEF99nXZajeXqUFipg0u6/qNHk+TIn8BBE6GcMR7eetHKOuX9Nyb+yFt8 fZzMRxW9wm6CT6r8J84nLFBNXFh4cuqzl8FfjybAGquXKLFmvof1Yoxg0DbdUh1Izm8h ljxw== 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=aIyVG+bYKLbsAnj2V80jeoPuHJFMcVvYDv8wFnIC19/6d45Qj+Zdqp6PyRLU38Y+oZ EWVQfsv0COxlvnsV0sZIb292MBBSAvv7rlEoQ+1nehEa09NrvabK7muaO05W5KIiw9mP dme7cxdZGq7cTZtckPhVO259KIeMkktQnvTDdIt9fqlxFSC9tdRfv2EHslhTYdGD0Myw YEuhErbc2XpaGmO1NX9Aa150aAlIJ4OFnlHiaSl2VSPK5OBhn43S67Px0p36yZhjRWF9 BC3Zq6QMcv7jrIR93uLyxrRfhd53HkTiCpkn+HhIXNrulsOo7TfKWJianubdxu0l9pcr Zwjg== 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 cq17-20020a056a00331100b0066716dc50a1si3173880pfb.179.2023.07.19.02.30.56; Wed, 19 Jul 2023 02:31:09 -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 S230407AbjGSJ0K convert rfc822-to-8bit (ORCPT + 99 others); Wed, 19 Jul 2023 05:26:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231250AbjGSJ0H (ORCPT ); Wed, 19 Jul 2023 05:26:07 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96EA91FC8; Wed, 19 Jul 2023 02:25:48 -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 ex01.ufhost.com (Postfix) with ESMTP id 2CA2D24E2C4; Wed, 19 Jul 2023 17:25:47 +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; Wed, 19 Jul 2023 17:25:47 +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; Wed, 19 Jul 2023 17:25:46 +0800 From: William Qiu To: , , , CC: Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Emil Renner Berthing , Ziv Xu , William Qiu Subject: [PATCH v5 1/3] dt-bindings: qspi: cdns,qspi-nor: Add clocks for StarFive JH7110 SoC Date: Wed, 19 Jul 2023 17:25:43 +0800 Message-ID: <20230719092545.1961401-2-william.qiu@starfivetech.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230719092545.1961401-1-william.qiu@starfivetech.com> References: <20230719092545.1961401-1-william.qiu@starfivetech.com> MIME-Version: 1.0 X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS064.cuchost.com (172.16.6.24) 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_NONE,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: 1771840806734685281 X-GMAIL-MSGID: 1771840806734685281 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: