Skip to content

Introduce reset driver for T-HEAD th1520 SoC

Kwanghoon Son linux-devicetree linux-riscv lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 8 repliesIn review
  2. v13 patches 3 repliesSuperseded

v2 from the cover letter

https://lore.kernel.org/linux-riscv/[email protected]/
- wrong patch version
- yaml file indent
- missing vendor prefix
- drop okay

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3dt-bindings: reset: Document th1520 reset controlDocumentation/devicetree/bindings/reset/thead,th1520-reset.yaml include/dt-bindings/reset/thead,th1520-reset.h+53 -08 replies
2/3reset: Add th1520 reset driver supportdrivers/reset/Kconfig drivers/reset/Makefile drivers/reset/reset-th1520.c+120 -00 replies
3/3riscv: dts: Add th1520 reset device treearch/riscv/boot/dts/thead/th1520.dtsi+7 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/3] Introduce reset driver for T-HEAD th1520 SoC

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/[email protected]/
- wrong patch version
- yaml file indent
- missing vendor prefix
- drop okay

rfc:
https://lore.kernel.org/linux-riscv/[email protected]/
- 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
Signature · 1 line
2.34.1