m68k: add fec base node to devicetrees
authorAngelo Durgehello <angelo.dureghello@timesys.com>
Fri, 15 Nov 2019 22:54:12 +0000 (23:54 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 10 Jan 2020 15:07:25 +0000 (10:07 -0500)
Add basic ethernet controller devicetree nodes for all ColdFire
families.

Signed-off-by: Angelo Durgehello <angelo.dureghello@timesys.com>
12 files changed:
arch/m68k/dts/mcf5208.dtsi
arch/m68k/dts/mcf523x.dtsi
arch/m68k/dts/mcf5271.dtsi
arch/m68k/dts/mcf5272.dtsi
arch/m68k/dts/mcf5275.dtsi
arch/m68k/dts/mcf5282.dtsi
arch/m68k/dts/mcf5301x.dtsi
arch/m68k/dts/mcf5329.dtsi
arch/m68k/dts/mcf537x.dtsi
arch/m68k/dts/mcf5441x.dtsi
arch/m68k/dts/mcf5445x.dtsi
arch/m68k/dts/mcf54xx.dtsi

index 558d8bf41a5c39f06670ad24d74f7cea51be4c4d..4802dd3074ee7fc94730524eab1de1d71c82f12f 100644 (file)
@@ -8,6 +8,7 @@
 
        aliases {
                serial0 = &uart0;
+               fec0 = &fec0;
        };
 
        soc {
                        reg = <0xfc068000 0x40>;
                        status = "disabled";
                };
+
+               fec0: ethernet@fc030000 {
+                       compatible = "fsl,mcf-fec";
+                       reg = <0xfc030000 0x400>;
+                       mii-base = <0>;
+                       max-speed = <100>;
+                       timeout-loop = <50000>;
+                       status = "disabled";
+               };
        };
 };
index 9e79d472ecd2a884169c782ff1af52d69f3d7e1e..550e824cb1244cd33972f3cdf047a830ce90b16b 100644 (file)
@@ -8,6 +8,7 @@
 
        aliases {
                serial0 = &uart0;
+               fec0 = &fec0;
        };
 
        soc {
                                reg = <0x280 0x40>;
                                status = "disabled";
                        };
+
+                       fec0: ethernet@1000 {
+                               compatible = "fsl,mcf-fec";
+                               #address-cells=<2>;
+                               #size-cells=<1>;
+                               reg = <0x1000 0x400>;
+                               mii-base = <0>;
+                               max-speed = <100>;
+                               timeout-loop = <50000>;
+                               status = "disabled";
+                       };
                };
        };
 };
index 29355528d0fef745a4088bd79f20e7a6b2a12a46..b3484c2c84b1e9f228e5b52d197904d5a6e93eff 100644 (file)
@@ -8,6 +8,7 @@
 
        aliases {
                serial0 = &uart0;
+               fec0 = &fec0;
        };
 
        soc {
                                reg = <0x280 0x40>;
                                status = "disabled";
                        };
+
+                       fec0: ethernet@1000 {
+                               compatible = "fsl,mcf-fec";
+                               reg = <0x1000 0x400>;
+                               mii-base = <0>;
+                               max-speed = <100>;
+                               timeout-loop = <50000>;
+                               status = "disabled";
+                       };
                };
        };
 };
index a56117728bde99d9f8afbcf1340c705d67cf7546..173baaba3f2b85f31d7a010014a1338ea2ab50a3 100644 (file)
@@ -8,6 +8,7 @@
 
        aliases {
                serial0 = &uart0;
+               fec0 = &fec0;
        };
 
        soc {
                                reg = <0x140 0x40>;
                                status = "disabled";
                        };
+
+                       fec0: ethernet@840 {
+                               compatible = "fsl,mcf-fec";
+                               reg = <0x840 0x400>;
+                               mii-base = <0>;
+                               max-speed = <100>;
+                               timeout-loop = <50000>;
+                               status = "disabled";
+                       };
                };
        };
 };
