Add DT bindings for CV18xx reset controller. The power/reboot driver is going to use only 4 bits from two different MMIO regions which can be potentially used by other subsystems/drivers, therefore the resources are not being claimed directly by the device/driver, but via syscons instead. Link: https://github.com/sophgo/sophgo-doc/releases/download/sg2000-trm-v1.01/sg2000_trm_en.pdf Signed-off-by: Alexander Sverdlin <alexander.sverdlin@xxxxxxxxx> --- .../bindings/reset/sophgo,cv1800-reset.yaml | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindings/reset/sophgo,cv1800-reset.yaml diff --git a/Documentation/devicetree/bindings/reset/sophgo,cv1800-reset.yaml b/Documentation/devicetree/bindings/reset/sophgo,cv1800-reset.yaml new file mode 100644 index 000000000000..4f058f99df5f --- /dev/null +++ b/Documentation/devicetree/bindings/reset/sophgo,cv1800-reset.yaml @@ -0,0 +1,38 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/reset/sophgo,cv1800-reset.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cvitek CV18xx/Sophgo SG2000 Reset Controller + +maintainers: + - Alexander Sverdlin <alexander.sverdlin@xxxxxxxxx> + +properties: + compatible: + const: sophgo,cv1800-reset + + sophgo,rtcsys-ctrl: + description: phandle of the "RTCSYS_CTRL" syscon block + $ref: /schemas/types.yaml#/definitions/phandle + + sophgo,rtcsys-core: + description: phandle of the "RTCSYS_CORE" syscon block + $ref: /schemas/types.yaml#/definitions/phandle + +required: + - compatible + - sophgo,rtcsys-ctrl + - sophgo,rtcsys-core + +additionalProperties: false + +examples: + - | + soc-reset { + compatible = "sophgo,cv1800-reset"; + sophgo,rtcsys-ctrl = <&rtcsys_ctrl>; + sophgo,rtcsys-core = <&rtcsys_core>; + }; +... -- 2.48.1