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

dt-bindings: net: Convert SYSTEMPORT to YAML

Convert the Broadcom SYSTEMPORT Ethernet controller Device Tree binding
to YAML.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20211208202801.3706929-3-f.fainelli@gmail.com
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Florian Fainelli and committed by
Rob Herring
dc98a7b6 2371a03f

+87 -38
-38
Documentation/devicetree/bindings/net/brcm,systemport.txt
··· 1 - * Broadcom BCM7xxx Ethernet Systemport Controller (SYSTEMPORT) 2 - 3 - Required properties: 4 - - compatible: should be one of: 5 - "brcm,systemport-v1.00" 6 - "brcm,systemportlite-v1.00" or 7 - "brcm,systemport" 8 - - reg: address and length of the register set for the device. 9 - - interrupts: interrupts for the device, first cell must be for the rx 10 - interrupts, and the second cell should be for the transmit queues. An 11 - optional third interrupt cell for Wake-on-LAN can be specified 12 - - local-mac-address: Ethernet MAC address (48 bits) of this adapter 13 - - phy-mode: Should be a string describing the PHY interface to the 14 - Ethernet switch/PHY, see Documentation/devicetree/bindings/net/ethernet.txt 15 - - fixed-link: see Documentation/devicetree/bindings/net/fixed-link.txt for 16 - the property specific details 17 - 18 - Optional properties: 19 - - systemport,num-tier2-arb: number of tier 2 arbiters, an integer 20 - - systemport,num-tier1-arb: number of tier 1 arbiters, an integer 21 - - systemport,num-txq: number of HW transmit queues, an integer 22 - - systemport,num-rxq: number of HW receive queues, an integer 23 - - clocks: When provided, must be two phandles to the functional clocks nodes of 24 - the SYSTEMPORT block. The first phandle is the main SYSTEMPORT clock used 25 - during normal operation, while the second phandle is the Wake-on-LAN clock. 26 - - clock-names: When provided, names of the functional clock phandles, first 27 - name should be "sw_sysport" and second should be "sw_sysportwol". 28 - 29 - Example: 30 - ethernet@f04a0000 { 31 - compatible = "brcm,systemport-v1.00"; 32 - reg = <0xf04a0000 0x4650>; 33 - local-mac-address = [ 00 11 22 33 44 55 ]; 34 - fixed-link = <0 1 1000 0 0>; 35 - phy-mode = "gmii"; 36 - interrupts = <0x0 0x16 0x0>, 37 - <0x0 0x17 0x0>; 38 - };
+86
Documentation/devicetree/bindings/net/brcm,systemport.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/brcm,systemport.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Broadcom BCM7xxx Ethernet Systemport Controller (SYSTEMPORT) 8 + 9 + maintainers: 10 + - Florian Fainelli <f.fainelli@gmail.com> 11 + 12 + properties: 13 + compatible: 14 + enum: 15 + - brcm,systemport-v1.00 16 + - brcm,systemportlite-v1.00 17 + - brcm,systemport 18 + 19 + reg: 20 + maxItems: 1 21 + 22 + interrupts: 23 + minItems: 2 24 + items: 25 + - description: interrupt line for RX queues 26 + - description: interrupt line for TX queues 27 + - description: interrupt line for Wake-on-LAN 28 + 29 + clocks: 30 + items: 31 + - description: main clock 32 + - description: Wake-on-LAN clock 33 + 34 + clock-names: 35 + items: 36 + - const: sw_sysport 37 + - const: sw_sysportwol 38 + 39 + systemport,num-tier2-arb: 40 + $ref: /schemas/types.yaml#/definitions/uint32 41 + description: 42 + Number of tier 2 arbiters 43 + 44 + systemport,num-tier1-arb: 45 + $ref: /schemas/types.yaml#/definitions/uint32 46 + description: 47 + Number of tier 2 arbiters 48 + 49 + systemport,num-txq: 50 + $ref: /schemas/types.yaml#/definitions/uint32 51 + minimum: 1 52 + maximum: 32 53 + description: 54 + Number of HW transmit queues 55 + 56 + systemport,num-rxq: 57 + $ref: /schemas/types.yaml#/definitions/uint32 58 + minimum: 1 59 + maximum: 32 60 + description: 61 + Number of HW receive queues 62 + 63 + required: 64 + - reg 65 + - interrupts 66 + - phy-mode 67 + 68 + allOf: 69 + - $ref: "ethernet-controller.yaml#" 70 + 71 + unevaluatedProperties: false 72 + 73 + examples: 74 + - | 75 + ethernet@f04a0000 { 76 + compatible = "brcm,systemport-v1.00"; 77 + reg = <0xf04a0000 0x4650>; 78 + local-mac-address = [ 00 11 22 33 44 55 ]; 79 + phy-mode = "gmii"; 80 + interrupts = <0x0 0x16 0x0>, 81 + <0x0 0x17 0x0>; 82 + fixed-link { 83 + speed = <1000>; 84 + full-duplex; 85 + }; 86 + };
+1
MAINTAINERS
··· 3972 3972 S: Supported 3973 3973 F: drivers/net/ethernet/broadcom/bcmsysport.* 3974 3974 F: drivers/net/ethernet/broadcom/unimac.h 3975 + F: Documentation/devicetree/bindings/net/brcm,systemport.yaml 3975 3976 3976 3977 BROADCOM TG3 GIGABIT ETHERNET DRIVER 3977 3978 M: Siva Reddy Kallam <siva.kallam@broadcom.com>