#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/interrupt-controller/bcm6358-interrupt-controller.h>
+#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/reset/bcm6358-reset.h>
/ {
pci: pci@fffe1000 {
compatible = "brcm,bcm6348-pci";
- reg = <0xfffe1000 0x200>,
- <0x08000000 0x10000>;
- reg-names = "pci",
- "pci-io";
+ reg = <0xfffe1000 0x200>;
#address-cells = <3>;
#size-cells = <2>;
device_type = "pci";
bus-range = <0x00 0x01>;
- ranges = <0x2000000 0 0x30000000 0x30000000 0 0x8000000>;
+ ranges = <0x2000000 0 0x30000000 0x30000000 0 0x8000000>,
+ <0x1000000 0 0x08000000 0x08000000 0 0x0010000>;
linux,pci-probe-only = <1>;
interrupt-parent = <&periph_intc>;
status = "disabled";
};
+
+ ethernet0: ethernet@fffe4000 {
+ compatible = "brcm,bcm6358-emac";
+ reg = <0xfffe4000 0x2dc>;
+
+ clocks = <&periph_clk BCM6358_CLK_ENET0>;
+
+ interrupt-parent = <&periph_intc>;
+ interrupts = <BCM6358_IRQ_EMAC0>,
+ <BCM6358_IRQ_EMAC0_RX_DMA>,
+ <BCM6358_IRQ_EMAC0_TX_DMA>;
+ interrupt-names = "emac",
+ "rx",
+ "tx";
+
+ brcm,iudma = <&iudma>;
+
+ dma-rx = <0>;
+ dma-tx = <1>;
+
+ status = "disabled";
+
+ mdio0: mdio {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ };
+ };
+
+ ethernet1: ethernet@fffe4800 {
+ compatible = "brcm,bcm6358-emac";
+ reg = <0xfffe4800 0x2dc>;
+
+ clocks = <&periph_clk BCM6358_CLK_ENET1>;
+
+ interrupt-parent = <&periph_intc>;
+ interrupts = <BCM6358_IRQ_EMAC1>,
+ <BCM6358_IRQ_EMAC1_RX_DMA>,
+ <BCM6358_IRQ_EMAC1_TX_DMA>;
+ interrupt-names = "emac",
+ "rx",
+ "tx";
+
+ brcm,iudma = <&iudma>;
+ brcm,external-mii;
+
+ dma-rx = <2>;
+ dma-tx = <3>;
+
+ status = "disabled";
+
+ mdio1: mdio {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ };
+ };
+
+ iudma: dma@fffe5000 {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "brcm,bcm6358-iudma";
+ reg = <0xfffe5000 0x24>,
+ <0xfffe5100 0x80>,
+ <0xfffe5200 0x80>;
+ reg-names = "dma",
+ "dma-channels",
+ "dma-sram";
+
+ dma-channels = <8>;
+
+ clocks = <&periph_clk BCM6358_CLK_EMUSB>,
+ <&periph_clk BCM6358_CLK_USBSU>,
+ <&periph_clk BCM6358_CLK_EPHY>,
+ <&periph_clk BCM6358_CLK_ENET>;
+
+ resets = <&periph_rst BCM6358_RST_ENET>,
+ <&periph_rst BCM6358_RST_EPHY>;
+
+ status = "disabled";
+ };
};
};