From patchwork Thu Jul 13 09:00:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Qiu X-Patchwork-Id: 119701 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp1692199vqm; Thu, 13 Jul 2023 02:11:49 -0700 (PDT) X-Google-Smtp-Source: APBJJlEv1jfbvEkmW35R2mJfx+VOZRT2mOCw1cyA3bQCVfLy+otBU4rnGBqcMbOk8BQHLopd802T X-Received: by 2002:aa7:d684:0:b0:51d:e7b5:547d with SMTP id d4-20020aa7d684000000b0051de7b5547dmr1342037edr.34.1689239509360; Thu, 13 Jul 2023 02:11:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689239509; cv=none; d=google.com; s=arc-20160816; b=Ft2QVQaTm0uCp/qd2eC9/jUwIhUoyFzZw50An/NivnHmeJIl0XyOu9yASnHXlmyuAf cwKE0E/n10Dw7GD4Vv4KL2XbHL2G1Al+m/fvM0iElbs9bj1E+kIWQjLU8M+jDAu/kmV8 GiS+bHtMS4hy3KKDBw2imvBMycdsNUk6dg+msQRzr7AYp0SxK8+30yMxpjBRkruiMmoo gZI4JHLOb4yPhgAAmarFasTRD1DAmp5bv4AYD5ogotTTfGJUVax0AAXmDgKnIXGMGJAv PC1PHvt6Por0ncT+AFNVxEhAeREUvarxJK5AxcK7da+r/PPZ3MUxS9IV/KwPspLRGRq8 Wr/w== 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=YDiMnYfYwM+4hFju0I/6lCcEwMb41FowoJm1u9LBw7A=; fh=KMHIlvMyk955GAHEXyGRN89XCb+h1B+4yCIVAgCT/kI=; b=nX+UuEUPMYzu5skiHvDvKpqdXSf1oqbJAByrxVCO3T8aqVzkm8R+0um8CUndJzepAO MLlZ/8R5xuYy63vaDuPhbH8fF6rhXyu+xCIGTE22X3dFlvsKV3dz36NW846zfOKj+Gpf VyMWoZUAGL3jiUhNA/c1gpIWggS2JMg/7F41rA8vHRQF0J+8DcCdmBE95vtnIq+ICMBa co2F1/ctTwhMZapZ9w4rSNAW35H/+ytPLvdVDCaY4iTi4Jq4IUz5S9zNJKAJHDbh7SmR e0+lgQB8Z772pHNUKBPSVtVcvj4vz394i1BUBlAs+FrRTL3k4hGiMTCHnWZmTmqEePWi ZJjw== 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 dy16-20020a05640231f000b0051e56a4cccdsi7085002edb.648.2023.07.13.02.11.20; Thu, 13 Jul 2023 02:11:49 -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 S234737AbjGMJA4 convert rfc822-to-8bit (ORCPT + 99 others); Thu, 13 Jul 2023 05:00:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234355AbjGMJA1 (ORCPT ); Thu, 13 Jul 2023 05:00:27 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C14B268A; Thu, 13 Jul 2023 02:00:24 -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 8DDDE24E25A; Thu, 13 Jul 2023 17:00:17 +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; 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:16 +0800 From: William Qiu To: , , , CC: Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Emil Renner Berthing , Linus Walleij , William Qiu Subject: [PATCH v2 1/3] dt-bindings: spi: add reference file to YAML Date: Thu, 13 Jul 2023 17:00:13 +0800 Message-ID: <20230713090015.127541-2-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 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, 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: 1771296007526049040 X-GMAIL-MSGID: 1771296007526049040 Add primecell.yaml as a refereence file to YAML. Signed-off-by: William Qiu --- Documentation/devicetree/bindings/spi/spi-pl022.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/spi/spi-pl022.yaml b/Documentation/devicetree/bindings/spi/spi-pl022.yaml index 91e540a92faf..5e5a704a766e 100644 --- a/Documentation/devicetree/bindings/spi/spi-pl022.yaml +++ b/Documentation/devicetree/bindings/spi/spi-pl022.yaml @@ -11,6 +11,7 @@ maintainers: allOf: - $ref: spi-controller.yaml# + - $ref: /schemas/arm/primecell.yaml# # We need a select here so we don't match all nodes with 'arm,primecell' select: From patchwork Thu Jul 13 09:00:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Qiu X-Patchwork-Id: 119717 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp1699373vqm; Thu, 13 Jul 2023 02:29:48 -0700 (PDT) X-Google-Smtp-Source: APBJJlHIYSfEWABOCImuOZgGTKn+EvDkcH5lxeB458830xTp6W9cGgfhquziLTxZLGZwP8T0v2NS X-Received: by 2002:a92:dad2:0:b0:343:92a1:9cf4 with SMTP id o18-20020a92dad2000000b0034392a19cf4mr985229ilq.19.1689240588095; Thu, 13 Jul 2023 02:29:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689240588; cv=none; d=google.com; s=arc-20160816; b=aciFfdkPbsJlDHPsHF0K0OKYZjK7WprhTybWNcZbrA99y1rpPrM0A9m8vUAnBEOG33 qn8ipo66P7hJ4swjaxDRYncc72ztmxNIjEdVsLmJ2ABvOWuZQ92rX5L52OJUvHXTRnu3 6EaBQnzaLZ5CFgCLkTxACf3w63rD9GG6JluC2rzyrF0bfTYHvGQgFoOfWuv/rBpv4czQ jQTgzz89I15v54lD09PFZ+NZlx5fOsHAsxPkCeFQdcNfjCsG770F2osVBB5JDtYfznjg /TjacDBpUaiG9QkVbEoymKZwLlg7jy4nJdATPxMA21wPb9Lik4ObCnkW9HRc+Ym2f/n8 x1/A== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id by12-20020a056a00400c00b0064d4d472935si4848855pfb.18.2023.07.13.02.29.35; Thu, 13 Jul 2023 02:29:48 -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 S234289AbjGMJAn convert rfc822-to-8bit (ORCPT + 99 others); Thu, 13 Jul 2023 05:00:43 -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 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, 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: 1771297138737622522 X-GMAIL-MSGID: 1771297138737622522 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 Reviewed-by: Krzysztof Kozlowski --- 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 From patchwork Thu Jul 13 09:00:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Qiu X-Patchwork-Id: 119722 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp1700569vqm; Thu, 13 Jul 2023 02:32:25 -0700 (PDT) X-Google-Smtp-Source: APBJJlF8lh88qWp/JHJdCjC3Kq8elcHz0aCRPdEWmGI6v7ZuYhUtDQojnQKFmfT/z2zrplCcJUz6 X-Received: by 2002:a05:6a00:1911:b0:682:5634:3df1 with SMTP id y17-20020a056a00191100b0068256343df1mr1382734pfi.10.1689240745047; Thu, 13 Jul 2023 02:32:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689240745; cv=none; d=google.com; s=arc-20160816; b=0nd8nHctF/bXwUJFfMIXW1c6aduq7PPUdJPDCLHHO5YwHdLCPbKPGXKgCp4yFmgs8f x+fswF6PEMixa2qc4NyNinsszdLBKFOhzf9/GYx6F5N6vD4mCjdNn0RFtVVwRRmnBgpo bx+63TYYiL5ZIVEoDHYY3HtSVsGqOZah8EMoPsELTeppt2Fh4KeiU93gTXDtL9G3XdiG DPkbEI6mNbWKaAJ90x3GikEHPXc5pQm3ps06+/5MrOB0ML0HskvVjTiFzXs43q4vQyiQ hqwcIVe8czqkVtGnjwdyAEeP+M0HoJZF9ZbR/aNY+Tyof6swLJcr4VGCNBVo07hQyfGE DugQ== 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=aElGogXsvtthhKjGNCKI7valVHDoHJc89lAfUD6TR84=; fh=KMHIlvMyk955GAHEXyGRN89XCb+h1B+4yCIVAgCT/kI=; b=m7atB2dBZPPIE/mi5iwR9WT/dpxbPtUfNFjvRJSgCQL0kVj7TcTb0qyaaA5GtqLsCe 6vAcbfwlmrTG+CTnP5SCkvvhEF1wseuXle3Oz8K2xMNEsuIc+5rwhM11cjs04Za1uTr6 zMO4YFNfrsNZ71mCKdwTcoxTDVNZc+EOPqSQifoHEINwldo2I1tC97cSfm1V25lrLB3k BKdXCCEUYvAjolmfOcXhk83IMNCcTjt6N43gvTh8p8FHbe1V8gdFOiVcDV2G4P+VGYne nApgPArk8j/2EMxftDkCUlMCVt1YbhKkuDDxXCwIYu0o7wl9eVf8F9qXJmFRKgYaDthZ qTJQ== 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 l5-20020a056a00140500b006786b7f4cc4si4844910pfu.240.2023.07.13.02.32.12; Thu, 13 Jul 2023 02:32:24 -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 S234266AbjGMJAr convert rfc822-to-8bit (ORCPT + 99 others); Thu, 13 Jul 2023 05:00:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234720AbjGMJA0 (ORCPT ); Thu, 13 Jul 2023 05:00:26 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C04D81BEB; Thu, 13 Jul 2023 02:00:21 -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 01AE882EB; Thu, 13 Jul 2023 17:00:19 +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; Thu, 13 Jul 2023 17:00:19 +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:18 +0800 From: William Qiu To: , , , CC: Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Emil Renner Berthing , Linus Walleij , William Qiu Subject: [PATCH v2 3/3] riscv: dts: starfive: Add spi node for JH7110 SoC Date: Thu, 13 Jul 2023 17:00:15 +0800 Message-ID: <20230713090015.127541-4-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 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, 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: 1771297303697384300 X-GMAIL-MSGID: 1771297303697384300 Add spi node for JH7110 SoC. Signed-off-by: William Qiu --- .../jh7110-starfive-visionfive-2.dtsi | 50 ++++++++++ arch/riscv/boot/dts/starfive/jh7110.dtsi | 98 +++++++++++++++++++ 2 files changed, 148 insertions(+) diff --git a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi index fa0061eb33a7..ae3f39c33d3c 100644 --- a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi @@ -143,6 +143,18 @@ &i2c6 { status = "okay"; }; +&spi0 { + pinctrl-names = "default"; + pinctrl-0 = <&spi0_pins>; + status = "okay"; + + spi_dev0: flash@0 { + compatible = "rohm,dh2228fv"; + reg = <0>; + spi-max-frequency = <10000000>; + }; +}; + &sysgpio { i2c0_pins: i2c0-0 { i2c-pins { @@ -200,6 +212,44 @@ GPOEN_SYS_I2C6_DATA, }; }; + spi0_pins: spi0-0 { + mosi-pins { + pinmux = ; + bias-disable; + input-disable; + input-schmitt-disable; + }; + + miso-pins { + pinmux = ; + bias-pull-up; + input-enable; + input-schmitt-enable; + }; + + sck-pins { + pinmux = ; + bias-disable; + input-disable; + input-schmitt-disable; + }; + + ss-pins { + pinmux = ; + bias-disable; + input-disable; + input-schmitt-disable; + }; + }; + uart0_pins: uart0-0 { tx-pins { pinmux = ; + clocks = <&syscrg JH7110_SYSCLK_SPI0_APB>; + clock-names = "apb_pclk"; + resets = <&syscrg JH7110_SYSRST_SPI0_APB>; + interrupts = <38>; + arm,primecell-periphid = <0x00041022>; + num-cs = <1>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + spi1: spi@10070000 { + compatible = "arm,pl022", "arm,primecell"; + reg = <0x0 0x10070000 0x0 0x10000>; + clocks = <&syscrg JH7110_SYSCLK_SPI1_APB>; + clock-names = "apb_pclk"; + resets = <&syscrg JH7110_SYSRST_SPI1_APB>; + interrupts = <39>; + arm,primecell-periphid = <0x00041022>; + num-cs = <1>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + spi2: spi@10080000 { + compatible = "arm,pl022", "arm,primecell"; + reg = <0x0 0x10080000 0x0 0x10000>; + clocks = <&syscrg JH7110_SYSCLK_SPI2_APB>; + clock-names = "apb_pclk"; + resets = <&syscrg JH7110_SYSRST_SPI2_APB>; + interrupts = <40>; + arm,primecell-periphid = <0x00041022>; + num-cs = <1>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + uart3: serial@12000000 { compatible = "snps,dw-apb-uart"; reg = <0x0 0x12000000 0x0 0x10000>; @@ -473,6 +515,62 @@ i2c6: i2c@12060000 { status = "disabled"; }; + spi3: spi@12070000 { + compatible = "arm,pl022", "arm,primecell"; + reg = <0x0 0x12070000 0x0 0x10000>; + clocks = <&syscrg JH7110_SYSCLK_SPI3_APB>; + clock-names = "apb_pclk"; + resets = <&syscrg JH7110_SYSRST_SPI3_APB>; + interrupts = <52>; + arm,primecell-periphid = <0x00041022>; + num-cs = <1>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + spi4: spi@12080000 { + compatible = "arm,pl022", "arm,primecell"; + reg = <0x0 0x12080000 0x0 0x10000>; + clocks = <&syscrg JH7110_SYSCLK_SPI4_APB>; + clock-names = "apb_pclk"; + resets = <&syscrg JH7110_SYSRST_SPI4_APB>; + interrupts = <53>; + arm,primecell-periphid = <0x00041022>; + num-cs = <1>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + spi5: spi@12090000 { + compatible = "arm,pl022", "arm,primecell"; + reg = <0x0 0x12090000 0x0 0x10000>; + clocks = <&syscrg JH7110_SYSCLK_SPI5_APB>; + clock-names = "apb_pclk"; + resets = <&syscrg JH7110_SYSRST_SPI5_APB>; + interrupts = <54>; + arm,primecell-periphid = <0x00041022>; + num-cs = <1>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + spi6: spi@120a0000 { + compatible = "arm,pl022", "arm,primecell"; + reg = <0x0 0x120A0000 0x0 0x10000>; + clocks = <&syscrg JH7110_SYSCLK_SPI6_APB>; + clock-names = "apb_pclk"; + resets = <&syscrg JH7110_SYSRST_SPI6_APB>; + interrupts = <55>; + arm,primecell-periphid = <0x00041022>; + num-cs = <1>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + syscrg: clock-controller@13020000 { compatible = "starfive,jh7110-syscrg"; reg = <0x0 0x13020000 0x0 0x10000>;