# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/soc/ti/ti,am654-serdes-ctrl.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Texas Instruments AM654 Serdes Control Syscon

maintainers:
  - Nishanth Menon <nm@ti.com>

properties:
  compatible:
    items:
      - const: ti,am654-serdes-ctrl
      - const: syscon
      - const: simple-mfd

  reg:
    maxItems: 1

  mux-controller:
    $ref: /schemas/mux/reg-mux.yaml#

required:
  - compatible
  - reg
  - mux-controller

additionalProperties: false

examples:
  - |
    clock@4080 {
        compatible = "ti,am654-serdes-ctrl", "syscon", "simple-mfd";
        reg = <0x4080 0x4>;

        mux-controller {
            compatible = "mmio-mux";
            #mux-control-cells = <1>;
            mux-reg-masks = <0x0 0x3>; /* lane select */
        };
    };
