From patchwork Wed Mar 15 05:58:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Qiu X-Patchwork-Id: 70002 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2161118wrd; Tue, 14 Mar 2023 23:12:42 -0700 (PDT) X-Google-Smtp-Source: AK7set+vmXKN9Yd+v36ruRkoQlxscTEYdZfp+NeRVCLaJjdKNjNjMdUphxnsgyU+2ccvda9ChTmo X-Received: by 2002:aa7:9556:0:b0:624:1ab3:da10 with SMTP id w22-20020aa79556000000b006241ab3da10mr7835619pfq.22.1678860762146; Tue, 14 Mar 2023 23:12:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678860762; cv=none; d=google.com; s=arc-20160816; b=V0NjMy0sgpPii4aDKJVRnL1iADqqOoCtdQffuQf4be6eUZjGWAPzDTCiohXhZ9Ao+B ItiAfv9O37fLroyQnpZT2BoEaHnW++5kmHqrcGVrGqvTdYX6PE0jkfq2q39izZDl8xOz LeyVa3By5NWBYdLTHfAVvpUqyNrhA+AdcHaAK2tao+OpYv6ST4mf3pHNBD1AGdBieVKb kaUX3KWLD+YO0IgcaaaVJ7eQjFlXILsSeU4YS10+U5lji6Mrmp5jgfYoNwaOD6ntyXQm YvUNlfmrIfnY4HS5MXmlO+rYPX6Qe6PWoAXmKzJ4ChBLkDjNX6M1r6pkLCsLRN0p1w26 jUUw== 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=TuyITrSaGh3AwZHOhdM6ZBbu9OYWH8+/S132yHDGCpk=; b=nOgJPi5lfiRYbQUHxx2LRenPNq+BTzLCdPTNM8XwfE6pDkB0muLu10XfXZya04mifX 7+T+ff18IPsm1gTT/SxhOwLvtTU8SwIB8/grYiAi5otJrP+Qagx9YiLH38LhklJmep9F 5CrkqP/nd7yvEuasfYJClPLixnGF3qfLBwyEmublKnJd8eG2wIQwVdEJogBrPPqV6q3G sljVYRLemAQKd4rJdC3KwZ9LmbSofA8UuY/euubwBz4i+yxAo2f1WIHHSV8XdJS80SHO 4+r2t3S1ebSL8GXfhnJ6lXvloWZOsK0F4LSzFQHVU1o1oZwpdDzppaXdA0y3XyKOQf9Q STjA== 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 o19-20020aa79793000000b005e7dc5d1b1bsi4252636pfp.82.2023.03.14.23.12.27; Tue, 14 Mar 2023 23:12:42 -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 S229549AbjCOF62 convert rfc822-to-8bit (ORCPT + 99 others); Wed, 15 Mar 2023 01:58:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229624AbjCOF60 (ORCPT ); Wed, 15 Mar 2023 01:58:26 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AEF330296; Tue, 14 Mar 2023 22:58:17 -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 B3FE924E31D; Wed, 15 Mar 2023 13:58:15 +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 13:58:15 +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 13:58:14 +0800 From: William Qiu To: , , CC: Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Emil Renner Berthing" , William Qiu Subject: [RESEND v6 1/2] dt-bindings: soc: starfive: Add StarFive syscon doc Date: Wed, 15 Mar 2023 13:58:12 +0800 Message-ID: <20230315055813.94740-2-william.qiu@starfivetech.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230315055813.94740-1-william.qiu@starfivetech.com> References: <20230315055813.94740-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?1760413102994696762?= X-GMAIL-MSGID: =?utf-8?q?1760413102994696762?= Add documentation to describe StarFive System Controller Registers. Signed-off-by: William Qiu Reviewed-by: Conor Dooley --- .../soc/starfive/starfive,jh7110-syscon.yaml | 41 +++++++++++++++++++ MAINTAINERS | 5 +++ 2 files changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/starfive/starfive,jh7110-syscon.yaml -- 2.34.1 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..ae7f1d6916af --- /dev/null +++ b/Documentation/devicetree/bindings/soc/starfive/starfive,jh7110-syscon.yaml @@ -0,0 +1,41 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/starfive/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-aon-syscon + - starfive,jh7110-stg-syscon + - starfive,jh7110-sys-syscon + - const: syscon + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + syscon@10240000 { + compatible = "starfive,jh7110-stg-syscon", "syscon"; + reg = <0x10240000 0x1000>; + }; + +... diff --git a/MAINTAINERS b/MAINTAINERS index 958b7ec118b4..fdad60cc9f2e 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/starfive,jh7110-syscon.yaml + STATIC BRANCH/CALL M: Peter Zijlstra M: Josh Poimboeuf From patchwork Wed Mar 15 05:58: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: 70005 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2163456wrd; Tue, 14 Mar 2023 23:19:57 -0700 (PDT) X-Google-Smtp-Source: AK7set/njWYm/RIKRm6PkcxwS9lOBfqtDpvLWk53PVtwg6gTosYEj4zYxTOl/A74jnMV9NlHMIEY X-Received: by 2002:a05:6a20:4a27:b0:d5:3728:cbe with SMTP id fr39-20020a056a204a2700b000d537280cbemr5552717pzb.56.1678861197391; Tue, 14 Mar 2023 23:19:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678861197; cv=none; d=google.com; s=arc-20160816; b=P8RoqtOHt+7m4H/nrOM5wGbF7oPDZFTc8ToPN4D+2ifQNCCmyrDF0TOidmN5RgaZSh W4ld8pNPnaGgU5R2do0U0jR/71iBtU7ShbzyJUD6p+g+d/z4kz55PvCzX/m+LEMcdy9w jrt0OMIeJkYh4hhfHB6f/G+Y9qgFGh1q1X6ZF4ckD7uOmHU9YFJaqmNdOfle0/4vyWQT uZQlztrYTB75ri0LOv7sioPK5hmTyOPfMvGuqywZZhaGC8s69wutnnSRiSqTDpOar1+A Ku3nU8xh6qE9hJ2mUpycui5K7O9DBTsJJ77qAhSubn5HFHwqS6bXBtn3zl47eFYbnhfO soOg== 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=AWrNdETg9KawBVkaAIAKX72nbshqYUhOyC8WjX3sNCl3yWdXkaJzJS7hRPCfgnTJfa W8bNXEE25vkg5UxNgxm7ZHN1DYzLFC9SScVVcW79y+Onv6cD4IhIkQjECXTiaLI1sf4B 1XS76AnAuNxodLQXKXlv1FGkrI8QYpCgq9aRJErZF9e9lAPyfoyoiNf1OxuKO5E077DQ e/tFZ6WBM2QMIkpOTBbw3pRF9hqnkSQACfF7geQug+cX+t4fY4k81m78EewqMB9x8wbM YqmLfPDQR6EUAw8xCYEgE/ibtcMsLcRvl/18T1so37wj+87xiukFk4KKJyC1zV9c0Kwn e8QA== 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 h13-20020a65468d000000b004fc2f2d8d45si4073095pgr.162.2023.03.14.23.19.42; Tue, 14 Mar 2023 23:19:57 -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 S231251AbjCOF6d convert rfc822-to-8bit (ORCPT + 99 others); Wed, 15 Mar 2023 01:58:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229799AbjCOF60 (ORCPT ); Wed, 15 Mar 2023 01:58:26 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AE3829E3D; Tue, 14 Mar 2023 22:58:17 -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 ex01.ufhost.com (Postfix) with ESMTP id E536324E18D; Wed, 15 Mar 2023 13:58:15 +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 13:58:15 +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 13:58:14 +0800 From: William Qiu To: , , CC: Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Emil Renner Berthing" , William Qiu Subject: [RESEND v6 2/2] riscv: dts: starfive: Add syscon node Date: Wed, 15 Mar 2023 13:58:13 +0800 Message-ID: <20230315055813.94740-3-william.qiu@starfivetech.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230315055813.94740-1-william.qiu@starfivetech.com> References: <20230315055813.94740-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?1760413558967059294?= X-GMAIL-MSGID: =?utf-8?q?1760413558967059294?= Add stg_syscon/sys_syscon/aon_syscon node for JH7110 Soc. Signed-off-by: William Qiu Reviewed-by: Conor Dooley --- arch/riscv/boot/dts/starfive/jh7110.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) -- 2.34.1 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>;