drivers: eth: eth_mcux: Add 2nd Ethernet controller to RT1060 device tree
Add eth1 in dtsi and defines for the second controller in fixup. Signed-off-by: Armand Ciejak <armandciejak@users.noreply.github.com>
This commit is contained in:
parent
6a625c371f
commit
f00843feff
2 changed files with 34 additions and 5 deletions
|
@ -16,3 +16,28 @@
|
|||
compatible = "mmio-sram";
|
||||
reg = <0x20200000 0xC0000>;
|
||||
};
|
||||
|
||||
/* i.MX rt1060 has a second Ethernet controller. */
|
||||
/ {
|
||||
aliases {
|
||||
eth1 = ð1;
|
||||
};
|
||||
|
||||
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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue