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

dt-bindings: net: convert lpc-eth.txt yaml format

Convert lpc-eth.txt yaml format.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://patch.msgid.link/20250624202028.2516257-1-Frank.Li@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Frank Li and committed by
Jakub Kicinski
cb70b1bb 82b6eef8

+48 -28
-28
Documentation/devicetree/bindings/net/lpc-eth.txt
··· 1 - * NXP LPC32xx SoC Ethernet Controller 2 - 3 - Required properties: 4 - - compatible: Should be "nxp,lpc-eth" 5 - - reg: Address and length of the register set for the device 6 - - interrupts: Should contain ethernet controller interrupt 7 - 8 - Optional properties: 9 - - phy-mode: See ethernet.txt file in the same directory. If the property is 10 - absent, "rmii" is assumed. 11 - - use-iram: Use LPC32xx internal SRAM (IRAM) for DMA buffering 12 - 13 - Optional subnodes: 14 - - mdio : specifies the mdio bus, used as a container for phy nodes according to 15 - phy.txt in the same directory 16 - 17 - 18 - Example: 19 - 20 - mac: ethernet@31060000 { 21 - compatible = "nxp,lpc-eth"; 22 - reg = <0x31060000 0x1000>; 23 - interrupt-parent = <&mic>; 24 - interrupts = <29 0>; 25 - 26 - phy-mode = "rmii"; 27 - use-iram; 28 - };
+48
Documentation/devicetree/bindings/net/nxp,lpc-eth.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,lpc-eth.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: NXP LPC32xx SoC Ethernet Controller 8 + 9 + maintainers: 10 + - Frank Li <Frank.Li@nxp.com> 11 + 12 + properties: 13 + compatible: 14 + const: nxp,lpc-eth 15 + 16 + reg: 17 + maxItems: 1 18 + 19 + clocks: 20 + maxItems: 1 21 + 22 + interrupts: 23 + maxItems: 1 24 + 25 + use-iram: 26 + $ref: /schemas/types.yaml#/definitions/flag 27 + description: Use LPC32xx internal SRAM (IRAM) for DMA buffering 28 + 29 + required: 30 + - compatible 31 + - reg 32 + - interrupts 33 + 34 + allOf: 35 + - $ref: ethernet-controller.yaml# 36 + 37 + unevaluatedProperties: false 38 + 39 + examples: 40 + - | 41 + ethernet@31060000 { 42 + compatible = "nxp,lpc-eth"; 43 + reg = <0x31060000 0x1000>; 44 + interrupt-parent = <&mic>; 45 + interrupts = <29 0>; 46 + phy-mode = "rmii"; 47 + use-iram; 48 + };