15def4c47SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 25def4c47SEmmanuel Vadot%YAML 1.2 35def4c47SEmmanuel Vadot--- 45def4c47SEmmanuel Vadot$id: "http://devicetree.org/schemas/net/toshiba,visconti-dwmac.yaml#" 55def4c47SEmmanuel Vadot$schema: "http://devicetree.org/meta-schemas/core.yaml#" 65def4c47SEmmanuel Vadot 75def4c47SEmmanuel Vadottitle: Toshiba Visconti DWMAC Ethernet controller 85def4c47SEmmanuel Vadot 95def4c47SEmmanuel Vadotmaintainers: 105def4c47SEmmanuel Vadot - Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp> 115def4c47SEmmanuel Vadot 125def4c47SEmmanuel Vadotselect: 135def4c47SEmmanuel Vadot properties: 145def4c47SEmmanuel Vadot compatible: 155def4c47SEmmanuel Vadot contains: 165def4c47SEmmanuel Vadot enum: 175def4c47SEmmanuel Vadot - toshiba,visconti-dwmac 185def4c47SEmmanuel Vadot required: 195def4c47SEmmanuel Vadot - compatible 205def4c47SEmmanuel Vadot 215def4c47SEmmanuel VadotallOf: 225def4c47SEmmanuel Vadot - $ref: "snps,dwmac.yaml#" 235def4c47SEmmanuel Vadot 245def4c47SEmmanuel Vadotproperties: 255def4c47SEmmanuel Vadot compatible: 265def4c47SEmmanuel Vadot oneOf: 275def4c47SEmmanuel Vadot - items: 285def4c47SEmmanuel Vadot - enum: 295def4c47SEmmanuel Vadot - toshiba,visconti-dwmac 305def4c47SEmmanuel Vadot - const: snps,dwmac-4.20a 315def4c47SEmmanuel Vadot 325def4c47SEmmanuel Vadot reg: 335def4c47SEmmanuel Vadot maxItems: 1 345def4c47SEmmanuel Vadot 355def4c47SEmmanuel Vadot clocks: 365def4c47SEmmanuel Vadot items: 375def4c47SEmmanuel Vadot - description: main clock 385def4c47SEmmanuel Vadot - description: PHY reference clock 395def4c47SEmmanuel Vadot 405def4c47SEmmanuel Vadot clock-names: 415def4c47SEmmanuel Vadot items: 425def4c47SEmmanuel Vadot - const: stmmaceth 435def4c47SEmmanuel Vadot - const: phy_ref_clk 445def4c47SEmmanuel Vadot 455def4c47SEmmanuel Vadotrequired: 465def4c47SEmmanuel Vadot - compatible 475def4c47SEmmanuel Vadot - reg 485def4c47SEmmanuel Vadot - clocks 495def4c47SEmmanuel Vadot - clock-names 505def4c47SEmmanuel Vadot 515def4c47SEmmanuel VadotunevaluatedProperties: false 525def4c47SEmmanuel Vadot 535def4c47SEmmanuel Vadotexamples: 545def4c47SEmmanuel Vadot - | 555def4c47SEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 565def4c47SEmmanuel Vadot 575def4c47SEmmanuel Vadot soc { 585def4c47SEmmanuel Vadot #address-cells = <2>; 595def4c47SEmmanuel Vadot #size-cells = <2>; 605def4c47SEmmanuel Vadot 615def4c47SEmmanuel Vadot piether: ethernet@28000000 { 625def4c47SEmmanuel Vadot compatible = "toshiba,visconti-dwmac", "snps,dwmac-4.20a"; 635def4c47SEmmanuel Vadot reg = <0 0x28000000 0 0x10000>; 645def4c47SEmmanuel Vadot interrupts = <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>; 655def4c47SEmmanuel Vadot interrupt-names = "macirq"; 665def4c47SEmmanuel Vadot clocks = <&clk300mhz>, <&clk125mhz>; 675def4c47SEmmanuel Vadot clock-names = "stmmaceth", "phy_ref_clk"; 685def4c47SEmmanuel Vadot snps,txpbl = <4>; 695def4c47SEmmanuel Vadot snps,rxpbl = <4>; 705def4c47SEmmanuel Vadot snps,tso; 715def4c47SEmmanuel Vadot phy-mode = "rgmii-id"; 725def4c47SEmmanuel Vadot phy-handle = <&phy0>; 735def4c47SEmmanuel Vadot 74*e67e8565SEmmanuel Vadot mdio { 755def4c47SEmmanuel Vadot #address-cells = <0x1>; 765def4c47SEmmanuel Vadot #size-cells = <0x0>; 775def4c47SEmmanuel Vadot compatible = "snps,dwmac-mdio"; 785def4c47SEmmanuel Vadot 795def4c47SEmmanuel Vadot phy0: ethernet-phy@1 { 805def4c47SEmmanuel Vadot device_type = "ethernet-phy"; 815def4c47SEmmanuel Vadot reg = <0x1>; 825def4c47SEmmanuel Vadot }; 835def4c47SEmmanuel Vadot }; 845def4c47SEmmanuel Vadot }; 855def4c47SEmmanuel Vadot }; 86