xref: /linux/Documentation/devicetree/bindings/net/pse-pd/ti,tps23881.yaml (revision 001821b0e79716c4e17c71d8e053a23599a7a508)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/net/pse-pd/ti,tps23881.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: TI TPS23881 Power Sourcing Equipment controller
8
9maintainers:
10  - Kory Maincent <kory.maincent@bootlin.com>
11
12allOf:
13  - $ref: pse-controller.yaml#
14
15properties:
16  compatible:
17    enum:
18      - ti,tps23881
19
20  reg:
21    maxItems: 1
22
23  '#pse-cells':
24    const: 1
25
26  channels:
27    description: each set of 8 ports can be assigned to one physical
28      channels or two for PoE4. This parameter describes the configuration
29      of the ports conversion matrix that establishes relationship between
30      the logical ports and the physical channels.
31    type: object
32
33    patternProperties:
34      '^channel@[0-7]$':
35        type: object
36        required:
37          - reg
38
39unevaluatedProperties: false
40
41required:
42  - compatible
43  - reg
44
45examples:
46  - |
47    i2c {
48      #address-cells = <1>;
49      #size-cells = <0>;
50
51      ethernet-pse@20 {
52        compatible = "ti,tps23881";
53        reg = <0x20>;
54
55        channels {
56          #address-cells = <1>;
57          #size-cells = <0>;
58
59          phys0: channel@0 {
60            reg = <0>;
61          };
62
63          phys1: channel@1 {
64            reg = <1>;
65          };
66
67          phys2: channel@2 {
68            reg = <2>;
69          };
70        };
71
72        pse-pis {
73          #address-cells = <1>;
74          #size-cells = <0>;
75
76          pse_pi0: pse-pi@0 {
77            reg = <0>;
78            #pse-cells = <0>;
79            pairset-names = "alternative-a", "alternative-b";
80            pairsets = <&phys0>, <&phys1>;
81            polarity-supported = "MDI", "S";
82            vpwr-supply = <&vpwr1>;
83          };
84
85          pse_pi1: pse-pi@1 {
86            reg = <1>;
87            #pse-cells = <0>;
88            pairset-names = "alternative-a";
89            pairsets = <&phys2>;
90            polarity-supported = "MDI";
91            vpwr-supply = <&vpwr2>;
92          };
93        };
94      };
95    };
96