| 1 |
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) |
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/net/pcs/mediatek,sgmiisys.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: MediaTek SGMIISYS Controller |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Matthias Brugger <[email protected]> |
| 11 |
|
| 12 |
description: |
| 13 |
The MediaTek SGMIISYS controller provides a SGMII PCS and some clocks |
| 14 |
to the ethernet subsystem to which it is attached. |
| 15 |
|
| 16 |
properties: |
| 17 |
compatible: |
| 18 |
oneOf: |
| 19 |
- items: |
| 20 |
- enum: |
| 21 |
- mediatek,mt7622-sgmiisys |
| 22 |
- mediatek,mt7629-sgmiisys |
| 23 |
- mediatek,mt7981-sgmiisys_0 |
| 24 |
- mediatek,mt7981-sgmiisys_1 |
| 25 |
- mediatek,mt7986-sgmiisys_0 |
| 26 |
- mediatek,mt7986-sgmiisys_1 |
| 27 |
- const: syscon |
| 28 |
- items: |
| 29 |
- enum: |
| 30 |
- mediatek,mt7988-sgmiisys0 |
| 31 |
- mediatek,mt7988-sgmiisys1 |
| 32 |
- const: simple-mfd |
| 33 |
- const: syscon |
| 34 |
|
| 35 |
reg: |
| 36 |
maxItems: 1 |
| 37 |
|
| 38 |
'#clock-cells': |
| 39 |
const: 1 |
| 40 |
|
| 41 |
mediatek,pnswap: |
| 42 |
description: |
| 43 |
Invert polarity of the SGMII data lanes. |
| 44 |
This property is deprecated, for details please refer to |
| 45 |
Documentation/devicetree/bindings/phy/phy-common-props.yaml. |
| 46 |
type: boolean |
| 47 |
deprecated: true |
| 48 |
|
| 49 |
pcs: |
| 50 |
type: object |
| 51 |
description: MediaTek LynxI HSGMII PCS |
| 52 |
$ref: /schemas/phy/phy-common-props.yaml# |
| 53 |
properties: |
| 54 |
compatible: |
| 55 |
const: mediatek,mt7988-sgmii |
| 56 |
|
| 57 |
clocks: |
| 58 |
maxItems: 3 |
| 59 |
|
| 60 |
clock-names: |
| 61 |
items: |
| 62 |
- const: sgmii_sel |
| 63 |
- const: sgmii_tx |
| 64 |
- const: sgmii_rx |
| 65 |
|
| 66 |
required: |
| 67 |
- compatible |
| 68 |
- clocks |
| 69 |
- clock-names |
| 70 |
|
| 71 |
additionalProperties: false |
| 72 |
|
| 73 |
required: |
| 74 |
- compatible |
| 75 |
- reg |
| 76 |
- '#clock-cells' |
| 77 |
|
| 78 |
allOf: |
| 79 |
- if: |
| 80 |
properties: |
| 81 |
compatible: |
| 82 |
contains: |
| 83 |
enum: |
| 84 |
- mediatek,mt7988-sgmiisys0 |
| 85 |
- mediatek,mt7988-sgmiisys1 |
| 86 |
|
| 87 |
then: |
| 88 |
required: |
| 89 |
- pcs |
| 90 |
|
| 91 |
else: |
| 92 |
properties: |
| 93 |
pcs: false |
| 94 |
|
| 95 |
additionalProperties: false |
| 96 |
|
| 97 |
examples: |
| 98 |
- | |
| 99 |
soc { |
| 100 |
#address-cells = <2>; |
| 101 |
#size-cells = <2>; |
| 102 |
sgmiisys: syscon@1b128000 { |
| 103 |
compatible = "mediatek,mt7622-sgmiisys", "syscon"; |
| 104 |
reg = <0 0x1b128000 0 0x1000>; |
| 105 |
#clock-cells = <1>; |
| 106 |
}; |
| 107 |
}; |