Skip to content

Commit 7e42237

Browse files
committed
boards: arm: mps2_an385: Add DTS node for Ethernet controller
The board has SMSC LAN9220 (actually as an "IP core" in an FPGA-emulated SoC). The patch includes DTS bindings for this device. Signed-off-by: Paul Sokolovsky <[email protected]>
1 parent 7f956a9 commit 7e42237

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

boards/arm/mps2_an385/mps2_an385.dts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,16 @@
128128
interrupts = <17 3>;
129129
};
130130

131+
eth0: eth@0 {
132+
/* Linux has "smsc,lan9115" */
133+
compatible = "smsc,lan9220";
134+
/* Such a big size from memory map in AN385 */
135+
/* Actual reg range is ~0x200 */
136+
reg = <0x40200000 0x100000>;
137+
label = "eth0";
138+
interrupts = <13 3>;
139+
};
140+
131141
i2c_touch: i2c@40022000 {
132142
compatible = "arm,versatile-i2c";
133143
clock-frequency = <I2C_BITRATE_STANDARD>;
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#
2+
# Copyright (c) 2018 Linaro Limited
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
title: SMSC/Microchip LAN9220 Ethernet controller
7+
id: smsc,lan9220
8+
version: 0.1
9+
10+
description: >
11+
This is a representation of the formerly SMSC, now Microchip, LAN9220
12+
Ethernet controller.
13+
14+
properties:
15+
compatible:
16+
type: string
17+
category: required
18+
description: compatible strings
19+
constraint: "smsc,lan9220"
20+
21+
reg:
22+
type: array
23+
description: mmio register space
24+
generation: define
25+
category: required
26+
27+
interrupts:
28+
type: array
29+
category: required
30+
description: required interrupts
31+
generation: define

0 commit comments

Comments
 (0)