From patchwork Mon Sep 4 04:25:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kwanghoon Son X-Patchwork-Id: 13373470 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E545AC83F3E for ; Mon, 4 Sep 2023 04:26:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:References:MIME-Version:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=AopIAtTiXFNOLA7/Jtgypif+8PmV76kR6d8+mWvjscA=; b=FcjLDVw4eCJKjO bw/a7zw+wTIvYRLGL/3WkihlGtAbgE5Se1Za5rH4GXruqqx+g05O2JqyaVq2pH0JyzTVPfQ3uWwCJ 9MxK+f1oJOefRctnG6MQcQfRGuIoCkU1Utm0xAGueNYN9qQZy/Nkzpsz24ZIBhvGRNEhTi+JJzvqi uxJO0PMGkvQEZFZ+n/zg6lC2xMCjyE4Ejd+ryewQtE8zZG7BU5HTLwluDzJTBG5B0KbeXgQHP5X1T qTHZqLo05GE12px4ls+9KIlmFBV2SD0e40QBdH2RRN/zTvmby43cI4dowPcCe4BcGHzvHiDACmsrr 41P7E8RoSA4p0wDFW9ag==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qd1AO-003FS9-2h; Mon, 04 Sep 2023 04:26:24 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qd1AG-003FL6-2P for linux-riscv@lists.infradead.org; Mon, 04 Sep 2023 04:26:22 +0000 Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20230904042606epoutp0110047893730f6c5b29fc75d16edd6aea~Bl4zs3N8i2382223822epoutp01S for ; Mon, 4 Sep 2023 04:26:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20230904042606epoutp0110047893730f6c5b29fc75d16edd6aea~Bl4zs3N8i2382223822epoutp01S DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1693801566; bh=EmA/HppB7J/yQWez+lyoU/J/IHa85Q6RP2Aw+/GrjrQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o5Rd8ytJWN4JqVO7t5jA942u4NttnNuhhR6QS5ZkzQr0EFoqJrzKIPLwJVEjw3Hef ZQzijLh+zOodle+I3b8ajoZo7W02yzs+oKxrgv5V9SvbcH2JyeZ83jkXnt7x7paHoQ ECl34EP2W2E432GtFtZl2VOKuXMLwYbqCtJdYaHQ= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20230904042605epcas1p42009aecd349ac3adcac19567db2ba727~Bl4zSP8Sc0894808948epcas1p4P; Mon, 4 Sep 2023 04:26:05 +0000 (GMT) Received: from epsmges1p3.samsung.com (unknown [182.195.38.235]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4RfFv00xqMz4x9QB; Mon, 4 Sep 2023 04:26:04 +0000 (GMT) Received: from epcas1p2.samsung.com ( [182.195.41.46]) by epsmges1p3.samsung.com (Symantec Messaging Gateway) with SMTP id F5.34.09646.C5C55F46; Mon, 4 Sep 2023 13:26:04 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas1p1.samsung.com (KnoxPortal) with ESMTPA id 20230904042603epcas1p11db03427cc5f434578d29dd51bc3ae85~Bl4xKuFAF2685926859epcas1p1u; Mon, 4 Sep 2023 04:26:03 +0000 (GMT) Received: from epsmgms1p2new.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20230904042603epsmtrp2204ad9e96cccac2277800d5fcdfe183f~Bl4xJ2Nyc0179101791epsmtrp2H; Mon, 4 Sep 2023 04:26:03 +0000 (GMT) X-AuditID: b6c32a37-b23ff700000025ae-75-64f55c5caae6 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 44.CA.08788.B5C55F46; Mon, 4 Sep 2023 13:26:03 +0900 (KST) Received: from mediaserver.. (unknown [10.113.111.131]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20230904042603epsmtip1056d8fd3d3a415dd11d44d31a2404de2~Bl4w8R5wG1614716147epsmtip14; Mon, 4 Sep 2023 04:26:03 +0000 (GMT) From: Kwanghoon Son To: p.zabel@pengutronix.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, jszhang@kernel.org, guoren@kernel.org, wefu@redhat.com, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, inki.dae@samsung.com Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [RFC PATCH 1/3] dt-bindings: reset: Document th1520 reset control Date: Mon, 4 Sep 2023 04:25:57 +0000 Message-Id: <20230904042559.2322997-2-k.son@samsung.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230904042559.2322997-1-k.son@samsung.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrEJsWRmVeSWpSXmKPExsWy7bCmnm5MzNcUg9tvmS22/p7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nVZ5f+U s4vuTVpWpaa5hu2Y1qH0Jb+/vOQ+JSFzSke4pnvT5Gnqbw3qOqwMZh+yXxE0s+DEepb/oh4K kwL+XTWfmn5yS+SzwtOVunMX7Z768pazY46ClgmPYYFy4prwghs8N//HZAkosRRnJBpqMRcV JwIAljeyCREDAAA= X-CMS-MailID: 20230904042603epcas1p11db03427cc5f434578d29dd51bc3ae85 X-Msg-Generator: CA X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20230904042603epcas1p11db03427cc5f434578d29dd51bc3ae85 References: <20230904042559.2322997-1-k.son@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230903_212618_288113_0C83857B X-CRM114-Status: GOOD ( 21.16 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Add documentation to describe th1520 reset driver Signed-off-by: Kwanghoon Son --- .../bindings/reset/thead,th1520-reset.yaml | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/reset/thead,th1520-reset.yaml diff --git a/Documentation/devicetree/bindings/reset/thead,th1520-reset.yaml b/Documentation/devicetree/bindings/reset/thead,th1520-reset.yaml new file mode 100644 index 000000000000..a56d77af464a --- /dev/null +++ b/Documentation/devicetree/bindings/reset/thead,th1520-reset.yaml @@ -0,0 +1,39 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/reset/thead,th1520-reset.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: T-HEAD th1520 SoC Reset Controller + +maintainers: + - Kwanghoon Son + +properties: + compatible: + - items: + - const: thead,th1520-reset + - const: syscon + + reg: + maxItems: 1 + + '#reset-cells': + const: 1 + +required: + - compatible + - reg + - '#reset-cells' + +additionalProperties: false + +examples: + - | + #include + + reset-controller@ffef014000 { + compatible = "thead,th1520-reset", "syscon"; + reg = <0xff 0xef014000 0x0 0x1000>; + #reset-cells = <1>; + }; From patchwork Mon Sep 4 04:25:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kwanghoon Son X-Patchwork-Id: 13373469 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 49447C71153 for ; Mon, 4 Sep 2023 04:26:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:References:MIME-Version:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=e4KH7gzB61qkWM64+Ot5d/VcvIcF+2aSV3dsKvMoQao=; b=dzLxYJbY/4PwaE HqLtfMMy/O1NoRmJHo9g9UxtZ5mypi5PFSuP8WZnCD8Zz5Mku5MkQEU8PCABsGd9BY9qMGaUeKb3P 3gUmSwPHY9ToQhLebmD/ScNm7L9z9J6kbbkRpTG1qmyQVhvtTnJrjJAx3KhaxQfa7NkyuQjnKzeFT riBT6yj8VeSuSrwGe4f4AnbbKqEIyjPQxuSBo99ueIFq5iyxO/UFb2voJyNtmEAD7BmQn+PqD38cr iId9LBQRMaYn7eIrXtiXdejudHuaX7hejvwb1U4BShtNCBGQcoduDR7mCVOIed49zSEIe8Oou+BrW YfWepAc04jzBsv+wOA8A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qd1AL-003FRH-1m; Mon, 04 Sep 2023 04:26:21 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qd1AG-003FL1-2Q for linux-riscv@lists.infradead.org; Mon, 04 Sep 2023 04:26:20 +0000 Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20230904042606epoutp033ec83a564a8a659e90e05e09d8ee92b4~Bl4zX18Kj3054230542epoutp03f for ; Mon, 4 Sep 2023 04:26:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20230904042606epoutp033ec83a564a8a659e90e05e09d8ee92b4~Bl4zX18Kj3054230542epoutp03f DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1693801566; bh=mmg8oLshxsrQdYCnlidyh+NTlXcuOiwPxXyFC6ElhqU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rURroMtgX50oUCXNUesga54s9Igo7WJiGoMPI2Du4/AoOlOKVQenhJHSme6iI32Un eex2qYRlnc+b4hnyz3rIjUg0i5OKiDYlVwSryAWyb5YsxVjaJ7l98NZNNwghZfl9EL 4ozmO0ecQJioKKE7bpB/rSey29ItG4AQ2BKwT9AE= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20230904042605epcas1p4d7153219063c82dcb8c966b945367045~Bl4yuYe1o0894808948epcas1p4H; Mon, 4 Sep 2023 04:26:05 +0000 (GMT) Received: from epsmges1p3.samsung.com (unknown [182.195.36.136]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4RfFv03CB2z4x9Px; Mon, 4 Sep 2023 04:26:04 +0000 (GMT) Received: from epcas1p1.samsung.com ( [182.195.41.45]) by epsmges1p3.samsung.com (Symantec Messaging Gateway) with SMTP id 07.34.09646.C5C55F46; Mon, 4 Sep 2023 13:26:04 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas1p2.samsung.com (KnoxPortal) with ESMTPA id 20230904042603epcas1p2ae04f309c60dde70a0b254287f61dfb1~Bl4xYoBCf1830118301epcas1p2p; Mon, 4 Sep 2023 04:26:03 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20230904042603epsmtrp24e110468c9bf53abe831621452a64519~Bl4xXrCP50179101791epsmtrp2I; Mon, 4 Sep 2023 04:26:03 +0000 (GMT) X-AuditID: b6c32a37-39cc9a80000025ae-77-64f55c5c5f1d Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 37.1A.08742.B5C55F46; Mon, 4 Sep 2023 13:26:03 +0900 (KST) Received: from mediaserver.. (unknown [10.113.111.131]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20230904042603epsmtip175f6ce79549cbc599c80236f3c6b86c5~Bl4xEnndG1856018560epsmtip1f; Mon, 4 Sep 2023 04:26:03 +0000 (GMT) From: Kwanghoon Son To: p.zabel@pengutronix.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, jszhang@kernel.org, guoren@kernel.org, wefu@redhat.com, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, inki.dae@samsung.com Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [RFC PATCH 2/3] reset: Add th1520 reset driver support Date: Mon, 4 Sep 2023 04:25:58 +0000 Message-Id: <20230904042559.2322997-3-k.son@samsung.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230904042559.2322997-1-k.son@samsung.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrMJsWRmVeSWpSXmKPExsWy7bCmrm5MzNcUgyNtYhZbf89it1iz9xyT xfwj51gtXuxtZLGYdH8Ci0XzsfVsFn0vHjJbXN41h81i2+cWNou7906wWLy83MNs0TaL36J1 7xF2i5b9U1gc+DzevHzJ4nG44wu7x6ZVnWwed67tYfPYvKTeo/+vgcf7fVfZPPq2rGL0uNR8 nd3j8ya5AK6obJuM1MSU1CKF1Lzk/JTMvHRbJe/geOd4UzMDQ11DSwtzJYW8xNxUWyUXnwBd t8wcoPuVFMoSc0qBQgGJxcVK+nY2RfmlJakKGfnFJbZKqQUpOQWmBXrFibnFpXnpenmpJVaG BgZGpkCFCdkZbW/iC85qVdw7Wt7AeFG5i5GTQ0LARGLRqessXYxcHEICOxglDvavYoNwPjFK bLq3kwnC+cYosfnfWTaYlhfL1rOA2EICexklnqyAan/DKHG1Zw9YEZuAusSStrXsIAkRgf+M Em/+tDKBJJgF4iVOXDvHDGILC9hLXLrxih3EZhFQBbI3MYLYvAIWEqfPb2KH2CYvsf/gWbB6 TgFLiQ8PD0LVCEqcnPmEBWKmvETz1tnMIMskBPZwSDyY9Ayq2UXi/bVtULawxKvjW6BsKYnP 7/ZCvZMtcfQjjF0icX3WIlYI21hi/9LJQEdzAC3QlFi/Sx8irCix8/dcRoi9fBLvvvawgpRI CPBKdLQJQZjyErc6yyGqRSXOPP0INdxD4vixdcyQsOphlHjVuZNlAqPCLCTfzELyzSyExQsY mVcxiqUWFOempxYbFhjD4zc5P3cTIzg1a5nvYJz29oPeIUYmDsZDjBIczEoivHLan1KEeFMS K6tSi/Lji0pzUosPMZoCw3ois5Rocj4wO+SVxBuaWBqYmBkZm1gYmhkqifPeetabIiSQnliS mp2aWpBaBNPHxMEp1cD00P5f4B5HhUXKrZ83PxDrP2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ddft7n2stHkrM WZ9yV3N5/IYJbuqOXZYd83KmV8Y9utu05vbpG3vkZ/lXMFRvCN9w/pD33suGR09bND44ERR3 +qacwNvKAwdSPTlv9Ak5HhI5fKjdi0moeuHyVEYtB3PN07/5Ew8qb/fOmRUvMVspxVVM+sSc 1j+fjZP+7LecpPpktUNcJoPPqfYkpbkiNf+iXUyvTHCcnxOmI7+gjF/L5Gm6Qryy0Z470i26 D7jSo78c3MtQMGf18mD1r64G1gcPRn5rlt9RWHng1TvNig1mNdbHbzxXYinOSDTUYi4qTgQA UyobFxADAAA= X-CMS-MailID: 20230904042603epcas1p2ae04f309c60dde70a0b254287f61dfb1 X-Msg-Generator: CA X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20230904042603epcas1p2ae04f309c60dde70a0b254287f61dfb1 References: <20230904042559.2322997-1-k.son@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230903_212618_284377_2609AF22 X-CRM114-Status: GOOD ( 27.40 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org This driver supports th1520 T-HEAD SoC reset platform device. Signed-off-by: Kwanghoon Son --- drivers/reset/Kconfig | 10 +++ drivers/reset/Makefile | 1 + drivers/reset/reset-th1520.c | 109 +++++++++++++++++++++++ include/dt-bindings/reset/th1520-reset.h | 9 ++ 4 files changed, 129 insertions(+) create mode 100644 drivers/reset/reset-th1520.c create mode 100644 include/dt-bindings/reset/th1520-reset.h diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig index ccd59ddd7610..ec69e6bbba6e 100644 --- a/drivers/reset/Kconfig +++ b/drivers/reset/Kconfig @@ -253,6 +253,16 @@ config RESET_SUNXI help This enables the reset driver for Allwinner SoCs. +config RESET_TH1520 + bool "TH1520 Reset Driver" + depends on (ARCH_THEAD || COMPILE_TEST) && OF + select MFD_SYSCON + default ARCH_THEAD + help + Support for the T-HEAD 1520 RISC-V SoC reset controller. + Say Y if you want to control reset signals provided by this + controller. + config RESET_TI_SCI tristate "TI System Control Interface (TI-SCI) reset driver" depends on TI_SCI_PROTOCOL || (COMPILE_TEST && TI_SCI_PROTOCOL=n) diff --git a/drivers/reset/Makefile b/drivers/reset/Makefile index 8270da8a4baa..5c858e62241a 100644 --- a/drivers/reset/Makefile +++ b/drivers/reset/Makefile @@ -33,6 +33,7 @@ obj-$(CONFIG_RESET_SIMPLE) += reset-simple.o obj-$(CONFIG_RESET_SOCFPGA) += reset-socfpga.o obj-$(CONFIG_RESET_SUNPLUS) += reset-sunplus.o obj-$(CONFIG_RESET_SUNXI) += reset-sunxi.o +obj-$(CONFIG_RESET_TH1520) += reset-th1520.o obj-$(CONFIG_RESET_TI_SCI) += reset-ti-sci.o obj-$(CONFIG_RESET_TI_SYSCON) += reset-ti-syscon.o obj-$(CONFIG_RESET_TI_TPS380X) += reset-tps380x.o diff --git a/drivers/reset/reset-th1520.c b/drivers/reset/reset-th1520.c new file mode 100644 index 000000000000..4c781377ac23 --- /dev/null +++ b/drivers/reset/reset-th1520.c @@ -0,0 +1,109 @@ +// SPDX-License-Identifier: GPL-2.0-only + +#include +#include +#include +#include +#include +#include + +struct th1520_rst_signal { + unsigned int offset, bit; +}; + +struct th1520_rst { + struct reset_controller_dev rcdev; + struct regmap *regmap; + const struct th1520_rst_signal *signals; +}; + +enum th1520_rst_registers { + RST_WDT0 = 0x0034, + RST_WDT1 = 0x0038, +}; + +static int th1520_reset_update(struct th1520_rst *rst, unsigned long id, + unsigned int value) +{ + const struct th1520_rst_signal *signal = &rst->signals[id]; + + return regmap_update_bits(rst->regmap, signal->offset, signal->bit, + value); +} + +static const struct th1520_rst_signal th1520_rst_signals[] = { + [TH1520_RESET_WDT0] = { RST_WDT0, BIT(0) }, + [TH1520_RESET_WDT1] = { RST_WDT1, BIT(0) }, +}; + +static struct th1520_rst *to_th1520_rst(struct reset_controller_dev *rcdev) +{ + return container_of(rcdev, struct th1520_rst, rcdev); +} + +static int th1520_reset_set(struct reset_controller_dev *rcdev, + unsigned long id, bool assert) +{ + struct th1520_rst *rst = to_th1520_rst(rcdev); + const unsigned int bit = rst->signals[id].bit; + unsigned int value = assert ? bit : 0; + + return th1520_reset_update(rst, id, value); +} + +static int th1520_reset_assert(struct reset_controller_dev *rcdev, + unsigned long id) +{ + return th1520_reset_set(rcdev, id, false); +} + +static int th1520_reset_deassert(struct reset_controller_dev *rcdev, + unsigned long id) +{ + return th1520_reset_set(rcdev, id, true); +} + +static const struct reset_control_ops th1520_rst_ops = { + .assert = th1520_reset_assert, + .deassert = th1520_reset_deassert, +}; + +static int th1520_reset_probe(struct platform_device *pdev) +{ + struct device *dev = &pdev->dev; + struct th1520_rst *rst; + struct regmap_config config = { .name = "rst" }; + + rst = devm_kzalloc(dev, sizeof(*rst), GFP_KERNEL); + if (!rst) + return -ENOMEM; + + rst->signals = th1520_rst_signals; + rst->regmap = syscon_node_to_regmap(dev->of_node); + if (IS_ERR(rst->regmap)) + return PTR_ERR(rst->regmap); + + regmap_attach_dev(dev, rst->regmap, &config); + + rst->rcdev.owner = THIS_MODULE; + rst->rcdev.dev = dev; + rst->rcdev.of_node = dev->of_node; + rst->rcdev.ops = &th1520_rst_ops; + rst->rcdev.nr_resets = ARRAY_SIZE(th1520_rst_signals); + + return devm_reset_controller_register(dev, &rst->rcdev); +} + +static const struct of_device_id th1520_reset_dt_ids[] = { + { .compatible = "thead,th1520-reset" }, + { /* sentinel */ }, +}; + +static struct platform_driver th1520_reset_driver = { + .probe = th1520_reset_probe, + .driver = { + .name = "th1520-reset", + .of_match_table = th1520_reset_dt_ids, + }, +}; +builtin_platform_driver(th1520_reset_driver); diff --git a/include/dt-bindings/reset/th1520-reset.h b/include/dt-bindings/reset/th1520-reset.h new file mode 100644 index 000000000000..ec10751814e5 --- /dev/null +++ b/include/dt-bindings/reset/th1520-reset.h @@ -0,0 +1,9 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ + +#ifndef DT_BINDING_RESET_TH1520_H +#define DT_BINDING_RESET_TH1520_H + +#define TH1520_RESET_WDT0 0 +#define TH1520_RESET_WDT1 1 + +#endif From patchwork Mon Sep 4 04:25:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kwanghoon Son X-Patchwork-Id: 13373471 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0389CC83F33 for ; Mon, 4 Sep 2023 04:26:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:References:MIME-Version:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=KsQTuATXJ5s2jgTRKuGlGtAn5WtFuuzUtOH56WZ/DyQ=; b=hzJdmxuyej9Zn4 qEwek6olIfH2y6LzyFAoGupjc4MchTW0XcFWqTS2vEbHLoyQ5soB0kWhbbwfHHAGuDjfCSYGR6Cej NHlkEp6WyliRxujjKUb4VW9WyjL4f+zCRz5TY3uuOLTtQ/g9CLiq0pw4ipnKXQki7Ap6uflvZd+WX 1cmghcQJn9IYDNb9JThQ/EId6A6VOoe+mJA+mn9kxOl52nONK2ZDEMydRBoRcJw1qjwT3zaEjdOhu EMpJjIr+0gWjFNfqn4b4NQHPHUTRdGxc9dHrGSTkgV7a+hHKDw8CeqKkxKcdW+kuCUcQPMK5q4JOW sdc+81jmitHDX4J5a9wQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qd1AM-003FRa-0b; Mon, 04 Sep 2023 04:26:22 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qd1AG-003FL3-2Q for linux-riscv@lists.infradead.org; Mon, 04 Sep 2023 04:26:21 +0000 Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20230904042606epoutp0309968e41465b1d3fed56c50f90ac50a0~Bl4zfARji3009930099epoutp03d for ; Mon, 4 Sep 2023 04:26:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20230904042606epoutp0309968e41465b1d3fed56c50f90ac50a0~Bl4zfARji3009930099epoutp03d DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1693801566; bh=F0Cw2/eIVKvUe9Ad3kDZbvYRFetszRqIT02C8jm0Ihc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vfjfoOzR59kOatlizBYeVUYzM/G7l1Kw/qXf2PZqmi2HiPI6GFkR9DCoB29HvSyTr 3yqBfe6U6Dm29hva0IpLVw1WBf6OhW5Mu7haxZ0BbL3QthqoITYpWok4bV7x5s/Bne xTMU/D/dnijDqD7fBDAARwP4WGLGhbFWQWWY50HI= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20230904042605epcas1p13e75eb52c8cef4bd57e8e556bdb6d119~Bl4yzpxWN3248132481epcas1p1g; Mon, 4 Sep 2023 04:26:05 +0000 (GMT) Received: from epsmgec1p1-new.samsung.com (unknown [182.195.38.232]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4RfFv02xxqz4x9Q1; Mon, 4 Sep 2023 04:26:04 +0000 (GMT) Received: from epcas1p3.samsung.com ( [182.195.41.47]) by epsmgec1p1-new.samsung.com (Symantec Messaging Gateway) with SMTP id 0C.8B.18968.C5C55F46; Mon, 4 Sep 2023 13:26:04 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas1p4.samsung.com (KnoxPortal) with ESMTPA id 20230904042603epcas1p47c4e858d65f2618d747bdc214d350cf7~Bl4xbOmDK0894808948epcas1p46; Mon, 4 Sep 2023 04:26:03 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20230904042603epsmtrp18accbbeb8bdfa7bc1a73b0833efad0e2~Bl4xaYGUI0102601026epsmtrp14; Mon, 4 Sep 2023 04:26:03 +0000 (GMT) X-AuditID: b6c32a4c-34c49a8000004a18-e3-64f55c5cf3a8 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 28.1A.08742.B5C55F46; Mon, 4 Sep 2023 13:26:03 +0900 (KST) Received: from mediaserver.. (unknown [10.113.111.131]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20230904042603epsmtip10f0955ba6b9506551bf7511184e42159~Bl4xNs_XB1398813988epsmtip1i; Mon, 4 Sep 2023 04:26:03 +0000 (GMT) From: Kwanghoon Son To: p.zabel@pengutronix.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, jszhang@kernel.org, guoren@kernel.org, wefu@redhat.com, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, inki.dae@samsung.com Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [RFC PATCH 3/3] riscv: dts: Add th1520 reset device tree Date: Mon, 4 Sep 2023 04:25:59 +0000 Message-Id: <20230904042559.2322997-4-k.son@samsung.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230904042559.2322997-1-k.son@samsung.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrJJsWRmVeSWpSXmKPExsWy7bCmvm5MzNcUg1t/RSy2/p7FbrFm7zkm i/lHzrFavNjbyGIx6f4EFovmY+vZLPpePGS2uLxrDpvFts8tbBZ3751gsXh5uYfZom0Wv0Xr 3iPsFi37p7A48Hm8efmSxeNwxxd2j02rOtk87lzbw+axeUm9R/9fA4/3+66yefRtWcXocan5 OrvH501yAVxR2TYZqYkpqUUKqXnJ+SmZeem2St7B8c7xpmYGhrqGlhbmSgp5ibmptkouPgG6 bpk5QPcrKZQl5pQChQISi4uV9O1sivJLS1IVMvKLS2yVUgtScgpMC/SKE3OLS/PS9fJSS6wM DQyMTIEKE7IzXv/fxFjwmKvi2ck9LA2M3zm6GDk5JARMJG42v2ftYuTiEBLYwyix594UJgjn E6PEyssHGSGcb4wSHd9+MMK09M59zQ6R2MsoMfv4V6j+N4wS257/YAapYhNQl1jSthasSkTg P6PEmz+tTCAJZoF4iRPXzoEVCQs4Sqx4/YIVxGYRUJVoXLINqIaDg1fAQuLoJWOIbfIS+w+e BSvnFLCU+PDwINgVvAKCEidnPmGBGCkv0bx1NjPILgmBPRwSu78dZoNodpFoafjKCmELS7w6 voUdwpaSeNnfBmVnSxz9uBeqvkTi+qxFUPXGEvuXTga7h1lAU2L9Ln2IsKLEzt9zGSH28km8 +9rDClIiIcAr0dEmBGHKS9zqLIeoFpU48/Qj1HAPiU+T26Hh1sMosfblVKYJjAqzkHwzC8k3 sxAWL2BkXsUolVpQnJuemmxYYKibl1oOj+Xk/NxNjOA0reWzg/H7+r96hxiZOBgPMUpwMCuJ 8Mppf0oR4k1JrKxKLcq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7X4EKM0B4uSOK/4i94UIYH0xJLU7NTUgtQimCwTB6dUA5PPG6Ooc7G2L0Vq WW23+Mw0LbvS1NVY6HuD1+nZvwWiZ6erTZHMDDKUs7qbIBddlL9Bm/d8oIbO1JJVaRkMX9+s u+SsUn5QfmXKPFnuKS0vd/eqlf3Mn3bTLMQxp1nGtdcvWtWcR4ntbFWi2JU39Wsr8+fPluI6 4r+t23e3gsEtJ79//xsO2344vTRV+Cv7Hrs9R9V+GtrqCMqdzt6nrL9toe2CmPK8E2Ki/PMf RuxMVDG4nL+14HPh72iezefKDuwtV1ASWuUtXFKnMi2qbD7z1q7W3PqDLvprvtz/cGbC6SmH 5131/PH+kqvayX33g8K2H9E7lBUsbyK47LrH/dBjXovD1q3a/ptddJGMhxJLcUaioRZzUXEi ACRhl6sQAwAA X-CMS-MailID: 20230904042603epcas1p47c4e858d65f2618d747bdc214d350cf7 X-Msg-Generator: CA X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20230904042603epcas1p47c4e858d65f2618d747bdc214d350cf7 References: <20230904042559.2322997-1-k.son@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230903_212618_304661_7EBC5F37 X-CRM114-Status: GOOD ( 14.94 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Add reset device tree for th1520 SoC Signed-off-by: Kwanghoon Son --- arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi | 4 ++++ arch/riscv/boot/dts/thead/th1520.dtsi | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi b/arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi index a802ab110429..b689cc049ad8 100644 --- a/arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi +++ b/arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi @@ -36,3 +36,7 @@ &uart_sclk { &dmac0 { status = "okay"; }; + +&rst { + status = "okay"; +}; diff --git a/arch/riscv/boot/dts/thead/th1520.dtsi b/arch/riscv/boot/dts/thead/th1520.dtsi index ce708183b6f6..1cacfa386d19 100644 --- a/arch/riscv/boot/dts/thead/th1520.dtsi +++ b/arch/riscv/boot/dts/thead/th1520.dtsi @@ -5,6 +5,7 @@ */ #include +#include / { compatible = "thead,th1520"; @@ -418,5 +419,12 @@ portf: gpio-controller@0 { interrupts = <55 IRQ_TYPE_LEVEL_HIGH>; }; }; + + rst: reset-controller@ffef014000 { + compatible = "thead,th1520-reset", "syscon"; + reg = <0xff 0xef014000 0x0 0x1000>; + #reset-cells = <1>; + status = "disabled"; + }; }; };