1# Copyright (c) 2020 Stephanos Ioannidis <root@stephanos.io> 2# Copyright (c) 2020-2021 Gerson Fernando Budke <nandojve@gmail.com> 3# SPDX-License-Identifier: Apache-2.0 4 5include: 6 - name: ethernet-controller.yaml 7 - name: pinctrl-device.yaml 8 9properties: 10 reg: 11 required: true 12 13 phy-handle: 14 required: true 15 16 num-queues: 17 type: int 18 required: true 19 description: | 20 Number of hardware TX and RX queues. 21 22 max-frame-size: 23 type: int 24 default: 1518 25 description: | 26 Maximum ethernet frame size. The current ethernet frame sizes 27 supported by hardware are 1518, 1536 and 10240 (jumbo frames). This 28 means that normally gmac will reject any frame above max-frame-size 29 value. The default value is 1518, which represents an usual 30 IEEE 802.3 ethernet frame: 31 32 Ethernet Frame [ 14 MAC HEADER | 1500 MTU | 4 FCS ] = 1518 bytes 33 34 When using value 1536 it is possible extend ethernet MAC HEADER up 35 to 32 bytes. The hardware have support to jumbo frames and it can be 36 enabled by selecting the value 10240. 37 38 max-speed: 39 type: int 40 default: 100 41 description: | 42 This specifies maximum speed in Mbit/s supported by the device. The 43 gmac driver supports 10Mbit/s and 100Mbit/s. Using 100, as default 44 value, enables driver to configure 10 and 100Mbit/s speeds. 45 46 phy-connection-type: 47 type: string 48 enum: 49 - "rmii" 50 - "mii" 51 default: "rmii" 52 description: | 53 Phy connection type define the physical interface connection between 54 PHY and MAC. The default value uses gmac register reset value, which 55 represents Reduced Media-Independent Interface (RMII) mode. 56 57 This property must be used with pinctrl-0. 58 59 mac-eeprom: 60 type: phandle 61 description: phandle to I2C eeprom device node. 62