Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp6109306rdb; Mon, 18 Sep 2023 04:44:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEYOQLkFXtUZMwI7kzZT6EEGvxaTApv+/yySIlOXJimqQGRYitEwwY8OUUn1A8uHqD8VX4X X-Received: by 2002:a05:6a00:84a:b0:690:2ad9:1436 with SMTP id q10-20020a056a00084a00b006902ad91436mr8656664pfk.7.1695037484274; Mon, 18 Sep 2023 04:44:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695037484; cv=none; d=google.com; s=arc-20160816; b=wE6zmyLXsU/uls5WbnDQkai2JEgUzeDGcmMs7TzLdigAikWTq8mrTW0P8DgWcP4Rld KkJ/40RdFf6L+VBe4YoM1VHuup//EooyeuRo0uG+zCWDsQeBUmRwug/cq7UR9SvRJSV5 TRnrRWyb/Zj4JJvwKE3XvaDChulbv89cu7oc//N+Qvp5GEfVuuQOMwB0P5YZepsuWXPY 6FdQ18KFREGwR2iwz0P4fYNZbtT9AbYWMFY2vC9TX+MNwXT3leHjcyoPBq/fj4NnzpM3 nTsLt1DSgOQwe+efjcHBV5LHeJjX8CVwNQmFaSr3gsWReZBM/MyAIG4aBJSvUkHlqEvh DHpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature:dkim-filter; bh=4FgVh3QxMa/Oikq/jXVD32FeK6Wx2JOARgZJ7Ni1RI4=; fh=29lA8WrtUpXDmabD44HUNFwzgih+ikyNXPzwrBEaDHE=; b=tB+Dr1cpnsswYnet+g9e1TAwpHjh1wnXGF17taQ6+FpyWGsNwGjUQJWS/uSzdoz+7+ orbq4Ov3YKOzcVdNgy+zYrF/NNZ8KArT7+b2YCN1x8vfVcnPLrFX96cU5MNgN/rU2ARI f9sVImp6k/UEDVTdK2k2uXeoJixvJ4nFXvmzmmjh+gGskSiZyqhI/iAlqa6CynKAmAJe tbtyjmaoANylj4sVt5hnoz52qpZekg/bWZk4jtturmJfrr+8nN4zE9YTYMDtU36TzJaN NPGoc7nSugE5KSYP9cIuWLhE0nYrSV0A3IJWRlSuy1V1RrC334SmmWbDdqQJ+fxEh/OV hH4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=ZnK4yGcX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id a5-20020a056a000c8500b0068e4a0de34csi8225780pfv.97.2023.09.18.04.44.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 04:44:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=ZnK4yGcX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id A3812801B9D7; Sun, 17 Sep 2023 21:52:20 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239572AbjIREvx (ORCPT + 99 others); Mon, 18 Sep 2023 00:51:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239560AbjIREvs (ORCPT ); Mon, 18 Sep 2023 00:51:48 -0400 Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0B9F120 for ; Sun, 17 Sep 2023 21:51:40 -0700 (PDT) Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20230918045136epoutp01d70cabbafca33231421d813b3f5608c9~F5REG_6V93111131111epoutp01L for ; Mon, 18 Sep 2023 04:51:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20230918045136epoutp01d70cabbafca33231421d813b3f5608c9~F5REG_6V93111131111epoutp01L DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1695012696; bh=4FgVh3QxMa/Oikq/jXVD32FeK6Wx2JOARgZJ7Ni1RI4=; h=From:To:Cc:Subject:Date:References:From; b=ZnK4yGcXT5dFy/B9rbTeCBi/i6VCHpNiR4JcNFnSKZK7KGkXlWIowdAJTickqjyxA KE5VMAQSXX9gj8dXtUW+kT3cGXLIxvjPvzRi0AtLefhqxJz+vvFtjZgAoakYIU310I Gm/Cy/5oyWwCHieepLhRa+SvrawU9jcBwm396+7A= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20230918045135epcas1p25bee43ead6f894264e78fc4145651b9d~F5RDnUjZQ0670906709epcas1p2J; Mon, 18 Sep 2023 04:51:35 +0000 (GMT) Received: from epsmges1p3.samsung.com (unknown [182.195.38.231]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4Rpsny3thxz4x9Px; Mon, 18 Sep 2023 04:51:34 +0000 (GMT) Received: from epcas1p4.samsung.com ( [182.195.41.48]) by epsmges1p3.samsung.com (Symantec Messaging Gateway) with SMTP id 19.E3.09646.657D7056; Mon, 18 Sep 2023 13:51:34 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas1p4.samsung.com (KnoxPortal) with ESMTPA id 20230918045133epcas1p42fa41cb80a1250b9db28f398b31d041c~F5RCIf5p03009130091epcas1p4D; Mon, 18 Sep 2023 04:51:33 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20230918045133epsmtrp14a4e100ea519bd5d6c5c025eed515910~F5RCFcE4G1930419304epsmtrp1W; Mon, 18 Sep 2023 04:51:33 +0000 (GMT) X-AuditID: b6c32a37-b23ff700000025ae-b9-6507d756af12 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id B6.A4.08742.557D7056; Mon, 18 Sep 2023 13:51:33 +0900 (KST) Received: from mediaserver.. (unknown [10.113.111.131]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20230918045133epsmtip1e90f1f5e8eaf366cc5538f719f0474e0~F5RByW3bD1750717507epsmtip1j; Mon, 18 Sep 2023 04:51:33 +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: [PATCH v3 0/3] Introduce reset driver for T-HEAD th1520 SoC Date: Mon, 18 Sep 2023 04:51:22 +0000 Message-Id: <20230918045125.4000083-1-k.son@samsung.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrGJsWRmVeSWpSXmKPExsWy7bCmgW7YdfZUg+NPxS22/p7FbrFm7zkm i/lHzrFavNjbyGI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y4/565J4XlgL30u/8IXnj9VbKf4 zzXNMvUIFvGw5i3VWJnLP/VD2T5N0V7vJaIP5iuxFGckGmoxFxUnAgCqHlk4+wIAAA== X-CMS-MailID: 20230918045133epcas1p42fa41cb80a1250b9db28f398b31d041c X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20230918045133epcas1p42fa41cb80a1250b9db28f398b31d041c References: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,SPF_PASS autolearn=unavailable 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sun, 17 Sep 2023 21:52:20 -0700 (PDT) This patchset adds initial support for reset driver. Register information is from vendor kernel [1]. I sent an e-mail to get permission the original author, but there was no answer. So I upload patch since it has GPL license. This patch also can be tested with watchdog simply with watchdog0: watchdog@ffefc30000 { compatible = "snps,dw-wdt"; reg = <0xff 0xefc30000 0x0 0x1000>; interrupts = <24 IRQ_TYPE_LEVEL_HIGH>; clocks = <&osc>; resets = <&rst TH1520_RESET_WDT0>; }; [1] https://github.com/revyos/thead-kernel Changelog: v2: https://lore.kernel.org/linux-riscv/20230912024914.3769440-1-k.son@samsung.com/ - wrong patch version - yaml file indent - missing vendor prefix - drop okay rfc: https://lore.kernel.org/linux-riscv/20230904042559.2322997-1-k.son@samsung.com/ - dt_binding_check - enable reset controller default Kwanghoon Son (3): dt-bindings: reset: Document th1520 reset control reset: Add th1520 reset driver support riscv: dts: Add th1520 reset device tree .../bindings/reset/thead,th1520-reset.yaml | 44 +++++++ arch/riscv/boot/dts/thead/th1520.dtsi | 7 ++ drivers/reset/Kconfig | 10 ++ drivers/reset/Makefile | 1 + drivers/reset/reset-th1520.c | 109 ++++++++++++++++++ .../dt-bindings/reset/thead,th1520-reset.h | 9 ++ 6 files changed, 180 insertions(+) create mode 100644 Documentation/devicetree/bindings/reset/thead,th1520-reset.yaml create mode 100644 drivers/reset/reset-th1520.c create mode 100644 include/dt-bindings/reset/thead,th1520-reset.h -- 2.34.1