| 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 |
|
| 7 |
title: TI TPS23881 Power Sourcing Equipment controller |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Kory Maincent <[email protected]> |
| 11 |
|
| 12 |
allOf: |
| 13 |
- $ref: pse-controller.yaml# |
| 14 |
|
| 15 |
properties: |
| 16 |
compatible: |
| 17 |
enum: |
| 18 |
- ti,tps23881 |
| 19 |
- ti,tps23881b |
| 20 |
|
| 21 |
reg: |
| 22 |
maxItems: 1 |
| 23 |
|
| 24 |
interrupts: |
| 25 |
maxItems: 1 |
| 26 |
|
| 27 |
'#pse-cells': |
| 28 |
const: 1 |
| 29 |
|
| 30 |
reset-gpios: |
| 31 |
maxItems: 1 |
| 32 |
|
| 33 |
channels: |
| 34 |
description: | |
| 35 |
Defines the 8 physical delivery channels on the controller that can |
| 36 |
be referenced by PSE PIs through their "pairsets" property. The actual |
| 37 |
port matrix mapping is created when PSE PIs reference these channels in |
| 38 |
their pairsets. For 4-pair operation, two channels from the same group |
| 39 |
(0-3 or 4-7) must be referenced by a single PSE PI. |
| 40 |
type: object |
| 41 |
additionalProperties: false |
| 42 |
|
| 43 |
properties: |
| 44 |
"#address-cells": |
| 45 |
const: 1 |
| 46 |
|
| 47 |
"#size-cells": |
| 48 |
const: 0 |
| 49 |
|
| 50 |
patternProperties: |
| 51 |
'^channel@[0-7]$': |
| 52 |
type: object |
| 53 |
additionalProperties: false |
| 54 |
|
| 55 |
properties: |
| 56 |
reg: |
| 57 |
maxItems: 1 |
| 58 |
|
| 59 |
required: |
| 60 |
- reg |
| 61 |
|
| 62 |
required: |
| 63 |
- "#address-cells" |
| 64 |
- "#size-cells" |
| 65 |
|
| 66 |
unevaluatedProperties: false |
| 67 |
|
| 68 |
required: |
| 69 |
- compatible |
| 70 |
- reg |
| 71 |
- interrupts |
| 72 |
|
| 73 |
examples: |
| 74 |
- | |
| 75 |
#include <dt-bindings/interrupt-controller/irq.h> |
| 76 |
|
| 77 |
i2c { |
| 78 |
#address-cells = <1>; |
| 79 |
#size-cells = <0>; |
| 80 |
|
| 81 |
ethernet-pse@20 { |
| 82 |
compatible = "ti,tps23881"; |
| 83 |
reg = <0x20>; |
| 84 |
interrupts = <8 IRQ_TYPE_LEVEL_HIGH>; |
| 85 |
interrupt-parent = <&gpiog>; |
| 86 |
|
| 87 |
channels { |
| 88 |
#address-cells = <1>; |
| 89 |
#size-cells = <0>; |
| 90 |
|
| 91 |
phys0: channel@0 { |
| 92 |
reg = <0>; |
| 93 |
}; |
| 94 |
|
| 95 |
phys1: channel@1 { |
| 96 |
reg = <1>; |
| 97 |
}; |
| 98 |
|
| 99 |
phys2: channel@2 { |
| 100 |
reg = <2>; |
| 101 |
}; |
| 102 |
}; |
| 103 |
|
| 104 |
pse-pis { |
| 105 |
#address-cells = <1>; |
| 106 |
#size-cells = <0>; |
| 107 |
|
| 108 |
pse_pi0: pse-pi@0 { |
| 109 |
reg = <0>; |
| 110 |
#pse-cells = <0>; |
| 111 |
pairset-names = "alternative-a", "alternative-b"; |
| 112 |
pairsets = <&phys0>, <&phys1>; |
| 113 |
polarity-supported = "MDI", "S"; |
| 114 |
vpwr-supply = <&vpwr1>; |
| 115 |
}; |
| 116 |
|
| 117 |
pse_pi1: pse-pi@1 { |
| 118 |
reg = <1>; |
| 119 |
#pse-cells = <0>; |
| 120 |
pairset-names = "alternative-a"; |
| 121 |
pairsets = <&phys2>; |
| 122 |
polarity-supported = "MDI"; |
| 123 |
vpwr-supply = <&vpwr2>; |
| 124 |
}; |
| 125 |
}; |
| 126 |
}; |
| 127 |
}; |