Skip to content

Commit

Permalink
drivers: eth: eth_mcux: Add 2nd Ethernet controller to RT1060 device …
Browse files Browse the repository at this point in the history
…tree

Add eth1 in dtsi and defines for the second controller in fixup.

Signed-off-by: Armand Ciejak <[email protected]>
  • Loading branch information
armandciejak authored and carlescufi committed Mar 20, 2020
1 parent 6a625c3 commit f00843f
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 5 deletions.
25 changes: 25 additions & 0 deletions dts/arm/nxp/nxp_rt1060.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,28 @@
compatible = "mmio-sram";
reg = <0x20200000 0xC0000>;
};

/* i.MX rt1060 has a second Ethernet controller. */
/ {
aliases {
eth1 = &eth1;
};

soc {
eth1: ethernet@402d4000 {
compatible = "nxp,kinetis-ethernet";
reg = <0x402D4000 0x628>;
interrupts = <152 0>;
interrupt-names = "COMMON";
status = "disabled";
local-mac-address = [00 00 00 00 00 00];
label = "ETH_1";
ptp {
compatible = "nxp,kinetis-ptp";
status = "disabled";
interrupts = <153 0>;
interrupt-names = "IEEE1588_TMR";
};
};
};
};
14 changes: 9 additions & 5 deletions soc/arm/nxp_imx/rt/dts_fixup.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,17 @@
#define DT_RTC_0_NAME DT_INST_0_NXP_IMX_GPT_LABEL
#define DT_RTC_1_NAME DT_INST_1_NXP_IMX_GPT_LABEL

#define DT_ETH_MCUX_0_NAME DT_NXP_KINETIS_ETHERNET_402D8000_LABEL

#define DT_ETH_MCUX_0_NAME DT_NXP_KINETIS_ETHERNET_402D8000_LABEL
#define DT_ETH_MCUX_0_MAC DT_NXP_KINETIS_ETHERNET_402D8000_LOCAL_MAC_ADDRESS

#define DT_IRQ_ETH_COMMON DT_NXP_KINETIS_ETHERNET_402D8000_IRQ_0
#define DT_ETH_MCUX_0_IRQ_PRI DT_NXP_KINETIS_ETHERNET_402D8000_IRQ_0_PRIORITY
#define DT_IRQ_ETH_COMMON DT_NXP_KINETIS_ETHERNET_402D8000_IRQ_0
#define DT_IRQ_ETH_IEEE1588_TMR DT_NXP_KINETIS_PTP_402D8000_PTP_IRQ_0
#define DT_ETH_MCUX_0_IRQ_PRI DT_NXP_KINETIS_ETHERNET_402D8000_IRQ_0_PRIORITY

#define DT_ETH_MCUX_1_NAME DT_NXP_KINETIS_ETHERNET_402D4000_LABEL
#define DT_ETH_MCUX_1_MAC DT_NXP_KINETIS_ETHERNET_402D4000_LOCAL_MAC_ADDRESS
#define DT_ETH_MCUX_1_IRQ_PRI DT_NXP_KINETIS_ETHERNET_402D4000_IRQ_0_PRIORITY
#define DT_IRQ_ETH1_COMMON DT_NXP_KINETIS_ETHERNET_402D4000_IRQ_0
#define DT_IRQ_ETH1_IEEE1588_TMR DT_NXP_KINETIS_PTP_402D4000_PTP_IRQ_0

#define CONFIG_ENTROPY_NAME DT_NXP_KINETIS_TRNG_400CC000_LABEL

Expand Down

0 comments on commit f00843f

Please sign in to comment.