xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/net/smsc911x.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* Smart Mixed-Signal Connectivity (SMSC) LAN911x/912x Controller
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun- compatible : Should be "smsc,lan<model>", "smsc,lan9115"
5*4882a593Smuzhiyun- reg : Address and length of the io space for SMSC LAN
6*4882a593Smuzhiyun- interrupts : one or two interrupt specifiers
7*4882a593Smuzhiyun  - The first interrupt is the SMSC LAN interrupt line
8*4882a593Smuzhiyun  - The second interrupt (if present) is the PME (power
9*4882a593Smuzhiyun    management event) interrupt that is able to wake up the host
10*4882a593Smuzhiyun     system with a 50ms pulse on network activity
11*4882a593Smuzhiyun- phy-mode : See ethernet.txt file in the same directory
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunOptional properties:
14*4882a593Smuzhiyun- reg-shift : Specify the quantity to shift the register offsets by
15*4882a593Smuzhiyun- reg-io-width : Specify the size (in bytes) of the IO accesses that
16*4882a593Smuzhiyun  should be performed on the device.  Valid value for SMSC LAN is
17*4882a593Smuzhiyun  2 or 4.  If it's omitted or invalid, the size would be 2.
18*4882a593Smuzhiyun- smsc,irq-active-high : Indicates the IRQ polarity is active-high
19*4882a593Smuzhiyun- smsc,irq-push-pull : Indicates the IRQ type is push-pull
20*4882a593Smuzhiyun- smsc,force-internal-phy : Forces SMSC LAN controller to use
21*4882a593Smuzhiyun  internal PHY
22*4882a593Smuzhiyun- smsc,force-external-phy : Forces SMSC LAN controller to use
23*4882a593Smuzhiyun  external PHY
24*4882a593Smuzhiyun- smsc,save-mac-address : Indicates that mac address needs to be saved
25*4882a593Smuzhiyun  before resetting the controller
26*4882a593Smuzhiyun- reset-gpios : a GPIO line connected to the RESET (active low) signal
27*4882a593Smuzhiyun  of the device. On many systems this is wired high so the device goes
28*4882a593Smuzhiyun  out of reset at power-on, but if it is under program control, this
29*4882a593Smuzhiyun  optional GPIO can wake up in response to it.
30*4882a593Smuzhiyun- vdd33a-supply, vddvario-supply : 3.3V analog and IO logic power supplies
31*4882a593Smuzhiyun
32*4882a593SmuzhiyunExamples:
33*4882a593Smuzhiyun
34*4882a593Smuzhiyunlan9220@f4000000 {
35*4882a593Smuzhiyun	compatible = "smsc,lan9220", "smsc,lan9115";
36*4882a593Smuzhiyun	reg = <0xf4000000 0x2000000>;
37*4882a593Smuzhiyun	phy-mode = "mii";
38*4882a593Smuzhiyun	interrupt-parent = <&gpio1>;
39*4882a593Smuzhiyun	interrupts = <31>, <32>;
40*4882a593Smuzhiyun	reset-gpios = <&gpio1 30 GPIO_ACTIVE_LOW>;
41*4882a593Smuzhiyun	reg-io-width = <4>;
42*4882a593Smuzhiyun	smsc,irq-push-pull;
43*4882a593Smuzhiyun};
44