Add DT binding schema for J721e system controller.
Signed-off-by: Roger Quadros <rogerq@xxxxxx>
---
Changelog:
v4
-address comments.
Â.../mfd/ti,j721e-system-controller.yamlÂÂÂÂÂÂ | 76 +++++++++++++++++++
Â1 file changed, 76 insertions(+)
Âcreate mode 100644 Documentation/devicetree/bindings/mfd/ti,j721e-system-controller.yaml
diff --git a/Documentation/devicetree/bindings/mfd/ti,j721e-system-controller.yaml b/Documentation/devicetree/bindings/mfd/ti,j721e-system-controller.yaml
new file mode 100644
index 000000000000..cb28dc480c4c
--- /dev/null
+++ b/Documentation/devicetree/bindings/mfd/ti,j721e-system-controller.yaml
@@ -0,0 +1,76 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+# Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com/
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mfd/ti,j721e-system-controller.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: TI J721e System Controller Registers R/W Device Tree Bindings
+
+description: |
+Â This represents the Control Module registers (CTRL_MMR0) on the SoC.
+Â System controller node represents a register region containing a set
+Â of miscellaneous registers. The registers are not cohesive enough to
+Â represent as any specific type of device. The typical use-case is
+Â for some other node's driver, or platform-specific code, to acquire
+Â a reference to the syscon node (e.g. by phandle, node path, or
+Â search using a specific compatible value), interrogate the node (or
+Â associated OS driver) to determine the location of the registers,
+Â and access the registers directly.
+
+maintainers:
+Â - Kishon Vijay Abraham I <kishon@xxxxxx>
+Â - Roger Quadros <rogerq@xxxxxx
+
+properties:
+Â compatible:
+ÂÂÂ anyOf:
+ÂÂÂÂÂ - items:
+ÂÂÂÂÂÂÂ - enum:
+ÂÂÂÂÂÂÂÂÂÂ - ti,j721e-system-controller
+ÂÂÂÂÂÂÂ - const: syscon
+ÂÂÂÂÂÂÂ - const: simple-mfd
+
+Â "#address-cells":
+ÂÂÂ const: 1
+
+Â "#size-cells":
+ÂÂÂ const: 1
+
+Â ranges:
+ÂÂÂ description:
+ÂÂÂÂÂ Should translate from local addresses to bus addresses.
+
+# Optional children
+
+Â "^serdes-ln-ctrl@[0-9a-f]+$":
+ÂÂÂ type: object
+ÂÂÂ description: |
+ÂÂÂÂÂ This is the SERDES lane control mux. It should follow the bindings
+ÂÂÂÂÂ specified in
+ÂÂÂÂÂ Documentation/devicetree/bindings/mux/reg-mux.txt
+
+required:
+Â - compatible
+Â - reg
+Â - "#address-cells"
+Â - "#size-cells"
+Â - ranges
+
+unevaluatedProperties: false
+
+examples:
+Â - |
+ÂÂÂ scm_conf: scm-conf@100000 {
+ÂÂÂÂÂÂÂ compatible = "ti,j721e-system-controller", "syscon", "simple-mfd";
+ÂÂÂÂÂÂÂ reg = <0x00100000 0x1c000>;
+ÂÂÂÂÂÂÂ #address-cells = <1>;
+ÂÂÂÂÂÂÂ #size-cells = <1>;
+ÂÂÂÂÂÂÂ ranges;
+
+ÂÂÂÂÂÂÂ serdes_ln_ctrl: serdes-ln-ctrl@4080 {
+ÂÂÂÂÂÂÂÂÂÂÂ compatible = "mmio-mux";
+ÂÂÂÂÂÂÂÂÂÂÂ reg = <0x00004080 0x50>;
+ÂÂÂÂÂÂÂ };
+ÂÂÂ };
+...