index b375609d4a260e20a3f995b3ebe47e3164216c40..99dd7d3924cd148a3bc4dd7c2801e260047375cb 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0+
 /*
- * Copyright (C) 2018 Angelo Dureghello <angelo@sysam.it>
+ * Copyright (C) 2019 Angelo Dureghello <angelo@sysam.it>
  */
 
 / {
@@ -8,6 +8,8 @@
 
        aliases {
                serial0 = &uart0;
+               fec0 = &fec0;
+               fec1 = &fec1;
        };
 
        soc {
                                reg = <0x280 0x40>;
                                status = "disabled";
                        };
+
+                       fec0: ethernet@1000 {
+                               compatible = "fsl,mcf-fec";
+                               reg = <0x1000 0x800>;
+                               max-speed = <100>;
+                               phy-addr = <(-1)>;
+                               timeout-loop = <50000>;
+                               status = "disabled";
+                       };
+
+                       fec1: ethernet@1800 {
+                               compatible = "fsl,mcf-fec";
+                               reg = <0x1800 0x800>;
+                               mii-base = <0>;
+                               max-speed = <100>;
+                               timeout-loop = <50000>;
+                               status = "disabled";
+                       };
                };
        };
 };
index 3ad1be7bb5d5748709635d563ad32acfed59ffcc..d9916b1cd95fc8c01836dffb8b64734ede0e55bf 100644 (file)
@@ -8,6 +8,7 @@
 
        aliases {
                serial0 = &uart0;
+               fec0 = &fec0;
        };
 
        soc {
                                reg = <0x280 0x40>;
                                status = "disabled";
                        };
+
+                       fec0: ethernet@1000 {
+                               compatible = "fsl,mcf-fec";
+                               reg = <0x1000 0x800>;
+                               mii-base = <0>;
+                               max-speed = <100>;
+                               timeout-loop = <50000>;
+                               status = "disabled";
+                       };
                };
        };
 };
index 0891e4dfd56965ba49f99f426ef949b5473131c4..f60898aa4a4d0fe19eecc8306aed749ddcaec35e 100644 (file)
@@ -9,6 +9,8 @@
        aliases {
                serial0 = &uart0;
                spi0 = &dspi0;
+               fec0 = &fec0;
+               fec1 = &fec1;
        };
 
        soc {
                        spi-mode = <0>;
                        status = "disabled";
                };
+
+               fec0: ethernet@fc030000 {
+                       compatible = "fsl,mcf-fec";
+                       reg = <0xfc030000 0x200>;
+                       mii-base = <0>;
+                       max-speed = <100>;
+                       phy-addr = <(-1)>;
+                       timeout-loop = <50000>;
+                       status = "disabled";
+               };
+
+               fec1: ethernet@fc034000 {
+                       compatible = "fsl,mcf-fec";
+                       reg = <0xfc034000 0x800>;
+                       mii-base = <1>;
+                       max-speed = <100>;
+                       timeout-loop = <50000>;
+                       status = "disabled";
+               };
        };
 };
index aeaa6430af6ffab63ce84bbd15ad0d4aa0ddfbfc..de348968b56f9f6452ec7d27b95c5c3320bd819d 100644 (file)
@@ -8,6 +8,7 @@
 
        aliases {
                serial0 = &uart0;
+               fec0 = &fec0;
        };
 
        soc {
                        reg = <0xfc068000 0x40>;
                        status = "disabled";
                };
+
+               fec0: ethernet@fc030000 {
+                       compatible = "fsl,mcf-fec";
+                       reg = <0xfc030000 0x800>;
+                       mii-base = <0>;
+                       max-speed = <100>;
+                       timeout-loop = <50000>;
+                       status = "disabled";
+               };
        };
 };
index aeaa6430af6ffab63ce84bbd15ad0d4aa0ddfbfc..2a2a32a59ba836cf9ec8ac70bc2afdf5f63520b9 100644 (file)
@@ -8,6 +8,7 @@
 
        aliases {
                serial0 = &uart0;
+               fec0 = &fec0;
        };
 
        soc {
                        reg = <0xfc068000 0x40>;
                        status = "disabled";
                };
