From patchwork Mon Dec 23 12:55:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Wilczynski X-Patchwork-Id: 13918837 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 69B4FE7718D for ; Mon, 23 Dec 2024 12:56:48 +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=owG0riBSFe+4mzL70vHiOPwFeK358/xGw3s6irlpCOo=; b=Gfm4q45raV6bYW PlFRLH58TQjCyqdxJ9n8J2xZxbxV+z9A+6vjJRkXdQJBAbN8aKFiMc4bOE4Tr8XJiMIon18+paH3B eoE2hnIRyu0JIPXBtjG5jLwbFvbkaEg/fX6eaqrn4EH9gShOL0rQaWTY7jVHAaoYbQkcxRb1R5lUr SQYLrq8B4I4z0h66Wj4HFyhxuaTxSjZNufI2YJufe5sxHq8EwiVEIMB+2EAvy36SgAaqXxQqxx+ny QTJybYVAB/7Gz2iAtNifCEES23rLd6i5/EdsbODAFWM04TeutG1nFZjtdJR9Y2M78ipfFeeFek1qd 3bl/x7RsMyVrwJQ+9kGg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tPhzH-0000000A1Wn-3yuU; Mon, 23 Dec 2024 12:56:43 +0000 Received: from mailout2.w1.samsung.com ([210.118.77.12]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tPhyo-0000000A1K8-0QF3 for linux-riscv@lists.infradead.org; Mon, 23 Dec 2024 12:56:15 +0000 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20241223125612euoutp0209729611bc543f448dcc191c31c54741~Tz6E_Qwb80908209082euoutp022 for ; Mon, 23 Dec 2024 12:56:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20241223125612euoutp0209729611bc543f448dcc191c31c54741~Tz6E_Qwb80908209082euoutp022 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1734958572; bh=7TDzbuQz97Ht0OdyN64fg08fGy9pZWV+3Fgw1wlwb1g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=J4AEG8oG2Zm8E5iVe/ugUwfJHpwzdJ2F/YgmEAVRphpXZ8c1fJF3wtx1+RAmgVwQv 9Ih8CF+/0/y2b9ieo5Y/2/TgE5iwXh+x0UwCCvJNPmaLNSea5lmg3ll1nL7WonsjYg iLIxGzpnwOTErEEgTioZxmb+D6A8k0S0Z+LF0Vng= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20241223125612eucas1p1589df2abaa760a067a5a4576521b8b97~Tz6EbLVMn2402724027eucas1p1f; Mon, 23 Dec 2024 12:56:12 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 9E.B6.20821.CED59676; Mon, 23 Dec 2024 12:56:12 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20241223125611eucas1p1acf9a7f030c4c8687f946c34f8043bcd~Tz6Dr2V1c2173221732eucas1p1i; Mon, 23 Dec 2024 12:56:11 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20241223125611eusmtrp1286a66d470035e4b45147ba9a17fe503~Tz6Dp-G552051220512eusmtrp1X; Mon, 23 Dec 2024 12:56:11 +0000 (GMT) X-AuditID: cbfec7f2-b11c470000005155-7e-67695dec664e Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 69.F3.19920.BED59676; Mon, 23 Dec 2024 12:56:11 +0000 (GMT) Received: from AMDC4942.home (unknown [106.210.136.40]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20241223125610eusmtip2281e1d2b6afaaf58cf5d3611edb15604~Tz6CVq5Fm2296222962eusmtip2N; Mon, 23 Dec 2024 12:56:10 +0000 (GMT) From: Michal Wilczynski To: mturquette@baylibre.com, sboyd@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, drew@pdp7.com, guoren@kernel.org, wefu@redhat.com, jassisinghbrar@gmail.com, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, frank.binns@imgtec.com, matt.coster@imgtec.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, simona@ffwll.ch, ulf.hansson@linaro.org, jszhang@kernel.org, p.zabel@pengutronix.de, m.szyprowski@samsung.com Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-pm@vger.kernel.org, Michal Wilczynski Subject: [RFC PATCH v2 08/19] dt-bindings: reset: Add T-HEAD TH1520 SoC Reset Controller Date: Mon, 23 Dec 2024 13:55:42 +0100 Message-Id: <20241223125553.3527812-9-m.wilczynski@samsung.com> X-Mailer: git-send-email 2.34.1 In-Re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t24793LyDcd6rj3qHGJk4GA8xSnAwK4nwHhLKTBfiTUmsrEotyo8vKs1J LT7EaAp09URmKdHkfGByyyuJNzQzMDU0MbM0MLU0M1YS53W7fD5NSCA9sSQ1OzW1ILUIpo+J g1OqgamKbZrK4V32QvrTJ6vNCJArr0+8JuT1jbfBc3370c/ruLreZjlf/99SI/Z+4xfn+esC FyesDJNbuvwut5ycjeHOynAGpzesGyQlE/gP3brmMblZ79VR87iNe5mmfzde7s6woWCqYcJU +UTNreffnfdJ65t84pdyqw3X6ZyieY93pmr/YFmSeb09I3LLdD7hyc0ubyc/mztnXvOE90ZT 93W/DD4r+P/9oWid5ND9ezarzGS5drxC7+H+0MwzuvoNk7ucrx4oMVg0x3zv7RAPif6d/TpL Z08q0L/UGiaw6P7RMylc0bWeXmn+64+rT5y5+f+S7t4VmQfTOGQVJxw9Il3QOZVZ6u+xP8cL RBqrOv8osRRnJBpqMRcVJwIArJRzoLYDAAA= X-CMS-MailID: 20241223125611eucas1p1acf9a7f030c4c8687f946c34f8043bcd X-Msg-Generator: CA X-RootMTR: 20241223125611eucas1p1acf9a7f030c4c8687f946c34f8043bcd X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20241223125611eucas1p1acf9a7f030c4c8687f946c34f8043bcd References: <20241223125553.3527812-1-m.wilczynski@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241223_045614_410365_1E34D4D2 X-CRM114-Status: GOOD ( 16.06 ) 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 a YAML schema for the T-HEAD TH1520 SoC reset controller. This controller manages resets for subsystems such as the GPU within the TH1520 SoC. Signed-off-by: Michal Wilczynski --- .../bindings/reset/thead,th1520-reset.yaml | 45 +++++++++++++++++++ MAINTAINERS | 2 + .../dt-bindings/reset/thead,th1520-reset.h | 13 ++++++ 3 files changed, 60 insertions(+) create mode 100644 Documentation/devicetree/bindings/reset/thead,th1520-reset.yaml create mode 100644 include/dt-bindings/reset/thead,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..46d0e6b8c712 --- /dev/null +++ b/Documentation/devicetree/bindings/reset/thead,th1520-reset.yaml @@ -0,0 +1,45 @@ +# 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 + +description: | + The T-HEAD TH1520 reset controller is a hardware block that asserts/deasserts + resets for SoC subsystems. + +maintainers: + - Michal Wilczynski + +properties: + compatible: + enum: + - thead,th1520-reset + + reg: + maxItems: 1 + + "#reset-cells": + const: 1 + +required: + - compatible + - reg + - "#reset-cells" + +additionalProperties: false + +examples: + - | + soc { + #address-cells = <2>; + #size-cells = <2>; + rst: reset-controller@ffef528000 { + compatible = "thead,th1520-reset"; + reg = <0xff 0xef528000 0x0 0x1000>; + #reset-cells = <1>; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 173eeaf3bbe8..db8c55058c29 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -20194,6 +20194,7 @@ F: Documentation/devicetree/bindings/mailbox/thead,th1520-mbox.yaml F: Documentation/devicetree/bindings/net/thead,th1520-gmac.yaml F: Documentation/devicetree/bindings/pinctrl/thead,th1520-pinctrl.yaml F: Documentation/devicetree/bindings/power/thead,th1520-power.yaml +F: Documentation/devicetree/bindings/reset/thead,th1520-reset.yaml F: arch/riscv/boot/dts/thead/ F: drivers/clk/thead/clk-th1520-ap.c F: drivers/firmware/thead,th1520-aon.c @@ -20202,6 +20203,7 @@ F: drivers/net/ethernet/stmicro/stmmac/dwmac-thead.c F: drivers/pinctrl/pinctrl-th1520.c F: drivers/pmdomain/thead/ F: include/dt-bindings/clock/thead,th1520-clk-ap.h +F: include/dt-bindings/reset/thead,th1520-reset.h F: include/linux/firmware/thead/thead,th1520-aon.h RNBD BLOCK DRIVERS diff --git a/include/dt-bindings/reset/thead,th1520-reset.h b/include/dt-bindings/reset/thead,th1520-reset.h new file mode 100644 index 000000000000..a4958b2ed710 --- /dev/null +++ b/include/dt-bindings/reset/thead,th1520-reset.h @@ -0,0 +1,13 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ +/* + * Copyright (c) 2024 Samsung Electronics Co., Ltd. + * Author: Michal Wilczynski + */ + +#ifndef _DT_BINDINGS_TH1520_RESET_H +#define _DT_BINDINGS_TH1520_RESET_H + +#define TH1520_RESET_ID_GPU 0 +#define TH1520_RESET_NUM_IDS 1 + +#endif /* _DT_BINDINGS_TH1520_RESET_H */