xref: /freebsd/sys/contrib/device-tree/Bindings/mfd/ti,j721e-system-controller.yaml (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2c66ec88fSEmmanuel Vadot# Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com/
3c66ec88fSEmmanuel Vadot%YAML 1.2
4c66ec88fSEmmanuel Vadot---
5c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/mfd/ti,j721e-system-controller.yaml#
6c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
7c66ec88fSEmmanuel Vadot
87ef62cebSEmmanuel Vadottitle: TI J721e System Controller Registers R/W
9c66ec88fSEmmanuel Vadot
10c66ec88fSEmmanuel Vadotdescription: |
11c66ec88fSEmmanuel Vadot  This represents the Control Module registers (CTRL_MMR0) on the SoC.
12c66ec88fSEmmanuel Vadot  System controller node represents a register region containing a set
13c66ec88fSEmmanuel Vadot  of miscellaneous registers. The registers are not cohesive enough to
14c66ec88fSEmmanuel Vadot  represent as any specific type of device. The typical use-case is
15c66ec88fSEmmanuel Vadot  for some other node's driver, or platform-specific code, to acquire
16c66ec88fSEmmanuel Vadot  a reference to the syscon node (e.g. by phandle, node path, or
17c66ec88fSEmmanuel Vadot  search using a specific compatible value), interrogate the node (or
18c66ec88fSEmmanuel Vadot  associated OS driver) to determine the location of the registers,
19c66ec88fSEmmanuel Vadot  and access the registers directly.
20c66ec88fSEmmanuel Vadot
21c66ec88fSEmmanuel Vadotmaintainers:
22c66ec88fSEmmanuel Vadot  - Kishon Vijay Abraham I <kishon@ti.com>
23e67e8565SEmmanuel Vadot  - Roger Quadros <rogerq@kernel.org>
24c66ec88fSEmmanuel Vadot
25c66ec88fSEmmanuel Vadotproperties:
26c66ec88fSEmmanuel Vadot  compatible:
27c66ec88fSEmmanuel Vadot    items:
28c66ec88fSEmmanuel Vadot      - enum:
298bab661aSEmmanuel Vadot          - ti,j7200-system-controller
30c66ec88fSEmmanuel Vadot          - ti,j721e-system-controller
318bab661aSEmmanuel Vadot          - ti,j721s2-system-controller
32c66ec88fSEmmanuel Vadot      - const: syscon
33c66ec88fSEmmanuel Vadot      - const: simple-mfd
34c66ec88fSEmmanuel Vadot
356be33864SEmmanuel Vadot  reg:
366be33864SEmmanuel Vadot    maxItems: 1
376be33864SEmmanuel Vadot
38c66ec88fSEmmanuel Vadot  "#address-cells":
39c66ec88fSEmmanuel Vadot    const: 1
40c66ec88fSEmmanuel Vadot
41c66ec88fSEmmanuel Vadot  "#size-cells":
42c66ec88fSEmmanuel Vadot    const: 1
43c66ec88fSEmmanuel Vadot
44c66ec88fSEmmanuel Vadot  ranges: true
45c66ec88fSEmmanuel Vadot
466be33864SEmmanuel VadotpatternProperties:
47c66ec88fSEmmanuel Vadot  # Optional children
485956d97fSEmmanuel Vadot  "^mux-controller@[0-9a-f]+$":
49c66ec88fSEmmanuel Vadot    type: object
505956d97fSEmmanuel Vadot    description:
515956d97fSEmmanuel Vadot      This is the SERDES lane control mux.
52c66ec88fSEmmanuel Vadot
53b97ee269SEmmanuel Vadot  "^clock-controller@[0-9a-f]+$":
54b97ee269SEmmanuel Vadot    type: object
55b97ee269SEmmanuel Vadot    $ref: /schemas/clock/ti,am654-ehrpwm-tbclk.yaml#
56b97ee269SEmmanuel Vadot    description:
57b97ee269SEmmanuel Vadot      Clock provider for TI EHRPWM nodes.
58b97ee269SEmmanuel Vadot
597ef62cebSEmmanuel Vadot  "phy@[0-9a-f]+$":
607ef62cebSEmmanuel Vadot    type: object
617ef62cebSEmmanuel Vadot    $ref: /schemas/phy/ti,phy-gmii-sel.yaml#
627ef62cebSEmmanuel Vadot    description:
637ef62cebSEmmanuel Vadot      The phy node corresponding to the ethernet MAC.
647ef62cebSEmmanuel Vadot
65fac71e4eSEmmanuel Vadot  "^chipid@[0-9a-f]+$":
66fac71e4eSEmmanuel Vadot    type: object
67fac71e4eSEmmanuel Vadot    $ref: /schemas/hwinfo/ti,k3-socinfo.yaml#
68fac71e4eSEmmanuel Vadot    description:
69fac71e4eSEmmanuel Vadot      The node corresponding to SoC chip identification.
70fac71e4eSEmmanuel Vadot
71c66ec88fSEmmanuel Vadotrequired:
72c66ec88fSEmmanuel Vadot  - compatible
73c66ec88fSEmmanuel Vadot  - reg
74c66ec88fSEmmanuel Vadot  - "#address-cells"
75c66ec88fSEmmanuel Vadot  - "#size-cells"
76c66ec88fSEmmanuel Vadot  - ranges
77c66ec88fSEmmanuel Vadot
786be33864SEmmanuel VadotadditionalProperties: false
79c66ec88fSEmmanuel Vadot
80c66ec88fSEmmanuel Vadotexamples:
81c66ec88fSEmmanuel Vadot  - |
82c66ec88fSEmmanuel Vadot    scm_conf: scm-conf@100000 {
83c66ec88fSEmmanuel Vadot        compatible = "ti,j721e-system-controller", "syscon", "simple-mfd";
84c66ec88fSEmmanuel Vadot        reg = <0x00100000 0x1c000>;
85c66ec88fSEmmanuel Vadot        #address-cells = <1>;
86c66ec88fSEmmanuel Vadot        #size-cells = <1>;
87c66ec88fSEmmanuel Vadot        ranges;
88c66ec88fSEmmanuel Vadot
895956d97fSEmmanuel Vadot        serdes_ln_ctrl: mux-controller@4080 {
90c66ec88fSEmmanuel Vadot            compatible = "mmio-mux";
91c66ec88fSEmmanuel Vadot            reg = <0x00004080 0x50>;
925956d97fSEmmanuel Vadot
935956d97fSEmmanuel Vadot            #mux-control-cells = <1>;
945956d97fSEmmanuel Vadot            mux-reg-masks =
955956d97fSEmmanuel Vadot                <0x4080 0x3>, <0x4084 0x3>, /* SERDES0 lane0/1 select */
965956d97fSEmmanuel Vadot                <0x4090 0x3>, <0x4094 0x3>, /* SERDES1 lane0/1 select */
975956d97fSEmmanuel Vadot                <0x40a0 0x3>, <0x40a4 0x3>, /* SERDES2 lane0/1 select */
985956d97fSEmmanuel Vadot                <0x40b0 0x3>, <0x40b4 0x3>, /* SERDES3 lane0/1 select */
995956d97fSEmmanuel Vadot                <0x40c0 0x3>, <0x40c4 0x3>, <0x40c8 0x3>, <0x40cc 0x3>;
1005956d97fSEmmanuel Vadot                /* SERDES4 lane0/1/2/3 select */
101c66ec88fSEmmanuel Vadot        };
102b97ee269SEmmanuel Vadot
103b97ee269SEmmanuel Vadot        clock-controller@4140 {
104*f126890aSEmmanuel Vadot            compatible = "ti,am654-ehrpwm-tbclk";
105b97ee269SEmmanuel Vadot            reg = <0x4140 0x18>;
106b97ee269SEmmanuel Vadot            #clock-cells = <1>;
107b97ee269SEmmanuel Vadot        };
108fac71e4eSEmmanuel Vadot
109fac71e4eSEmmanuel Vadot        chipid@14 {
110fac71e4eSEmmanuel Vadot            compatible = "ti,am654-chipid";
111fac71e4eSEmmanuel Vadot            reg = <0x14 0x4>;
112fac71e4eSEmmanuel Vadot        };
113c66ec88fSEmmanuel Vadot    };
114c66ec88fSEmmanuel Vadot...
115