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

dts: Add bindings for APM X-Gene SoC ethernet driver

This patch adds bindings for APM X-Gene SoC ethernet driver.

Signed-off-by: Iyappan Subramanian <isubramanian@apm.com>
Signed-off-by: Ravi Patel <rapatel@apm.com>
Signed-off-by: Keyur Chudgar <kchudgar@apm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Iyappan Subramanian and committed by
David S. Miller
3d390425 ff4ee1ab

+31 -3
+4
arch/arm64/boot/dts/apm-mustang.dts
··· 28 28 &serial0 { 29 29 status = "ok"; 30 30 }; 31 + 32 + &menet { 33 + status = "ok"; 34 + };
+27 -3
arch/arm64/boot/dts/apm-storm.dtsi
··· 167 167 clock-output-names = "ethclk"; 168 168 }; 169 169 170 - eth8clk: eth8clk { 170 + menetclk: menetclk { 171 171 compatible = "apm,xgene-device-clock"; 172 172 #clock-cells = <1>; 173 173 clocks = <&ethclk 0>; 174 - clock-names = "eth8clk"; 175 174 reg = <0x0 0x1702C000 0x0 0x1000>; 176 175 reg-names = "csr-reg"; 177 - clock-output-names = "eth8clk"; 176 + clock-output-names = "menetclk"; 178 177 }; 179 178 180 179 sataphy1clk: sataphy1clk@1f21c000 { ··· 395 396 interrupts = <0x0 0x46 0x4>; 396 397 #clock-cells = <1>; 397 398 clocks = <&rtcclk 0>; 399 + }; 400 + 401 + menet: ethernet@17020000 { 402 + compatible = "apm,xgene-enet"; 403 + status = "disabled"; 404 + reg = <0x0 0x17020000 0x0 0xd100>, 405 + <0x0 0X17030000 0x0 0X400>, 406 + <0x0 0X10000000 0x0 0X200>; 407 + reg-names = "enet_csr", "ring_csr", "ring_cmd"; 408 + interrupts = <0x0 0x3c 0x4>; 409 + dma-coherent; 410 + clocks = <&menetclk 0>; 411 + local-mac-address = [00 01 73 00 00 01]; 412 + phy-connection-type = "rgmii"; 413 + phy-handle = <&menetphy>; 414 + mdio { 415 + compatible = "apm,xgene-mdio"; 416 + #address-cells = <1>; 417 + #size-cells = <0>; 418 + menetphy: menetphy@3 { 419 + compatible = "ethernet-phy-id001c.c915"; 420 + reg = <0x3>; 421 + }; 422 + 423 + }; 398 424 }; 399 425 }; 400 426 };