dts: arm: atmel: Add SAM E70 GMAC instance

This commit adds a GMAC instance to the SAM E70 device tree, with the
chip revision-specific hardware queue count.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
This commit is contained in:
Stephanos Ioannidis 2020-02-24 15:01:00 +09:00 committed by Kumar Gala
commit fbf89a7c77
3 changed files with 47 additions and 0 deletions

View file

@ -305,6 +305,17 @@
label = "USBHS";
};
gmac: ethernet@40050088 {
compatible = "atmel,sam-gmac";
reg = <0x40050088 0x4000>;
interrupts = <39 0>, <66 0>, <67 0>;
interrupt-names = "gmac", "q1", "q2";
num-queues = <3>;
local-mac-address = [00 00 00 00 00 00];
label = "GMAC";
status = "disabled";
};
trng: random@40070000 {
compatible = "atmel,sam-trng";
reg = <0x40070000 0x4000>;

View file

@ -0,0 +1,13 @@
/*
* Copyright (c) 2020 Stephanos Ioannidis <root@stephanos.io>
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <atmel/same70.dtsi>
&gmac {
interrupts = <39 0>, <66 0>, <67 0>, <71 0>, <72 0>, <73 0>;
interrupt-names = "gmac", "q1", "q2", "q3", "q4", "q5";
num-queues = <6>;
};

View file

@ -0,0 +1,23 @@
/*
* Copyright (c) 2018 Linaro Limited
* Copyright (c) 2020 Stephanos Ioannidis <root@stephanos.io>
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <mem.h>
#include <atmel/same70b.dtsi>
/ {
sram0: memory@20400000 {
reg = <0x20400000 DT_SIZE_K(384)>;
};
soc {
flash-controller@400e0c00 {
flash0: flash@400000 {
reg = <0x00400000 DT_SIZE_K(2048)>;
};
};
};
};