Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2813660rdb; Tue, 12 Sep 2023 12:55:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFB7kO4rNEhFaK/SQNo8AzFMj7Z559KYUbhzGZqDKHpw+DNb6ve1IX56Q+SVMwTbX9RHrrf X-Received: by 2002:a05:6808:210b:b0:3a9:e0db:8d75 with SMTP id r11-20020a056808210b00b003a9e0db8d75mr840609oiw.2.1694548545621; Tue, 12 Sep 2023 12:55:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694548545; cv=none; d=google.com; s=arc-20160816; b=c8ZSJhmusCkQEcrHG3hX24c1rA1KGW8gsqbHZQFLbnxr61A9Xyg9uVn3j5Sc5QyRQq M8rsG3F6lMgaxtMwjnpGxv3JENmFQHqk4ZMjRmXj2mm58poCjqJQSCXvEhflOanFKGiS DX+epcq4IfbpR0ZCY0nrj/sVDhVToTVw3Az770LYNreeT+IGACno8bWGZkHItPI6jKIU j22i50Ry5WVFWOZitBnVOhKneq5QnYw39YG1+gBwtOvpt5KrqbzRtLSB2xqZLQJjE85Q Qlmf60QDd675xGix8otuueZHd5t3ElqFKsmo0r3KicW9jr2zp6uFq/HgenSb2NbwTUW2 0TEQ== 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=J3vjc1MlEpCgHPb593cMs7GqPe/HBS5l1vuBfQvuZz8=; fh=MTSuhf3klFVSCXFmzqo5WqqIIpkdaAozQGXNH5yqXDQ=; b=eV2XbWiCpjGfTL0f71CVGU92P9LJ0MLfyLR0UxTbBzAYLn7Cnh2gAr5Pf3DHL1dQNV v3ZRTRzASay27zdoT5A+THDqT4pKZw9Aexw4X8Te+B/JyCXwJSN0uFzW3lvgIM2pDzgB G2MM5PnSBV9sCviiZellSwPC2U/V6Mn+5nCBNjYxKBxMJWWGIQxFVX1fAFbdpIET1i/A jDnBebQoNkA1e/YjumrT2X8Qd7LntAqW/qCG7WFBpxY1wRIkjZ4LrtnC0JX3KGzlr23x x/Tk4Q6beBx4TUV8b1RzUql8hNx0/qOq5zjVLAQujRHSZIFF1Fz1t6PkddByyGC+87KH QlSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=lF8cVIF9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id c5-20020a6566c5000000b00577b70e2a50si972671pgw.823.2023.09.12.12.55.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 12:55:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=lF8cVIF9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 57C80825E51C; Mon, 11 Sep 2023 21:14:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.8 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242578AbjILDTe (ORCPT + 99 others); Mon, 11 Sep 2023 23:19:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242545AbjILDTV (ORCPT ); Mon, 11 Sep 2023 23:19:21 -0400 Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9504944B6 for ; Mon, 11 Sep 2023 19:49:23 -0700 (PDT) Received: from epcas1p2.samsung.com (unknown [182.195.41.46]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20230912024919epoutp0204db56a92e2a28517bf8ee77986ce858~EBulh7-TD2389023890epoutp02j for ; Tue, 12 Sep 2023 02:49:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20230912024919epoutp0204db56a92e2a28517bf8ee77986ce858~EBulh7-TD2389023890epoutp02j DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1694486959; bh=J3vjc1MlEpCgHPb593cMs7GqPe/HBS5l1vuBfQvuZz8=; h=From:To:Cc:Subject:Date:References:From; b=lF8cVIF9CoXgKA/xbrPOnXd+41Wi2+m2LDWBNwNcVKhaqpUW0Tl1stsGf/0/JkMZl TFWJKT2o+BWPtj4t5O+JQDNAe2FI93vrnUcXgTzjCSHmzjGw84f7B95QDGcIFpwOyc WwxmuLeVzZ7Szxcnf+593a27+ZEf0fFN1SjXaehM= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20230912024918epcas1p1589fbca8bdfc6c1b60d5043cfca4163a~EBuk9zgfF0386603866epcas1p1e; Tue, 12 Sep 2023 02:49:18 +0000 (GMT) Received: from epsmges1p3.samsung.com (unknown [182.195.36.136]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4Rl7Md4lHtz4x9Q0; Tue, 12 Sep 2023 02:49:17 +0000 (GMT) Received: from epcas1p1.samsung.com ( [182.195.41.45]) by epsmges1p3.samsung.com (Symantec Messaging Gateway) with SMTP id C6.29.09646.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 20230912024917epcas1p29a513dcf6019fb7c63275aa0e39b1c71~EBujusJ6v1134811348epcas1p2o; 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 20230912024917epsmtrp2b7ecb178a158574f3b41766a81a29bf7~EBujtx6b31886418864epsmtrp2f; Tue, 12 Sep 2023 02:49:17 +0000 (GMT) X-AuditID: b6c32a37-b23ff700000025ae-25-64ffd1ad372b Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgmc1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 61.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 20230912024916epsmtip1708e1d09b1c490385c9cbac2943f215a~EBujalbgJ0070800708epsmtip1f; Tue, 12 Sep 2023 02:49:16 +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 0/3] Introduce reset driver for T-HEAD th1520 SoC Date: Tue, 12 Sep 2023 02:49:11 +0000 Message-Id: <20230912024914.3769440-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+NgFtrLJsWRmVeSWpSXmKPExsWy7bC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RdirVD3b +sGcIX7nvaW3y4wcdxyZLdT6z0wip1U+IbOV6+DlJT1r707lzbrl1vlh46WCA+qfMgTmb52V +CAgx9r/ROeF1TJs2SWB+dsfftzoFJ7IWO46ozr9V6oSS3FGoqEWc1FxIgBp427iAAMAAA== X-CMS-MailID: 20230912024917epcas1p29a513dcf6019fb7c63275aa0e39b1c71 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: 20230912024917epcas1p29a513dcf6019fb7c63275aa0e39b1c71 References: 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]); Mon, 11 Sep 2023 21:14:32 -0700 (PDT) From: Kwanghoon Son 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>; status = "okay"; }; ``` [1] https://github.com/revyos/thead-kernel.git Changelog: 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 | 47 ++++++++ arch/riscv/boot/dts/thead/th1520.dtsi | 8 ++ drivers/reset/Kconfig | 10 ++ drivers/reset/Makefile | 1 + drivers/reset/reset-th1520.c | 109 ++++++++++++++++++ include/dt-bindings/reset/th1520-reset.h | 9 ++ 6 files changed, 184 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/th1520-reset.h -- 2.34.1