1*8d13bc63SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*8d13bc63SEmmanuel Vadot%YAML 1.2 3*8d13bc63SEmmanuel Vadot--- 4*8d13bc63SEmmanuel Vadot$id: http://devicetree.org/schemas/net/dsa/marvell,mv88e6060.yaml# 5*8d13bc63SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*8d13bc63SEmmanuel Vadot 7*8d13bc63SEmmanuel Vadottitle: Marvell MV88E6060 DSA switch 8*8d13bc63SEmmanuel Vadot 9*8d13bc63SEmmanuel Vadotmaintainers: 10*8d13bc63SEmmanuel Vadot - Andrew Lunn <andrew@lunn.ch> 11*8d13bc63SEmmanuel Vadot 12*8d13bc63SEmmanuel Vadotdescription: 13*8d13bc63SEmmanuel Vadot The Marvell MV88E6060 switch has been produced and sold by Marvell 14*8d13bc63SEmmanuel Vadot since at least 2008. The switch has one pin ADDR4 that controls the 15*8d13bc63SEmmanuel Vadot MDIO address of the switch to be 0x10 or 0x00, and on the MDIO bus 16*8d13bc63SEmmanuel Vadot connected to the switch, the PHYs inside the switch appear as 17*8d13bc63SEmmanuel Vadot independent devices on address 0x00-0x04 or 0x10-0x14, so in difference 18*8d13bc63SEmmanuel Vadot from many other DSA switches this switch does not have an internal 19*8d13bc63SEmmanuel Vadot MDIO bus for the PHY devices. 20*8d13bc63SEmmanuel Vadot 21*8d13bc63SEmmanuel Vadotproperties: 22*8d13bc63SEmmanuel Vadot compatible: 23*8d13bc63SEmmanuel Vadot const: marvell,mv88e6060 24*8d13bc63SEmmanuel Vadot description: 25*8d13bc63SEmmanuel Vadot The MV88E6060 is the oldest Marvell DSA switch product, and 26*8d13bc63SEmmanuel Vadot as such a bit limited in features compared to later hardware. 27*8d13bc63SEmmanuel Vadot 28*8d13bc63SEmmanuel Vadot reg: 29*8d13bc63SEmmanuel Vadot maxItems: 1 30*8d13bc63SEmmanuel Vadot 31*8d13bc63SEmmanuel Vadot reset-gpios: 32*8d13bc63SEmmanuel Vadot description: 33*8d13bc63SEmmanuel Vadot GPIO to be used to reset the whole device 34*8d13bc63SEmmanuel Vadot maxItems: 1 35*8d13bc63SEmmanuel Vadot 36*8d13bc63SEmmanuel VadotallOf: 37*8d13bc63SEmmanuel Vadot - $ref: dsa.yaml#/$defs/ethernet-ports 38*8d13bc63SEmmanuel Vadot 39*8d13bc63SEmmanuel Vadotrequired: 40*8d13bc63SEmmanuel Vadot - compatible 41*8d13bc63SEmmanuel Vadot - reg 42*8d13bc63SEmmanuel Vadot 43*8d13bc63SEmmanuel VadotunevaluatedProperties: false 44*8d13bc63SEmmanuel Vadot 45*8d13bc63SEmmanuel Vadotexamples: 46*8d13bc63SEmmanuel Vadot - | 47*8d13bc63SEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 48*8d13bc63SEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 49*8d13bc63SEmmanuel Vadot mdio { 50*8d13bc63SEmmanuel Vadot #address-cells = <1>; 51*8d13bc63SEmmanuel Vadot #size-cells = <0>; 52*8d13bc63SEmmanuel Vadot 53*8d13bc63SEmmanuel Vadot ethernet-switch@16 { 54*8d13bc63SEmmanuel Vadot compatible = "marvell,mv88e6060"; 55*8d13bc63SEmmanuel Vadot reg = <16>; 56*8d13bc63SEmmanuel Vadot 57*8d13bc63SEmmanuel Vadot ethernet-ports { 58*8d13bc63SEmmanuel Vadot #address-cells = <1>; 59*8d13bc63SEmmanuel Vadot #size-cells = <0>; 60*8d13bc63SEmmanuel Vadot 61*8d13bc63SEmmanuel Vadot ethernet-port@0 { 62*8d13bc63SEmmanuel Vadot reg = <0>; 63*8d13bc63SEmmanuel Vadot label = "lan1"; 64*8d13bc63SEmmanuel Vadot }; 65*8d13bc63SEmmanuel Vadot ethernet-port@1 { 66*8d13bc63SEmmanuel Vadot reg = <1>; 67*8d13bc63SEmmanuel Vadot label = "lan2"; 68*8d13bc63SEmmanuel Vadot }; 69*8d13bc63SEmmanuel Vadot ethernet-port@2 { 70*8d13bc63SEmmanuel Vadot reg = <2>; 71*8d13bc63SEmmanuel Vadot label = "lan3"; 72*8d13bc63SEmmanuel Vadot }; 73*8d13bc63SEmmanuel Vadot ethernet-port@3 { 74*8d13bc63SEmmanuel Vadot reg = <3>; 75*8d13bc63SEmmanuel Vadot label = "lan4"; 76*8d13bc63SEmmanuel Vadot }; 77*8d13bc63SEmmanuel Vadot ethernet-port@5 { 78*8d13bc63SEmmanuel Vadot reg = <5>; 79*8d13bc63SEmmanuel Vadot phy-mode = "rev-mii"; 80*8d13bc63SEmmanuel Vadot ethernet = <ðc>; 81*8d13bc63SEmmanuel Vadot fixed-link { 82*8d13bc63SEmmanuel Vadot speed = <100>; 83*8d13bc63SEmmanuel Vadot full-duplex; 84*8d13bc63SEmmanuel Vadot }; 85*8d13bc63SEmmanuel Vadot }; 86*8d13bc63SEmmanuel Vadot }; 87*8d13bc63SEmmanuel Vadot }; 88*8d13bc63SEmmanuel Vadot }; 89