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