From patchwork Tue Sep 12 02:49:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kwanghoon Son X-Patchwork-Id: 13380565 X-Patchwork-Delegate: mail@conchuod.ie 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 CD4A3CA0EC8 for ; Tue, 12 Sep 2023 02:49:42 +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=LlVLxWorDdOPXoPZPUdxEZ4tm83h1NxD7PMpe9OJRS4=; b=ihSOslIxNRr+Fz J6pRkLF4zqTrGRZM7a+O75rlcBaWsWcUSfk/yxXmr4smCrbQ5urjTFVmUtzCzPpIkp7BcYmV4k1lS 9Nsf6Ve9uRyAO/kfIv9Ew9I/GrMuMRmUQ9baN20+NE1y2CVllLHiWfeYaedsQoBwoFVyAQindOIdy D278g0exJYVOLTMxxfjsyaO1dZWqS1P2OQ9vW97noVt0SNtKZ5d5AAIlu+qHM4+w2FP5xjpokFwzI 1e4xHfTWRGVpJxdu3D5VX/SJS9dsbytXIe7mE0ybMm1/EVnhWOr4EagVWHCJcRrl7BclvoTj+kIqJ z9yAqILCBqM9KnXh+PoQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qftT4-001zKi-28; Tue, 12 Sep 2023 02:49:34 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qftSy-001zJ2-0K for linux-riscv@lists.infradead.org; Tue, 12 Sep 2023 02:49:33 +0000 Received: from epcas1p2.samsung.com (unknown [182.195.41.46]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20230912024919epoutp010325efc1511586234bda5b4e22e65a82~EBumFummN0941609416epoutp01C for ; Tue, 12 Sep 2023 02:49:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20230912024919epoutp010325efc1511586234bda5b4e22e65a82~EBumFummN0941609416epoutp01C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1694486959; bh=pcwXxZ3ZJyENqzSg2Gt/59d3eNX8TmAD5sk0ptGAf5s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GHgK9DhIDcG/uwoCdaJTD7uIohV4iXs5WfqDg6+kLUKPMOs8+2e4TDVcOPZJUDXCV 0QVIXPRFh3TGAf+1pw388aAyA6xN+1zaDEg6xJNx+YWvf7zeRhnZzYr/j08erQku3X oCSbV22L8/KHp1/cRTR4hk4g0BKtWtnCA2XGThk8= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20230912024919epcas1p3f51689c295fc4a8e81051d033dd9b795~EBulmUnkW0111901119epcas1p3Z; Tue, 12 Sep 2023 02:49:19 +0000 (GMT) Received: from epsmges1p4.samsung.com (unknown [182.195.36.136]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4Rl7Md6cs9z4x9Q4; Tue, 12 Sep 2023 02:49:17 +0000 (GMT) Received: from epcas1p3.samsung.com ( [182.195.41.47]) by epsmges1p4.samsung.com (Symantec Messaging Gateway) with SMTP id 42.91.10163.DA1DFF46; Tue, 12 Sep 2023 11:49:17 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas1p4.samsung.com (KnoxPortal) with ESMTPA id 20230912024917epcas1p4bb4d649f97b592c3245b10b6450d32cf~EBuj0uZhm0730507305epcas1p4g; Tue, 12 Sep 2023 02:49:17 +0000 (GMT) Received: from epsmgmc1p1new.samsung.com (unknown [182.195.42.40]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20230912024917epsmtrp1bb0d0e56c4295b7802ed3dcd37d331f1~EBujz97Bh2900529005epsmtrp1j; Tue, 12 Sep 2023 02:49:17 +0000 (GMT) X-AuditID: b6c32a38-4dbf8700000027b3-eb-64ffd1ad9c74 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgmc1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 62.A7.08649.DA1DFF46; Tue, 12 Sep 2023 11:49:17 +0900 (KST) Received: from mediaserver.. (unknown [10.113.111.131]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20230912024917epsmtip15b5aa7104165c06080e15d51431293b4~EBujiunKd3056130561epsmtip1J; Tue, 12 Sep 2023 02:49:17 +0000 (GMT) From: k.son@samsung.com 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, Kwanghoon Son Subject: [PATCH 1/3] dt-bindings: reset: Document th1520 reset control Date: Tue, 12 Sep 2023 02:49:12 +0000 Message-Id: <20230912024914.3769440-2-k.son@samsung.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230912024914.3769440-1-k.son@samsung.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrNJsWRmVeSWpSX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yj9unxwpzFEq/v5pW5pnFsValUXGZZMYqpkcW+w7Wdi+5vEd8 82e/aRXrO+/lyO6ackPVUVur++46d3+T0pofOVba1eEz1OW/Lvmi+ipf0lUz8emysuftxoI7 BYSsOzZ+v57Ov1y9knmtzdfTT+wzJt2+rKi29Nuv72YSyW7NApPSklS2sPLZPNY4ZqKlxFKc kWioxVxUnAgA0hQJYRgDAAA= X-CMS-MailID: 20230912024917epcas1p4bb4d649f97b592c3245b10b6450d32cf X-Msg-Generator: CA X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20230912024917epcas1p4bb4d649f97b592c3245b10b6450d32cf References: <20230912024914.3769440-1-k.son@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230911_194928_481629_B0A01273 X-CRM114-Status: GOOD ( 20.84 ) 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 From: Kwanghoon Son Add documentation to describe th1520 reset device Signed-off-by: Kwanghoon Son --- .../bindings/reset/thead,th1520-reset.yaml | 47 +++++++++++++++++++ include/dt-bindings/reset/th1520-reset.h | 9 ++++ 2 files changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/reset/thead,th1520-reset.yaml create mode 100644 include/dt-bindings/reset/th1520-reset.h 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..6724a9ccdd55 --- /dev/null +++ b/Documentation/devicetree/bindings/reset/thead,th1520-reset.yaml @@ -0,0 +1,47 @@ +# 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 + +allOf: + - $ref: /schemas/mfd/syscon.yaml# + +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 + + soc { + #address-cells = <2>; + #size-cells = <2>; + + reset-controller@ffef014000 { + compatible = "thead,th1520-reset", "syscon"; + reg = <0xff 0xef014000 0x0 0x1000>; + #reset-cells = <1>; + }; + }; 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 Tue Sep 12 02:49:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kwanghoon Son X-Patchwork-Id: 13380567 X-Patchwork-Delegate: mail@conchuod.ie 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 9DB4DCA0ECB for ; Tue, 12 Sep 2023 02:49:43 +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=psVZ2jNRjydZC9MZS7xcTBsnVrUnHoPXg5gm0CKOrng=; b=KAgGReqLccwVCj EQ6ZaN0ySzDy70n7Go9/kGncn6Jntgh9zPhTOOYQHeoOFoMyhJ9+3fWTp68epsU7yc+IPw08apcsL nPotpHsvJL4wIcoMHXb6mPDs/ypr0Jjl4wJQdUY0R+tMTB7+nN8jCvG1MIEpWKyne9xwtCAnLTNdk 1u+6UONRyhW2/x9/QeDgnt+Bqv4ZLCv2GIRdMIVdhjOT9WJBogCjEQyDc+1nlwz8jGh2JeQDGP2wD sQphuffXHScQ3dPtV3mEN8kv1bMXosuT4yWIP/5uNF4cU/eRJipOC7X7dkRRRD4xyKLyJqZXfKHO8 /mzXe2pfL9NfH5cfK50g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qftT7-001zLM-12; Tue, 12 Sep 2023 02:49:37 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qftSx-001zJ1-28 for linux-riscv@lists.infradead.org; Tue, 12 Sep 2023 02:49:35 +0000 Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20230912024919epoutp02649a18eb9d80d79cb48dda28e130c584~EBul09S4Z2435524355epoutp02P for ; Tue, 12 Sep 2023 02:49:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20230912024919epoutp02649a18eb9d80d79cb48dda28e130c584~EBul09S4Z2435524355epoutp02P DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1694486959; bh=jDYZmDUeTmt2O3a/Ef2SDGzOD2Hkcty68MUJtsHU2FY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kgdyA6mbbdnNaf24wjf8rAAh9vyDRXYJfGme1gb2+AMkQl9PPWQlv0QO0TcqjStTk 4+9adBtw0ORVaId2Fv2RkYWSmXwJawasONC3Ck/dTaXnCsAOVnwnaJtS8L/C6xc16L vBxYLn8UmHs+cNfSbSm2CXA/NQZCsnYUsxk7ZLQ4= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20230912024919epcas1p1f7ca91929217cf85eed9ae9da76f319e~EBulT1dF90079800798epcas1p1N; Tue, 12 Sep 2023 02:49:19 +0000 (GMT) Received: from epsmgec1p1-new.samsung.com (unknown [182.195.36.134]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4Rl7Md6QgPz4x9Q1; Tue, 12 Sep 2023 02:49:17 +0000 (GMT) Received: from epcas1p4.samsung.com ( [182.195.41.48]) by epsmgec1p1-new.samsung.com (Symantec Messaging Gateway) with SMTP id 1C.CF.18968.DA1DFF46; Tue, 12 Sep 2023 11:49:17 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas1p2.samsung.com (KnoxPortal) with ESMTPA id 20230912024917epcas1p26c59f79ab6904823417d625d6a711d36~EBuj65lQh1134811348epcas1p2p; Tue, 12 Sep 2023 02:49:17 +0000 (GMT) Received: from epsmgmc1p1new.samsung.com (unknown [182.195.42.40]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20230912024917epsmtrp23542eae371122245bb0958d57aa2d4ff~EBuj6GoCx1886418864epsmtrp2g; Tue, 12 Sep 2023 02:49:17 +0000 (GMT) X-AuditID: b6c32a4c-a9bff70000004a18-7e-64ffd1ad18dc Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgmc1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 63.A7.08649.DA1DFF46; Tue, 12 Sep 2023 11:49:17 +0900 (KST) Received: from mediaserver.. (unknown [10.113.111.131]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20230912024917epsmtip153395a4c23ac602aa74f5c5e34d07309~EBujrGCwI0225002250epsmtip1F; Tue, 12 Sep 2023 02:49:17 +0000 (GMT) From: k.son@samsung.com 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, Kwanghoon Son Subject: [PATCH 2/3] reset: Add th1520 reset driver support Date: Tue, 12 Sep 2023 02:49:13 +0000 Message-Id: <20230912024914.3769440-3-k.son@samsung.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230912024914.3769440-1-k.son@samsung.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrPJsWRmVeSWpSXmKPExsWy7bCmge7ai/9TDF41Glts/T2L3WLN3nNM FvOPnGO1eLG3kcVi0v0JLBbNx9azWfSuucpk0ffiIbPF5V1z2Cy2fW5hs7h77wSLxcvLPcwW bbP4LVr3HmG3aNk/hcWB3+PNy5csHoc7vrB7bFrVyeZx59oeNo/NS+o9+v8aeLzfd5XNo2/L KkaPS83X2T0+b5IL4IrKtslITUxJLVJIzUvOT8nMS7dV8g6Od443NTMw1DW0tDBXUshLzE21 VXLxCdB1y8wBekJJoSwxpxQoFJBYXKykb2dTlF9akqqQkV9cYquUWpCSU2BaoFecmFtcmpeu l5daYmVoYGBkClSYkJ3x+N0N1oL1ahVP33s2ME5W6GLk5JAQMJE4+2A5WxcjF4eQwB5GicZD R1kgnE+MEq3/FjBCON8YJZZ/X8oK07L+xF12iMReRon53xeyQjh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VyeZx59oeNo/NS+o9+v8aeLzfd5XNo2/L KkaPS83X2T0+b5IL4IrisklJzcksSy3St0vgynj87gZrwXq1iqfvPRsYJyt0MXJySAiYSKw/ cZe9i5GLQ0hgN6PE+eMbWCASohIdlxsZuxg5gGxhicOHiyFqXjFKTF71jB2khk1AXKLz2kpG kISIQC+TxIePS5hAHGaBNkaJEx+2MoNUCQtYS0w6sI8JxGYRUJXYPXcdmM0rYCFx4cQyNoht 8hL7D54Fq+cUsJSYO6WbEcQWAqq5/+EzI0S9oMTJmU/ArmMGqm/eOpt5AqPALCSpWUhSCxiZ VjFKphYU56bnJhsWGOallusVJ+YWl+al6yXn525iBMeUlsYOxnvz/+kdYmTiYDzEKMHBrCTC W3Lob4oQb0piZVVqUX58UWlOavEhRmkOFiVxXsMZs1OEBNITS1KzU1MLUotgskwcnFINTP3t rfmxR1bk9y7XVbnwfa/Ph2c/313O/BKpfa+t/sYu5y3bGS4/1/jbedwr4qr7d51WycnSU8oP /bjAo6C/eGHZltUnT57sKJuXqPjdZMGTYx+Ytun/5Wu8KTpHnnlTmM77W9K7G+yevFdTfbb7 dcn6uo3Mp3LvzT3IIR+Vc8BY3Wmy3eQN91xf/rSffPXcc5+p0xVMCo35+cTWrIpY+Pru/Zcv 2d9KKJyTWb3W4PH3eIUJIqLftaXMu7q47ygK5r3J8C3b+9Py/KVJVbdOFbJUVu198O25eq6S 0Iad8S1TE59fvvF+JZMzr5SQN7+at8bdbr59LiwhNf/XNYV+nDDn366+84+WPpxYKihlJfNd iaU4I9FQi7moOBEAAIRXDxgDAAA= X-CMS-MailID: 20230912024917epcas1p26c59f79ab6904823417d625d6a711d36 X-Msg-Generator: CA X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20230912024917epcas1p26c59f79ab6904823417d625d6a711d36 References: <20230912024914.3769440-1-k.son@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230911_194928_262061_5D5DACAA X-CRM114-Status: GOOD ( 24.28 ) 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 From: Kwanghoon Son 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 +++++++++++++++++++++++++++++++++++ 3 files changed, 120 insertions(+) create mode 100644 drivers/reset/reset-th1520.c 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); From patchwork Tue Sep 12 02:49:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kwanghoon Son X-Patchwork-Id: 13380566 X-Patchwork-Delegate: mail@conchuod.ie 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 C168FCA0ECD for ; Tue, 12 Sep 2023 02:49:44 +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=cjKNsyEv19XkC/nLyfvxNwCBkWyI8ELNdGG9qOCp1OQ=; b=RrS2GQUDspOOJF nNhzznDYPZ6gIV7iu/jy5mzfBNojMDJh0qzUtFvnvLlTHHoe95zSFXwkAi3HPLOTXYpd2URq2ntcp DfXdQD4tzLkwAF7JS4iMqg5vvY9u8SzlKaMmd8PVsslc71n1eQ6Qs4A4xvOyKA9rQr61mgiZm88BR B2eP3CAI7MLKJh4gU/vuwhxsmSeN8eCSG083uc3QxoyieUmQhPqbcbysAcaSwxyZbcvVfyOWDs0Xj bZe36O/1qnttbEvoX+YQLc5Gd6DroCCMKsW/RzMblD3lgQcnD4+9RPk9r0oK4NYMyeo/YbnQR6UyE zaq+L5FrioZQWqE20AHg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qftT8-001zLr-2R; Tue, 12 Sep 2023 02:49:38 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qftSx-001zJ0-28 for linux-riscv@lists.infradead.org; Tue, 12 Sep 2023 02:49:35 +0000 Received: from epcas1p2.samsung.com (unknown [182.195.41.46]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20230912024919epoutp02a7defbf6fb873e96bb076e136cc03285~EBul710za2435524355epoutp02Q for ; Tue, 12 Sep 2023 02:49:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20230912024919epoutp02a7defbf6fb873e96bb076e136cc03285~EBul710za2435524355epoutp02Q DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1694486959; bh=rDbE1hdJHslcOuf3rH3LFVxmxlcQTu0MVLhIfXTOcsU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eRRCWT6m6sOwoPke5k0U4dhXnuzb1rsSGqIiBlZhoeSaHJfPxoSs97Mzv7Syt56kl g4T/E0j8263XLRJpkAi4aynxjagBC0havVJ81JaJKcMQx6SbzsNuP/gD0QaOie6ycs egxGEQfn2+iJMOX35sqqQGg3AV5XY6zhmPHgpZ4o= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20230912024919epcas1p49ec0ef357fa7fea7576da4ca41f716c8~EBuldbjHd1698216982epcas1p4P; Tue, 12 Sep 2023 02:49:19 +0000 (GMT) Received: from epsmgec1p1-new.samsung.com (unknown [182.195.36.136]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4Rl7Mf18bmz4x9Q8; Tue, 12 Sep 2023 02:49:18 +0000 (GMT) Received: from epcas1p1.samsung.com ( [182.195.41.45]) by epsmgec1p1-new.samsung.com (Symantec Messaging Gateway) with SMTP id 3D.CF.18968.EA1DFF46; Tue, 12 Sep 2023 11:49:18 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas1p2.samsung.com (KnoxPortal) with ESMTPA id 20230912024917epcas1p2076a3a0674ae94e8c8641cc9eb617eac~EBukHCJN11134811348epcas1p2q; Tue, 12 Sep 2023 02:49:17 +0000 (GMT) Received: from epsmgmc1p1new.samsung.com (unknown [182.195.42.40]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20230912024917epsmtrp1761977434212b2f9f896c514d5f5d506~EBukGOSov2900629006epsmtrp1g; Tue, 12 Sep 2023 02:49:17 +0000 (GMT) X-AuditID: b6c32a4c-d19fe70000004a18-7f-64ffd1ad2eae Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgmc1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 84.A7.08649.DA1DFF46; Tue, 12 Sep 2023 11:49:17 +0900 (KST) Received: from mediaserver.. (unknown [10.113.111.131]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20230912024917epsmtip19dfafad968eb71f42bf2f6b588ddfb2c~EBujz5orr3056130561epsmtip1K; Tue, 12 Sep 2023 02:49:17 +0000 (GMT) From: k.son@samsung.com 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, Kwanghoon Son Subject: [PATCH 3/3] riscv: dts: Add th1520 reset device tree Date: Tue, 12 Sep 2023 02:49:14 +0000 Message-Id: <20230912024914.3769440-4-k.son@samsung.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230912024914.3769440-1-k.son@samsung.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrLJsWRmVeSWpSXmKPExsWy7bCmru66i/9TDN4eYLbY+nsWu8WaveeY LOYfOcdq8WJvI4vFpPsTWCyaj61ns+hdc5XJou/FQ2aLy7vmsFls+9zCZnH33gkWi5eXe5gt 2mbxW7TuPcJu0bJ/CosDv8ebly9ZPA53fGH32LSqk83jzrU9bB6bl9R79P818Hi/7yqbR9+W VYwel5qvs3t83iQXwBWVbZORmpiSWqSQmpecn5KZl26r5B0c7xxvamZgqGtoaWGupJCXmJtq q+TiE6DrlpkD9ISSQlliTilQKCCxuFhJ386mKL+0JFUhI7+4xFYptSAlp8C0QK84Mbe4NC9d Ly+1xMrQwMDIFKgwITuj5aVZwUr2islzn7I3MP5h7WLk5JAQMJE4//cEO4gtJLCHUWLPZqMu Ri4g+xOjRMut6cwQzjdGiY/tD5lhOi7f+gmV2MsoseX2LCYI5w2jxP4V2xlBqtgExCU6r61k BEmICPxnlHjzpxWsilmgiVFidtsMti5GDg5hAVuJg8sSQRpYBFQlVp3rADuEV8BCYsuUnYwQ 6+Ql9h88C7aaU8BSYu6UbkaIGkGJkzOfsIDYzEA1zVtng50kIXCCQ+J023eoW10kZ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Ql+i8tpIR JCEi0Msk8eHjEiYQh1mgjVHixIetzCDdwgK2EgeXJYI0sAioSqw61wHWzCtgIbFlyk5GiGXy EvsPngVbzClgKTF3SjdYXAio5v6Hz4wQ9YISJ2c+YQGxmYHqm7fOZp7AKDALSWoWktQCRqZV jJKpBcW56bnJhgWGeanlesWJucWleel6yfm5mxjBEaWlsYPx3vx/eocYmTgYDzFKcDArifCW HPqbIsSbklhZlVqUH19UmpNafIhRmoNFSZzXcMbsFCGB9MSS1OzU1ILUIpgsEwenVAOT82Te 1lWaGyOf7Dq77ZD5I578A8sUvJuy7ywvmLZLY+LH+dcOX2Ga9OOnkE/ytK2ndTpXX2+IX7jH yrM+c9vaydPSLPb9/s8pdPnPLZtlLcoXXR8kv9vNvCrudme9uPSbyIk/yv7GvXKx0b1fW828 yGm9GsO9O3rryh5G7tHin57SOPcZ28EVZuwr5ziFqy79sGGnHndm2vQFv+KOvwxou3K6/WbQ ZsuyLRzLuRjNmAT9ch7KWknxre3yMAyMalB7zbU2uLIioLFPS/Fa/XvJ/ccD+I/KXdx0P4J5 ZoJwlFfrt52e7+vvGj3dfXjCzwklSbNv6NeaxqurceWKL5sennorMFJO4FrkWpfZnnr7lViK MxINtZiLihMBOE6D0hcDAAA= X-CMS-MailID: 20230912024917epcas1p2076a3a0674ae94e8c8641cc9eb617eac X-Msg-Generator: CA X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20230912024917epcas1p2076a3a0674ae94e8c8641cc9eb617eac References: <20230912024914.3769440-1-k.son@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230911_194928_260934_0F8DD879 X-CRM114-Status: GOOD ( 15.18 ) 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 From: Kwanghoon Son Add reset device tree for th1520 SoC Signed-off-by: Kwanghoon Son --- arch/riscv/boot/dts/thead/th1520.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/riscv/boot/dts/thead/th1520.dtsi b/arch/riscv/boot/dts/thead/th1520.dtsi index ce708183b6f6..7e592449b5e4 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 = "okay"; + }; }; };