ARM: nomadik: convert SMSC91x ethernet to device tree
This converts the SMSC91x ethernet controller to use device tree. The existing solution from the board file, to request the GPIO triggering the ethernet IRQ from the board file is kept for the time being, but the GPIO number assignment is moved over to the device tree. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
@@ -16,5 +16,11 @@
|
||||
|
||||
/* Custom board node with GPIO pins to active etc */
|
||||
usb-s8815 {
|
||||
/* The S8815 is using this very GPIO pin for the SMSC91x IRQs */
|
||||
ethernet-gpio {
|
||||
gpios = <&gpio3 19 0x1>;
|
||||
interrupts = <19 0x1>;
|
||||
interrupt-parent = <&gpio3>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@@ -125,6 +125,18 @@
|
||||
};
|
||||
};
|
||||
|
||||
external-bus@34000000 {
|
||||
compatible = "simple-bus";
|
||||
reg = <0x34000000 0x1000000>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
ranges = <0 0x34000000 0x1000000>;
|
||||
ethernet@300 {
|
||||
compatible = "smsc,lan91c111";
|
||||
reg = <0x300 0x0fd00>;
|
||||
};
|
||||
};
|
||||
|
||||
amba {
|
||||
compatible = "arm,amba-bus";
|
||||
#address-cells = <1>;
|
||||
|
Reference in New Issue
Block a user