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

dt-bindings: net: Convert Calxeda Ethernet binding to json-schema

Convert the Calxeda XGMAC Ethernet device binding to DT schema format
using json-schema.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Andre Przywara and committed by
Rob Herring
9e7c2bbf 5918410d

+49 -18
-18
Documentation/devicetree/bindings/net/calxeda-xgmac.txt
··· 1 - * Calxeda Highbank 10Gb XGMAC Ethernet 2 - 3 - Required properties: 4 - - compatible : Should be "calxeda,hb-xgmac" 5 - - reg : Address and length of the register set for the device 6 - - interrupts : Should contain 3 xgmac interrupts. The 1st is main interrupt. 7 - The 2nd is pwr mgt interrupt. The 3rd is low power state interrupt. 8 - 9 - Optional properties: 10 - - dma-coherent : Present if dma operations are coherent 11 - 12 - Example: 13 - 14 - ethernet@fff50000 { 15 - compatible = "calxeda,hb-xgmac"; 16 - reg = <0xfff50000 0x1000>; 17 - interrupts = <0 77 4 0 78 4 0 79 4>; 18 - };
+49
Documentation/devicetree/bindings/net/calxeda-xgmac.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/calxeda-xgmac.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Calxeda Highbank 10Gb XGMAC Ethernet controller 8 + 9 + description: | 10 + The Calxeda XGMAC Ethernet controllers are directly connected to the 11 + internal machine "network fabric", which is set up, initialised and 12 + managed by the firmware. So there are no PHY properties in this 13 + binding. Switches in the fabric take care of routing and mapping the 14 + traffic to external network ports. 15 + 16 + maintainers: 17 + - Andre Przywara <andre.przywara@arm.com> 18 + 19 + properties: 20 + compatible: 21 + const: calxeda,hb-xgmac 22 + 23 + reg: 24 + maxItems: 1 25 + 26 + interrupts: 27 + description: | 28 + Can point to at most 3 xgmac interrupts. The 1st one is the main 29 + interrupt, the 2nd one is used for power management. The optional 30 + 3rd one is the low power state interrupt. 31 + minItems: 2 32 + maxItems: 3 33 + 34 + dma-coherent: true 35 + 36 + required: 37 + - compatible 38 + - reg 39 + - interrupts 40 + 41 + additionalProperties: false 42 + 43 + examples: 44 + - | 45 + ethernet@fff50000 { 46 + compatible = "calxeda,hb-xgmac"; 47 + reg = <0xfff50000 0x1000>; 48 + interrupts = <0 77 4>, <0 78 4>, <0 79 4>; 49 + };