Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions Documentation/devicetree/bindings/reset/thead,th1520-reset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ maintainers:

properties:
compatible:
enum:
- thead,th1520-reset
oneOf:
- enum:
- thead,th1520-reset-vo
- const: thead,th1520-reset
deprecated: true

reg:
maxItems: 1
Expand All @@ -33,12 +36,8 @@ additionalProperties: false

examples:
- |
soc {
#address-cells = <2>;
#size-cells = <2>;
rst: reset-controller@ffef528000 {
compatible = "thead,th1520-reset";
reg = <0xff 0xef528000 0x0 0x1000>;
reset-controller@ffef528000 {
compatible = "thead,th1520-reset-vo";
reg = <0xef528000 0x1000>;
#reset-cells = <1>;
};
};
6 changes: 3 additions & 3 deletions arch/riscv/boot/dts/thead/th1520.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@
compatible = "thead,th1520-aon";
mboxes = <&mbox_910t 1>;
mbox-names = "aon";
resets = <&rst TH1520_RESET_ID_GPU_CLKGEN>;
resets = <&rst_vo TH1520_RESET_ID_GPU_CLKGEN>;
reset-names = "gpu-clkgen";
#power-domain-cells = <1>;
};
Expand Down Expand Up @@ -500,8 +500,8 @@
#clock-cells = <1>;
};

rst: reset-controller@ffef528000 {
compatible = "thead,th1520-reset";
rst_vo: reset-controller@ffef528000 {
compatible = "thead,th1520-reset-vo";
reg = <0xff 0xef528000 0x0 0x4f>;
#reset-cells = <1>;
};
Expand Down
1 change: 1 addition & 0 deletions drivers/reset/reset-th1520.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ static int th1520_reset_probe(struct platform_device *pdev)

static const struct of_device_id th1520_reset_match[] = {
{ .compatible = "thead,th1520-reset" },
{ .compatible = "thead,th1520-reset-vo" },
{ /* sentinel */ }
};
MODULE_DEVICE_TABLE(of, th1520_reset_match);
Expand Down
Loading