From patchwork Fri Jun 2 08:49:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Qiu X-Patchwork-Id: 102379 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp882719vqr; Fri, 2 Jun 2023 01:51:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6oVnKvLVmLFfhpzlH9IvFX3bRSOkLi6iF3ZccLqX7pgM65Up8A2tCMgowu7lSe+g1wW5je X-Received: by 2002:a92:cd11:0:b0:33d:136f:249f with SMTP id z17-20020a92cd11000000b0033d136f249fmr4767154iln.22.1685695908014; Fri, 02 Jun 2023 01:51:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685695907; cv=none; d=google.com; s=arc-20160816; b=KaTIKSvL7Qx+iTwGd7+xslCINSK8WhhtlUJ/gD0lkASHp0Tkvs2OgUDdyuqi8Ksxob w/7VqffL/fLJcO5E/li485u20GcqCi5BFQaK3sD+bEv7RuTFqDgDSGZwqVcjztIEDh0g vuaa0wRqUmWJFx/YdgWT597Gtd1Eh5BowZFTQjtk/pSZ9Jhie4U29qyjAcyp6BPsjUi6 M1on+DYXtYISGPVp1uPlejGDCsafXA1nbY0aPqNj02VKBfQeUldeincHYs2pS2nOxO0p Le0co4k2yzAl5wlH2APr78Nzz+fwiW52NPD6L6mfmL+WB1W2eI8jRhuTrUgGuBtLCMrL 1x4A== 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=1P7pH1A5FXu8efNdgCehLQLHsCeRRn5k0LSLV3y8iZQ=; b=ifyAS9bPSTjS0kpgfvQu8+jJ39pEXwYilhmb8rZb9jMDs0QohaFSs+Zb5Q8+ooZBX9 +cemx/eJ8k0KcPeENoNr0GTtE6l/zFZyozUD7Z4u4cro6qln377XgWo7XlK4Z0E3xSDf 7VRm/xKPAIGbk28WxF/n5Of5KRZDzJYbi0NQugC5mo8kvKd2RQ4kfrPN0u/J9FQ6OzHL 8H1Raoz78RD12WuCH3DgubREGU9gzdVuHNbPU+pUVpzdT4xIbvPl/40jK2nPudl1zKdS FwcyhjKpcVhRVKxea7YKWeI+Si3hc9dTqN/mnNl1enIHl0v1GseetpQNRakM1gVMH9Rk mxPQ== 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 d12-20020a630e0c000000b0052132a8e4e3si650543pgl.510.2023.06.02.01.51.31; Fri, 02 Jun 2023 01:51:47 -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 S234570AbjFBIt6 convert rfc822-to-8bit (ORCPT + 99 others); Fri, 2 Jun 2023 04:49:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234135AbjFBItc (ORCPT ); Fri, 2 Jun 2023 04:49:32 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA7C4E50; Fri, 2 Jun 2023 01:49:30 -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 4EA04807D; Fri, 2 Jun 2023 16:49:28 +0800 (CST) Received: from EXMBX168.cuchost.com (172.16.6.78) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 2 Jun 2023 16:49:28 +0800 Received: from williamqiu-virtual-machine.starfivetech.com (171.223.208.138) by EXMBX168.cuchost.com (172.16.6.78) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 2 Jun 2023 16:49:27 +0800 From: William Qiu To: , , , CC: Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Emil Renner Berthing , Ziv Xu , William Qiu Subject: [PATCH v2 1/3] dt-bindings: qspi: cdns,qspi-nor: Add clocks for StarFive JH7110 SoC Date: Fri, 2 Jun 2023 16:49:23 +0800 Message-ID: <20230602084925.215411-2-william.qiu@starfivetech.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230602084925.215411-1-william.qiu@starfivetech.com> References: <20230602084925.215411-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 EXMBX168.cuchost.com (172.16.6.78) 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?1767580272657808371?= X-GMAIL-MSGID: =?utf-8?q?1767580272657808371?= 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. Other platforms do not have this constraint. Signed-off-by: William Qiu Reviewed-by: Hal Feng Reviewed-by: Conor Dooley --- .../devicetree/bindings/spi/cdns,qspi-nor.yaml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml b/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml index b310069762dd..b6a27171d965 100644 --- a/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml +++ b/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml @@ -26,6 +26,15 @@ allOf: const: starfive,jh7110-qspi then: properties: + clocks: + maxItems: 3 + + clock-names: + items: + - const: ref_clk + - const: hclk + - const: pclk + resets: minItems: 2 maxItems: 3 @@ -38,6 +47,9 @@ allOf: else: properties: + clocks: + maxItems: 1 + resets: maxItems: 2 @@ -69,9 +81,6 @@ properties: interrupts: maxItems: 1 - clocks: - maxItems: 1 - cdns,fifo-depth: description: Size of the data FIFO in words.