Skip to content

Commit 69fcb70

Browse files
nxpfranklikuba-moo
authored andcommitted
dt-bindings: net: convert nxp,lpc1850-dwmac.txt to yaml format
Convert nxp,lpc1850-dwmac.txt to yaml format. Additional changes: - compatible string add fallback as "nxp,lpc1850-dwmac", "snps,dwmac-3.611" "snps,dwmac". - add common interrupts, interrupt-names, clocks, clock-names, resets and reset-names properties. - add ref snps,dwmac.yaml. - add phy-mode in example to avoid dt_binding_check warning. - update examples to align lpc18xx.dtsi. Reviewed-by: Rob Herring (Arm) <[email protected]> Signed-off-by: Frank Li <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 16f87fb commit 69fcb70

File tree

2 files changed

+85
-20
lines changed

2 files changed

+85
-20
lines changed

Documentation/devicetree/bindings/net/nxp,lpc1850-dwmac.txt

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/net/nxp,lpc1850-dwmac.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: NXP LPC1850 GMAC ethernet controller
8+
9+
maintainers:
10+
- Frank Li <[email protected]>
11+
12+
# We need a select here so we don't match all nodes with 'snps,dwmac'
13+
select:
14+
properties:
15+
compatible:
16+
contains:
17+
enum:
18+
- nxp,lpc1850-dwmac
19+
required:
20+
- compatible
21+
22+
properties:
23+
compatible:
24+
items:
25+
- enum:
26+
- nxp,lpc1850-dwmac
27+
- const: snps,dwmac-3.611
28+
- const: snps,dwmac
29+
30+
reg:
31+
maxItems: 1
32+
33+
clocks:
34+
maxItems: 1
35+
36+
clock-names:
37+
items:
38+
- const: stmmaceth
39+
40+
interrupts:
41+
maxItems: 1
42+
43+
interrupt-names:
44+
items:
45+
- const: macirq
46+
47+
resets:
48+
maxItems: 1
49+
50+
reset-names:
51+
items:
52+
- const: stmmaceth
53+
54+
required:
55+
- compatible
56+
- reg
57+
- clocks
58+
- clock-names
59+
- interrupts
60+
- interrupt-names
61+
62+
allOf:
63+
- $ref: snps,dwmac.yaml#
64+
65+
unevaluatedProperties: false
66+
67+
examples:
68+
- |
69+
#include <dt-bindings/clock/lpc18xx-ccu.h>
70+
71+
ethernet@40010000 {
72+
compatible = "nxp,lpc1850-dwmac", "snps,dwmac-3.611", "snps,dwmac";
73+
reg = <0x40010000 0x2000>;
74+
interrupts = <5>;
75+
interrupt-names = "macirq";
76+
clocks = <&ccu1 CLK_CPU_ETHERNET>;
77+
clock-names = "stmmaceth";
78+
resets = <&rgu 22>;
79+
reset-names = "stmmaceth";
80+
rx-fifo-depth = <256>;
81+
tx-fifo-depth = <256>;
82+
snps,pbl = <4>;
83+
snps,force_thresh_dma_mode;
84+
phy-mode = "rgmii-id";
85+
};

0 commit comments

Comments
 (0)