1354d7675SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-or-later OR BSD-2-Clause 2354d7675SEmmanuel Vadot%YAML 1.2 3354d7675SEmmanuel Vadot--- 4354d7675SEmmanuel Vadot$id: http://devicetree.org/schemas/net/litex,liteeth.yaml# 5354d7675SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6354d7675SEmmanuel Vadot 7354d7675SEmmanuel Vadottitle: LiteX LiteETH ethernet device 8354d7675SEmmanuel Vadot 9354d7675SEmmanuel Vadotmaintainers: 10354d7675SEmmanuel Vadot - Joel Stanley <joel@jms.id.au> 11354d7675SEmmanuel Vadot 12354d7675SEmmanuel Vadotdescription: | 13354d7675SEmmanuel Vadot LiteETH is a small footprint and configurable Ethernet core for FPGA based 14354d7675SEmmanuel Vadot system on chips. 15354d7675SEmmanuel Vadot 16354d7675SEmmanuel Vadot The hardware source is Open Source and can be found on at 17354d7675SEmmanuel Vadot https://github.com/enjoy-digital/liteeth/. 18354d7675SEmmanuel Vadot 19354d7675SEmmanuel VadotallOf: 20354d7675SEmmanuel Vadot - $ref: ethernet-controller.yaml# 21354d7675SEmmanuel Vadot 22354d7675SEmmanuel Vadotproperties: 23354d7675SEmmanuel Vadot compatible: 24354d7675SEmmanuel Vadot const: litex,liteeth 25354d7675SEmmanuel Vadot 26354d7675SEmmanuel Vadot reg: 27354d7675SEmmanuel Vadot items: 28354d7675SEmmanuel Vadot - description: MAC registers 29354d7675SEmmanuel Vadot - description: MDIO registers 30354d7675SEmmanuel Vadot - description: Packet buffer 31354d7675SEmmanuel Vadot 32354d7675SEmmanuel Vadot reg-names: 33354d7675SEmmanuel Vadot items: 34354d7675SEmmanuel Vadot - const: mac 35354d7675SEmmanuel Vadot - const: mdio 36354d7675SEmmanuel Vadot - const: buffer 37354d7675SEmmanuel Vadot 38354d7675SEmmanuel Vadot interrupts: 39354d7675SEmmanuel Vadot maxItems: 1 40354d7675SEmmanuel Vadot 41354d7675SEmmanuel Vadot litex,rx-slots: 42354d7675SEmmanuel Vadot description: Number of slots in the receive buffer 43354d7675SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 44354d7675SEmmanuel Vadot minimum: 1 45354d7675SEmmanuel Vadot default: 2 46354d7675SEmmanuel Vadot 47354d7675SEmmanuel Vadot litex,tx-slots: 48354d7675SEmmanuel Vadot description: Number of slots in the transmit buffer 49354d7675SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 50354d7675SEmmanuel Vadot minimum: 1 51354d7675SEmmanuel Vadot default: 2 52354d7675SEmmanuel Vadot 53354d7675SEmmanuel Vadot litex,slot-size: 54354d7675SEmmanuel Vadot description: Size in bytes of a slot in the tx/rx buffer 55354d7675SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 56354d7675SEmmanuel Vadot minimum: 0x800 57354d7675SEmmanuel Vadot default: 0x800 58354d7675SEmmanuel Vadot 59354d7675SEmmanuel Vadot mac-address: true 60354d7675SEmmanuel Vadot local-mac-address: true 61354d7675SEmmanuel Vadot phy-handle: true 62354d7675SEmmanuel Vadot 63354d7675SEmmanuel Vadot mdio: 64354d7675SEmmanuel Vadot $ref: mdio.yaml# 65*e67e8565SEmmanuel Vadot unevaluatedProperties: false 66354d7675SEmmanuel Vadot 67354d7675SEmmanuel Vadotrequired: 68354d7675SEmmanuel Vadot - compatible 69354d7675SEmmanuel Vadot - reg 70354d7675SEmmanuel Vadot - interrupts 71354d7675SEmmanuel Vadot 72354d7675SEmmanuel VadotadditionalProperties: false 73354d7675SEmmanuel Vadot 74354d7675SEmmanuel Vadotexamples: 75354d7675SEmmanuel Vadot - | 76354d7675SEmmanuel Vadot mac: ethernet@8020000 { 77354d7675SEmmanuel Vadot compatible = "litex,liteeth"; 78354d7675SEmmanuel Vadot reg = <0x8021000 0x100>, 79354d7675SEmmanuel Vadot <0x8020800 0x100>, 80354d7675SEmmanuel Vadot <0x8030000 0x2000>; 81354d7675SEmmanuel Vadot reg-names = "mac", "mdio", "buffer"; 82354d7675SEmmanuel Vadot litex,rx-slots = <2>; 83354d7675SEmmanuel Vadot litex,tx-slots = <2>; 84354d7675SEmmanuel Vadot litex,slot-size = <0x800>; 85354d7675SEmmanuel Vadot interrupts = <0x11 0x1>; 86354d7675SEmmanuel Vadot phy-handle = <ð_phy>; 87354d7675SEmmanuel Vadot 88354d7675SEmmanuel Vadot mdio { 89354d7675SEmmanuel Vadot #address-cells = <1>; 90354d7675SEmmanuel Vadot #size-cells = <0>; 91354d7675SEmmanuel Vadot 92354d7675SEmmanuel Vadot eth_phy: ethernet-phy@0 { 93354d7675SEmmanuel Vadot reg = <0>; 94354d7675SEmmanuel Vadot }; 95354d7675SEmmanuel Vadot }; 96354d7675SEmmanuel Vadot }; 97354d7675SEmmanuel Vadot... 98354d7675SEmmanuel Vadot 99354d7675SEmmanuel Vadot# vim: set ts=2 sw=2 sts=2 tw=80 et cc=80 ft=yaml : 100