1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/net/microchip,lan7800.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Microchip LAN7800/LAN7801/LAN7850 Gigabit Ethernet controller 8 9maintainers: 10 - Thangaraj Samynathan <Thangaraj.S@microchip.com> 11 - Rengarajan Sundararajan <Rengarajan.S@microchip.com> 12 13description: 14 The LAN7800/LAN7801/LAN7850 devices are usually configured by 15 programming their OTP or with an external EEPROM, but some 16 platforms (e.g. Raspberry Pi 3 B+) have neither. The Device Tree 17 properties, if present, override the OTP and EEPROM. 18 19allOf: 20 - $ref: /schemas/usb/usb-device.yaml# 21 - $ref: /schemas/net/ethernet-controller.yaml# 22 23properties: 24 compatible: 25 enum: 26 - usb424,7800 27 - usb424,7801 28 - usb424,7850 29 30 reg: 31 maxItems: 1 32 description: USB port number 33 34 mdio: 35 $ref: /schemas/net/mdio.yaml# 36 unevaluatedProperties: false 37 38 patternProperties: 39 "^ethernet-phy(@[0-9a-f]+)?$": 40 $ref: /schemas/net/ethernet-phy.yaml# 41 unevaluatedProperties: false 42 type: object 43 44 properties: 45 microchip,led-modes: 46 $ref: /schemas/types.yaml#/definitions/uint32-array 47 minItems: 1 48 maxItems: 4 49 description: 50 Array of LED mode values for each of up to 4 LEDs. 51 Omitted LEDs are turned off. Allowed values are defined 52 in include/dt-bindings/net/microchip-lan78xx.h. 53 54 required: 55 - reg 56 57required: 58 - compatible 59 - reg 60 61unevaluatedProperties: false 62 63examples: 64 - | 65 #include <dt-bindings/net/microchip-lan78xx.h> 66 67 usb { 68 #address-cells = <1>; 69 #size-cells = <0>; 70 71 ethernet@1 { 72 compatible = "usb424,7800"; 73 reg = <1>; 74 local-mac-address = [00 11 22 33 44 55]; 75 76 mdio { 77 #address-cells = <1>; 78 #size-cells = <0>; 79 ethernet-phy@1 { 80 reg = <1>; 81 microchip,led-modes = < 82 LAN78XX_LINK_1000_ACTIVITY 83 LAN78XX_LINK_10_100_ACTIVITY 84 >; 85 }; 86 }; 87 }; 88 }; 89... 90