From patchwork Wed Mar 15 03:48: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: 69942 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2128245wrd; Tue, 14 Mar 2023 21:13:12 -0700 (PDT) X-Google-Smtp-Source: AK7set8nKlByFsETQpcjNjrUhCfOkUFyxxNLigc9So8j6ZhfX/trMwCzCpGyA5kGdMNXn9kZ5TRx X-Received: by 2002:a17:90b:33c2:b0:23d:30c4:a06 with SMTP id lk2-20020a17090b33c200b0023d30c40a06mr5487537pjb.11.1678853592465; Tue, 14 Mar 2023 21:13:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678853592; cv=none; d=google.com; s=arc-20160816; b=b8QXQCBq3AHMXdOhXr6ZApkMm1/uL8O4xJlGcKvEDbnjBa7UVoej0VdPdUTii7KQ02 PIXc2W0pY3tzLbX5F1iJ86R0V3MvkA1U6Xwb9HfbkQTgoUnPE88xVdc55zJ16jPlbF4e 9RlnNhYunHflioZq6FnpeUzip+HFmgF5qyuL78m1umrjKrZDhJ9BHNr+1uMCB93c/T1h iOaYOUq8xLvYMqB90AxtJFNQ9OjLwMqrVUMBstJvsU0dmyBerknOmUYuBOo82ff7piZZ cOlYjRyx2Ik67vyV0au4H0M/hFks36270qN1PUtbkQ23S8lYJtS8xP503nVGqr4wzE9A mV1g== 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=xE4/2ZRNnVxNiD2w3V6rgG/xZJ3SlzXsrIcKUJjufR0=; b=CEOSqlJyJm5dDHVrqtjSs20xOoTtmOBlsNcvNf+q57WYj/aed91sa2XSLxq6IAPpj6 +fEeZSugfcgOcyeUeKoYY7eSz4zvkcRRysVoP7LrztaKIrj4gDUYbwv0mhOwxzxZ/nfO AgyLl/nqLvZ/iISMjgeO04xsZQoI4xjNOZsjJ1CO6z1076gzBFwJ3QqvQQe1SfGjVicX GHUEmafIBlC3YZc+TfeN8QrzChoDB1eK3OwppMoB0SzvsaEQbLmZhD6FHqNNvqqxJEVV yWO7wqq2T4TVozwoNIQS4jGnXmPE24NMZ5J0lc/oM+DMICJfwF5F+q96sLQZv0BdO+iA eWNQ== 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 ji7-20020a170903324700b0019d211fced4si4174917plb.187.2023.03.14.21.12.59; Tue, 14 Mar 2023 21:13:12 -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 S230340AbjCODtL convert rfc822-to-8bit (ORCPT + 99 others); Tue, 14 Mar 2023 23:49:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229506AbjCODs7 (ORCPT ); Tue, 14 Mar 2023 23:48:59 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DEA02ED44; Tue, 14 Mar 2023 20:48:57 -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 C1F1E24E313; Wed, 15 Mar 2023 11:48:55 +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; Wed, 15 Mar 2023 11:48:55 +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, 15 Mar 2023 11:48:54 +0800 From: William Qiu To: , , CC: Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Emil Renner Berthing" , William Qiu Subject: [PATCH v6 1/2] dt-bindings: soc: starfive: Add StarFive syscon doc Date: Wed, 15 Mar 2023 11:48:52 +0800 Message-ID: <20230315034853.93677-2-william.qiu@starfivetech.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230315034853.93677-1-william.qiu@starfivetech.com> References: <20230315034853.93677-1-william.qiu@starfivetech.com> MIME-Version: 1.0 X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) 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_MSPIKE_H2, SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED 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?1760405584411455927?= X-GMAIL-MSGID: =?utf-8?q?1760405584411455927?= Add documentation to describe StarFive System Controller Registers. Signed-off-by: William Qiu --- .../soc/starfive/starfive,jh7110-syscon.yaml | 51 +++++++++++++++++++ MAINTAINERS | 5 ++ 2 files changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/starfive/starfive,jh7110-syscon.yaml diff --git a/Documentation/devicetree/bindings/soc/starfive/starfive,jh7110-syscon.yaml b/Documentation/devicetree/bindings/soc/starfive/starfive,jh7110-syscon.yaml new file mode 100644 index 000000000000..fa4d8522a454 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/starfive/starfive,jh7110-syscon.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/starfive/jh7110-syscon.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: StarFive JH7110 SoC system controller + +maintainers: + - William Qiu + +description: | + The StarFive JH7110 SoC system controller provides register information such + as offset, mask and shift to configure related modules such as MMC and PCIe. + +properties: + compatible: + items: + - enum: + - starfive,jh7110-stg-syscon + - starfive,jh7110-sys-syscon + - starfive,jh7110-aon-syscon + - const: syscon + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + syscon@10240000 { + compatible = "starfive,jh7110-stg-syscon", "syscon"; + reg = <0x10240000 0x1000>; + }; + + syscon@13030000 { + compatible = "starfive,jh7110-sys-syscon", "syscon"; + reg = <0x13030000 0x1000>; + }; + + syscon@17010000 { + compatible = "starfive,jh7110-aon-syscon", "syscon"; + reg = <0x17010000 0x1000>; + }; + +... diff --git a/MAINTAINERS b/MAINTAINERS index 958b7ec118b4..27e6c48a1a83 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -19964,6 +19964,11 @@ S: Supported F: Documentation/devicetree/bindings/rng/starfive* F: drivers/char/hw_random/jh7110-trng.c +STARFIVE JH7110 SYSCON +M: William Qiu +S: Supported +F: Documentation/devicetree/bindings/soc/starfive/jh7110-syscon.yaml + STATIC BRANCH/CALL M: Peter Zijlstra M: Josh Poimboeuf From patchwork Wed Mar 15 03:48:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Qiu X-Patchwork-Id: 69944 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2132547wrd; Tue, 14 Mar 2023 21:29:24 -0700 (PDT) X-Google-Smtp-Source: AK7set+gPyfin16OU6ts4/ZawTxPiVPpciSadPXF7MPthZZ5GNGe5O7ofB7VvuEXqHfTCn1CTSCt X-Received: by 2002:a17:902:c948:b0:1a0:7678:5e16 with SMTP id i8-20020a170902c94800b001a076785e16mr1418139pla.67.1678854564673; Tue, 14 Mar 2023 21:29:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678854564; cv=none; d=google.com; s=arc-20160816; b=UA4L2TufWaGfskSUGEUztWddHimlNYKMcTYGWRTEf4+Q+joWBaHhbbKbT8yLOaEcPH 8k2r5xJvoLrP9NGbvMiFPWwTFpOzVJQF3hVE3+2sx5+P7g3czSEmCClTqsHxU+QySAZP +KflWucYglJJvoHs2Eue/DdRI+zyCdRWBcEhl0F8yIifqOLI9tq5XY9R2KzvRXAjV347 zwA7VLXJBQIn+wDb8EP6ye+6St16m+pfc+5VFcuND0L0piJlFwGBm6tMIbQRR2k/NmbP PNMdQ7RkIhrSsq7Z30m2SKoC15QRUbwmnLC3IKHeNrA1iHcYdWoz5RrVo8HYU5Hl7ztC NN3g== 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=YvpPFXDYVGNcXMcfh+1uh3bCwzcNorxpLqnDeyNnf64=; b=x5eHTTqn8SitpFobI4hcRY6O3x8wzyw5m6ubnKRYCV68IBfca5GHa5rpfyW2vIy+N2 GXgSStnrTe5QKVQbRWoeSmb6TeP4SZ3b8t/0T5uMPwv1X2bP6tCka3DLtWMSUlByIzAE 198UC4HjYbl3QGnci65HHy+/vqwGyWEP06fTZIsSZ1hChma2CM4ZiekxoucQIdkDxwNK aBhGvTsCOPHzKneQfLN+1XjWT8rFFjRjWrb1HPwIE6KWrW4WkdZZL965sOmDtbQJVtT6 rsLoIkpA3OP6FEk6HkRmiMXpol+x0OkiJPdBlTiDhet9p9XwPEaJloPx8OatfgoHgLip Migg== 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 l1-20020a170903244100b001990aae7572si4195543pls.294.2023.03.14.21.29.12; Tue, 14 Mar 2023 21:29: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 S230259AbjCODtI convert rfc822-to-8bit (ORCPT + 99 others); Tue, 14 Mar 2023 23:49:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbjCODs7 (ORCPT ); Tue, 14 Mar 2023 23:48:59 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88E562ED64; Tue, 14 Mar 2023 20:48:57 -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 4E94424E1AC; Wed, 15 Mar 2023 11:48:56 +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, 15 Mar 2023 11:48: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; Wed, 15 Mar 2023 11:48:55 +0800 From: William Qiu To: , , CC: Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Emil Renner Berthing" , William Qiu Subject: [PATCH v6 2/2] riscv: dts: starfive: Add syscon node Date: Wed, 15 Mar 2023 11:48:53 +0800 Message-ID: <20230315034853.93677-3-william.qiu@starfivetech.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230315034853.93677-1-william.qiu@starfivetech.com> References: <20230315034853.93677-1-william.qiu@starfivetech.com> MIME-Version: 1.0 X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) 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_NONE, SPF_PASS 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?1760406603886284736?= X-GMAIL-MSGID: =?utf-8?q?1760406603886284736?= Add stg_syscon/sys_syscon/aon_syscon node for JH7110 Soc. Signed-off-by: William Qiu --- arch/riscv/boot/dts/starfive/jh7110.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/riscv/boot/dts/starfive/jh7110.dtsi b/arch/riscv/boot/dts/starfive/jh7110.dtsi index d484ecdf93f7..49dd62276b0d 100644 --- a/arch/riscv/boot/dts/starfive/jh7110.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110.dtsi @@ -362,6 +362,11 @@ i2c2: i2c@10050000 { status = "disabled"; }; + stg_syscon: syscon@10240000 { + compatible = "starfive,jh7110-stg-syscon", "syscon"; + reg = <0x0 0x10240000 0x0 0x1000>; + }; + uart3: serial@12000000 { compatible = "snps,dw-apb-uart"; reg = <0x0 0x12000000 0x0 0x10000>; @@ -466,6 +471,11 @@ syscrg: clock-controller@13020000 { #reset-cells = <1>; }; + sys_syscon: syscon@13030000 { + compatible = "starfive,jh7110-sys-syscon", "syscon"; + reg = <0x0 0x13030000 0x0 0x1000>; + }; + sysgpio: pinctrl@13040000 { compatible = "starfive,jh7110-sys-pinctrl"; reg = <0x0 0x13040000 0x0 0x10000>; @@ -495,6 +505,11 @@ aoncrg: clock-controller@17000000 { #reset-cells = <1>; }; + aon_syscon: syscon@17010000 { + compatible = "starfive,jh7110-aon-syscon", "syscon"; + reg = <0x0 0x17010000 0x0 0x1000>; + }; + aongpio: pinctrl@17020000 { compatible = "starfive,jh7110-aon-pinctrl"; reg = <0x0 0x17020000 0x0 0x10000>;