diff --git a/Documentation/devicetree/bindings/reset/thead,th1520-reset.yaml b/Documentation/devicetree/bindings/reset/thead,th1520-reset.yaml index f2e91d0add7a60..3930475dcc0492 100644 --- a/Documentation/devicetree/bindings/reset/thead,th1520-reset.yaml +++ b/Documentation/devicetree/bindings/reset/thead,th1520-reset.yaml @@ -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 @@ -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>; - }; }; diff --git a/arch/riscv/boot/dts/thead/th1520.dtsi b/arch/riscv/boot/dts/thead/th1520.dtsi index 42724bf7e90e08..9cc2f1adf489ac 100644 --- a/arch/riscv/boot/dts/thead/th1520.dtsi +++ b/arch/riscv/boot/dts/thead/th1520.dtsi @@ -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>; }; @@ -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>; }; diff --git a/drivers/reset/reset-th1520.c b/drivers/reset/reset-th1520.c index 7874f0693e1b42..430264e4c96ca8 100644 --- a/drivers/reset/reset-th1520.c +++ b/drivers/reset/reset-th1520.c @@ -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);