Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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) <robh@kernel.org>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20250630161613.2838039-1-Frank.Li@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Frank Li and committed by
Jakub Kicinski
69fcb70c 16f87fb2

+85 -20
-20
Documentation/devicetree/bindings/net/nxp,lpc1850-dwmac.txt
··· 1 - * NXP LPC1850 GMAC ethernet controller 2 - 3 - This device is a platform glue layer for stmmac. 4 - Please see stmmac.txt for the other unchanged properties. 5 - 6 - Required properties: 7 - - compatible: Should contain "nxp,lpc1850-dwmac" 8 - 9 - Examples: 10 - 11 - mac: ethernet@40010000 { 12 - compatible = "nxp,lpc1850-dwmac", "snps,dwmac-3.611", "snps,dwmac"; 13 - reg = <0x40010000 0x2000>; 14 - interrupts = <5>; 15 - interrupt-names = "macirq"; 16 - clocks = <&ccu1 CLK_CPU_ETHERNET>; 17 - clock-names = "stmmaceth"; 18 - resets = <&rgu 22>; 19 - reset-names = "stmmaceth"; 20 - }
+85
Documentation/devicetree/bindings/net/nxp,lpc1850-dwmac.yaml
··· 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 <Frank.Li@nxp.com> 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 + };