File Index
Files and directories
Sign in
FILE

faraday,ftgmac100.yaml

File preview with syntax highlighting.

linux-6.19.14/Documentation/devicetree/bindings/net/faraday,ftgmac100.yaml YAML
  1# SPDX-License-Identifier: GPL-2.0
  2%YAML 1.2
  3---
  4$id: http://devicetree.org/schemas/net/faraday,ftgmac100.yaml#
  5$schema: http://devicetree.org/meta-schemas/core.yaml#
  6
  7title: Faraday Technology FTGMAC100 gigabit ethernet controller
  8
  9maintainers:
 10  - Po-Yu Chuang <ratbert@faraday-tech.com>
 11
 12properties:
 13  compatible:
 14    oneOf:
 15      - const: faraday,ftgmac100
 16      - items:
 17          - enum:
 18              - aspeed,ast2400-mac
 19              - aspeed,ast2500-mac
 20              - aspeed,ast2600-mac
 21          - const: faraday,ftgmac100
 22
 23  reg:
 24    maxItems: 1
 25
 26  interrupts:
 27    maxItems: 1
 28
 29  clocks:
 30    minItems: 1
 31    items:
 32      - description: MAC IP clock
 33      - description: RMII RCLK gate for AST2500/2600
 34
 35  resets:
 36    maxItems: 1
 37
 38  clock-names:
 39    minItems: 1
 40    items:
 41      - const: MACCLK
 42      - const: RCLK
 43
 44  phy-mode:
 45    enum:
 46      - rgmii
 47      - rgmii-id
 48      - rgmii-rxid
 49      - rgmii-txid
 50      - rmii
 51
 52  phy-handle: true
 53
 54  use-ncsi:
 55    description:
 56      Use the NC-SI stack instead of an MDIO PHY. Currently assumes
 57      rmii (100bT) but kept as a separate property in case NC-SI grows support
 58      for a gigabit link.
 59    type: boolean
 60
 61  no-hw-checksum:
 62    description:
 63      Used to disable HW checksum support. Here for backward
 64      compatibility as the driver now should have correct defaults based on
 65      the SoC.
 66    type: boolean
 67    deprecated: true
 68
 69  mdio:
 70    $ref: /schemas/net/mdio.yaml#
 71
 72required:
 73  - compatible
 74  - reg
 75  - interrupts
 76
 77allOf:
 78  - $ref: ethernet-controller.yaml#
 79  - if:
 80      properties:
 81        compatible:
 82          contains:
 83            enum:
 84              - aspeed,ast2600-mac
 85    then:
 86      properties:
 87        resets: true
 88    else:
 89      properties:
 90        resets: false
 91
 92unevaluatedProperties: false
 93
 94examples:
 95  - |
 96    ethernet@1e660000 {
 97        compatible = "aspeed,ast2500-mac", "faraday,ftgmac100";
 98        reg = <0x1e660000 0x180>;
 99        interrupts = <2>;
100        use-ncsi;
101    };
102
103    ethernet@1e680000 {
104        compatible = "aspeed,ast2500-mac", "faraday,ftgmac100";
105        reg = <0x1e680000 0x180>;
106        interrupts = <2>;
107
108        phy-handle = <&phy>;
109        phy-mode = "rgmii";
110
111        mdio {
112            #address-cells = <1>;
113            #size-cells = <0>;
114
115            phy: ethernet-phy@1 {
116                compatible = "ethernet-phy-ieee802.3-c22";
117                reg = <1>;
118            };
119        };
120    };
~/ Read-only file preview.