]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
bmips: bcm6318: add support for bcm6368-enet
authorÁlvaro Fernández Rojas <noltari@gmail.com>
Sat, 1 Dec 2018 18:00:41 +0000 (19:00 +0100)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Wed, 19 Dec 2018 14:23:01 +0000 (15:23 +0100)
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
arch/mips/dts/brcm,bcm6318.dtsi
include/dt-bindings/clock/bcm6318-clock.h

index d04b7cbb017dd2135791c7ef7066581701ae265a..d678dab242b5175940b00b25d0ff6f23a639ff49 100644 (file)
                        status = "disabled";
                };
 
+               enet: ethernet@10080000 {
+                       compatible = "brcm,bcm6368-enet";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <0x10080000 0x8000>;
+                       clocks = <&periph_clk BCM6318_CLK_ROBOSW250>,
+                                <&periph_clk BCM6318_CLK_ROBOSW025>,
+                                <&ubus_clk BCM6318_UCLK_ROBOSW>;
+                       resets = <&periph_rst BCM6318_RST_ENETSW>,
+                                <&periph_rst BCM6318_RST_EPHY>;
+                       dmas = <&iudma BCM6318_DMA_ENETSW_RX>,
+                              <&iudma BCM6318_DMA_ENETSW_TX>;
+                       dma-names = "rx",
+                                   "tx";
+                       brcm,num-ports = <5>;
+
+                       status = "disabled";
+               };
+
                iudma: dma-controller@10088000 {
                        compatible = "brcm,bcm6368-iudma";
                        reg = <0x10088000 0x80>,
index d5e13c5c2d34a43984a387b0ebd22cccbc0c8187..3f10448cef11ddd34484685e3edaccd53a197db0 100644 (file)
 #define BCM6318_CLK_AFE                29
 #define BCM6318_CLK_QPROC      30
 
+#define BCM6318_UCLK_ADSL      0
+#define BCM6318_UCLK_ARB       1
+#define BCM6318_UCLK_MIPS      2
+#define BCM6318_UCLK_PCIE      3
+#define BCM6318_UCLK_PERIPH    4
+#define BCM6318_UCLK_PHYMIPS   5
+#define BCM6318_UCLK_ROBOSW    6
+#define BCM6318_UCLK_SAR       7
+#define BCM6318_UCLK_SDR       8
+#define BCM6318_UCLK_USB       9
+
 #endif /* __DT_BINDINGS_CLOCK_BCM6318_H */