Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: am437x-l4: add dt node for new cpsw switchdev driver

Add DT node for the new cpsw switchdev based driver.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>

authored by

Grygorii Strashko and committed by
Tony Lindgren
7bf8f37a ec9bc5be

+54
+54
arch/arm/boot/dts/am437x-l4.dtsi
··· 571 571 phys = <&phy_gmii_sel 2 0>; 572 572 }; 573 573 }; 574 + 575 + mac_sw: switch@0 { 576 + compatible = "ti,am4372-cpsw","ti,cpsw-switch"; 577 + reg = <0x0 0x4000>; 578 + ranges = <0 0 0x4000>; 579 + clocks = <&cpsw_125mhz_gclk>, <&dpll_clksel_mac_clk>; 580 + clock-names = "fck", "50mclk"; 581 + assigned-clocks = <&dpll_clksel_mac_clk>; 582 + assigned-clock-rates = <50000000>; 583 + #address-cells = <1>; 584 + #size-cells = <1>; 585 + syscon = <&scm_conf>; 586 + status = "disabled"; 587 + 588 + interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH 589 + GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH 590 + GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH 591 + GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>; 592 + interrupt-names = "rx_thresh", "rx", "tx", "misc"; 593 + 594 + ethernet-ports { 595 + #address-cells = <1>; 596 + #size-cells = <0>; 597 + 598 + cpsw_port1: port@1 { 599 + reg = <1>; 600 + label = "port1"; 601 + mac-address = [ 00 00 00 00 00 00 ]; 602 + phys = <&phy_gmii_sel 1 0>; 603 + }; 604 + 605 + cpsw_port2: port@2 { 606 + reg = <2>; 607 + label = "port2"; 608 + mac-address = [ 00 00 00 00 00 00 ]; 609 + phys = <&phy_gmii_sel 2 0>; 610 + }; 611 + }; 612 + 613 + davinci_mdio_sw: mdio@1000 { 614 + compatible = "ti,am4372-mdio", "ti,cpsw-mdio","ti,davinci_mdio"; 615 + clocks = <&cpsw_125mhz_gclk>; 616 + clock-names = "fck"; 617 + #address-cells = <1>; 618 + #size-cells = <0>; 619 + bus_freq = <1000000>; 620 + reg = <0x1000 0x100>; 621 + }; 622 + 623 + cpts { 624 + clocks = <&cpsw_cpts_rft_clk>; 625 + clock-names = "cpts"; 626 + }; 627 + }; 574 628 }; 575 629 576 630 target-module@200000 { /* 0x4a200000, ap 7 02.0 */