Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: reset: Add T-HEAD TH1520 SoC Reset Controller

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.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com>
Link: https://lore.kernel.org/r/20250303152511.494405-2-m.wilczynski@samsung.com
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>

authored by

Michal Wilczynski and committed by
Philipp Zabel
30e7573b 0af2f6be

+62
+44
Documentation/devicetree/bindings/reset/thead,th1520-reset.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/reset/thead,th1520-reset.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: T-HEAD TH1520 SoC Reset Controller 8 + 9 + description: 10 + The T-HEAD TH1520 reset controller is a hardware block that asserts/deasserts 11 + resets for SoC subsystems. 12 + 13 + maintainers: 14 + - Michal Wilczynski <m.wilczynski@samsung.com> 15 + 16 + properties: 17 + compatible: 18 + enum: 19 + - thead,th1520-reset 20 + 21 + reg: 22 + maxItems: 1 23 + 24 + "#reset-cells": 25 + const: 1 26 + 27 + required: 28 + - compatible 29 + - reg 30 + - "#reset-cells" 31 + 32 + additionalProperties: false 33 + 34 + examples: 35 + - | 36 + soc { 37 + #address-cells = <2>; 38 + #size-cells = <2>; 39 + rst: reset-controller@ffef528000 { 40 + compatible = "thead,th1520-reset"; 41 + reg = <0xff 0xef528000 0x0 0x1000>; 42 + #reset-cells = <1>; 43 + }; 44 + };
+2
MAINTAINERS
··· 20825 20825 F: Documentation/devicetree/bindings/mailbox/thead,th1520-mbox.yaml 20826 20826 F: Documentation/devicetree/bindings/net/thead,th1520-gmac.yaml 20827 20827 F: Documentation/devicetree/bindings/pinctrl/thead,th1520-pinctrl.yaml 20828 + F: Documentation/devicetree/bindings/reset/thead,th1520-reset.yaml 20828 20829 F: arch/riscv/boot/dts/thead/ 20829 20830 F: drivers/clk/thead/clk-th1520-ap.c 20830 20831 F: drivers/firmware/thead,th1520-aon.c ··· 20835 20834 F: drivers/pmdomain/thead/ 20836 20835 F: include/dt-bindings/clock/thead,th1520-clk-ap.h 20837 20836 F: include/dt-bindings/power/thead,th1520-power.h 20837 + F: include/dt-bindings/reset/thead,th1520-reset.h 20838 20838 F: include/linux/firmware/thead/thead,th1520-aon.h 20839 20839 20840 20840 RNBD BLOCK DRIVERS
+16
include/dt-bindings/reset/thead,th1520-reset.h
··· 1 + /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ 2 + /* 3 + * Copyright (c) 2024 Samsung Electronics Co., Ltd. 4 + * Author: Michal Wilczynski <m.wilczynski@samsung.com> 5 + */ 6 + 7 + #ifndef _DT_BINDINGS_TH1520_RESET_H 8 + #define _DT_BINDINGS_TH1520_RESET_H 9 + 10 + #define TH1520_RESET_ID_GPU 0 11 + #define TH1520_RESET_ID_GPU_CLKGEN 1 12 + #define TH1520_RESET_ID_NPU 2 13 + #define TH1520_RESET_ID_WDT0 3 14 + #define TH1520_RESET_ID_WDT1 4 15 + 16 + #endif /* _DT_BINDINGS_TH1520_RESET_H */