+
+               fec0: ethernet@fc030000 {
+                       compatible = "fsl,mcf-fec";
+                       reg = <0xfc030000 0x400>;
+                       mii-base = <0>;
+                       max-speed = <100>;
+                       timeout-loop = <50000>;
+                       status = "disabled";
+               };
        };
 };
index 71b392adc3613f64fefd36896b8b0fd1d877fede..6769bdc270a524ebf70229138e718d67d01483cc 100644 (file)
@@ -9,6 +9,8 @@
        aliases {
                serial0 = &uart0;
                spi0 = &dspi0;
+               fec0 = &fec0;
+               fec1 = &fec1;
        };
 
        soc {
                        spi-mode = <0>;
                        status = "disabled";
                };
+
+               fec0: ethernet@fc0d4000 {
+                       compatible = "fsl,mcf-fec";
+                       reg = <0xfc0d4000 0x4000>;
+                       mii-base = <0>;
+                       max-speed = <100>;
+                       timeout-loop = <50000>;
+                       status = "disabled";
+               };
+
+               fec1: ethernet@fc0d8000 {
+                       compatible = "fsl,mcf-fec";
+                       reg = <0xfc0d8000 0x4000>;
+                       mii-base = <1>;
+                       max-speed = <100>;
+                       timeout-loop = <50000>;
+                       status = "disabled";
+               };
        };
 };
index ccbee29a6cd6ae6513b1d0a6d52b67141811cbb8..b7ecc99c098b3c4a541601d65e58f219456bc204 100644 (file)
@@ -9,6 +9,8 @@
        aliases {
                serial0 = &uart0;
                spi0 = &dspi0;
+               fec0 = &fec0;
+               fec1 = &fec1;
        };
 
        soc {
                        spi-mode = <0>;
                        status = "disabled";
                };
+
+               fec0: ethernet@fc030000 {
+                       compatible = "fsl,mcf-fec";
+                       reg = <0xfc030000 0x4000>;
+                       mii-base = <0>;
+                       max-speed = <100>;
+                       timeout-loop = <50000>;
+                       status = "disabled";
+               };
+
+               fec1: ethernet@fc034000 {
+                       compatible = "fsl,mcf-fec";
+                       reg = <0xfc034000 0x4000>;
+                       mii-base = <1>;
+                       max-speed = <100>;
+                       timeout-loop = <50000>;
+                       status = "disabled";
+               };
        };
 };
index 537bb424f3e98400f01a6627143b81b2e926dabc..e9cebb9f742ba617b3c6c719a72b94ce2d31df8a 100644 (file)
@@ -11,6 +11,8 @@
                 * no UARTS.
                 */
                spi0 = &dspi0;
+               fec0 = &fec0;
+               fec1 = &fec1;
        };
 
        soc {
                                spi-mode = <0>;
                                status = "disabled";
                        };
+
+                       fec0: ethernet@9000 {
+                               compatible = "fsl,mcf-dma-fec";
+                               reg = <0x9000 0x800>;
+                               mii-base = <0>;
+                               max-speed = <100>;
+                               timeout-loop = <50000>;
+                               rx-task = <0>;
+                               tx-task = <1>;
+                               rx-piority = <6>;
+                               tx-piority = <7>;
+                               rx-init = <16>;
+                               tx-init = <17>;
+                               status = "disabled";
+                       };
+
+                       fec1: ethernet@9800 {
+                               compatible = "fsl,mcf-dma-fec";
+                               reg = <0x9800 0x800>;
+                               mii-base = <1>;
+                               max-speed = <100>;
+                               timeout-loop = <50000>;
+                               rx-task = <2>;
+                               tx-task = <3>;
+                               rx-piority = <6>;
+                               tx-piority = <7>;
+                               rx-init = <30>;
+                               tx-init = <31>;
+                               status = "disabled";
+                       };
                };
        };
 };