Commit e07b94f1 authored by Mugunthan V N's avatar Mugunthan V N Committed by David S. Miller

documentation: dt: bindings: cpsw: fixing the examples for directly using it in dts file

Fixing the cpsw device tree example to make it simpler to copy pastable to dts
file and use it directly.
Signed-off-by: default avatarMugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ec03e6a8
...@@ -11,6 +11,7 @@ Required properties: ...@@ -11,6 +11,7 @@ Required properties:
- cpdma_channels : Specifies number of channels in CPDMA - cpdma_channels : Specifies number of channels in CPDMA
- host_port_no : Specifies host port shift - host_port_no : Specifies host port shift
- cpdma_reg_ofs : Specifies CPDMA submodule register offset - cpdma_reg_ofs : Specifies CPDMA submodule register offset
- cpdma_sram_ofs : Specifies CPDMA SRAM offset
- ale_reg_ofs : Specifies ALE submodule register offset - ale_reg_ofs : Specifies ALE submodule register offset
- ale_entries : Specifies No of entries ALE can hold - ale_entries : Specifies No of entries ALE can hold
- host_port_reg_ofs : Specifies host port register offset - host_port_reg_ofs : Specifies host port register offset
...@@ -43,62 +44,66 @@ Examples: ...@@ -43,62 +44,66 @@ Examples:
reg = <0x4A100000 0x1000>; reg = <0x4A100000 0x1000>;
interrupts = <55 0x4>; interrupts = <55 0x4>;
interrupt-parent = <&intc>; interrupt-parent = <&intc>;
cpdma_channels = 8; cpdma_channels = <8>;
host_port_no = 0; host_port_no = <0>;
cpdma_reg_ofs = 0x800; cpdma_reg_ofs = <0x800>;
ale_reg_ofs = 0xd00; cpdma_sram_ofs = <0xa00>;
ale_entries = 1024; ale_reg_ofs = <0xd00>;
host_port_reg_ofs = 0x108; ale_entries = <1024>;
hw_stats_reg_ofs = 0x900; host_port_reg_ofs = <0x108>;
bd_ram_ofs = 0x2000; hw_stats_reg_ofs = <0x900>;
bd_ram_size = 0x2000; bd_ram_ofs = <0x2000>;
no_bd_ram = 0; bd_ram_size = <0x2000>;
rx_descs = 64; no_bd_ram = <0>;
mac_control = 0x20; rx_descs = <64>;
slaves = 2; mac_control = <0x20>;
slave@0 { slaves = <2>;
slave_reg_ofs = 0x208; cpsw_emac0: slave@0 {
sliver_reg_ofs = 0xd80; slave_reg_ofs = <0x208>;
phy_id = "davinci_mdio-0:00" sliver_reg_ofs = <0xd80>;
mac-address = [00 04 9F 01 1B B8]; phy_id = "davinci_mdio.16:00";
/* Filled in by U-Boot */
mac-address = [ 00 00 00 00 00 00 ];
}; };
slave@1 { cpsw_emac1: slave@1 {
slave_reg_ofs = 0x208; slave_reg_ofs = <0x308>;
sliver_reg_ofs = 0xd80; sliver_reg_ofs = <0xdc0>;
phy_id = "davinci_mdio-0:01" phy_id = "davinci_mdio.16:01";
mac-address = [00 04 9F 01 1B B9]; /* Filled in by U-Boot */
mac-address = [ 00 00 00 00 00 00 ];
}; };
}; };
(or) (or)
mac: ethernet@4A100000 { mac: ethernet@4A100000 {
compatible = "ti,cpsw"; compatible = "ti,cpsw";
ti,hwmods = "cpgmac0"; ti,hwmods = "cpgmac0";
cpdma_channels = 8; cpdma_channels = <8>;
host_port_no = 0; host_port_no = <0>;
cpdma_reg_ofs = 0x800; cpdma_reg_ofs = <0x800>;
ale_reg_ofs = 0xd00; cpdma_sram_ofs = <0xa00>;
ale_entries = 1024; ale_reg_ofs = <0xd00>;
host_port_reg_ofs = 0x108; ale_entries = <1024>;
hw_stats_reg_ofs = 0x900; host_port_reg_ofs = <0x108>;
bd_ram_ofs = 0x2000; hw_stats_reg_ofs = <0x900>;
bd_ram_size = 0x2000; bd_ram_ofs = <0x2000>;
no_bd_ram = 0; bd_ram_size = <0x2000>;
rx_descs = 64; no_bd_ram = <0>;
mac_control = 0x20; rx_descs = <64>;
slaves = 2; mac_control = <0x20>;
slave@0 { slaves = <2>;
slave_reg_ofs = 0x208; cpsw_emac0: slave@0 {
sliver_reg_ofs = 0xd80; slave_reg_ofs = <0x208>;
phy_id = "davinci_mdio-0:00" sliver_reg_ofs = <0xd80>;
mac-address = [00 04 9F 01 1B B8]; phy_id = "davinci_mdio.16:00";
/* Filled in by U-Boot */
mac-address = [ 00 00 00 00 00 00 ];
}; };
slave@1 { cpsw_emac1: slave@1 {
slave_reg_ofs = 0x208; slave_reg_ofs = <0x308>;
sliver_reg_ofs = 0xd80; sliver_reg_ofs = <0xdc0>;
phy_id = "davinci_mdio-0:01" phy_id = "davinci_mdio.16:01";
mac-address = [00 04 9F 01 1B B9]; /* Filled in by U-Boot */
mac-address = [ 00 00 00 00 00 00 ];
}; };
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment