aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2014-10-18 12:31:37 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-10-18 12:31:37 -0400
commit2e923b0251932ad4a82cc87ec1443a1f1d17073e (patch)
treed12032bc9bcfbb8a57659275d1b9b582f23f2ecc /Documentation
parentffd8221bc348f8c282d1271883dbe629ea8ae289 (diff)
parentf2d9da1a8375cbe53df5b415d059429013a3a79f (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Pull networking fixes from David Miller: 1) Include fixes for netrom and dsa (Fabian Frederick and Florian Fainelli) 2) Fix FIXED_PHY support in stmmac, from Giuseppe CAVALLARO. 3) Several SKB use after free fixes (vxlan, openvswitch, vxlan, ip_tunnel, fou), from Li ROngQing. 4) fec driver PTP support fixes from Luwei Zhou and Nimrod Andy. 5) Use after free in virtio_net, from Michael S Tsirkin. 6) Fix flow mask handling for megaflows in openvswitch, from Pravin B Shelar. 7) ISDN gigaset and capi bug fixes from Tilman Schmidt. 8) Fix route leak in ip_send_unicast_reply(), from Vasily Averin. 9) Fix two eBPF JIT bugs on x86, from Alexei Starovoitov. 10) TCP_SKB_CB() reorganization caused a few regressions, fixed by Cong Wang and Eric Dumazet. 11) Don't overwrite end of SKB when parsing malformed sctp ASCONF chunks, from Daniel Borkmann. 12) Don't call sock_kfree_s() with NULL pointers, this function also has the side effect of adjusting the socket memory usage. From Cong Wang. * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (90 commits) bna: fix skb->truesize underestimation net: dsa: add includes for ethtool and phy_fixed definitions openvswitch: Set flow-key members. netrom: use linux/uaccess.h dsa: Fix conversion from host device to mii bus tipc: fix bug in bundled buffer reception ipv6: introduce tcp_v6_iif() sfc: add support for skb->xmit_more r8152: return -EBUSY for runtime suspend ipv4: fix a potential use after free in fou.c ipv4: fix a potential use after free in ip_tunnel_core.c hyperv: Add handling of IP header with option field in netvsc_set_hash() openvswitch: Create right mask with disabled megaflows vxlan: fix a free after use openvswitch: fix a use after free ipv4: dst_entry leak in ip_send_unicast_reply() ipv4: clean up cookie_v4_check() ipv4: share tcp_v4_save_options() with cookie_v4_check() ipv4: call __ip_options_echo() in cookie_v4_check() atm: simplify lanai.c by using module_pci_driver ...
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/net/sti-dwmac.txt91
1 files changed, 49 insertions, 42 deletions
diff --git a/Documentation/devicetree/bindings/net/sti-dwmac.txt b/Documentation/devicetree/bindings/net/sti-dwmac.txt
index 3dd3d0bf112f..6762a6b5da7e 100644
--- a/Documentation/devicetree/bindings/net/sti-dwmac.txt
+++ b/Documentation/devicetree/bindings/net/sti-dwmac.txt
@@ -1,58 +1,65 @@
1STMicroelectronics SoC DWMAC glue layer controller 1STMicroelectronics SoC DWMAC glue layer controller
2 2
3This file documents differences between the core properties in
4Documentation/devicetree/bindings/net/stmmac.txt
5and what is needed on STi platforms to program the stmmac glue logic.
6
3The device node has following properties. 7The device node has following properties.
4 8
5Required properties: 9Required properties:
6 - compatible : Can be "st,stih415-dwmac", "st,stih416-dwmac" or 10 - compatible : Can be "st,stih415-dwmac", "st,stih416-dwmac",
7 "st,stid127-dwmac". 11 "st,stih407-dwmac", "st,stid127-dwmac".
8 - reg : Offset of the glue configuration register map in system 12 - reg : Offset of the glue configuration register map in system
9 configuration regmap pointed by st,syscon property and size. 13 configuration regmap pointed by st,syscon property and size.
10 14 - st,syscon : Should be phandle to system configuration node which
11 - reg-names : Should be "sti-ethconf".
12
13 - st,syscon : Should be phandle to system configuration node which
14 encompases this glue registers. 15 encompases this glue registers.
16 - st,gmac_en: this is to enable the gmac into a dedicated sysctl control
17 register available on STiH407 SoC.
18 - sti-ethconf: this is the gmac glue logic register to enable the GMAC,
19 select among the different modes and program the clk retiming.
20 - pinctrl-0: pin-control for all the MII mode supported.
15 21
16 - st,tx-retime-src: On STi Parts for Giga bit speeds, 125Mhz clocks can be 22Optional properties:
17 wired up in from different sources. One via TXCLK pin and other via CLK_125 23 - resets : phandle pointing to the system reset controller with correct
18 pin. This wiring is totally board dependent. However the retiming glue 24 reset line index for ethernet reset.
19 logic should be configured accordingly. Possible values for this property 25 - st,ext-phyclk: valid only for RMII where PHY can generate 50MHz clock or
20 26 MAC can generate it.
21 "txclk" - if 125Mhz clock is wired up via txclk line. 27 - st,tx-retime-src: This specifies which clk is wired up to the mac for
22 "clk_125" - if 125Mhz clock is wired up via clk_125 line. 28 retimeing tx lines. This is totally board dependent and can take one of the
23 29 posssible values from "txclk", "clk_125" or "clkgen".
24 This property is only valid for Giga bit setup( GMII, RGMII), and it is 30 If not passed, the internal clock will be used by default.
25 un-used for non-giga bit (MII and RMII) setups. Also note that internal 31 - sti-ethclk: this is the phy clock.
26 clockgen can not generate stable 125Mhz clock. 32 - sti-clkconf: this is an extra sysconfig register, available in new SoCs,
27 33 to program the clk retiming.
28 - st,ext-phyclk: This boolean property indicates who is generating the clock 34 - st,gmac_en: to enable the GMAC, this only is present in some SoCs; e.g.
29 for tx and rx. This property is only valid for RMII case where the clock can 35 STiH407.
30 be generated from the MAC or PHY.
31
32 - clock-names: should be "sti-ethclk".
33 - clocks: Should point to ethernet clockgen which can generate phyclk.
34
35 36
36Example: 37Example:
37 38
38ethernet0: dwmac@fe810000 { 39ethernet0: dwmac@9630000 {
39 device_type = "network"; 40 device_type = "network";
40 compatible = "st,stih416-dwmac", "snps,dwmac", "snps,dwmac-3.710"; 41 status = "disabled";
41 reg = <0xfe810000 0x8000>, <0x8bc 0x4>; 42 compatible = "st,stih407-dwmac", "snps,dwmac", "snps,dwmac-3.710";
42 reg-names = "stmmaceth", "sti-ethconf"; 43 reg = <0x9630000 0x8000>, <0x80 0x4>;
43 interrupts = <0 133 0>, <0 134 0>, <0 135 0>; 44 reg-names = "stmmaceth", "sti-ethconf";
44 interrupt-names = "macirq", "eth_wake_irq", "eth_lpi";
45 phy-mode = "mii";
46 45
47 st,syscon = <&syscfg_rear>; 46 st,syscon = <&syscfg_sbc_reg>;
47 st,gmac_en;
48 resets = <&softreset STIH407_ETH1_SOFTRESET>;
49 reset-names = "stmmaceth";
48 50
49 snps,pbl = <32>; 51 interrupts = <GIC_SPI 98 IRQ_TYPE_NONE>,
52 <GIC_SPI 99 IRQ_TYPE_NONE>,
53 <GIC_SPI 100 IRQ_TYPE_NONE>;
54 interrupt-names = "macirq", "eth_wake_irq", "eth_lpi";
55
56 snps,pbl = <32>;
50 snps,mixed-burst; 57 snps,mixed-burst;
51 58
52 resets = <&softreset STIH416_ETH0_SOFTRESET>; 59 pinctrl-names = "default";
53 reset-names = "stmmaceth"; 60 pinctrl-0 = <&pinctrl_rgmii1>;
54 pinctrl-0 = <&pinctrl_mii0>; 61
55 pinctrl-names = "default"; 62 clock-names = "stmmaceth", "sti-ethclk";
56 clocks = <&CLK_S_GMAC0_PHY>; 63 clocks = <&CLK_S_C0_FLEXGEN CLK_EXT2F_A9>,
57 clock-names = "stmmaceth"; 64 <&CLK_S_C0_FLEXGEN CLK_ETH_PHY>;
58}; 65};