mirror of
https://github.com/torvalds/linux.git
synced 2026-11-20 13:03:48 +00:00
Merge tag 'net-next-7.4' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next
Pull networking updates from Paolo Abeni:
"This includes a significant number of low-priority fixes - especially
in the NIC drivers area - that we deferred from the last few RCs in
the previous cycle, which can't be easily outlined in the synopsis
below.
Core & protocols:
- Continue the work on removing rtnl_lock dependencies:
- per-netns ARP and ND neighbour tables, with the default settings
now configurable per netns (inheritance from init_net is
controlled by the new net.core.neigh_inherit_init_net sysctl)
- RCU-protected configuration and rtnl_lock-less fill_info() for
hsr, netkit, sit, vlan and vxlan devices
- per-netns device unregistration for ip tunnel and gre devices
- use the netdev instance lock instead of rtnl_lock when reading
speed and duplex via sysfs
- batch the flushing of uncached routes at device unregistration
time, relieving rtnl_lock contention on netns dismantle.
- Add hardware pacing offload support, admin-controlled via a new
rtnetlink attribute, with sch_fq integration (implemented in idpf).
- Re-segment BIG TCP GSO packets into GSO packets fitting the egress
device limits instead of plain MSS-sized segments, improving
throughput for mixed BIG TCP / non-BIG TCP paths by up to 70%.
- Generate RSS keys that spread flows over all the RX queues; the
previous random keys could leave some queues unused.
- Optimize the bridge VLAN forwarding paths: cache the port-VLAN in
fdb entries and consider only VLAN members when flooding, for ~10%
more Mpps in the fdb forwarding path.
- A few TCP/IP performance improvements aimed at efficient cache
usage and reducing contention.
- Add the TCP ROCCET congestion control, a CUBIC variant aimed at
avoiding bufferbloat in cellular networks.
- Continue the conversion of getsockopt callbacks to sockopt_t.
- Add an ethtool command to list the front-facing ports of an
interface, including SFP cages and modules, using the phy_port
representation.
- Enable BIG TCP support for bareudp tunnels.
- Remove the IPV6_ADDRFORM socket option and disallow buggy TCP state
transitions (listen() + shutdown() + connect() and connect() +
connect(AF_UNSPEC) + listen()).
- Remove most BUG_ON()s from core packet processing, replacing them
with error paths.
Wireless:
- Latency improvements, including lockless station get/dump and
beacon updates, plus RTNL reduction and locking cleanups.
- Infrastructure for non-station TX/RX with MLO.
- NAN (Wi-Fi Aware) Instant Communication support and other NAN
improvements.
- Control frame Integrity Protocol (CIP) and protected TWT support.
- Improvements for AP regulatory checks.
Netfilter:
- Disable br_netfilter in user namespaces and schedule it for removal
in 2027.
- Restrict the raw table in nft_compat to the specific family, hook
and priority.
- Prepare the flowtable for mixed IPv4-over-IPv6 tunneling (and vice
versa).
- Use GFP_KERNEL_ACCOUNT for most netfilter allocations, for better
integration with memcg.
- Allow discovering conntrack zone filtering support in ctnetlink
dumps, and fix nfnetlink_hook handling of large dumps.
Deletions:
- Move the LLC type 2 sockets out of tree. There are no known users
and the code attracts a never-ending stream of LLM-driven fixes.
Device drivers:
- New drivers:
- Meta Platforms NIC (mpnic), the second-generation NIC from Meta
- initial skeleton of the Nebula-matrix NICs driver (nbl)
- X-Powers AC200/AC300 Fast Ethernet PHYs
- Ethernet high-speed NICs:
- Intel:
- i40e: XDP metadata support for RX hash and VLAN tag
- ice: expose the E825 TSPLL state via the DPLL subsystem
- nVidia/Mellanox:
- move the data direct infrastructure from IB to core, in
preparation for netdev support.
- reduce the memory used per offloaded TC rule
- Meta (fbnic):
- support large io_uring zero-copy RX buffers
- Microsoft vNIC (mana):
- add BQL support
- Ethernet NICs consumer, and embedded:
- Airoha:
- LRO offload support
- Cadence (macb):
- context swapping for ringparam and MTU changes, avoiding
buffer loss under memory pressure
- Mucse (rnpgbe):
- TX/RX and link status support
- NXP (enetc):
- SR-IOV improvements and VF support for ENETC v4
- Qualcomm (ppe):
- IPQ5424 support
- Realtek PCI (r8169):
- phylink support
- RSS support for RTL8127
- Renesas (ravb):
- gPTP support for R-Car Gen4
- Synopsys (stmmac):
- XDP multi-buffer support on the TX side
- tc mqprio hw queue priority offload
- support for RK3568 SGMII, Allwinner H616 EMAC1, UltraRISC
DP1000 and Qualcomm sa8255p
- Ethernet switches:
- Mediatek (mt7530):
- fast age and change conduit support
- Microchip (ksz):
- support for KSZ8995XA/KS8995XA
- Microchip (lan966x):
- PCIe FDMA support, ~20x throughput increase in PCIe endpoint
- Microchip (sparx5):
- Time Aware Shaper (taprio) offload
- Motorcomm (yt921x):
- LED and SerDes PCS support
- Realtek (rtl8365mb):
- EEE support
- Ethernet PHYs:
- Broadcom:
- enable jumbo frames on BCM54xx
- Realtek:
- support for RTL8261CE_CG and RTL8261D_VM
- MDIO support for RTL838x and RTL839x
- WiFi drivers:
- Broadcom (brcmfmac):
- FT/OKC roaming offload
- Intel (iwlwifi):
- UHR sniffer support
- support for newer UEFI/BIOS tables
- MediaTek (mt76):
- mt7925 NAN improvements
- offchannel/scan improvements and MLO fixes
- Morse Micro (mm81x):
- monitor mode support
- Qualcomm (ath12k):
- IPQ5332 platform infrastructure
- Realtek (rtw88):
- RTL8723BS support
- SDIO TX performance improvements
- Realtek (rtw89):
- P2P_DEVICE support
- BT-coex updates for RTL8922D
- Bluetooth:
- move H:4 reassembly into the Bluetooth core
- add generic support for vendor packets
- MGMT: add security level changed event
- Bluetooth drivers:
- btusb: support Bulk Serialization Mode
- Intel: support Draco and Titan Lake, allow unsigned firmware
- Mediatek: MT7928 support
- Qualcomm: QCC2072 support
- Broadcom: Synaptics 4384 support"
* tag 'net-next-7.4' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next: (2126 commits)
Bluetooth: btusb: disable by default Qualcomm multi-subsystem
tipc: fix broadcast sender hang on last acker departure
tipc: fix use-after-free of broadcast reception link at node release
r8169: clear TX LPI on RTL8168h at link up after phylink conversion
tun: Require CAP_NET_ADMIN to attach to an ownerless device
net/sched/sch_cake: drop dead nla_nest_end() error check
net/sched/sch_cake: widen buffer_used to u64
net/sched/sch_cake: reduce parent backlog when clearing a tin
net/sched/sch_cake: serialize reconfiguration with the datapath
tg3: Add Datto SIRIS 5 1U Server to restart AER quirk table
net/mlx5e: Stop asserting for RTNL when closing channels
net: shrink the payload-only part of skb dataref to one bit
net: wwan: iosm: validate msg_head before indexing msg_ring
net: bgmac: rate limit RX error messages
selftests: net: veth: test XDP_TX to a peer with GRO enabled
veth: schedule the peer's NAPI after XDP_TX when only GRO is enabled
pppoe: delete session hash entries by pointer match
net: lan969x: don't disable hardirqs in fdma tx clear
net: sparx5/lan969x: do not clobber the PSFP cycle timer update period
net: lan969x: fix DSM calendar for empty taxis
...
This commit is contained in:
@@ -75,20 +75,6 @@ Description:
|
||||
the ID of the AP endpoint on which packets destined
|
||||
for the embedded modem are sent.
|
||||
|
||||
What: .../XXXXXXX.ipa/endpoint_id/monitor_rx
|
||||
Date: July 2022
|
||||
KernelVersion: v5.19
|
||||
Contact: Alex Elder <[email protected]>
|
||||
Description:
|
||||
The .../XXXXXXX.ipa/endpoint_id/monitor_rx file contains
|
||||
the ID of the AP endpoint on which IPA "monitor" data is
|
||||
received. The monitor endpoint supplies replicas of
|
||||
packets that enter the IPA hardware for processing.
|
||||
Each replicated packet is preceded by a fixed-size "ODL"
|
||||
header (see .../XXXXXXX.ipa/feature/monitor, above).
|
||||
Large packets are truncated, to reduce the bandwidth
|
||||
required to provide the monitor function.
|
||||
|
||||
What: .../XXXXXXX.ipa/modem/
|
||||
Date: June 2021
|
||||
KernelVersion: v5.14
|
||||
|
||||
@@ -11,6 +11,35 @@ Contact: Jonathan Lemon <[email protected]>
|
||||
Description: This directory contains the attributes of the Nth timecard
|
||||
registered.
|
||||
|
||||
What: /sys/class/timecard/ocpN/cpld_status
|
||||
Date: July 2026
|
||||
Contact: Sagi Maimon <[email protected]>
|
||||
Description: (RO, root only) The flags set in the status register of the
|
||||
TAP CPLD, space separated, or an empty line when none is
|
||||
set. Only present on ADVA x1 TAP boards (PCI ID
|
||||
0xad5a:0x0410).
|
||||
|
||||
========== ================================================
|
||||
done the configuration flash holds a valid image and
|
||||
it is active
|
||||
busy an internal operation is in progress
|
||||
failed the last ISC operation failed
|
||||
========== ================================================
|
||||
|
||||
For example "busy" while an operation runs, or "busy failed"
|
||||
if a failure is latched while another one is in progress.
|
||||
|
||||
A read arbitrates for the shared I2C bus and reprograms the
|
||||
on-card mux, so it is restricted to root. The Lattice device
|
||||
ID of the CPLD is read by the driver shortly after probe,
|
||||
and again after a successful CPLD update, and reported from
|
||||
that cached value as the fixed "cpld.id" version by
|
||||
devlink dev info.
|
||||
|
||||
New CPLD firmware is programmed with devlink dev flash,
|
||||
selecting the "fw.cpld" component; see
|
||||
Documentation/networking/devlink/ptp_ocp.rst.
|
||||
|
||||
What: /sys/class/timecard/ocpN/available_clock_sources
|
||||
Date: September 2021
|
||||
Contact: Jonathan Lemon <[email protected]>
|
||||
@@ -156,9 +185,11 @@ Description: (RW) Used to start the signal generator, and summarize
|
||||
|
||||
period [duty [phase [polarity]]]
|
||||
|
||||
echo 500000000 > signal # 1/2 second period
|
||||
echo 1000000 40 100 > signal
|
||||
echo 0 > signal # turn off generator
|
||||
::
|
||||
|
||||
echo 500000000 > signal # 1/2 second period
|
||||
echo 1000000 40 100 > signal
|
||||
echo 0 > signal # turn off generator
|
||||
|
||||
Period and phase are specified in nanoseconds. Duty cycle is
|
||||
a percentage from 1-99. Polarity is 1 or 0.
|
||||
|
||||
@@ -413,6 +413,20 @@ new netns has been created.
|
||||
|
||||
Default : 0 (for compatibility reasons)
|
||||
|
||||
neigh_inherit_init_net
|
||||
----------------------
|
||||
|
||||
Controls if a new network namespace should inherit all current
|
||||
settings under /proc/sys/net/ipv{4,6}/neigh/default/.
|
||||
|
||||
By default, the value is set to 1, and all settings are inherited
|
||||
from init_net.
|
||||
|
||||
If set to 0, both IPv4 and IPv6 settings are reset to their default
|
||||
values.
|
||||
|
||||
Default : 1 (for compatibility reasons)
|
||||
|
||||
txrehash
|
||||
--------
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ properties:
|
||||
const: 0
|
||||
|
||||
patternProperties:
|
||||
"^pin@[0-9]+$":
|
||||
"^pin@[0-9a-f]+$":
|
||||
$ref: /schemas/dpll/dpll-pin.yaml
|
||||
unevaluatedProperties: false
|
||||
|
||||
|
||||
@@ -40,6 +40,9 @@ properties:
|
||||
description:
|
||||
PHY regulator
|
||||
|
||||
power-domains:
|
||||
maxItems: 1
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- reg
|
||||
|
||||
@@ -21,6 +21,7 @@ select:
|
||||
- allwinner,sun8i-r40-gmac
|
||||
- allwinner,sun8i-v3s-emac
|
||||
- allwinner,sun50i-a64-emac
|
||||
- allwinner,sun50i-h616-emac1
|
||||
- allwinner,sun55i-a523-gmac200
|
||||
required:
|
||||
- compatible
|
||||
@@ -33,6 +34,7 @@ properties:
|
||||
- const: allwinner,sun8i-r40-gmac
|
||||
- const: allwinner,sun8i-v3s-emac
|
||||
- const: allwinner,sun50i-a64-emac
|
||||
- const: allwinner,sun50i-h616-emac1
|
||||
- items:
|
||||
- enum:
|
||||
- allwinner,sun20i-d1-emac
|
||||
@@ -91,6 +93,17 @@ required:
|
||||
|
||||
allOf:
|
||||
- $ref: snps,dwmac.yaml#
|
||||
- if:
|
||||
properties:
|
||||
compatible:
|
||||
contains:
|
||||
const: allwinner,sun50i-h616-emac1
|
||||
|
||||
then:
|
||||
properties:
|
||||
phy-mode:
|
||||
const: rmii
|
||||
|
||||
- if:
|
||||
properties:
|
||||
compatible:
|
||||
|
||||
@@ -13,8 +13,6 @@ description:
|
||||
This binding describes the Altera SOCFPGA SoC implementation of the
|
||||
Synopsys DWMAC for the Cyclone5, Arria5, Stratix10, Agilex5 and Agilex7
|
||||
families of chips.
|
||||
# TODO: Determine how to handle the Arria10 reset-name, stmmaceth-ocp, that
|
||||
# does not validate against net/snps,dwmac.yaml.
|
||||
|
||||
select:
|
||||
properties:
|
||||
@@ -158,6 +156,9 @@ properties:
|
||||
- description: offset of the control register
|
||||
- description: shift within the control register
|
||||
|
||||
power-domains:
|
||||
maxItems: 1
|
||||
|
||||
patternProperties:
|
||||
"^mdio[0-9]$":
|
||||
type: object
|
||||
|
||||
@@ -158,6 +158,9 @@ properties:
|
||||
interrupt-names:
|
||||
const: macirq
|
||||
|
||||
power-domains:
|
||||
maxItems: 1
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- reg
|
||||
|
||||
@@ -31,6 +31,7 @@ properties:
|
||||
- brcm,bcm43540-bt
|
||||
- brcm,bcm4335a0
|
||||
- brcm,bcm4349-bt
|
||||
- brcm,bcm4384-bt
|
||||
- cypress,cyw4373a0-bt
|
||||
- infineon,cyw55572-bt
|
||||
|
||||
|
||||
@@ -123,7 +123,7 @@ examples:
|
||||
phy0: ethernet-phy@1 {
|
||||
reg = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
mdio@ce14 {
|
||||
compatible = "brcm,asp-v2.1-mdio";
|
||||
|
||||
@@ -87,18 +87,6 @@ examples:
|
||||
#include <dt-bindings/interrupt-controller/irq.h>
|
||||
#include <dt-bindings/clock/cortina,gemini-clock.h>
|
||||
#include <dt-bindings/reset/cortina,gemini-reset.h>
|
||||
mdio0: mdio {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
phy0: ethernet-phy@1 {
|
||||
reg = <1>;
|
||||
device_type = "ethernet-phy";
|
||||
};
|
||||
phy1: ethernet-phy@3 {
|
||||
reg = <3>;
|
||||
device_type = "ethernet-phy";
|
||||
};
|
||||
};
|
||||
|
||||
ethernet@60000000 {
|
||||
compatible = "cortina,gemini-ethernet";
|
||||
@@ -110,28 +98,28 @@ examples:
|
||||
ranges;
|
||||
|
||||
gmac0: ethernet-port@0 {
|
||||
compatible = "cortina,gemini-ethernet-port";
|
||||
reg = <0x60008000 0x2000>, /* Port 0 DMA/TOE */
|
||||
<0x6000a000 0x2000>; /* Port 0 GMAC */
|
||||
interrupt-parent = <&intcon>;
|
||||
interrupts = <1 IRQ_TYPE_LEVEL_HIGH>;
|
||||
resets = <&syscon GEMINI_RESET_GMAC0>;
|
||||
clocks = <&syscon GEMINI_CLK_GATE_GMAC0>;
|
||||
clock-names = "PCLK";
|
||||
phy-mode = "rgmii";
|
||||
phy-handle = <&phy0>;
|
||||
compatible = "cortina,gemini-ethernet-port";
|
||||
reg = <0x60008000 0x2000>, /* Port 0 DMA/TOE */
|
||||
<0x6000a000 0x2000>; /* Port 0 GMAC */
|
||||
interrupt-parent = <&intcon>;
|
||||
interrupts = <1 IRQ_TYPE_LEVEL_HIGH>;
|
||||
resets = <&syscon GEMINI_RESET_GMAC0>;
|
||||
clocks = <&syscon GEMINI_CLK_GATE_GMAC0>;
|
||||
clock-names = "PCLK";
|
||||
phy-mode = "rgmii";
|
||||
phy-handle = <&phy0>;
|
||||
};
|
||||
|
||||
gmac1: ethernet-port@1 {
|
||||
compatible = "cortina,gemini-ethernet-port";
|
||||
reg = <0x6000c000 0x2000>, /* Port 1 DMA/TOE */
|
||||
<0x6000e000 0x2000>; /* Port 1 GMAC */
|
||||
interrupt-parent = <&intcon>;
|
||||
interrupts = <2 IRQ_TYPE_LEVEL_HIGH>;
|
||||
resets = <&syscon GEMINI_RESET_GMAC1>;
|
||||
clocks = <&syscon GEMINI_CLK_GATE_GMAC1>;
|
||||
clock-names = "PCLK";
|
||||
phy-mode = "rgmii";
|
||||
phy-handle = <&phy1>;
|
||||
compatible = "cortina,gemini-ethernet-port";
|
||||
reg = <0x6000c000 0x2000>, /* Port 1 DMA/TOE */
|
||||
<0x6000e000 0x2000>; /* Port 1 GMAC */
|
||||
interrupt-parent = <&intcon>;
|
||||
interrupts = <2 IRQ_TYPE_LEVEL_HIGH>;
|
||||
resets = <&syscon GEMINI_RESET_GMAC1>;
|
||||
clocks = <&syscon GEMINI_CLK_GATE_GMAC1>;
|
||||
clock-names = "PCLK";
|
||||
phy-mode = "rgmii";
|
||||
phy-handle = <&phy1>;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -23,6 +23,7 @@ properties:
|
||||
- microchip,ksz8864 # 4-port version of KSZ8895 family switch
|
||||
- microchip,ksz8873
|
||||
- microchip,ksz8895 # 5-port version of KSZ8895 family switch
|
||||
- microchip,ksz8995xa
|
||||
- microchip,ksz9477
|
||||
- microchip,ksz9897
|
||||
- microchip,ksz9896
|
||||
|
||||
@@ -21,6 +21,9 @@ description: |
|
||||
|
||||
Any port can be used as the CPU port.
|
||||
|
||||
Each port has at most 3 LEDs connected and can be declared using the standard
|
||||
LEDs structure.
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
const: motorcomm,yt9215
|
||||
@@ -59,6 +62,7 @@ unevaluatedProperties: false
|
||||
examples:
|
||||
- |
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/leds/common.h>
|
||||
|
||||
mdio {
|
||||
#address-cells = <1>;
|
||||
@@ -113,6 +117,25 @@ examples:
|
||||
label = "lan1";
|
||||
phy-mode = "internal";
|
||||
phy-handle = <&sw_phy0>;
|
||||
|
||||
leds {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
led@0 {
|
||||
reg = <0>;
|
||||
color = <LED_COLOR_ID_WHITE>;
|
||||
function = LED_FUNCTION_LAN;
|
||||
default-state = "keep";
|
||||
};
|
||||
|
||||
led@1 {
|
||||
reg = <1>;
|
||||
color = <LED_COLOR_ID_AMBER>;
|
||||
function = LED_FUNCTION_LAN;
|
||||
default-state = "keep";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
ethernet-port@1 {
|
||||
|
||||
@@ -8,6 +8,20 @@ title: Realtek switches for unmanaged switches
|
||||
|
||||
allOf:
|
||||
- $ref: dsa.yaml#/$defs/ethernet-ports
|
||||
- if:
|
||||
not:
|
||||
properties:
|
||||
compatible:
|
||||
contains:
|
||||
const: realtek,rtl8365mb
|
||||
then:
|
||||
properties:
|
||||
avddh-supply: false
|
||||
avddl-supply: false
|
||||
dvddio-supply: false
|
||||
dvddio1-supply: false
|
||||
dvddl-supply: false
|
||||
pllvddl-supply: false
|
||||
|
||||
maintainers:
|
||||
- Linus Walleij <[email protected]>
|
||||
@@ -62,6 +76,24 @@ properties:
|
||||
resets:
|
||||
maxItems: 1
|
||||
|
||||
avddh-supply:
|
||||
description: AVDDH high-voltage analog supply.
|
||||
|
||||
avddl-supply:
|
||||
description: AVDDL low-voltage analog supply.
|
||||
|
||||
dvddio-supply:
|
||||
description: DVDDIO digital I/O supply.
|
||||
|
||||
dvddio1-supply:
|
||||
description: DVDDIO_1 secondary digital I/O supply for the RGMII bank.
|
||||
|
||||
dvddl-supply:
|
||||
description: DVDDL digital core supply.
|
||||
|
||||
pllvddl-supply:
|
||||
description: PLLVDDL PLL analog supply.
|
||||
|
||||
realtek,disable-leds:
|
||||
type: boolean
|
||||
description: |
|
||||
@@ -243,6 +275,7 @@ examples:
|
||||
platform {
|
||||
ethernet-switch {
|
||||
compatible = "realtek,rtl8365mb";
|
||||
avddh-supply = <&avddh>;
|
||||
mdc-gpios = <&gpio1 16 GPIO_ACTIVE_HIGH>;
|
||||
mdio-gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
|
||||
|
||||
@@ -127,8 +127,8 @@ examples:
|
||||
phy-mode = "internal";
|
||||
|
||||
fixed-link {
|
||||
speed = <1000>;
|
||||
full-duplex;
|
||||
speed = <1000>;
|
||||
full-duplex;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -120,6 +120,9 @@ properties:
|
||||
- description: Optional offset of register controlling TXD delay
|
||||
- description: Optional offset of register controlling RXD delay
|
||||
|
||||
power-domains:
|
||||
maxItems: 1
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- reg
|
||||
|
||||
@@ -11,7 +11,7 @@ maintainers:
|
||||
|
||||
properties:
|
||||
$nodename:
|
||||
pattern: "^ethernet(@.*)?$"
|
||||
pattern: "^ethernet(@.+|-[0-9]+)?$"
|
||||
|
||||
label:
|
||||
description: Human readable label on a port of a box.
|
||||
|
||||
@@ -269,6 +269,22 @@ properties:
|
||||
have to be placed on board. When omitted, the PHYs default will be left as
|
||||
is.
|
||||
|
||||
marvell,reg-init:
|
||||
$ref: /schemas/types.yaml#/definitions/uint32-matrix
|
||||
deprecated: true
|
||||
description:
|
||||
Register initialization tuples for Marvell PHYs.
|
||||
items:
|
||||
items:
|
||||
- description: register page
|
||||
maximum: 0xffff
|
||||
- description: register number
|
||||
maximum: 31
|
||||
- description: mask of bits to preserve
|
||||
maximum: 0xffff
|
||||
- description: value to apply
|
||||
maximum: 0xffff
|
||||
|
||||
leds:
|
||||
type: object
|
||||
|
||||
|
||||
@@ -125,10 +125,6 @@ required:
|
||||
- reg
|
||||
- fsl,fman-ports
|
||||
|
||||
dependencies:
|
||||
pcs-handle-names:
|
||||
- pcs-handle
|
||||
|
||||
allOf:
|
||||
- $ref: ethernet-controller.yaml#
|
||||
- if:
|
||||
|
||||
@@ -0,0 +1,170 @@
|
||||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
||||
# Copyright 2025 Hisilicon Ltd.
|
||||
%YAML 1.2
|
||||
---
|
||||
$id: http://devicetree.org/schemas/net/hisilicon,hns-dsaf-v1.yaml#
|
||||
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
||||
|
||||
title: Hisilicon DSA Fabric device controller
|
||||
|
||||
maintainers:
|
||||
- Jian Shen <[email protected]>
|
||||
- Jijie Shao <[email protected]>
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
items:
|
||||
- enum:
|
||||
- hisilicon,hns-dsaf-v1
|
||||
- hisilicon,hns-dsaf-v2
|
||||
|
||||
reg:
|
||||
minItems: 1
|
||||
items:
|
||||
- description:
|
||||
PPE register base and size
|
||||
- description:
|
||||
DSA Fabric base register and size (not required for single-port mode)
|
||||
|
||||
reg-names:
|
||||
minItems: 1
|
||||
items:
|
||||
- const: ppe-base
|
||||
- const: dsaf-base
|
||||
|
||||
interrupts:
|
||||
minItems: 1
|
||||
maxItems: 409
|
||||
|
||||
dma-coherent: true
|
||||
|
||||
'#address-cells':
|
||||
const: 1
|
||||
|
||||
'#size-cells':
|
||||
const: 0
|
||||
|
||||
mode:
|
||||
description: DSA Fabric mode string
|
||||
$ref: /schemas/types.yaml#/definitions/string
|
||||
enum:
|
||||
- 2port-64vf
|
||||
- 6port-16rss
|
||||
- 6port-16vf
|
||||
- single-port
|
||||
|
||||
subctrl-syscon:
|
||||
description: syscon handle for external interface control register
|
||||
$ref: /schemas/types.yaml#/definitions/phandle
|
||||
|
||||
reset-field-offset:
|
||||
description: offset of reset field in the control register
|
||||
$ref: /schemas/types.yaml#/definitions/uint32
|
||||
|
||||
buf-size:
|
||||
description: RX buffer size (bytes)
|
||||
$ref: /schemas/types.yaml#/definitions/uint32
|
||||
enum: [512, 1024, 2048, 4096]
|
||||
|
||||
desc-num:
|
||||
description: number of descriptors in TX and RX queue
|
||||
$ref: /schemas/types.yaml#/definitions/uint32
|
||||
minimum: 16
|
||||
maximum: 1024
|
||||
|
||||
patternProperties:
|
||||
"^port@[0-5]$":
|
||||
description: DSA Fabric port node
|
||||
$ref: ethernet-switch-port.yaml#
|
||||
additionalProperties: false
|
||||
|
||||
properties:
|
||||
reg:
|
||||
maximum: 5
|
||||
|
||||
phy-handle: true
|
||||
|
||||
serdes-syscon:
|
||||
description: syscon handle for SerDes register
|
||||
$ref: /schemas/types.yaml#/definitions/phandle
|
||||
|
||||
cpld-syscon:
|
||||
description: syscon handle plus register offset for CPLD register
|
||||
$ref: /schemas/types.yaml#/definitions/phandle-array
|
||||
items:
|
||||
- items:
|
||||
- description: CPLD phandle
|
||||
- description: offset
|
||||
|
||||
port-rst-offset:
|
||||
description: reset field offset for this port
|
||||
$ref: /schemas/types.yaml#/definitions/uint32
|
||||
|
||||
port-mode-offset:
|
||||
description: port mode field offset for this port
|
||||
$ref: /schemas/types.yaml#/definitions/uint32
|
||||
|
||||
mc-mac-mask:
|
||||
description: multicast MAC address mask
|
||||
$ref: /schemas/types.yaml#/definitions/uint8-array
|
||||
maxItems: 6
|
||||
|
||||
media-type:
|
||||
$ref: /schemas/types.yaml#/definitions/string
|
||||
enum:
|
||||
- backplane
|
||||
- copper
|
||||
- fiber
|
||||
|
||||
required:
|
||||
- reg
|
||||
- serdes-syscon
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- reg
|
||||
- reg-names
|
||||
- interrupts
|
||||
- subctrl-syscon
|
||||
- mode
|
||||
- buf-size
|
||||
- desc-num
|
||||
|
||||
additionalProperties: false
|
||||
|
||||
examples:
|
||||
- |
|
||||
dsa@c5000000 {
|
||||
compatible = "hisilicon,hns-dsaf-v1";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
mode = "6port-16rss";
|
||||
reg = <0xc5000000 0x890000
|
||||
0xc7000000 0x60000>;
|
||||
reg-names = "ppe-base", "dsaf-base";
|
||||
subctrl-syscon = <&subctrl>;
|
||||
reset-field-offset = <0>;
|
||||
interrupts = <131 4>, <132 4>, <133 4>, <134 4>,
|
||||
<135 4>, <136 4>, <137 4>, <138 4>,
|
||||
<139 4>, <140 4>, <141 4>, <142 4>,
|
||||
<143 4>, <144 4>, <145 4>, <146 4>,
|
||||
<147 4>, <148 4>, <384 1>, <385 1>,
|
||||
<386 1>, <387 1>, <388 1>, <389 1>,
|
||||
<390 1>, <391 1>;
|
||||
buf-size = <4096>;
|
||||
desc-num = <1024>;
|
||||
dma-coherent;
|
||||
|
||||
port@0 {
|
||||
reg = <0>;
|
||||
phy-handle = <&phy0>;
|
||||
serdes-syscon = <&serdes>;
|
||||
mc-mac-mask = [ff f0 00 00 00 00];
|
||||
};
|
||||
|
||||
port@1 {
|
||||
reg = <1>;
|
||||
serdes-syscon = <&serdes>;
|
||||
mc-mac-mask = [ff f0 00 00 00 00];
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,61 @@
|
||||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
||||
%YAML 1.2
|
||||
---
|
||||
$id: http://devicetree.org/schemas/net/hisilicon,hns-mdio.yaml#
|
||||
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
||||
|
||||
title: Hisilicon HNS MDIO bus controller
|
||||
|
||||
maintainers:
|
||||
- Jian Shen <[email protected]>
|
||||
- Jijie Shao <[email protected]>
|
||||
|
||||
allOf:
|
||||
- $ref: mdio.yaml#
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
enum:
|
||||
- hisilicon,hns-mdio
|
||||
- hisilicon,mdio
|
||||
|
||||
reg:
|
||||
maxItems: 1
|
||||
|
||||
subctrl-vbase:
|
||||
$ref: /schemas/types.yaml#/definitions/phandle-array
|
||||
items:
|
||||
- items:
|
||||
- description: syscon phandle
|
||||
- description: MDIO clock enable register offset
|
||||
- description: MDIO reset request register offset
|
||||
- description: MDIO clock state register offset
|
||||
- description: MDIO reset state register offset
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- reg
|
||||
- '#address-cells'
|
||||
- '#size-cells'
|
||||
- subctrl-vbase
|
||||
|
||||
unevaluatedProperties: false
|
||||
|
||||
examples:
|
||||
- |
|
||||
bus {
|
||||
#address-cells = <2>;
|
||||
#size-cells = <2>;
|
||||
|
||||
mdio@803c0000 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
compatible = "hisilicon,hns-mdio";
|
||||
reg = <0x0 0x803c0000 0x0 0x10000>;
|
||||
subctrl-vbase = <&peri_c_subctrl 0x338 0xa38 0x531c 0x5a1c>;
|
||||
|
||||
ethernet-phy@0 {
|
||||
reg = <0>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,108 @@
|
||||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
||||
%YAML 1.2
|
||||
---
|
||||
$id: http://devicetree.org/schemas/net/hisilicon,hns-nic.yaml#
|
||||
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
||||
|
||||
title: Hisilicon Network Subsystem NIC controller
|
||||
|
||||
maintainers:
|
||||
- Jian Shen <[email protected]>
|
||||
- Jijie Shao <[email protected]>
|
||||
|
||||
allOf:
|
||||
- $ref: ethernet-controller.yaml#
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
enum:
|
||||
- hisilicon,hns-nic-v1
|
||||
- hisilicon,hns-nic-v2
|
||||
|
||||
ae-handle:
|
||||
description:
|
||||
accelerator engine handle for hns, specifies a reference to the
|
||||
associating hardware driver node.
|
||||
$ref: /schemas/types.yaml#/definitions/phandle
|
||||
|
||||
port-id:
|
||||
description: |
|
||||
is the index of port provided by DSAF (the accelerator). DSAF can connect to 8 PHYs.
|
||||
Port 0 to 1 are both used for administration purpose.
|
||||
They are called debug ports.
|
||||
|
||||
The remaining 6 PHYs are taken according to the mode of DSAF.
|
||||
|
||||
In NIC mode of DSAF, all 6 PHYs are taken as ethernet ports to the CPU.
|
||||
The port-id can be 2 to 7. Here is the diagram:
|
||||
+-----+---------------+
|
||||
| CPU |
|
||||
+-+-+-+---+-+-+-+-+-+-+
|
||||
| | | | | | | |
|
||||
debug service
|
||||
port port
|
||||
(0,1) (2-7)
|
||||
|
||||
In Switch mode of DSAF, all 6 PHYs are taken as physical ports connect to a LAN Switch,
|
||||
while the CPU side assume itself have one single NIC connect to this switch.
|
||||
In this case, the port-id will be 2 only.
|
||||
+-----+---------------+
|
||||
| CPU |
|
||||
+-+-+-+---+-+-+-+-+-+-+
|
||||
| | service| port(2)
|
||||
debug +------------+
|
||||
port | switch |
|
||||
(0,1) +-+-+-+-+-+-++
|
||||
| | | | | |
|
||||
external port
|
||||
$ref: /schemas/types.yaml#/definitions/uint32
|
||||
maximum: 7
|
||||
deprecated: true
|
||||
|
||||
port-idx-in-ae:
|
||||
description: |
|
||||
is the index of port provided by AE.
|
||||
In NIC mode of DSAF, all 6 PHYs of service DSAF are taken as ethernet ports to the CPU.
|
||||
The port-idx-in-ae can be 0 to 5. Here is the diagram:
|
||||
+-----+---------------+
|
||||
| CPU |
|
||||
+-+-+-+---+-+-+-+-+-+-+
|
||||
| | | | | | | |
|
||||
debug debug service
|
||||
port port port
|
||||
(0) (0) (0-5)
|
||||
|
||||
In Switch mode of DSAF, all 6 PHYs of service DSAF are taken as physical ports connected to
|
||||
a LAN Switch,
|
||||
while the CPU side assume itself have one single NIC connected to this switch.
|
||||
In this case, the port-idx-in-ae will be 0 only.
|
||||
+-----+-----+------+------+
|
||||
| CPU |
|
||||
+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
| | service| port(0)
|
||||
debug debug +------------+
|
||||
port port | switch |
|
||||
(0) (0) +-+-+-+-+-+-++
|
||||
| | | | | |
|
||||
external port
|
||||
$ref: /schemas/types.yaml#/definitions/uint32
|
||||
maximum: 5
|
||||
|
||||
dma-coherent: true
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- ae-handle
|
||||
- port-idx-in-ae
|
||||
- local-mac-address
|
||||
|
||||
unevaluatedProperties: false
|
||||
|
||||
examples:
|
||||
- |
|
||||
ethernet {
|
||||
compatible = "hisilicon,hns-nic-v1";
|
||||
ae-handle = <&dsaf0>;
|
||||
port-idx-in-ae = <0>;
|
||||
local-mac-address = [a2 14 e4 4b 56 76];
|
||||
};
|
||||
@@ -1,90 +0,0 @@
|
||||
Hisilicon DSA Fabric device controller
|
||||
|
||||
Required properties:
|
||||
- compatible: should be "hisilicon,hns-dsaf-v1" or "hisilicon,hns-dsaf-v2".
|
||||
"hisilicon,hns-dsaf-v1" is for hip05.
|
||||
"hisilicon,hns-dsaf-v2" is for Hi1610 and Hi1612.
|
||||
- mode: dsa fabric mode string. only support one of dsaf modes like these:
|
||||
"2port-64vf",
|
||||
"6port-16rss",
|
||||
"6port-16vf",
|
||||
"single-port".
|
||||
- interrupts: should contain the DSA Fabric and rcb interrupt.
|
||||
- reg: specifies base physical address(es) and size of the device registers.
|
||||
The first region is external interface control register base and size(optional,
|
||||
only used when subctrl-syscon does not exist). It is recommended using
|
||||
subctrl-syscon rather than this address.
|
||||
The second region is SerDes base register and size(optional, only used when
|
||||
serdes-syscon in port node does not exist). It is recommended using
|
||||
serdes-syscon rather than this address.
|
||||
The third region is the PPE register base and size.
|
||||
The fourth region is dsa fabric base register and size. It is not required for
|
||||
single-port mode.
|
||||
- reg-names: may be ppe-base and(or) dsaf-base. It is used to find the
|
||||
corresponding reg's index.
|
||||
|
||||
- phy-handle: phy handle of physical port, 0 if not any phy device. It is optional
|
||||
attribute. If port node exists, phy-handle in each port node will be used.
|
||||
see ethernet.txt [1].
|
||||
- subctrl-syscon: is syscon handle for external interface control register.
|
||||
- reset-field-offset: is offset of reset field. Its value depends on the hardware
|
||||
user manual.
|
||||
- buf-size: rx buffer size, should be 16-1024.
|
||||
- desc-num: number of description in TX and RX queue, should be 512, 1024, 2048 or 4096.
|
||||
|
||||
- port: subnodes of dsaf. A dsaf node may contain several port nodes(Depending
|
||||
on mode of dsaf). Port node contain some attributes listed below:
|
||||
- reg: is physical port index in one dsaf.
|
||||
- phy-handle: phy handle of physical port. It is not required if there isn't
|
||||
phy device. see ethernet.txt [1].
|
||||
- serdes-syscon: is syscon handle for SerDes register.
|
||||
- cpld-syscon: is syscon handle + register offset pair for cpld register. It is
|
||||
not required if there isn't cpld device.
|
||||
- port-rst-offset: is offset of reset field for each port in dsaf. Its value
|
||||
depends on the hardware user manual.
|
||||
- port-mode-offset: is offset of port mode field for each port in dsaf. Its
|
||||
value depends on the hardware user manual.
|
||||
- mc-mac-mask: mask of multicast address, determines bit in multicast address
|
||||
to set:
|
||||
1 stands for this bit will be precisely matched, TCAM will check this bit of
|
||||
MAC address.
|
||||
0 stands for this bit will be fuzzy matched, TCAM won't care about this bit
|
||||
of MAC address.
|
||||
|
||||
[1] Documentation/devicetree/bindings/net/phy.txt
|
||||
|
||||
Example:
|
||||
|
||||
dsaf0: dsa@c7000000 {
|
||||
compatible = "hisilicon,hns-dsaf-v1";
|
||||
mode = "6port-16rss";
|
||||
interrupt-parent = <&mbigen_dsa>;
|
||||
reg = <0x0 0xc5000000 0x0 0x890000
|
||||
0x0 0xc7000000 0x0 0x60000>;
|
||||
reg-names = "ppe-base", "dsaf-base";
|
||||
subctrl-syscon = <&subctrl>;
|
||||
reset-field-offset = 0;
|
||||
interrupts = <131 4>,<132 4>, <133 4>,<134 4>,
|
||||
<135 4>,<136 4>, <137 4>,<138 4>,
|
||||
<139 4>,<140 4>, <141 4>,<142 4>,
|
||||
<143 4>,<144 4>, <145 4>,<146 4>,
|
||||
<147 4>,<148 4>, <384 1>,<385 1>,
|
||||
<386 1>,<387 1>, <388 1>,<389 1>,
|
||||
<390 1>,<391 1>,
|
||||
buf-size = <4096>;
|
||||
desc-num = <1024>;
|
||||
dma-coherent;
|
||||
|
||||
port@0 {
|
||||
reg = 0;
|
||||
phy-handle = <&phy0>;
|
||||
serdes-syscon = <&serdes>;
|
||||
mc-mac-mask = [ff f0 00 00 00 00];
|
||||
};
|
||||
|
||||
port@1 {
|
||||
reg = 1;
|
||||
serdes-syscon = <&serdes>;
|
||||
mc-mac-mask = [ff f0 00 00 00 00];
|
||||
};
|
||||
};
|
||||
@@ -1,27 +0,0 @@
|
||||
Hisilicon MDIO bus controller
|
||||
|
||||
Properties:
|
||||
- compatible: can be one of:
|
||||
"hisilicon,hns-mdio"
|
||||
"hisilicon,mdio"
|
||||
"hisilicon,hns-mdio" is recommended to be used for hip05 and later SOCs,
|
||||
while "hisilicon,mdio" is optional for backwards compatibility only on
|
||||
hip04 Soc.
|
||||
- reg: The base address of the MDIO bus controller register bank.
|
||||
- #address-cells: Must be <1>.
|
||||
- #size-cells: Must be <0>. MDIO addresses have no size component.
|
||||
|
||||
Typically an MDIO bus might have several children.
|
||||
|
||||
Example:
|
||||
mdio@803c0000 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
compatible = "hisilicon,hns-mdio","hisilicon,mdio";
|
||||
reg = <0x0 0x803c0000 0x0 0x10000>;
|
||||
|
||||
ethernet-phy@0 {
|
||||
...
|
||||
reg = <0>;
|
||||
};
|
||||
};
|
||||
@@ -1,76 +0,0 @@
|
||||
Hisilicon Network Subsystem NIC controller
|
||||
|
||||
Required properties:
|
||||
- compatible: "hisilicon,hns-nic-v1" or "hisilicon,hns-nic-v2".
|
||||
"hisilicon,hns-nic-v1" is for hip05.
|
||||
"hisilicon,hns-nic-v2" is for Hi1610 and Hi1612.
|
||||
- ae-handle: accelerator engine handle for hns,
|
||||
specifies a reference to the associating hardware driver node.
|
||||
see Documentation/devicetree/bindings/net/hisilicon-hns-dsaf.txt
|
||||
- port-id: is the index of port provided by DSAF (the accelerator). DSAF can
|
||||
connect to 8 PHYs. Port 0 to 1 are both used for administration purpose. They
|
||||
are called debug ports.
|
||||
|
||||
The remaining 6 PHYs are taken according to the mode of DSAF.
|
||||
|
||||
In NIC mode of DSAF, all 6 PHYs are taken as ethernet ports to the CPU. The
|
||||
port-id can be 2 to 7. Here is the diagram:
|
||||
+-----+---------------+
|
||||
| CPU |
|
||||
+-+-+-+---+-+-+-+-+-+-+
|
||||
| | | | | | | |
|
||||
debug service
|
||||
port port
|
||||
(0,1) (2-7)
|
||||
|
||||
In Switch mode of DSAF, all 6 PHYs are taken as physical ports connect to a
|
||||
LAN Switch while the CPU side assume itself have one single NIC connect to
|
||||
this switch. In this case, the port-id will be 2 only.
|
||||
+-----+---------------+
|
||||
| CPU |
|
||||
+-+-+-+---+-+-+-+-+-+-+
|
||||
| | service| port(2)
|
||||
debug +------------+
|
||||
port | switch |
|
||||
(0,1) +-+-+-+-+-+-++
|
||||
| | | | | |
|
||||
external port
|
||||
|
||||
This attribute is remained for compatible purpose. It is not recommended to
|
||||
use it in new code.
|
||||
|
||||
- port-idx-in-ae: is the index of port provided by AE.
|
||||
In NIC mode of DSAF, all 6 PHYs of service DSAF are taken as ethernet ports
|
||||
to the CPU. The port-idx-in-ae can be 0 to 5. Here is the diagram:
|
||||
+-----+---------------+
|
||||
| CPU |
|
||||
+-+-+-+---+-+-+-+-+-+-+
|
||||
| | | | | | | |
|
||||
debug debug service
|
||||
port port port
|
||||
(0) (0) (0-5)
|
||||
|
||||
In Switch mode of DSAF, all 6 PHYs of service DSAF are taken as physical
|
||||
ports connected to a LAN Switch while the CPU side assume itself have one
|
||||
single NIC connected to this switch. In this case, the port-idx-in-ae
|
||||
will be 0 only.
|
||||
+-----+-----+------+------+
|
||||
| CPU |
|
||||
+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
| | service| port(0)
|
||||
debug debug +------------+
|
||||
port port | switch |
|
||||
(0) (0) +-+-+-+-+-+-++
|
||||
| | | | | |
|
||||
external port
|
||||
|
||||
- local-mac-address: mac addr of the ethernet interface
|
||||
|
||||
Example:
|
||||
|
||||
ethernet@0{
|
||||
compatible = "hisilicon,hns-nic-v1";
|
||||
ae-handle = <&dsaf0>;
|
||||
port-idx-in-ae = <0>;
|
||||
local-mac-address = [a2 14 e4 4b 56 76];
|
||||
};
|
||||
@@ -47,6 +47,9 @@ properties:
|
||||
interrupt-names:
|
||||
const: macirq
|
||||
|
||||
power-domains:
|
||||
maxItems: 1
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- clocks
|
||||
@@ -91,9 +94,9 @@ examples:
|
||||
snps,tx-queues-to-use = <2>;
|
||||
snps,tx-sched-wrr;
|
||||
queue0 {
|
||||
snps,weight = <0x10>;
|
||||
snps,dcb-algorithm;
|
||||
snps,priority = <0x0>;
|
||||
snps,weight = <0x10>;
|
||||
snps,dcb-algorithm;
|
||||
snps,priority = <0x0>;
|
||||
};
|
||||
|
||||
queue1 {
|
||||
|
||||
@@ -66,6 +66,9 @@ properties:
|
||||
- mii
|
||||
- rgmii-id
|
||||
|
||||
power-domains:
|
||||
maxItems: 1
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- reg
|
||||
|
||||
@@ -65,6 +65,9 @@ properties:
|
||||
- mii
|
||||
- rmii
|
||||
|
||||
power-domains:
|
||||
maxItems: 1
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- reg
|
||||
|
||||
@@ -45,13 +45,13 @@ examples:
|
||||
};
|
||||
|
||||
mdio0: mdio {
|
||||
compatible = "virtual,mdio-gpio";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
gpios = <&qe_pio_a 11>,
|
||||
<&qe_pio_c 6>;
|
||||
ethphy0: ethernet-phy@0 {
|
||||
reg = <0>;
|
||||
};
|
||||
compatible = "virtual,mdio-gpio";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
gpios = <&qe_pio_a 11>,
|
||||
<&qe_pio_c 6>;
|
||||
ethphy0: ethernet-phy@0 {
|
||||
reg = <0>;
|
||||
};
|
||||
};
|
||||
...
|
||||
|
||||
@@ -63,6 +63,14 @@ properties:
|
||||
minimum: 0
|
||||
maximum: 3
|
||||
|
||||
micrel,rmii-reference-clock-select-25-mhz:
|
||||
enum: [ 1 ]
|
||||
description: |
|
||||
RMII Reference Clock Select bit selects 25 MHz mode.
|
||||
|
||||
Setting the RMII Reference Clock Select bit enables 25 MHz rather
|
||||
than 50 MHz clock mode.
|
||||
|
||||
allOf:
|
||||
- $ref: ethernet-phy.yaml#
|
||||
- if:
|
||||
@@ -90,6 +98,18 @@ allOf:
|
||||
then:
|
||||
properties:
|
||||
micrel,led-mode: false
|
||||
- if:
|
||||
not:
|
||||
properties:
|
||||
compatible:
|
||||
contains:
|
||||
enum:
|
||||
- ethernet-phy-id0022.1555
|
||||
- ethernet-phy-id0022.1556
|
||||
- ethernet-phy-id0022.1560
|
||||
then:
|
||||
properties:
|
||||
micrel,rmii-reference-clock-select-25-mhz: false
|
||||
- if:
|
||||
properties:
|
||||
compatible:
|
||||
@@ -105,13 +125,6 @@ allOf:
|
||||
description:
|
||||
The RMII reference input clock. Used to determine the XI input
|
||||
clock.
|
||||
micrel,rmii-reference-clock-select-25-mhz:
|
||||
type: boolean
|
||||
description: |
|
||||
RMII Reference Clock Select bit selects 25 MHz mode
|
||||
|
||||
Setting the RMII Reference Clock Select bit enables 25 MHz rather
|
||||
than 50 MHz clock mode.
|
||||
|
||||
dependentRequired:
|
||||
micrel,rmii-reference-clock-select-25-mhz: [ clock-names ]
|
||||
|
||||
@@ -40,6 +40,11 @@ properties:
|
||||
Event.
|
||||
maxItems: 1
|
||||
|
||||
reset-gpios:
|
||||
description:
|
||||
GPIO connected to the active-low RESET_N pin of the MAC-PHY.
|
||||
maxItems: 1
|
||||
|
||||
spi-max-frequency:
|
||||
minimum: 15000000
|
||||
maximum: 25000000
|
||||
|
||||
@@ -15,6 +15,7 @@ allOf:
|
||||
properties:
|
||||
compatible:
|
||||
enum:
|
||||
- ethernet-phy-id01e0.4281
|
||||
- ethernet-phy-id4f51.e91a
|
||||
- ethernet-phy-id4f51.e91b
|
||||
|
||||
|
||||
@@ -197,10 +197,10 @@ examples:
|
||||
<0x71040000 0x10000>,
|
||||
<0x71050000 0x10000>,
|
||||
<0x71060000 0x10000>;
|
||||
reg-names = "sys", "rew", "qs", "ptp", "port0", "port1",
|
||||
"port2", "port3", "port4", "port5", "port6",
|
||||
"port7", "port8", "port9", "port10", "qsys",
|
||||
"ana", "s0", "s1", "s2";
|
||||
reg-names = "sys", "rew", "qs", "ptp", "port0", "port1",
|
||||
"port2", "port3", "port4", "port5", "port6",
|
||||
"port7", "port8", "port9", "port10", "qsys",
|
||||
"ana", "s0", "s1", "s2";
|
||||
|
||||
ethernet-ports {
|
||||
#address-cells = <1>;
|
||||
|
||||
@@ -69,6 +69,9 @@ properties:
|
||||
items:
|
||||
- const: stmmaceth
|
||||
|
||||
power-domains:
|
||||
maxItems: 1
|
||||
|
||||
phy-mode:
|
||||
enum:
|
||||
- rmii
|
||||
|
||||
@@ -81,8 +81,9 @@ properties:
|
||||
phy-mode:
|
||||
contains:
|
||||
enum:
|
||||
- usxgmii
|
||||
- 10gbase-kr
|
||||
- 10gbase-r
|
||||
- usxgmii
|
||||
|
||||
mdio:
|
||||
$ref: mdio.yaml#
|
||||
@@ -90,6 +91,9 @@ properties:
|
||||
description:
|
||||
Optional node for embedded MDIO controller.
|
||||
|
||||
allOf:
|
||||
- $ref: snps,dwmac-common.yaml#
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- reg
|
||||
@@ -103,7 +107,7 @@ required:
|
||||
- phy-handle
|
||||
- phy-mode
|
||||
|
||||
additionalProperties: false
|
||||
unevaluatedProperties: false
|
||||
|
||||
examples:
|
||||
- |
|
||||
|
||||
@@ -83,6 +83,9 @@ properties:
|
||||
description:
|
||||
To select RMII reference clock from external.
|
||||
|
||||
power-domains:
|
||||
maxItems: 1
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- clocks
|
||||
|
||||
@@ -51,6 +51,9 @@ properties:
|
||||
items:
|
||||
- const: stmmaceth
|
||||
|
||||
power-domains:
|
||||
maxItems: 1
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- reg
|
||||
|
||||
@@ -81,6 +81,9 @@ properties:
|
||||
- const: rx
|
||||
- const: ptp_ref
|
||||
|
||||
power-domains:
|
||||
maxItems: 1
|
||||
|
||||
required:
|
||||
- clocks
|
||||
- clock-names
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
||||
%YAML 1.2
|
||||
---
|
||||
$id: http://devicetree.org/schemas/net/pcs/rockchip,rk3568-xpcs.yaml#
|
||||
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
||||
|
||||
title: Rockchip RK3568 Synopsys DesignWare Ethernet PCS
|
||||
|
||||
maintainers:
|
||||
- Coia Prant <[email protected]>
|
||||
|
||||
description: |
|
||||
Rockchip RK3568 SoC integrates a Synopsys DesignWare Ethernet Physical
|
||||
Coding Sublayer (XPCS).
|
||||
The PCS provides an interface between the Media Access Control (MAC)
|
||||
and the Physical Medium Attachment (PMA) sublayer through a Media
|
||||
Independent Interface (GMII).
|
||||
|
||||
The XPCS is accessed over the APB3 bus and internally connected to a
|
||||
Naneng Combo SerDes PHY.
|
||||
It supports 1000BASE-X, SGMII and QSGMII modes.
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
const: rockchip,rk3568-xpcs
|
||||
|
||||
reg:
|
||||
maxItems: 1
|
||||
|
||||
clocks:
|
||||
items:
|
||||
- description: APB3 bus interface clock (clk_csr_i), required for register access
|
||||
- description: EEE clock (clk_eee_i), required for Energy Efficient Ethernet operation
|
||||
|
||||
clock-names:
|
||||
items:
|
||||
- const: csr
|
||||
- const: eee
|
||||
|
||||
phys:
|
||||
maxItems: 1
|
||||
|
||||
power-domains:
|
||||
maxItems: 1
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- reg
|
||||
- clocks
|
||||
- clock-names
|
||||
- phys
|
||||
- power-domains
|
||||
|
||||
additionalProperties: false
|
||||
|
||||
examples:
|
||||
- |
|
||||
#include <dt-bindings/clock/rk3568-cru.h>
|
||||
#include <dt-bindings/power/rk3568-power.h>
|
||||
#include <dt-bindings/phy/phy.h>
|
||||
|
||||
ethernet-pcs@fda00000 {
|
||||
compatible = "rockchip,rk3568-xpcs";
|
||||
reg = <0xfda00000 0x200000>;
|
||||
clocks = <&cru PCLK_XPCS>, <&cru CLK_XPCS_EEE>;
|
||||
clock-names = "csr", "eee";
|
||||
phys = <&combphy2 PHY_TYPE_SGMII>;
|
||||
power-domains = <&power RK3568_PD_PIPE>;
|
||||
};
|
||||
@@ -54,6 +54,12 @@ properties:
|
||||
- zyxel,gs1920-24hp-v2-pse
|
||||
- const: realtek,pse-mcu-gen1-smbus
|
||||
|
||||
# I2C, raw framing
|
||||
- items:
|
||||
- enum:
|
||||
- ubnt,usw-lite-16-poe-pse
|
||||
- const: realtek,pse-mcu-gen1-i2c
|
||||
|
||||
# UART
|
||||
- items:
|
||||
- enum:
|
||||
@@ -100,6 +106,7 @@ allOf:
|
||||
contains:
|
||||
enum:
|
||||
- realtek,pse-mcu-gen1-smbus
|
||||
- realtek,pse-mcu-gen1-i2c
|
||||
- realtek,pse-mcu-gen2-smbus
|
||||
- realtek,pse-mcu-gen2-i2c
|
||||
then:
|
||||
|
||||
@@ -86,6 +86,9 @@ properties:
|
||||
phy-names:
|
||||
const: serdes
|
||||
|
||||
power-domains:
|
||||
maxItems: 1
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- clocks
|
||||
|
||||
@@ -246,14 +246,14 @@ examples:
|
||||
qcom,remote-pid = <5>;
|
||||
|
||||
ipa_smp2p_out: ipa-ap-to-modem {
|
||||
qcom,entry-name = "ipa";
|
||||
#qcom,smem-state-cells = <1>;
|
||||
qcom,entry-name = "ipa";
|
||||
#qcom,smem-state-cells = <1>;
|
||||
};
|
||||
|
||||
ipa_smp2p_in: ipa-modem-to-ap {
|
||||
qcom,entry-name = "ipa";
|
||||
interrupt-controller;
|
||||
#interrupt-cells = <2>;
|
||||
qcom,entry-name = "ipa";
|
||||
interrupt-controller;
|
||||
#interrupt-cells = <2>;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -74,9 +74,14 @@ description: |
|
||||
+------->| QCA8075 PHY | | PHY4 | | PHY5 |
|
||||
(clock) +-------------------------------------+ +-------+ +-------+
|
||||
|
||||
The IPQ5424 PPE reuses the same switch core, but wires up only 3
|
||||
front panel ports (GMAC0-2) and the single EDMA FIFO interface; it
|
||||
has no EIP FIFO and no ports 4-6.
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
enum:
|
||||
- qcom,ipq5424-ppe
|
||||
- qcom,ipq9574-ppe
|
||||
|
||||
reg:
|
||||
@@ -105,24 +110,16 @@ properties:
|
||||
description: PPE switch miscellaneous interrupt
|
||||
|
||||
interconnects:
|
||||
items:
|
||||
- description: Bus interconnect path leading to PPE switch core function
|
||||
- description: Bus interconnect path leading to PPE register access
|
||||
- description: Bus interconnect path leading to QoS generation
|
||||
- description: Bus interconnect path leading to timeout reference
|
||||
- description: Bus interconnect path leading to NSS NOC from memory NOC
|
||||
- description: Bus interconnect path leading to memory NOC from NSS NOC
|
||||
- description: Bus interconnect path leading to enhanced memory NOC from NSS NOC
|
||||
minItems: 5
|
||||
maxItems: 7
|
||||
description:
|
||||
The number of interconnect paths depends on compatible, 5 paths for
|
||||
qcom,ipq5424-ppe and 7 paths for qcom,ipq9574-ppe, enumerated in the
|
||||
allOf conditionals below.
|
||||
|
||||
interconnect-names:
|
||||
items:
|
||||
- const: ppe
|
||||
- const: ppe_cfg
|
||||
- const: qos_gen
|
||||
- const: timeout_ref
|
||||
- const: nssnoc_memnoc
|
||||
- const: memnoc_nssnoc
|
||||
- const: memnoc_nssnoc_1
|
||||
minItems: 5
|
||||
maxItems: 7
|
||||
|
||||
ethernet-dma:
|
||||
type: object
|
||||
@@ -144,8 +141,14 @@ properties:
|
||||
- const: apb
|
||||
|
||||
resets:
|
||||
maxItems: 1
|
||||
description: EDMA reset
|
||||
items:
|
||||
- description: EDMA system reset
|
||||
- description: EDMA APB reset
|
||||
|
||||
reset-names:
|
||||
items:
|
||||
- const: sys
|
||||
- const: apb
|
||||
|
||||
interrupts:
|
||||
minItems: 65
|
||||
@@ -170,12 +173,13 @@ properties:
|
||||
- clocks
|
||||
- clock-names
|
||||
- resets
|
||||
- reset-names
|
||||
- interrupts
|
||||
- interrupt-names
|
||||
|
||||
ethernet-ports:
|
||||
patternProperties:
|
||||
"^ethernet-port@[1-6]+$":
|
||||
"^ethernet-port@[0-9a-f]+$":
|
||||
type: object
|
||||
unevaluatedProperties: false
|
||||
$ref: ethernet-switch-port.yaml#
|
||||
@@ -229,6 +233,61 @@ required:
|
||||
|
||||
allOf:
|
||||
- $ref: ethernet-switch.yaml
|
||||
- if:
|
||||
properties:
|
||||
compatible:
|
||||
contains:
|
||||
const: qcom,ipq9574-ppe
|
||||
then:
|
||||
properties:
|
||||
interconnects:
|
||||
items:
|
||||
- description: Bus interconnect path leading to PPE switch core function
|
||||
- description: Bus interconnect path leading to PPE register access
|
||||
- description: Bus interconnect path leading to QoS generation
|
||||
- description: Bus interconnect path leading to timeout reference
|
||||
- description: Bus interconnect path leading to NSS NOC from memory NOC
|
||||
- description: Bus interconnect path leading to memory NOC from NSS NOC
|
||||
- description: Bus interconnect path leading to enhanced memory NOC from NSS NOC
|
||||
|
||||
interconnect-names:
|
||||
items:
|
||||
- const: ppe
|
||||
- const: ppe_cfg
|
||||
- const: qos_gen
|
||||
- const: timeout_ref
|
||||
- const: nssnoc_memnoc
|
||||
- const: memnoc_nssnoc
|
||||
- const: memnoc_nssnoc_1
|
||||
- if:
|
||||
properties:
|
||||
compatible:
|
||||
contains:
|
||||
const: qcom,ipq5424-ppe
|
||||
then:
|
||||
properties:
|
||||
interconnects:
|
||||
items:
|
||||
- description: Bus interconnect path leading to PPE switch core function
|
||||
- description: Bus interconnect path leading to PPE register access
|
||||
- description: Bus interconnect path leading to CE AXI
|
||||
- description: Bus interconnect path leading to CE APB
|
||||
- description: Bus interconnect path leading to NSS CSR access
|
||||
|
||||
interconnect-names:
|
||||
items:
|
||||
- const: ppe
|
||||
- const: ppe_cfg
|
||||
- const: nssnoc_ce_axi
|
||||
- const: nssnoc_ce_apb
|
||||
- const: nssnoc_nss_csr
|
||||
|
||||
ethernet-ports:
|
||||
patternProperties:
|
||||
"^ethernet-port@[0-9a-f]+$":
|
||||
properties:
|
||||
reg:
|
||||
maximum: 3
|
||||
|
||||
unevaluatedProperties: false
|
||||
|
||||
@@ -273,7 +332,10 @@ examples:
|
||||
<&nsscc NSS_CC_PPE_EDMA_CFG_CLK>;
|
||||
clock-names = "sys",
|
||||
"apb";
|
||||
resets = <&nsscc EDMA_HW_RESET>;
|
||||
resets = <&nsscc PPE_EDMA_ARES>,
|
||||
<&nsscc PPE_EDMA_CFG_ARES>;
|
||||
reset-names = "sys",
|
||||
"apb";
|
||||
interrupts = <GIC_SPI 363 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 364 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 365 IRQ_TYPE_LEVEL_HIGH>,
|
||||
|
||||
@@ -0,0 +1,107 @@
|
||||
# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
|
||||
%YAML 1.2
|
||||
---
|
||||
$id: http://devicetree.org/schemas/net/qcom,sa8255p-ethqos.yaml#
|
||||
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
||||
|
||||
title: Qualcomm Ethernet ETHQOS device (firmware managed)
|
||||
|
||||
maintainers:
|
||||
- Bjorn Andersson <[email protected]>
|
||||
- Konrad Dybcio <[email protected]>
|
||||
- Bartosz Golaszewski <[email protected]>
|
||||
|
||||
description:
|
||||
dwmac based Qualcomm ethernet devices which support Gigabit
|
||||
ethernet (version v2.3.0 and onwards) with clocks, interconnects, etc.
|
||||
managed by firmware
|
||||
|
||||
allOf:
|
||||
- $ref: snps,dwmac.yaml#
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
const: qcom,sa8255p-ethqos
|
||||
|
||||
reg:
|
||||
maxItems: 2
|
||||
|
||||
reg-names:
|
||||
items:
|
||||
- const: stmmaceth
|
||||
- const: rgmii
|
||||
|
||||
interrupts:
|
||||
items:
|
||||
- description: Combined signal for various interrupt events
|
||||
- description: The interrupt that occurs when HW safety error triggered
|
||||
|
||||
interrupt-names:
|
||||
items:
|
||||
- const: macirq
|
||||
- const: sfty
|
||||
|
||||
power-domains:
|
||||
minItems: 2
|
||||
maxItems: 2
|
||||
|
||||
power-domain-names:
|
||||
items:
|
||||
- const: core
|
||||
- const: mdio
|
||||
|
||||
phys:
|
||||
maxItems: 1
|
||||
|
||||
phy-names:
|
||||
items:
|
||||
- const: serdes
|
||||
|
||||
iommus:
|
||||
maxItems: 1
|
||||
|
||||
dma-coherent: true
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- reg-names
|
||||
- power-domains
|
||||
- power-domain-names
|
||||
|
||||
unevaluatedProperties: false
|
||||
|
||||
examples:
|
||||
- |
|
||||
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
||||
|
||||
ethernet: ethernet@23040000 {
|
||||
compatible = "qcom,sa8255p-ethqos";
|
||||
reg = <0x23040000 0x10000>,
|
||||
<0x23056000 0x100>;
|
||||
reg-names = "stmmaceth", "rgmii";
|
||||
|
||||
iommus = <&apps_smmu 0x120 0x7>;
|
||||
|
||||
interrupts = <GIC_SPI 946 IRQ_TYPE_LEVEL_HIGH>,
|
||||
<GIC_SPI 782 IRQ_TYPE_LEVEL_HIGH>;
|
||||
interrupt-names = "macirq", "sfty";
|
||||
|
||||
dma-coherent;
|
||||
|
||||
snps,tso;
|
||||
snps,pbl = <32>;
|
||||
rx-fifo-depth = <16384>;
|
||||
tx-fifo-depth = <16384>;
|
||||
|
||||
phy-handle = <ðernet_phy>;
|
||||
phy-mode = "2500base-x";
|
||||
|
||||
snps,mtl-rx-config = <&mtl_rx_setup1>;
|
||||
snps,mtl-tx-config = <&mtl_tx_setup1>;
|
||||
|
||||
power-domains = <&scmi8_pd 0>, <&scmi8_pd 1>;
|
||||
power-domain-names = "core", "mdio";
|
||||
|
||||
phys = <&serdes1>;
|
||||
phy-names = "serdes";
|
||||
};
|
||||
@@ -0,0 +1,332 @@
|
||||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
||||
%YAML 1.2
|
||||
---
|
||||
$id: http://devicetree.org/schemas/net/realtek,rtl8224-package.yaml#
|
||||
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
||||
|
||||
title: Realtek RTL8224 Ethernet PHY package
|
||||
|
||||
maintainers:
|
||||
- Andrew Lunn <[email protected]>
|
||||
- Florian Fainelli <[email protected]>
|
||||
- Heiner Kallweit <[email protected]>
|
||||
|
||||
description:
|
||||
The RTL8224 is a four-port 2.5Gbps Ethernet PHY. Its PHYs occupy four
|
||||
consecutive MDIO addresses and share package-wide configuration registers.
|
||||
|
||||
A package node is required when the first PHY's MDIO address is not a
|
||||
multiple of four. Existing aligned layouts without a package node remain
|
||||
supported.
|
||||
|
||||
The package reg must identify the first physical PHY's MDIO address,
|
||||
even if that PHY has no child node. Each child PHY reg is its absolute
|
||||
MDIO address, not an offset from the package base. Unused PHY ports may
|
||||
be omitted. The base address must not exceed 28, so that all four PHY
|
||||
addresses fit within the MDIO address space.
|
||||
|
||||
The enet-phy-pair-order and enet-phy-pair-polarity properties belong
|
||||
to the individual PHY nodes and describe each port's MDI wiring.
|
||||
|
||||
$ref: ethernet-phy-package.yaml#
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
const: realtek,rtl8224-package
|
||||
|
||||
reg:
|
||||
maximum: 28
|
||||
|
||||
patternProperties:
|
||||
"^ethernet-phy@[a-f0-9]+$":
|
||||
$ref: ethernet-phy.yaml#
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
const: ethernet-phy-ieee802.3-c45
|
||||
|
||||
leds: false
|
||||
|
||||
required:
|
||||
- compatible
|
||||
|
||||
unevaluatedProperties: false
|
||||
|
||||
required:
|
||||
- compatible
|
||||
|
||||
# Enumerate the ranges because child addresses depend on the package base.
|
||||
allOf:
|
||||
- if:
|
||||
properties:
|
||||
reg: { const: 0 }
|
||||
then:
|
||||
patternProperties:
|
||||
"^ethernet-phy@[a-f0-9]+$":
|
||||
properties:
|
||||
reg: { minimum: 0, maximum: 3 }
|
||||
- if:
|
||||
properties:
|
||||
reg: { const: 1 }
|
||||
then:
|
||||
patternProperties:
|
||||
"^ethernet-phy@[a-f0-9]+$":
|
||||
properties:
|
||||
reg: { minimum: 1, maximum: 4 }
|
||||
- if:
|
||||
properties:
|
||||
reg: { const: 2 }
|
||||
then:
|
||||
patternProperties:
|
||||
"^ethernet-phy@[a-f0-9]+$":
|
||||
properties:
|
||||
reg: { minimum: 2, maximum: 5 }
|
||||
- if:
|
||||
properties:
|
||||
reg: { const: 3 }
|
||||
then:
|
||||
patternProperties:
|
||||
"^ethernet-phy@[a-f0-9]+$":
|
||||
properties:
|
||||
reg: { minimum: 3, maximum: 6 }
|
||||
- if:
|
||||
properties:
|
||||
reg: { const: 4 }
|
||||
then:
|
||||
patternProperties:
|
||||
"^ethernet-phy@[a-f0-9]+$":
|
||||
properties:
|
||||
reg: { minimum: 4, maximum: 7 }
|
||||
- if:
|
||||
properties:
|
||||
reg: { const: 5 }
|
||||
then:
|
||||
patternProperties:
|
||||
"^ethernet-phy@[a-f0-9]+$":
|
||||
properties:
|
||||
reg: { minimum: 5, maximum: 8 }
|
||||
- if:
|
||||
properties:
|
||||
reg: { const: 6 }
|
||||
then:
|
||||
patternProperties:
|
||||
"^ethernet-phy@[a-f0-9]+$":
|
||||
properties:
|
||||
reg: { minimum: 6, maximum: 9 }
|
||||
- if:
|
||||
properties:
|
||||
reg: { const: 7 }
|
||||
then:
|
||||
patternProperties:
|
||||
"^ethernet-phy@[a-f0-9]+$":
|
||||
properties:
|
||||
reg: { minimum: 7, maximum: 10 }
|
||||
- if:
|
||||
properties:
|
||||
reg: { const: 8 }
|
||||
then:
|
||||
patternProperties:
|
||||
"^ethernet-phy@[a-f0-9]+$":
|
||||
properties:
|
||||
reg: { minimum: 8, maximum: 11 }
|
||||
- if:
|
||||
properties:
|
||||
reg: { const: 9 }
|
||||
then:
|
||||
patternProperties:
|
||||
"^ethernet-phy@[a-f0-9]+$":
|
||||
properties:
|
||||
reg: { minimum: 9, maximum: 12 }
|
||||
- if:
|
||||
properties:
|
||||
reg: { const: 10 }
|
||||
then:
|
||||
patternProperties:
|
||||
"^ethernet-phy@[a-f0-9]+$":
|
||||
properties:
|
||||
reg: { minimum: 10, maximum: 13 }
|
||||
- if:
|
||||
properties:
|
||||
reg: { const: 11 }
|
||||
then:
|
||||
patternProperties:
|
||||
"^ethernet-phy@[a-f0-9]+$":
|
||||
properties:
|
||||
reg: { minimum: 11, maximum: 14 }
|
||||
- if:
|
||||
properties:
|
||||
reg: { const: 12 }
|
||||
then:
|
||||
patternProperties:
|
||||
"^ethernet-phy@[a-f0-9]+$":
|
||||
properties:
|
||||
reg: { minimum: 12, maximum: 15 }
|
||||
- if:
|
||||
properties:
|
||||
reg: { const: 13 }
|
||||
then:
|
||||
patternProperties:
|
||||
"^ethernet-phy@[a-f0-9]+$":
|
||||
properties:
|
||||
reg: { minimum: 13, maximum: 16 }
|
||||
- if:
|
||||
properties:
|
||||
reg: { const: 14 }
|
||||
then:
|
||||
patternProperties:
|
||||
"^ethernet-phy@[a-f0-9]+$":
|
||||
properties:
|
||||
reg: { minimum: 14, maximum: 17 }
|
||||
- if:
|
||||
properties:
|
||||
reg: { const: 15 }
|
||||
then:
|
||||
patternProperties:
|
||||
"^ethernet-phy@[a-f0-9]+$":
|
||||
properties:
|
||||
reg: { minimum: 15, maximum: 18 }
|
||||
- if:
|
||||
properties:
|
||||
reg: { const: 16 }
|
||||
then:
|
||||
patternProperties:
|
||||
"^ethernet-phy@[a-f0-9]+$":
|
||||
properties:
|
||||
reg: { minimum: 16, maximum: 19 }
|
||||
- if:
|
||||
properties:
|
||||
reg: { const: 17 }
|
||||
then:
|
||||
patternProperties:
|
||||
"^ethernet-phy@[a-f0-9]+$":
|
||||
properties:
|
||||
reg: { minimum: 17, maximum: 20 }
|
||||
- if:
|
||||
properties:
|
||||
reg: { const: 18 }
|
||||
then:
|
||||
patternProperties:
|
||||
"^ethernet-phy@[a-f0-9]+$":
|
||||
properties:
|
||||
reg: { minimum: 18, maximum: 21 }
|
||||
- if:
|
||||
properties:
|
||||
reg: { const: 19 }
|
||||
then:
|
||||
patternProperties:
|
||||
"^ethernet-phy@[a-f0-9]+$":
|
||||
properties:
|
||||
reg: { minimum: 19, maximum: 22 }
|
||||
- if:
|
||||
properties:
|
||||
reg: { const: 20 }
|
||||
then:
|
||||
patternProperties:
|
||||
"^ethernet-phy@[a-f0-9]+$":
|
||||
properties:
|
||||
reg: { minimum: 20, maximum: 23 }
|
||||
- if:
|
||||
properties:
|
||||
reg: { const: 21 }
|
||||
then:
|
||||
patternProperties:
|
||||
"^ethernet-phy@[a-f0-9]+$":
|
||||
properties:
|
||||
reg: { minimum: 21, maximum: 24 }
|
||||
- if:
|
||||
properties:
|
||||
reg: { const: 22 }
|
||||
then:
|
||||
patternProperties:
|
||||
"^ethernet-phy@[a-f0-9]+$":
|
||||
properties:
|
||||
reg: { minimum: 22, maximum: 25 }
|
||||
- if:
|
||||
properties:
|
||||
reg: { const: 23 }
|
||||
then:
|
||||
patternProperties:
|
||||
"^ethernet-phy@[a-f0-9]+$":
|
||||
properties:
|
||||
reg: { minimum: 23, maximum: 26 }
|
||||
- if:
|
||||
properties:
|
||||
reg: { const: 24 }
|
||||
then:
|
||||
patternProperties:
|
||||
"^ethernet-phy@[a-f0-9]+$":
|
||||
properties:
|
||||
reg: { minimum: 24, maximum: 27 }
|
||||
- if:
|
||||
properties:
|
||||
reg: { const: 25 }
|
||||
then:
|
||||
patternProperties:
|
||||
"^ethernet-phy@[a-f0-9]+$":
|
||||
properties:
|
||||
reg: { minimum: 25, maximum: 28 }
|
||||
- if:
|
||||
properties:
|
||||
reg: { const: 26 }
|
||||
then:
|
||||
patternProperties:
|
||||
"^ethernet-phy@[a-f0-9]+$":
|
||||
properties:
|
||||
reg: { minimum: 26, maximum: 29 }
|
||||
- if:
|
||||
properties:
|
||||
reg: { const: 27 }
|
||||
then:
|
||||
patternProperties:
|
||||
"^ethernet-phy@[a-f0-9]+$":
|
||||
properties:
|
||||
reg: { minimum: 27, maximum: 30 }
|
||||
- if:
|
||||
properties:
|
||||
reg: { const: 28 }
|
||||
then:
|
||||
patternProperties:
|
||||
"^ethernet-phy@[a-f0-9]+$":
|
||||
properties:
|
||||
reg: { minimum: 28, maximum: 31 }
|
||||
|
||||
unevaluatedProperties: false
|
||||
|
||||
examples:
|
||||
- |
|
||||
mdio {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
ethernet-phy-package@1 {
|
||||
compatible = "realtek,rtl8224-package";
|
||||
reg = <1>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
ethernet-phy@1 {
|
||||
compatible = "ethernet-phy-ieee802.3-c45";
|
||||
reg = <1>;
|
||||
enet-phy-pair-order = <0>;
|
||||
};
|
||||
|
||||
ethernet-phy@2 {
|
||||
compatible = "ethernet-phy-ieee802.3-c45";
|
||||
reg = <2>;
|
||||
enet-phy-pair-order = <0>;
|
||||
};
|
||||
|
||||
ethernet-phy@3 {
|
||||
compatible = "ethernet-phy-ieee802.3-c45";
|
||||
reg = <3>;
|
||||
enet-phy-pair-order = <1>;
|
||||
};
|
||||
|
||||
ethernet-phy@4 {
|
||||
compatible = "ethernet-phy-ieee802.3-c45";
|
||||
reg = <4>;
|
||||
enet-phy-pair-order = <1>;
|
||||
enet-phy-pair-polarity = <0x1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -91,8 +91,8 @@ examples:
|
||||
#size-cells = <0>;
|
||||
|
||||
ethphy1: ethernet-phy@1 {
|
||||
reg = <1>;
|
||||
realtek,clkout-disable;
|
||||
realtek,aldps-enable;
|
||||
reg = <1>;
|
||||
realtek,clkout-disable;
|
||||
realtek,aldps-enable;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
$id: http://devicetree.org/schemas/net/realtek,rtl9301-mdio.yaml#
|
||||
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
||||
|
||||
title: Realtek RTL9300 MDIO Controller
|
||||
title: Realtek Otto Switches Ethernet MDIO Controller
|
||||
|
||||
maintainers:
|
||||
- Chris Packham <[email protected]>
|
||||
@@ -12,6 +12,16 @@ maintainers:
|
||||
properties:
|
||||
compatible:
|
||||
oneOf:
|
||||
- items:
|
||||
- enum:
|
||||
- realtek,rtl8381-mdio
|
||||
- realtek,rtl8382-mdio
|
||||
- const: realtek,rtl8380-mdio
|
||||
- items:
|
||||
- enum:
|
||||
- realtek,rtl8392-mdio
|
||||
- realtek,rtl8393-mdio
|
||||
- const: realtek,rtl8391-mdio
|
||||
- items:
|
||||
- enum:
|
||||
- realtek,rtl9302b-mdio
|
||||
@@ -24,6 +34,8 @@ properties:
|
||||
- realtek,rtl9313-mdio
|
||||
- const: realtek,rtl9311-mdio
|
||||
- enum:
|
||||
- realtek,rtl8380-mdio
|
||||
- realtek,rtl8391-mdio
|
||||
- realtek,rtl9301-mdio
|
||||
- realtek,rtl9311-mdio
|
||||
|
||||
@@ -59,6 +71,68 @@ required:
|
||||
- compatible
|
||||
- reg
|
||||
|
||||
allOf:
|
||||
- if:
|
||||
properties:
|
||||
compatible:
|
||||
contains:
|
||||
enum:
|
||||
- realtek,rtl8380-mdio
|
||||
- realtek,rtl8381-mdio
|
||||
- realtek,rtl8382-mdio
|
||||
then:
|
||||
properties:
|
||||
mdio-bus@0:
|
||||
properties:
|
||||
clock-frequency:
|
||||
enum: [2500000, 10000000]
|
||||
default: 2500000
|
||||
|
||||
patternProperties:
|
||||
'^mdio-bus@[1-3]$': false
|
||||
|
||||
- if:
|
||||
properties:
|
||||
compatible:
|
||||
contains:
|
||||
enum:
|
||||
- realtek,rtl8391-mdio
|
||||
- realtek,rtl8392-mdio
|
||||
- realtek,rtl8393-mdio
|
||||
then:
|
||||
patternProperties:
|
||||
'^mdio-bus@[01]$':
|
||||
properties:
|
||||
clock-frequency:
|
||||
enum: [1250000, 2500000, 5000000]
|
||||
description: |
|
||||
RTL839x has one clock selector shared by both MDIO buses. All explicitly
|
||||
specified clock-frequency values must be identical. A bus without this
|
||||
property inherits the shared frequency selected by another available bus.
|
||||
If neither available bus specifies a frequency, 2500000 Hz is used.
|
||||
|
||||
'^mdio-bus@[2-3]$': false
|
||||
|
||||
- if:
|
||||
properties:
|
||||
compatible:
|
||||
contains:
|
||||
enum:
|
||||
- realtek,rtl9301-mdio
|
||||
- realtek,rtl9302b-mdio
|
||||
- realtek,rtl9302c-mdio
|
||||
- realtek,rtl9303-mdio
|
||||
- realtek,rtl9311-mdio
|
||||
- realtek,rtl9312-mdio
|
||||
- realtek,rtl9313-mdio
|
||||
then:
|
||||
patternProperties:
|
||||
'^mdio-bus@[0-3]$':
|
||||
properties:
|
||||
clock-frequency:
|
||||
enum: [1250000, 2500000, 5000000]
|
||||
default: 2500000
|
||||
|
||||
unevaluatedProperties: false
|
||||
|
||||
examples:
|
||||
|
||||
@@ -97,6 +97,8 @@ properties:
|
||||
|
||||
phy-handle: true
|
||||
|
||||
ptp-timer: true
|
||||
|
||||
'#address-cells':
|
||||
description: Number of address cells for the MDIO bus.
|
||||
const: 1
|
||||
@@ -305,6 +307,15 @@ allOf:
|
||||
items:
|
||||
- const: fck
|
||||
- const: refclk
|
||||
- if:
|
||||
not:
|
||||
properties:
|
||||
compatible:
|
||||
contains:
|
||||
const: renesas,etheravb-rcar-gen4
|
||||
then:
|
||||
properties:
|
||||
ptp-timer: false
|
||||
|
||||
additionalProperties: false
|
||||
|
||||
|
||||
@@ -44,6 +44,9 @@ properties:
|
||||
phandle pointing to a PCS sub-node compatible with
|
||||
renesas,rzn1-miic.yaml#
|
||||
|
||||
power-domains:
|
||||
maxItems: 1
|
||||
|
||||
required:
|
||||
- compatible
|
||||
|
||||
|
||||
@@ -154,6 +154,9 @@ properties:
|
||||
Documentation/devicetree/bindings/net/pcs/renesas,rzn1-miic.yaml#
|
||||
(Refer RZ/T2H portion in the DT-binding file)
|
||||
|
||||
power-domains:
|
||||
maxItems: 1
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- reg
|
||||
|
||||
@@ -120,9 +120,18 @@ properties:
|
||||
maximum: 0x7F
|
||||
default: 0x10
|
||||
|
||||
pcs-handle:
|
||||
description:
|
||||
Specifies a reference to a node representing the PCS device
|
||||
connected to this GMAC. Required when phy-mode is "sgmii".
|
||||
maxItems: 1
|
||||
|
||||
phy-supply:
|
||||
description: PHY regulator
|
||||
|
||||
power-domains:
|
||||
maxItems: 1
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- clocks
|
||||
@@ -159,6 +168,27 @@ allOf:
|
||||
clocks:
|
||||
minItems: 5
|
||||
|
||||
- if:
|
||||
properties:
|
||||
compatible:
|
||||
contains:
|
||||
const: rockchip,rk3568-gmac
|
||||
then:
|
||||
required:
|
||||
- phy-mode
|
||||
|
||||
- if:
|
||||
properties:
|
||||
compatible:
|
||||
contains:
|
||||
const: rockchip,rk3568-gmac
|
||||
phy-mode:
|
||||
contains:
|
||||
const: sgmii
|
||||
then:
|
||||
required:
|
||||
- pcs-handle
|
||||
|
||||
unevaluatedProperties: false
|
||||
|
||||
examples:
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
%YAML 1.2
|
||||
---
|
||||
$id: http://devicetree.org/schemas/net/snps,dwmac-common.yaml#
|
||||
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
||||
|
||||
title: Synopsys DesignWare MAC common properties
|
||||
|
||||
maintainers:
|
||||
- Alexandre Torgue <[email protected]>
|
||||
- Giuseppe Cavallaro <[email protected]>
|
||||
- Jose Abreu <[email protected]>
|
||||
|
||||
properties:
|
||||
stmmac-axi-config:
|
||||
type: object
|
||||
unevaluatedProperties: false
|
||||
description:
|
||||
AXI BUS Mode parameters.
|
||||
|
||||
properties:
|
||||
snps,lpi_en:
|
||||
$ref: /schemas/types.yaml#/definitions/flag
|
||||
description:
|
||||
enable Low Power Interface
|
||||
|
||||
snps,xit_frm:
|
||||
$ref: /schemas/types.yaml#/definitions/flag
|
||||
description:
|
||||
unlock on WoL
|
||||
|
||||
snps,wr_osr_lmt:
|
||||
$ref: /schemas/types.yaml#/definitions/uint32
|
||||
description:
|
||||
max write outstanding req. limit
|
||||
|
||||
snps,rd_osr_lmt:
|
||||
$ref: /schemas/types.yaml#/definitions/uint32
|
||||
description:
|
||||
max read outstanding req. limit
|
||||
|
||||
snps,blen:
|
||||
$ref: /schemas/types.yaml#/definitions/uint32-array
|
||||
description:
|
||||
this is a vector of supported burst length.
|
||||
minItems: 7
|
||||
maxItems: 7
|
||||
|
||||
snps,fb:
|
||||
$ref: /schemas/types.yaml#/definitions/flag
|
||||
description:
|
||||
fixed-burst
|
||||
|
||||
snps,axi-config:
|
||||
$ref: /schemas/types.yaml#/definitions/phandle
|
||||
description:
|
||||
AXI BUS Mode parameters. Phandle to a node that can contain the
|
||||
following properties
|
||||
* snps,lpi_en, enable Low Power Interface
|
||||
* snps,xit_frm, unlock on WoL
|
||||
* snps,wr_osr_lmt, max write outstanding req. limit
|
||||
* snps,rd_osr_lmt, max read outstanding req. limit
|
||||
* snps,blen, this is a vector of supported burst length.
|
||||
* snps,fb, fixed-burst
|
||||
|
||||
additionalProperties: true
|
||||
@@ -57,6 +57,7 @@ properties:
|
||||
- allwinner,sun8i-r40-gmac
|
||||
- allwinner,sun8i-v3s-emac
|
||||
- allwinner,sun50i-a64-emac
|
||||
- allwinner,sun50i-h616-emac1
|
||||
- amlogic,meson6-dwmac
|
||||
- amlogic,meson8b-dwmac
|
||||
- amlogic,meson8m2-dwmac
|
||||
@@ -72,6 +73,7 @@ properties:
|
||||
- nuvoton,ma35d1-dwmac
|
||||
- nxp,s32g2-dwmac
|
||||
- qcom,qcs404-ethqos
|
||||
- qcom,sa8255p-ethqos
|
||||
- qcom,sa8775p-ethqos
|
||||
- qcom,sc8280xp-ethqos
|
||||
- qcom,sm8150-ethqos
|
||||
@@ -119,6 +121,7 @@ properties:
|
||||
- starfive,jh7110-dwmac
|
||||
- tesla,fsd-ethqos
|
||||
- thead,th1520-gmac
|
||||
- ultrarisc,dp1000-gmac
|
||||
|
||||
reg:
|
||||
minItems: 1
|
||||
@@ -174,7 +177,7 @@ properties:
|
||||
minItems: 1
|
||||
items:
|
||||
- description: GMAC stmmaceth reset
|
||||
- description: AHB reset
|
||||
- description: AHB or OCP reset
|
||||
|
||||
reset-names:
|
||||
oneOf:
|
||||
@@ -182,10 +185,11 @@ properties:
|
||||
- enum: [stmmaceth, ahb]
|
||||
- items:
|
||||
- const: stmmaceth
|
||||
- const: ahb
|
||||
- enum: [ahb, stmmaceth-ocp]
|
||||
|
||||
power-domains:
|
||||
maxItems: 1
|
||||
minItems: 1
|
||||
maxItems: 2
|
||||
|
||||
mac-mode:
|
||||
$ref: ethernet-controller.yaml#/properties/phy-connection-type
|
||||
@@ -195,18 +199,6 @@ properties:
|
||||
can be passive (no SW requirement), and requires that the MAC operate
|
||||
in a different mode than the PHY in order to function.
|
||||
|
||||
snps,axi-config:
|
||||
$ref: /schemas/types.yaml#/definitions/phandle
|
||||
description:
|
||||
AXI BUS Mode parameters. Phandle to a node that can contain the
|
||||
following properties
|
||||
* snps,lpi_en, enable Low Power Interface
|
||||
* snps,xit_frm, unlock on WoL
|
||||
* snps,wr_osr_lmt, max write outstanding req. limit
|
||||
* snps,rd_osr_lmt, max read outstanding req. limit
|
||||
* snps,blen, this is a vector of supported burst length.
|
||||
* snps,fb, fixed-burst
|
||||
|
||||
snps,mtl-rx-config:
|
||||
$ref: /schemas/types.yaml#/definitions/phandle
|
||||
description:
|
||||
@@ -558,45 +550,6 @@ properties:
|
||||
required:
|
||||
- compatible
|
||||
|
||||
stmmac-axi-config:
|
||||
type: object
|
||||
unevaluatedProperties: false
|
||||
description:
|
||||
AXI BUS Mode parameters.
|
||||
|
||||
properties:
|
||||
snps,lpi_en:
|
||||
$ref: /schemas/types.yaml#/definitions/flag
|
||||
description:
|
||||
enable Low Power Interface
|
||||
|
||||
snps,xit_frm:
|
||||
$ref: /schemas/types.yaml#/definitions/flag
|
||||
description:
|
||||
unlock on WoL
|
||||
|
||||
snps,wr_osr_lmt:
|
||||
$ref: /schemas/types.yaml#/definitions/uint32
|
||||
description:
|
||||
max write outstanding req. limit
|
||||
|
||||
snps,rd_osr_lmt:
|
||||
$ref: /schemas/types.yaml#/definitions/uint32
|
||||
description:
|
||||
max read outstanding req. limit
|
||||
|
||||
snps,blen:
|
||||
$ref: /schemas/types.yaml#/definitions/uint32-array
|
||||
description:
|
||||
this is a vector of supported burst length.
|
||||
minItems: 7
|
||||
maxItems: 7
|
||||
|
||||
snps,fb:
|
||||
$ref: /schemas/types.yaml#/definitions/flag
|
||||
description:
|
||||
fixed-burst
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- reg
|
||||
@@ -610,6 +563,7 @@ dependencies:
|
||||
|
||||
allOf:
|
||||
- $ref: ethernet-controller.yaml#
|
||||
- $ref: snps,dwmac-common.yaml#
|
||||
- if:
|
||||
properties:
|
||||
compatible:
|
||||
@@ -622,6 +576,7 @@ allOf:
|
||||
- allwinner,sun8i-r40-gmac
|
||||
- allwinner,sun8i-v3s-emac
|
||||
- allwinner,sun50i-a64-emac
|
||||
- allwinner,sun50i-h616-emac1
|
||||
- loongson,ls2k-dwmac
|
||||
- loongson,ls7a-dwmac
|
||||
- ingenic,jz4775-mac
|
||||
@@ -630,6 +585,7 @@ allOf:
|
||||
- ingenic,x1830-mac
|
||||
- ingenic,x2000-mac
|
||||
- qcom,qcs404-ethqos
|
||||
- qcom,sa8255p-ethqos
|
||||
- qcom,sa8775p-ethqos
|
||||
- qcom,sc8280xp-ethqos
|
||||
- qcom,sm8150-ethqos
|
||||
|
||||
@@ -121,22 +121,22 @@ examples:
|
||||
- |
|
||||
ether: ethernet@65000000 {
|
||||
compatible = "socionext,uniphier-ld20-ave4";
|
||||
reg = <0x65000000 0x8500>;
|
||||
interrupts = <0 66 4>;
|
||||
phy-mode = "rgmii";
|
||||
phy-handle = <ðphy>;
|
||||
clock-names = "ether";
|
||||
clocks = <&sys_clk 6>;
|
||||
reset-names = "ether";
|
||||
resets = <&sys_rst 6>;
|
||||
socionext,syscon-phy-mode = <&soc_glue 0>;
|
||||
reg = <0x65000000 0x8500>;
|
||||
interrupts = <0 66 4>;
|
||||
phy-mode = "rgmii";
|
||||
phy-handle = <ðphy>;
|
||||
clock-names = "ether";
|
||||
clocks = <&sys_clk 6>;
|
||||
reset-names = "ether";
|
||||
resets = <&sys_rst 6>;
|
||||
socionext,syscon-phy-mode = <&soc_glue 0>;
|
||||
|
||||
mdio {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
mdio {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
ethphy: ethernet-phy@1 {
|
||||
reg = <1>;
|
||||
};
|
||||
};
|
||||
ethphy: ethernet-phy@1 {
|
||||
reg = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -49,6 +49,9 @@ properties:
|
||||
reset-names:
|
||||
const: stmmaceth
|
||||
|
||||
power-domains:
|
||||
maxItems: 1
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- reg
|
||||
|
||||
@@ -52,6 +52,9 @@ properties:
|
||||
interrupt-names:
|
||||
maxItems: 1
|
||||
|
||||
power-domains:
|
||||
maxItems: 1
|
||||
|
||||
resets:
|
||||
maxItems: 1
|
||||
|
||||
|
||||
@@ -56,6 +56,9 @@ properties:
|
||||
reset-names:
|
||||
const: stmmaceth
|
||||
|
||||
power-domains:
|
||||
maxItems: 1
|
||||
|
||||
spacemit,apmu:
|
||||
$ref: /schemas/types.yaml#/definitions/phandle-array
|
||||
items:
|
||||
|
||||
@@ -75,6 +75,9 @@ properties:
|
||||
The argument one is the offset of phy mode selection, the
|
||||
argument two is the shift of phy mode selection.
|
||||
|
||||
power-domains:
|
||||
maxItems: 1
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- reg
|
||||
|
||||
@@ -121,6 +121,9 @@ properties:
|
||||
minItems: 1
|
||||
maxItems: 2
|
||||
|
||||
power-domains:
|
||||
maxItems: 1
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- clocks
|
||||
|
||||
@@ -67,6 +67,9 @@ properties:
|
||||
- rgmii-rxid
|
||||
- rgmii-txid
|
||||
|
||||
power-domains:
|
||||
maxItems: 1
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- reg
|
||||
|
||||
@@ -78,6 +78,9 @@ properties:
|
||||
items:
|
||||
- const: macirq
|
||||
|
||||
power-domains:
|
||||
maxItems: 1
|
||||
|
||||
required:
|
||||
- clocks
|
||||
- clock-names
|
||||
|
||||
@@ -192,50 +192,50 @@ examples:
|
||||
interrupt-names = "rx_thresh", "rx", "tx", "misc";
|
||||
|
||||
ethernet-ports {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
cpsw_port1: port@1 {
|
||||
reg = <1>;
|
||||
label = "port1";
|
||||
mac-address = [ 00 00 00 00 00 00 ];
|
||||
phys = <&phy_gmii_sel 1>;
|
||||
phy-handle = <ðphy0_sw>;
|
||||
phy-mode = "rgmii";
|
||||
ti,dual-emac-pvid = <1>;
|
||||
};
|
||||
cpsw_port1: port@1 {
|
||||
reg = <1>;
|
||||
label = "port1";
|
||||
mac-address = [ 00 00 00 00 00 00 ];
|
||||
phys = <&phy_gmii_sel 1>;
|
||||
phy-handle = <ðphy0_sw>;
|
||||
phy-mode = "rgmii";
|
||||
ti,dual-emac-pvid = <1>;
|
||||
};
|
||||
|
||||
cpsw_port2: port@2 {
|
||||
reg = <2>;
|
||||
label = "wan";
|
||||
mac-address = [ 00 00 00 00 00 00 ];
|
||||
phys = <&phy_gmii_sel 2>;
|
||||
phy-handle = <ðphy1_sw>;
|
||||
phy-mode = "rgmii";
|
||||
ti,dual-emac-pvid = <2>;
|
||||
};
|
||||
cpsw_port2: port@2 {
|
||||
reg = <2>;
|
||||
label = "wan";
|
||||
mac-address = [ 00 00 00 00 00 00 ];
|
||||
phys = <&phy_gmii_sel 2>;
|
||||
phy-handle = <ðphy1_sw>;
|
||||
phy-mode = "rgmii";
|
||||
ti,dual-emac-pvid = <2>;
|
||||
};
|
||||
};
|
||||
|
||||
davinci_mdio_sw: mdio@1000 {
|
||||
compatible = "ti,cpsw-mdio","ti,davinci_mdio";
|
||||
reg = <0x1000 0x100>;
|
||||
clocks = <&gmac_clkctrl DRA7_GMAC_GMAC_CLKCTRL 0>;
|
||||
clock-names = "fck";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
bus_freq = <1000000>;
|
||||
compatible = "ti,cpsw-mdio","ti,davinci_mdio";
|
||||
reg = <0x1000 0x100>;
|
||||
clocks = <&gmac_clkctrl DRA7_GMAC_GMAC_CLKCTRL 0>;
|
||||
clock-names = "fck";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
bus_freq = <1000000>;
|
||||
|
||||
ethphy0_sw: ethernet-phy@0 {
|
||||
reg = <0>;
|
||||
};
|
||||
ethphy0_sw: ethernet-phy@0 {
|
||||
reg = <0>;
|
||||
};
|
||||
|
||||
ethphy1_sw: ethernet-phy@1 {
|
||||
reg = <1>;
|
||||
};
|
||||
ethphy1_sw: ethernet-phy@1 {
|
||||
reg = <1>;
|
||||
};
|
||||
};
|
||||
|
||||
cpts {
|
||||
clocks = <&gmac_clkctrl DRA7_GMAC_GMAC_CLKCTRL 25>;
|
||||
clock-names = "cpts";
|
||||
clocks = <&gmac_clkctrl DRA7_GMAC_GMAC_CLKCTRL 25>;
|
||||
clock-names = "cpts";
|
||||
};
|
||||
};
|
||||
|
||||
@@ -48,6 +48,9 @@ properties:
|
||||
interrupt-names:
|
||||
const: macirq
|
||||
|
||||
power-domains:
|
||||
maxItems: 1
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- reg
|
||||
|
||||
@@ -0,0 +1,74 @@
|
||||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
||||
%YAML 1.2
|
||||
---
|
||||
$id: http://devicetree.org/schemas/net/ultrarisc,dp1000-gmac.yaml#
|
||||
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
||||
|
||||
title: UltraRISC DP1000 DWMAC Ethernet controller
|
||||
|
||||
maintainers:
|
||||
- Jia Wang <[email protected]>
|
||||
|
||||
description:
|
||||
The DP1000 integrates a Synopsys DesignWare GMAC controller from the
|
||||
5.20 series. The SoC integration adds fixed RGMII TX and RX clock delays
|
||||
which cannot be disabled. Consequently, a functional RGMII link requires
|
||||
a PCB without TX or RX clock delays, represented by "rgmii-id".
|
||||
|
||||
select:
|
||||
properties:
|
||||
compatible:
|
||||
contains:
|
||||
const: ultrarisc,dp1000-gmac
|
||||
required:
|
||||
- compatible
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
items:
|
||||
- const: ultrarisc,dp1000-gmac
|
||||
- const: snps,dwmac-5.20
|
||||
|
||||
reg:
|
||||
maxItems: 1
|
||||
|
||||
clocks:
|
||||
maxItems: 1
|
||||
|
||||
clock-names:
|
||||
const: stmmaceth
|
||||
|
||||
interrupts:
|
||||
maxItems: 1
|
||||
|
||||
interrupt-names:
|
||||
const: macirq
|
||||
|
||||
phy-mode:
|
||||
const: rgmii-id
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- reg
|
||||
- clocks
|
||||
- clock-names
|
||||
- interrupts
|
||||
- interrupt-names
|
||||
- phy-mode
|
||||
|
||||
allOf:
|
||||
- $ref: snps,dwmac.yaml#
|
||||
|
||||
unevaluatedProperties: false
|
||||
|
||||
examples:
|
||||
- |
|
||||
ethernet@38000000 {
|
||||
compatible = "ultrarisc,dp1000-gmac", "snps,dwmac-5.20";
|
||||
reg = <0x38000000 0x1000000>;
|
||||
clocks = <&clk 0>;
|
||||
clock-names = "stmmaceth";
|
||||
interrupts = <84>;
|
||||
interrupt-names = "macirq";
|
||||
phy-mode = "rgmii-id";
|
||||
};
|
||||
@@ -59,6 +59,12 @@ properties:
|
||||
description: Calibration data for sub-band 3 in the 5GHz band.
|
||||
maxItems: 502
|
||||
|
||||
marvell,invalid-reg-hint-in-rom:
|
||||
$ref: /schemas/types.yaml#/definitions/flag
|
||||
description:
|
||||
The regulatory hint in ROM conflicts with platform configuration.
|
||||
It should be ignored, so the platform regulatory domain can be used.
|
||||
|
||||
marvell,wakeup-pin:
|
||||
$ref: /schemas/types.yaml#/definitions/uint32
|
||||
description:
|
||||
|
||||
@@ -325,22 +325,22 @@ examples:
|
||||
r0 {
|
||||
regdomain = "FCC";
|
||||
txpower-5g {
|
||||
b0 {
|
||||
channels = <36 48>;
|
||||
rates-ofdm = /bits/ 8 <23 23 23 23 23 23 23 23>;
|
||||
rates-mcs = /bits/ 8 <1 23 23 23 23 23 23 23 23 23 23>,
|
||||
/bits/ 8 <3 22 22 22 22 22 22 22 22 22 22>;
|
||||
rates-ru = /bits/ 8 <3 22 22 22 22 22 22 22 22 22 22 22 22>,
|
||||
/bits/ 8 <4 20 20 20 20 20 20 20 20 20 20 20 20>;
|
||||
};
|
||||
b1 {
|
||||
channels = <100 181>;
|
||||
rates-ofdm = /bits/ 8 <14 14 14 14 14 14 14 14>;
|
||||
rates-mcs = /bits/ 8 <4 14 14 14 14 14 14 14 14 14 14>;
|
||||
txs-delta = <12 9 6>;
|
||||
rates-ru = /bits/ 8 <7 14 14 14 14 14 14 14 14 14 14 14 14>;
|
||||
};
|
||||
};
|
||||
b0 {
|
||||
channels = <36 48>;
|
||||
rates-ofdm = /bits/ 8 <23 23 23 23 23 23 23 23>;
|
||||
rates-mcs = /bits/ 8 <1 23 23 23 23 23 23 23 23 23 23>,
|
||||
/bits/ 8 <3 22 22 22 22 22 22 22 22 22 22>;
|
||||
rates-ru = /bits/ 8 <3 22 22 22 22 22 22 22 22 22 22 22 22>,
|
||||
/bits/ 8 <4 20 20 20 20 20 20 20 20 20 20 20 20>;
|
||||
};
|
||||
b1 {
|
||||
channels = <100 181>;
|
||||
rates-ofdm = /bits/ 8 <14 14 14 14 14 14 14 14>;
|
||||
rates-mcs = /bits/ 8 <4 14 14 14 14 14 14 14 14 14 14>;
|
||||
txs-delta = <12 9 6>;
|
||||
rates-ru = /bits/ 8 <7 14 14 14 14 14 14 14 14 14 14 14 14>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -92,6 +92,22 @@ properties:
|
||||
|
||||
ieee80211-freq-limit: true
|
||||
|
||||
nvmem-cells:
|
||||
minItems: 1
|
||||
maxItems: 3
|
||||
description:
|
||||
References to nvmem cells for MAC address and/or calibration data.
|
||||
Supported cell names are mac-address, calibration, and pre-calibration.
|
||||
|
||||
nvmem-cell-names:
|
||||
minItems: 1
|
||||
maxItems: 3
|
||||
items:
|
||||
enum:
|
||||
- mac-address
|
||||
- calibration
|
||||
- pre-calibration
|
||||
|
||||
qcom,calibration-data:
|
||||
$ref: /schemas/types.yaml#/definitions/uint8-array
|
||||
description:
|
||||
@@ -408,4 +424,4 @@ examples:
|
||||
"msi15",
|
||||
"legacy";
|
||||
ieee80211-freq-limit = <5470000 5875000>;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -58,13 +58,6 @@ properties:
|
||||
String to uniquely identify variant of the calibration data for designs
|
||||
with colliding bus and device ids
|
||||
|
||||
qcom,ath12k-calibration-variant:
|
||||
$ref: /schemas/types.yaml#/definitions/string
|
||||
deprecated: true
|
||||
description:
|
||||
String to uniquely identify variant of the calibration data for designs
|
||||
with colliding bus and device ids
|
||||
|
||||
qcom,wsi-controller:
|
||||
$ref: /schemas/types.yaml#/definitions/flag
|
||||
description:
|
||||
|
||||
@@ -50,6 +50,9 @@ properties:
|
||||
used, this property is required. When SDIO is used, the "in-band"
|
||||
interrupt provided by the SDIO bus is used unless an interrupt is defined
|
||||
in the Device Tree.
|
||||
|
||||
The hardware suffers from a limitation when this property is used with
|
||||
SDIO. OOB IRQ with SDIO should only be used for debug.
|
||||
maxItems: 1
|
||||
|
||||
reset-gpios:
|
||||
|
||||
@@ -1,64 +0,0 @@
|
||||
* Texas Instruments wl1251 wireless lan controller
|
||||
|
||||
The wl1251 chip can be connected via SPI or via SDIO. This
|
||||
document describes the binding for the SPI connected chip.
|
||||
|
||||
Required properties:
|
||||
- compatible : Should be "ti,wl1251"
|
||||
- reg : Chip select address of device
|
||||
- spi-max-frequency : Maximum SPI clocking speed of device in Hz
|
||||
- interrupts : Should contain interrupt line
|
||||
- vio-supply : phandle to regulator providing VIO
|
||||
|
||||
Optional properties:
|
||||
- ti,wl1251-has-eeprom : boolean, the wl1251 has an eeprom connected, which
|
||||
provides configuration data (calibration, MAC, ...)
|
||||
- ti,power-gpio : GPIO connected to chip's PMEN pin if operated in
|
||||
SPI mode
|
||||
- Please consult Documentation/devicetree/bindings/spi/spi-bus.txt
|
||||
for optional SPI connection related properties,
|
||||
|
||||
Examples:
|
||||
|
||||
&spi1 {
|
||||
wl1251@0 {
|
||||
compatible = "ti,wl1251";
|
||||
|
||||
reg = <0>;
|
||||
spi-max-frequency = <48000000>;
|
||||
spi-cpol;
|
||||
spi-cpha;
|
||||
|
||||
interrupt-parent = <&gpio2>;
|
||||
interrupts = <10 IRQ_TYPE_NONE>; /* gpio line 42 */
|
||||
|
||||
vio-supply = <&vio>;
|
||||
ti,power-gpio = <&gpio3 23 GPIO_ACTIVE_HIGH>; /* 87 */
|
||||
};
|
||||
};
|
||||
|
||||
&mmc3 {
|
||||
vmmc-supply = <&wlan_en>;
|
||||
|
||||
bus-width = <4>;
|
||||
non-removable;
|
||||
ti,non-removable;
|
||||
cap-power-off-card;
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&mmc3_pins>;
|
||||
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
wlan: wifi@1 {
|
||||
compatible = "ti,wl1251";
|
||||
|
||||
reg = <1>;
|
||||
|
||||
interrupt-parent = <&gpio1>;
|
||||
interrupts = <21 IRQ_TYPE_LEVEL_HIGH>; /* GPIO_21 */
|
||||
|
||||
ti,wl1251-has-eeprom;
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,85 @@
|
||||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
||||
%YAML 1.2
|
||||
---
|
||||
$id: http://devicetree.org/schemas/net/wireless/ti,wl1251.yaml#
|
||||
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
||||
|
||||
title: Texas Instruments WL1251 Wireless LAN Controller
|
||||
|
||||
maintainers:
|
||||
- Eduard Bostina <[email protected]>
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
const: ti,wl1251
|
||||
|
||||
reg:
|
||||
maxItems: 1
|
||||
|
||||
interrupts:
|
||||
maxItems: 1
|
||||
|
||||
vio-supply:
|
||||
description:
|
||||
Phandle to the regulator providing VIO. Required when connected via SPI.
|
||||
|
||||
ti,power-gpio:
|
||||
maxItems: 1
|
||||
description:
|
||||
GPIO connected to chip's PMEN pin if operated in SPI mode.
|
||||
|
||||
ti,wl1251-has-eeprom:
|
||||
type: boolean
|
||||
description:
|
||||
The wl1251 has an EEPROM connected, which provides configuration
|
||||
data (calibration, MAC, ...).
|
||||
|
||||
clocks:
|
||||
maxItems: 1
|
||||
|
||||
spi-max-frequency: true
|
||||
spi-cpol: true
|
||||
spi-cpha: true
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- reg
|
||||
- interrupts
|
||||
|
||||
allOf:
|
||||
- $ref: /schemas/spi/spi-peripheral-props.yaml#
|
||||
|
||||
unevaluatedProperties: false
|
||||
|
||||
examples:
|
||||
- |
|
||||
#include <dt-bindings/interrupt-controller/irq.h>
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
spi {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
wifi@0 {
|
||||
compatible = "ti,wl1251";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <48000000>;
|
||||
spi-cpol;
|
||||
spi-cpha;
|
||||
interrupt-parent = <&gpio2>;
|
||||
interrupts = <10 IRQ_TYPE_NONE>;
|
||||
vio-supply = <&vio>;
|
||||
ti,power-gpio = <&gpio3 23 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
};
|
||||
- |
|
||||
#include <dt-bindings/interrupt-controller/irq.h>
|
||||
mmc {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
wifi@1 {
|
||||
compatible = "ti,wl1251";
|
||||
reg = <1>;
|
||||
interrupt-parent = <&gpio1>;
|
||||
interrupts = <21 IRQ_TYPE_LEVEL_HIGH>;
|
||||
ti,wl1251-has-eeprom;
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,88 @@
|
||||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
||||
%YAML 1.2
|
||||
---
|
||||
$id: http://devicetree.org/schemas/net/wiznet,w5100.yaml#
|
||||
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
||||
|
||||
title: Wiznet w5100/w5200/w5500 SPI Ethernet Controller
|
||||
|
||||
maintainers:
|
||||
- Arthur Crepin Leblond <[email protected]>
|
||||
|
||||
description: |
|
||||
This is a standalone 10/100 MBit Ethernet controller with SPI interface.
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
enum:
|
||||
- wiznet,w5100
|
||||
- wiznet,w5200
|
||||
- wiznet,w5500
|
||||
|
||||
interrupts:
|
||||
minItems: 1
|
||||
description:
|
||||
The main interrupt (INT pin) is mandatory on all devices. The w5500
|
||||
additionally supports an optional second interrupt for link status changes
|
||||
(LINKLED pin). If it is not specified, link state changes will not be
|
||||
reported.
|
||||
items:
|
||||
- description: Main interrupt (INT pin on the device).
|
||||
- description:
|
||||
Optional interrupt for link status changes (LINKLED pin on w5500).
|
||||
|
||||
reg:
|
||||
maxItems: 1
|
||||
|
||||
spi-max-frequency:
|
||||
description:
|
||||
According to the datasheets, w5500 and w5200 allow a maximum of 80 MHz
|
||||
while w5100 is reported by users to allow a maximum of 14 MHz. However,
|
||||
board designs may need to limit this value.
|
||||
maximum: 80000000
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- reg
|
||||
- interrupts
|
||||
|
||||
allOf:
|
||||
- $ref: /schemas/net/ethernet-controller.yaml#
|
||||
- $ref: /schemas/spi/spi-peripheral-props.yaml#
|
||||
- if:
|
||||
not:
|
||||
properties:
|
||||
compatible:
|
||||
contains:
|
||||
enum:
|
||||
- wiznet,w5500
|
||||
then:
|
||||
properties:
|
||||
interrupts:
|
||||
maxItems: 1
|
||||
|
||||
unevaluatedProperties: false
|
||||
|
||||
examples:
|
||||
- |
|
||||
/* Example (for Raspberry Pi with pin control stuff for GPIO irq) */
|
||||
|
||||
#include <dt-bindings/interrupt-controller/irq.h>
|
||||
|
||||
spi {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
ethernet@0 {
|
||||
compatible = "wiznet,w5500";
|
||||
reg = <0>;
|
||||
interrupt-parent = <&gpio>;
|
||||
interrupts = <25 IRQ_TYPE_LEVEL_LOW>,
|
||||
<24 IRQ_TYPE_EDGE_BOTH>;
|
||||
local-mac-address = [ a0 b0 c0 d0 e0 f0 ];
|
||||
pinctrl-0 = <ð1_pins>;
|
||||
pinctrl-names = "default";
|
||||
spi-max-frequency = <30000000>;
|
||||
};
|
||||
};
|
||||
...
|
||||
@@ -1,50 +0,0 @@
|
||||
* Wiznet w5x00
|
||||
|
||||
This is a standalone 10/100 MBit Ethernet controller with SPI interface.
|
||||
|
||||
For each device connected to a SPI bus, define a child node within
|
||||
the SPI master node.
|
||||
|
||||
Required properties:
|
||||
- compatible: Should be one of the following strings:
|
||||
"wiznet,w5100"
|
||||
"wiznet,w5200"
|
||||
"wiznet,w5500"
|
||||
- reg: Specify the SPI chip select the chip is wired to.
|
||||
- interrupts: Specify the interrupt index within the interrupt controller (referred
|
||||
to above in interrupt-parent) and interrupt type. w5x00 natively
|
||||
generates falling edge interrupts, however, additional board logic
|
||||
might invert the signal.
|
||||
- pinctrl-names: List of assigned state names, see pinctrl binding documentation.
|
||||
- pinctrl-0: List of phandles to configure the GPIO pin used as interrupt line,
|
||||
see also generic and your platform specific pinctrl binding
|
||||
documentation.
|
||||
|
||||
Optional properties:
|
||||
- spi-max-frequency: Maximum frequency of the SPI bus when accessing the w5500.
|
||||
According to the w5500 datasheet, the chip allows a maximum of 80 MHz, however,
|
||||
board designs may need to limit this value.
|
||||
- local-mac-address: See ethernet.txt in the same directory.
|
||||
|
||||
|
||||
Example (for Raspberry Pi with pin control stuff for GPIO irq):
|
||||
|
||||
&spi {
|
||||
ethernet@0: w5500@0 {
|
||||
compatible = "wiznet,w5500";
|
||||
reg = <0>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <ð1_pins>;
|
||||
interrupt-parent = <&gpio>;
|
||||
interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
|
||||
spi-max-frequency = <30000000>;
|
||||
};
|
||||
};
|
||||
|
||||
&gpio {
|
||||
eth1_pins: eth1_pins {
|
||||
brcm,pins = <25>;
|
||||
brcm,function = <0>; /* in */
|
||||
brcm,pull = <0>; /* none */
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,170 @@
|
||||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
||||
%YAML 1.2
|
||||
---
|
||||
$id: http://devicetree.org/schemas/net/x-powers,acx00-ephy-package.yaml#
|
||||
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
||||
|
||||
title: X-Powers AC200 and AC300 Ethernet PHY packages
|
||||
|
||||
maintainers:
|
||||
- James Hilliard <[email protected]>
|
||||
|
||||
description:
|
||||
The AC200 and AC300 contain compatible Fast Ethernet PHY blocks which report
|
||||
the same Clause 22 PHY ID and use the same link-side register layout. The
|
||||
package control paths differ. AC200 package control registers are accessed
|
||||
through the companion IC's I2C register interface, while AC300 control
|
||||
registers occupy a second Clause 22 address fixed at 16 plus the link PHY
|
||||
address.
|
||||
|
||||
Systems with a known package use the corresponding AC200 or AC300 compatible.
|
||||
Systems which can contain either package use the ACx00 compatible and a
|
||||
packed NVMEM configuration field to select the backend at runtime.
|
||||
|
||||
The link PHY cannot report its ID until the package control sequence has
|
||||
completed, so its child node supplies the documented PHY ID. The package and
|
||||
child use the same base address. The AC200 driver programs that address into
|
||||
the package, while the AC300 driver derives its control address from it.
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
enum:
|
||||
- x-powers,ac200-ephy-package
|
||||
- x-powers,ac300-ephy-package
|
||||
- x-powers,acx00-ephy-package
|
||||
|
||||
reg:
|
||||
maximum: 31
|
||||
|
||||
clocks:
|
||||
maxItems: 1
|
||||
description: AC300 input clock, running at 24, 25, or 27 MHz
|
||||
|
||||
vcc-supply:
|
||||
description:
|
||||
3.3 V package supply. This is connected to EPHY_VCC on AC200 and VCC1
|
||||
on AC300.
|
||||
|
||||
nvmem-cells:
|
||||
maxItems: 1
|
||||
description:
|
||||
Packed little-endian EPHY configuration value, with the least-significant
|
||||
byte first. Bits 3 through 0 contain the analog calibration code, bits 7
|
||||
through 4 are reserved, bit 8 selects AC300 when set and AC200 when clear,
|
||||
and bit 9 requests the AC300 low-calibration tuning sequence. Bits 15
|
||||
through 10 are reserved.
|
||||
|
||||
AC300 and selectable ACx00 packages require the full configuration
|
||||
field, including bits 8 and 9 even when their values are zero, returned
|
||||
as two bytes. A fixed AC200 package may provide a one-byte calibration
|
||||
value or a two-byte configuration with bit 8 clear, or omit the cell
|
||||
and use its internal eFuse calibration copy.
|
||||
|
||||
nvmem-cell-names:
|
||||
const: configuration
|
||||
|
||||
x-powers,ac200:
|
||||
$ref: /schemas/types.yaml#/definitions/phandle
|
||||
description:
|
||||
Phandle to the AC200 companion IC described by the x-powers,ac200 MFD
|
||||
binding. Its I2C interface provides access to the package control
|
||||
registers used to power and configure the Ethernet PHY.
|
||||
|
||||
x-powers,xmii-rx-clock-inverted:
|
||||
type: boolean
|
||||
description:
|
||||
Invert the xMII receive clock inside the PHY. This is required by some
|
||||
SoC integrations, including the Allwinner H6 AC200 connection.
|
||||
|
||||
patternProperties:
|
||||
^ethernet-phy@[a-f0-9]+$:
|
||||
$ref: ethernet-phy.yaml#
|
||||
properties:
|
||||
compatible:
|
||||
const: ethernet-phy-id0044.1400
|
||||
required:
|
||||
- compatible
|
||||
unevaluatedProperties: false
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- vcc-supply
|
||||
|
||||
dependentRequired:
|
||||
nvmem-cells: [ nvmem-cell-names ]
|
||||
|
||||
allOf:
|
||||
- $ref: ethernet-phy-package.yaml#
|
||||
- if:
|
||||
properties:
|
||||
compatible:
|
||||
const: x-powers,ac200-ephy-package
|
||||
then:
|
||||
properties:
|
||||
clocks: false
|
||||
required:
|
||||
- x-powers,ac200
|
||||
- if:
|
||||
properties:
|
||||
compatible:
|
||||
const: x-powers,ac300-ephy-package
|
||||
then:
|
||||
properties:
|
||||
x-powers,ac200: false
|
||||
required:
|
||||
- clocks
|
||||
- nvmem-cells
|
||||
- nvmem-cell-names
|
||||
- if:
|
||||
properties:
|
||||
compatible:
|
||||
const: x-powers,acx00-ephy-package
|
||||
then:
|
||||
required:
|
||||
- clocks
|
||||
- nvmem-cells
|
||||
- nvmem-cell-names
|
||||
- x-powers,ac200
|
||||
- if:
|
||||
properties:
|
||||
compatible:
|
||||
enum:
|
||||
- x-powers,ac300-ephy-package
|
||||
- x-powers,acx00-ephy-package
|
||||
then:
|
||||
properties:
|
||||
reg:
|
||||
maximum: 7
|
||||
patternProperties:
|
||||
^ethernet-phy@[a-f0-9]+$:
|
||||
properties:
|
||||
reg:
|
||||
maximum: 7
|
||||
|
||||
unevaluatedProperties: false
|
||||
|
||||
examples:
|
||||
- |
|
||||
mdio {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
ethernet-phy-package@0 {
|
||||
compatible = "x-powers,acx00-ephy-package";
|
||||
reg = <0>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
clocks = <&pwm 5>;
|
||||
vcc-supply = <®_3v3>;
|
||||
nvmem-cells = <&ephy_configuration>;
|
||||
nvmem-cell-names = "configuration";
|
||||
x-powers,ac200 = <&ac200>;
|
||||
|
||||
ethernet-phy@0 {
|
||||
compatible = "ethernet-phy-id0044.1400";
|
||||
reg = <0>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
...
|
||||
@@ -176,20 +176,23 @@ properties:
|
||||
struct:
|
||||
description: Name of the nested struct type.
|
||||
type: string
|
||||
if:
|
||||
properties:
|
||||
type:
|
||||
const: pad
|
||||
then:
|
||||
required: [ len ]
|
||||
if:
|
||||
properties:
|
||||
type:
|
||||
const: binary
|
||||
then:
|
||||
oneOf:
|
||||
- required: [ len ]
|
||||
- required: [ struct ]
|
||||
allOf:
|
||||
-
|
||||
if:
|
||||
properties:
|
||||
type:
|
||||
const: pad
|
||||
then:
|
||||
required: [ len ]
|
||||
-
|
||||
if:
|
||||
properties:
|
||||
type:
|
||||
const: binary
|
||||
then:
|
||||
oneOf:
|
||||
- required: [ len ]
|
||||
- required: [ struct ]
|
||||
# End genetlink-legacy
|
||||
|
||||
attribute-sets:
|
||||
|
||||
@@ -72,14 +72,14 @@ definitions:
|
||||
type: enum
|
||||
entries:
|
||||
- none
|
||||
- cloned
|
||||
- closed
|
||||
- cookie-wait
|
||||
- cookie-echoed
|
||||
- established
|
||||
- shutdown-sent
|
||||
- shutdown-received
|
||||
- shutdown-recd
|
||||
- shutdown-ack-sent
|
||||
- shutdown-heartbeat-sent
|
||||
- heartbeat-sent
|
||||
-
|
||||
name: nf-ct-status
|
||||
type: flags
|
||||
@@ -116,9 +116,11 @@ attribute-sets:
|
||||
-
|
||||
name: packets-old
|
||||
type: u32
|
||||
doc: obsolete
|
||||
-
|
||||
name: bytes-old
|
||||
type: u32
|
||||
doc: obsolete
|
||||
-
|
||||
name: pad
|
||||
type: pad
|
||||
@@ -292,6 +294,12 @@ attribute-sets:
|
||||
name: help-name
|
||||
type: string
|
||||
doc: helper name
|
||||
-
|
||||
name: help-info
|
||||
type: binary
|
||||
doc: >-
|
||||
Private data of a user space helper, only present for helpers
|
||||
registered via nfnetlink_cthelper with a non-zero data length.
|
||||
-
|
||||
name: nat-proto-attrs
|
||||
attributes:
|
||||
@@ -314,16 +322,16 @@ attribute-sets:
|
||||
name: nat-v4-maxip
|
||||
type: u32
|
||||
byte-order: big-endian
|
||||
-
|
||||
name: nat-proto
|
||||
type: nest
|
||||
nested-attributes: nat-proto-attrs
|
||||
-
|
||||
name: nat-v6-minip
|
||||
type: binary
|
||||
-
|
||||
name: nat-v6-maxip
|
||||
type: binary
|
||||
-
|
||||
name: nat-proto
|
||||
type: nest
|
||||
nested-attributes: nat-proto-attrs
|
||||
-
|
||||
name: seqadj-attrs
|
||||
attributes:
|
||||
@@ -345,6 +353,20 @@ attribute-sets:
|
||||
-
|
||||
name: secctx-name
|
||||
type: string
|
||||
-
|
||||
name: timestamp-attrs
|
||||
attributes:
|
||||
-
|
||||
name: start
|
||||
type: u64
|
||||
byte-order: big-endian
|
||||
-
|
||||
name: stop
|
||||
type: u64
|
||||
byte-order: big-endian
|
||||
-
|
||||
name: pad
|
||||
type: pad
|
||||
-
|
||||
name: synproxy-attrs
|
||||
attributes:
|
||||
@@ -371,6 +393,12 @@ attribute-sets:
|
||||
name: reply-flags
|
||||
type: u32
|
||||
doc: bitmask of tuple fields to filter on, reply direction
|
||||
-
|
||||
name: zone
|
||||
type: flag
|
||||
doc: >-
|
||||
Filter on conntrack zone id; requires the top-level zone
|
||||
(``CTA_ZONE``) attribute.
|
||||
-
|
||||
name: conntrack-attrs
|
||||
attributes:
|
||||
@@ -445,7 +473,7 @@ attribute-sets:
|
||||
nested-attributes: seqadj-attrs
|
||||
-
|
||||
name: secmark
|
||||
type: binary
|
||||
type: u32
|
||||
doc: obsolete
|
||||
-
|
||||
name: zone
|
||||
@@ -458,8 +486,8 @@ attribute-sets:
|
||||
nested-attributes: secctx-attrs
|
||||
-
|
||||
name: timestamp
|
||||
type: u64
|
||||
byte-order: big-endian
|
||||
type: nest
|
||||
nested-attributes: timestamp-attrs
|
||||
-
|
||||
name: mark-mask
|
||||
type: u32
|
||||
@@ -510,7 +538,7 @@ attribute-sets:
|
||||
name: invalid
|
||||
type: u32
|
||||
byte-order: big-endian
|
||||
doc: obsolete
|
||||
doc: packets which could not be tracked
|
||||
-
|
||||
name: ignore
|
||||
type: u32
|
||||
@@ -582,20 +610,18 @@ operations:
|
||||
- status
|
||||
- protoinfo
|
||||
- help
|
||||
- nat-src
|
||||
- nat-dst
|
||||
- timeout
|
||||
- mark
|
||||
- counters-orig
|
||||
- counters-reply
|
||||
- use
|
||||
- id
|
||||
- nat-dst
|
||||
- tuple-master
|
||||
- seq-adj-orig
|
||||
- seq-adj-reply
|
||||
- zone
|
||||
- secctx
|
||||
- timestamp
|
||||
- labels
|
||||
- synproxy
|
||||
dump:
|
||||
@@ -618,20 +644,18 @@ operations:
|
||||
- status
|
||||
- protoinfo
|
||||
- help
|
||||
- nat-src
|
||||
- nat-dst
|
||||
- timeout
|
||||
- mark
|
||||
- counters-orig
|
||||
- counters-reply
|
||||
- use
|
||||
- id
|
||||
- nat-dst
|
||||
- tuple-master
|
||||
- seq-adj-orig
|
||||
- seq-adj-reply
|
||||
- zone
|
||||
- secctx
|
||||
- timestamp
|
||||
- labels
|
||||
- synproxy
|
||||
-
|
||||
@@ -645,8 +669,8 @@ operations:
|
||||
reply:
|
||||
value: 0x104
|
||||
attributes:
|
||||
- searched
|
||||
- found
|
||||
- invalid
|
||||
- insert
|
||||
- insert-failed
|
||||
- drop
|
||||
|
||||
@@ -158,7 +158,7 @@ definitions:
|
||||
-
|
||||
name: entry
|
||||
-
|
||||
type: enum
|
||||
type: flags
|
||||
name: resource-scope
|
||||
entries:
|
||||
-
|
||||
@@ -174,6 +174,18 @@ definitions:
|
||||
value: 1
|
||||
-
|
||||
name: fw-activate
|
||||
-
|
||||
type: enum
|
||||
name: reload-limit
|
||||
entries:
|
||||
-
|
||||
name: unspec
|
||||
doc: no constraints
|
||||
-
|
||||
name: no-reset
|
||||
doc: >-
|
||||
No reset allowed, no down time allowed, no link flap and no
|
||||
configuration is lost.
|
||||
-
|
||||
type: enum
|
||||
name: param-cmode
|
||||
@@ -775,7 +787,7 @@ attribute-sets:
|
||||
-
|
||||
name: reload-limits
|
||||
type: bitfield32
|
||||
enum: reload-action
|
||||
enum: reload-limit
|
||||
enum-as-flags: true
|
||||
-
|
||||
name: dev-stats
|
||||
@@ -793,6 +805,7 @@ attribute-sets:
|
||||
-
|
||||
name: reload-stats-limit
|
||||
type: u8
|
||||
enum: reload-limit
|
||||
-
|
||||
name: reload-stats-value
|
||||
type: u32
|
||||
@@ -845,13 +858,14 @@ attribute-sets:
|
||||
name: linecard-supported-types
|
||||
type: nest
|
||||
nested-attributes: dl-linecard-supported-types
|
||||
|
||||
# TODO: fill in the attributes in between
|
||||
|
||||
-
|
||||
name: nested-devlink
|
||||
type: nest
|
||||
multi-attr: true
|
||||
nested-attributes: dl-nested-devlink
|
||||
-
|
||||
name: selftests
|
||||
type: nest
|
||||
value: 176
|
||||
nested-attributes: dl-selftest-id
|
||||
-
|
||||
name: rate-tx-priority
|
||||
@@ -889,7 +903,6 @@ attribute-sets:
|
||||
name: resource-scope-mask
|
||||
type: u32
|
||||
enum: resource-scope
|
||||
enum-as-flags: true
|
||||
doc: |
|
||||
Bitmask selecting which resource classes to include in a
|
||||
resource-dump response. Bit 0 (dev) selects device-level
|
||||
@@ -898,7 +911,7 @@ attribute-sets:
|
||||
-
|
||||
name: parent-dev
|
||||
type: nest
|
||||
nested-attributes: dl-parent-dev
|
||||
nested-attributes: dl-nested-devlink
|
||||
doc: |
|
||||
Identifies the devlink instance which owns the parent rate node.
|
||||
Used with rate-set and rate-new to parent a rate object to a node on
|
||||
@@ -978,6 +991,49 @@ attribute-sets:
|
||||
type: bitfield32
|
||||
enum: port-fn-attr-cap
|
||||
enum-as-flags: true
|
||||
-
|
||||
name: devlink
|
||||
type: nest
|
||||
nested-attributes: dl-nested-devlink
|
||||
doc: Handle of the peer devlink instance instantiated for this function.
|
||||
-
|
||||
name: max-io-eqs
|
||||
type: u32
|
||||
|
||||
-
|
||||
name: dl-port-function-set
|
||||
subset-of: dl-port-function
|
||||
doc: |
|
||||
Port function attributes that can be configured; opstate and the
|
||||
devlink handle are read-only.
|
||||
attributes:
|
||||
-
|
||||
name: hw-addr
|
||||
-
|
||||
name: state
|
||||
-
|
||||
name: caps
|
||||
-
|
||||
name: max-io-eqs
|
||||
|
||||
-
|
||||
name: dl-port-set
|
||||
subset-of: devlink
|
||||
doc: Attributes accepted by the port-set request.
|
||||
attributes:
|
||||
-
|
||||
name: bus-name
|
||||
-
|
||||
name: dev-name
|
||||
-
|
||||
name: index
|
||||
-
|
||||
name: port-index
|
||||
-
|
||||
name: port-type
|
||||
-
|
||||
name: port-function
|
||||
nested-attributes: dl-port-function-set
|
||||
|
||||
-
|
||||
name: dl-dpipe-tables
|
||||
@@ -1008,6 +1064,8 @@ attribute-sets:
|
||||
name: dpipe-table-resource-id
|
||||
-
|
||||
name: dpipe-table-resource-units
|
||||
-
|
||||
name: pad
|
||||
|
||||
-
|
||||
name: dl-dpipe-table-matches
|
||||
@@ -1042,6 +1100,8 @@ attribute-sets:
|
||||
name: dpipe-entry-action-values
|
||||
-
|
||||
name: dpipe-entry-counter
|
||||
-
|
||||
name: pad
|
||||
|
||||
-
|
||||
name: dl-dpipe-entry-match-values
|
||||
@@ -1180,6 +1240,8 @@ attribute-sets:
|
||||
name: resource-unit
|
||||
-
|
||||
name: resource-occ
|
||||
-
|
||||
name: pad
|
||||
|
||||
-
|
||||
name: dl-resource-list
|
||||
@@ -1207,6 +1269,7 @@ attribute-sets:
|
||||
attributes:
|
||||
-
|
||||
name: region-snapshot
|
||||
multi-attr: true
|
||||
|
||||
-
|
||||
name: dl-region-snapshot
|
||||
@@ -1221,6 +1284,7 @@ attribute-sets:
|
||||
attributes:
|
||||
-
|
||||
name: region-chunk
|
||||
multi-attr: true
|
||||
|
||||
-
|
||||
name: dl-region-chunk
|
||||
@@ -1230,6 +1294,8 @@ attribute-sets:
|
||||
name: region-chunk-data
|
||||
-
|
||||
name: region-chunk-addr
|
||||
-
|
||||
name: pad
|
||||
|
||||
-
|
||||
name: dl-fmsg
|
||||
@@ -1270,6 +1336,8 @@ attribute-sets:
|
||||
name: health-reporter-auto-dump
|
||||
-
|
||||
name: health-reporter-burst-period
|
||||
-
|
||||
name: pad
|
||||
|
||||
-
|
||||
name: dl-attr-stats
|
||||
@@ -1284,6 +1352,10 @@ attribute-sets:
|
||||
-
|
||||
name: stats-rx-dropped
|
||||
type: u64
|
||||
-
|
||||
name: pad
|
||||
type: pad
|
||||
value: 61
|
||||
|
||||
-
|
||||
name: dl-trap-metadata
|
||||
@@ -1303,6 +1375,7 @@ attribute-sets:
|
||||
attributes:
|
||||
-
|
||||
name: linecard-type
|
||||
multi-attr: true
|
||||
|
||||
-
|
||||
name: dl-selftest-id
|
||||
@@ -1330,6 +1403,10 @@ attribute-sets:
|
||||
-
|
||||
name: dl-parent-dev
|
||||
subset-of: devlink
|
||||
doc: |
|
||||
Devlink handle accepted as the parent-dev input; the netns id the
|
||||
kernel reports back is not accepted, the parent is always resolved
|
||||
in the caller's netns.
|
||||
attributes:
|
||||
-
|
||||
name: bus-name
|
||||
@@ -1338,6 +1415,50 @@ attribute-sets:
|
||||
-
|
||||
name: index
|
||||
|
||||
-
|
||||
name: dl-rate-set
|
||||
subset-of: devlink
|
||||
doc: Attributes accepted by the rate-set and rate-new requests.
|
||||
attributes:
|
||||
-
|
||||
name: bus-name
|
||||
-
|
||||
name: dev-name
|
||||
-
|
||||
name: index
|
||||
-
|
||||
name: port-index
|
||||
-
|
||||
name: rate-node-name
|
||||
-
|
||||
name: rate-tx-share
|
||||
-
|
||||
name: rate-tx-max
|
||||
-
|
||||
name: rate-tx-priority
|
||||
-
|
||||
name: rate-tx-weight
|
||||
-
|
||||
name: rate-parent-node-name
|
||||
-
|
||||
name: rate-tc-bws
|
||||
-
|
||||
name: parent-dev
|
||||
nested-attributes: dl-parent-dev
|
||||
|
||||
-
|
||||
name: dl-nested-devlink
|
||||
subset-of: devlink
|
||||
attributes:
|
||||
-
|
||||
name: bus-name
|
||||
-
|
||||
name: dev-name
|
||||
-
|
||||
name: index
|
||||
-
|
||||
name: netns-id
|
||||
|
||||
operations:
|
||||
enum-model: directional
|
||||
list:
|
||||
@@ -1363,6 +1484,7 @@ operations:
|
||||
- index
|
||||
- reload-failed
|
||||
- dev-stats
|
||||
- nested-devlink
|
||||
dump:
|
||||
reply: *get-reply
|
||||
|
||||
@@ -1388,13 +1510,12 @@ operations:
|
||||
request:
|
||||
attributes: *dev-id-attrs
|
||||
reply:
|
||||
value: 3 # due to a bug, port dump returns DEVLINK_CMD_NEW
|
||||
attributes: *port-id-attrs
|
||||
|
||||
-
|
||||
name: port-set
|
||||
doc: Set devlink port instances.
|
||||
attribute-set: devlink
|
||||
attribute-set: dl-port-set
|
||||
dont-validate: [strict]
|
||||
flags: [admin-perm]
|
||||
do:
|
||||
@@ -1901,7 +2022,7 @@ operations:
|
||||
post: devlink-nl-post-doit
|
||||
request:
|
||||
value: 42
|
||||
attributes: ®ion-id-attrs
|
||||
attributes:
|
||||
- bus-name
|
||||
- dev-name
|
||||
- index
|
||||
@@ -1909,7 +2030,15 @@ operations:
|
||||
- region-name
|
||||
reply: ®ion-get-reply
|
||||
value: 42
|
||||
attributes: *region-id-attrs
|
||||
attributes:
|
||||
- bus-name
|
||||
- dev-name
|
||||
- index
|
||||
- port-index
|
||||
- region-name
|
||||
- region-size
|
||||
- region-max-snapshots
|
||||
- region-snapshots
|
||||
dump:
|
||||
request:
|
||||
attributes: *dev-id-attrs
|
||||
@@ -1975,6 +2104,7 @@ operations:
|
||||
- index
|
||||
- port-index
|
||||
- region-name
|
||||
- region-chunks
|
||||
|
||||
-
|
||||
name: port-param-get
|
||||
@@ -2305,7 +2435,7 @@ operations:
|
||||
-
|
||||
name: rate-set
|
||||
doc: Set rate instances.
|
||||
attribute-set: devlink
|
||||
attribute-set: dl-rate-set
|
||||
dont-validate: [strict]
|
||||
flags: [admin-perm]
|
||||
do:
|
||||
@@ -2316,6 +2446,7 @@ operations:
|
||||
- bus-name
|
||||
- dev-name
|
||||
- index
|
||||
- port-index
|
||||
- rate-node-name
|
||||
- rate-tx-share
|
||||
- rate-tx-max
|
||||
@@ -2328,7 +2459,7 @@ operations:
|
||||
-
|
||||
name: rate-new
|
||||
doc: Create rate instances.
|
||||
attribute-set: devlink
|
||||
attribute-set: dl-rate-set
|
||||
dont-validate: [strict]
|
||||
flags: [admin-perm]
|
||||
do:
|
||||
@@ -2374,14 +2505,22 @@ operations:
|
||||
post: devlink-nl-post-doit
|
||||
request:
|
||||
value: 78
|
||||
attributes: &linecard-id-attrs
|
||||
attributes:
|
||||
- bus-name
|
||||
- dev-name
|
||||
- index
|
||||
- linecard-index
|
||||
reply: &linecard-get-reply
|
||||
value: 80
|
||||
attributes: *linecard-id-attrs
|
||||
attributes:
|
||||
- bus-name
|
||||
- dev-name
|
||||
- index
|
||||
- linecard-index
|
||||
- linecard-state
|
||||
- linecard-type
|
||||
- linecard-supported-types
|
||||
- nested-devlink
|
||||
dump:
|
||||
request:
|
||||
attributes: *dev-id-attrs
|
||||
|
||||
@@ -31,8 +31,7 @@ definitions:
|
||||
-
|
||||
name: unlocked
|
||||
doc: |
|
||||
dpll was not yet locked to any valid input (or forced by setting
|
||||
DPLL_A_MODE to DPLL_MODE_DETACHED)
|
||||
dpll was not yet locked to any valid input
|
||||
value: 1
|
||||
-
|
||||
name: locked
|
||||
@@ -550,6 +549,8 @@ attribute-sets:
|
||||
attributes:
|
||||
-
|
||||
name: parent-id
|
||||
-
|
||||
name: pad
|
||||
-
|
||||
name: direction
|
||||
-
|
||||
@@ -576,6 +577,8 @@ attribute-sets:
|
||||
name: frequency-range
|
||||
subset-of: pin
|
||||
attributes:
|
||||
-
|
||||
name: pad
|
||||
-
|
||||
name: frequency-min
|
||||
-
|
||||
@@ -632,6 +635,7 @@ operations:
|
||||
- mode-supported
|
||||
- lock-status
|
||||
- lock-status-error
|
||||
- clock-quality-level
|
||||
- temp
|
||||
- clock-id
|
||||
- type
|
||||
@@ -700,11 +704,9 @@ operations:
|
||||
doc: |
|
||||
Get list of pins and its attributes.
|
||||
|
||||
- dump request without any attributes given - list all the pins in the
|
||||
system
|
||||
- dump request with target dpll - list all the pins registered with
|
||||
a given dpll device
|
||||
- do request with target dpll and target pin - single pin attributes
|
||||
- dump request - list all the registered, available pins in the
|
||||
system, the request takes no attributes
|
||||
- do request with target pin - single pin attributes
|
||||
attribute-set: pin
|
||||
flags: [admin-perm]
|
||||
|
||||
@@ -741,9 +743,6 @@ operations:
|
||||
- measured-frequency
|
||||
|
||||
dump:
|
||||
request:
|
||||
attributes:
|
||||
- id
|
||||
reply: *pin-attrs
|
||||
|
||||
-
|
||||
@@ -759,9 +758,6 @@ operations:
|
||||
attributes:
|
||||
- id
|
||||
- frequency
|
||||
- direction
|
||||
- prio
|
||||
- state
|
||||
- parent-device
|
||||
- parent-pin
|
||||
- phase-adjust
|
||||
|
||||
@@ -47,6 +47,7 @@ definitions:
|
||||
-
|
||||
name: started
|
||||
doc: The firmware flashing process has started.
|
||||
value: 1
|
||||
-
|
||||
name: in-progress
|
||||
doc: The firmware flashing process is in progress.
|
||||
@@ -89,6 +90,7 @@ definitions:
|
||||
-
|
||||
name: power-not-available
|
||||
doc: Group of power_not_available states
|
||||
value: 8
|
||||
-
|
||||
name: short-detected
|
||||
doc: Group of short_detected states
|
||||
@@ -97,7 +99,7 @@ definitions:
|
||||
enum-name: phy-upstream
|
||||
header: linux/ethtool.h
|
||||
type: enum
|
||||
name-prefix: phy-upstream
|
||||
name-prefix: phy-upstream-
|
||||
entries: [mac, phy]
|
||||
-
|
||||
name: tcp-data-split
|
||||
@@ -210,6 +212,11 @@ definitions:
|
||||
-
|
||||
name: discard
|
||||
value: 31
|
||||
-
|
||||
name: port-type
|
||||
doc: type of physical connector
|
||||
type: enum
|
||||
entries: [mdi, sfp]
|
||||
|
||||
attribute-sets:
|
||||
-
|
||||
@@ -1905,6 +1912,32 @@ attribute-sets:
|
||||
name: link
|
||||
type: nest
|
||||
nested-attributes: mse-snapshot
|
||||
-
|
||||
name: port
|
||||
attr-cnt-name: --ethtool-a-port-cnt
|
||||
attributes:
|
||||
-
|
||||
name: header
|
||||
type: nest
|
||||
nested-attributes: header
|
||||
-
|
||||
name: id
|
||||
type: u32
|
||||
-
|
||||
name: supported-modes
|
||||
type: nest
|
||||
nested-attributes: bitset
|
||||
-
|
||||
name: supported-interfaces
|
||||
type: nest
|
||||
nested-attributes: bitset
|
||||
-
|
||||
name: type
|
||||
type: u32
|
||||
enum: port-type
|
||||
-
|
||||
name: upstream-port
|
||||
type: u32
|
||||
|
||||
operations:
|
||||
enum-model: directional
|
||||
@@ -2859,6 +2892,30 @@ operations:
|
||||
- worst-channel
|
||||
- link
|
||||
dump: *mse-get-op
|
||||
-
|
||||
name: port-get
|
||||
doc: Get ports attached to an interface
|
||||
|
||||
attribute-set: port
|
||||
|
||||
do:
|
||||
request:
|
||||
attributes:
|
||||
- header
|
||||
- id
|
||||
reply: &port-get-op-reply
|
||||
attributes:
|
||||
- header
|
||||
- id
|
||||
- supported-modes
|
||||
- supported-interfaces
|
||||
- type
|
||||
- upstream-port
|
||||
dump:
|
||||
request:
|
||||
attributes:
|
||||
- header
|
||||
reply: *port-get-op-reply
|
||||
|
||||
mcast-groups:
|
||||
list:
|
||||
|
||||
@@ -44,12 +44,14 @@ attribute-sets:
|
||||
-
|
||||
name: type
|
||||
type: u8
|
||||
enum: encap-type
|
||||
-
|
||||
name: remcsum-nopartial
|
||||
type: flag
|
||||
-
|
||||
name: local-v4
|
||||
type: u32
|
||||
byte-order: big-endian
|
||||
-
|
||||
name: local-v6
|
||||
type: binary
|
||||
@@ -58,6 +60,7 @@ attribute-sets:
|
||||
-
|
||||
name: peer-v4
|
||||
type: u32
|
||||
byte-order: big-endian
|
||||
-
|
||||
name: peer-v6
|
||||
type: binary
|
||||
@@ -90,6 +93,7 @@ operations:
|
||||
request: &all_attrs
|
||||
attributes:
|
||||
- port
|
||||
- af
|
||||
- ipproto
|
||||
- type
|
||||
- remcsum-nopartial
|
||||
|
||||
@@ -0,0 +1,196 @@
|
||||
# SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
|
||||
---
|
||||
name: gtp
|
||||
|
||||
protocol: genetlink-legacy
|
||||
|
||||
doc: |
|
||||
GPRS Tunnelling Protocol, user plane (GTP-U).
|
||||
|
||||
The gtp netdevice encapsulates and decapsulates user plane packets in
|
||||
GTP-U tunnels (GTPv0 and GTPv1-U, see 3GPP TS 29.060 and TS 29.281).
|
||||
This family manages the PDP contexts that describe the tunnels and
|
||||
triggers GTP-U echo requests. It is driven by user space control planes
|
||||
such as those built on libgtpnl.
|
||||
|
||||
The kernel registers the family with version 0, which the
|
||||
genetlink-legacy schema cannot express.
|
||||
|
||||
The notifications multicast on the "gtp" group are not described: PDP
|
||||
context additions and deletions, and GTP-U echo responses, reuse the
|
||||
NEWPDP, DELPDP and ECHOREQ command values of the requests.
|
||||
|
||||
kernel-policy: global
|
||||
|
||||
definitions:
|
||||
-
|
||||
type: enum
|
||||
name: version
|
||||
name-prefix: gtp-
|
||||
enum-name: gtp-version
|
||||
header: linux/gtp.h
|
||||
entries: [v0, v1]
|
||||
|
||||
attribute-sets:
|
||||
-
|
||||
name: gtp
|
||||
name-prefix: gtpa-
|
||||
attributes:
|
||||
-
|
||||
name: link
|
||||
type: u32
|
||||
doc: ifindex of the gtp netdevice the context is attached to.
|
||||
-
|
||||
name: version
|
||||
type: u32
|
||||
enum: version
|
||||
doc: GTP version of the context, GTPv0 or GTPv1-U.
|
||||
-
|
||||
name: tid
|
||||
type: u64
|
||||
doc: Tunnel identifier, GTPv0 only.
|
||||
-
|
||||
name: peer-address
|
||||
type: u32
|
||||
byte-order: big-endian
|
||||
display-hint: ipv4
|
||||
doc: |
|
||||
IPv4 address of the remote GSN peer (GGSN or SGSN). Also known
|
||||
as GTPA_SGSN_ADDRESS, kept for legacy user space.
|
||||
-
|
||||
name: ms-address
|
||||
type: u32
|
||||
byte-order: big-endian
|
||||
display-hint: ipv4
|
||||
doc: IPv4 address of the mobile subscriber served by the context.
|
||||
-
|
||||
name: flow
|
||||
type: u16
|
||||
doc: Flow label, GTPv0 only.
|
||||
-
|
||||
name: net-ns-fd
|
||||
type: u32
|
||||
doc: File descriptor of the network namespace of the gtp netdevice.
|
||||
-
|
||||
name: i-tei
|
||||
type: u32
|
||||
doc: Ingress Tunnel Endpoint Identifier, GTPv1-U only.
|
||||
-
|
||||
name: o-tei
|
||||
type: u32
|
||||
doc: Egress Tunnel Endpoint Identifier, GTPv1-U only.
|
||||
-
|
||||
name: pad
|
||||
type: pad
|
||||
-
|
||||
name: peer-addr6
|
||||
type: binary
|
||||
checks:
|
||||
min-len: 16
|
||||
byte-order: big-endian
|
||||
display-hint: ipv6
|
||||
doc: IPv6 address of the remote GSN peer (GGSN or SGSN).
|
||||
-
|
||||
name: ms-addr6
|
||||
type: binary
|
||||
checks:
|
||||
min-len: 16
|
||||
byte-order: big-endian
|
||||
display-hint: ipv6
|
||||
doc: |
|
||||
IPv6 prefix of the mobile subscriber served by the context: a /64
|
||||
prefix, with the lower 64 bits set to zero.
|
||||
-
|
||||
name: family
|
||||
type: u8
|
||||
doc: |
|
||||
Address family (AF_INET or AF_INET6) of ms-address or ms-addr6,
|
||||
AF_INET when absent. The peer address uses the family of the
|
||||
tunnel socket.
|
||||
|
||||
operations:
|
||||
list:
|
||||
-
|
||||
name: newpdp
|
||||
doc: Create or update a PDP context.
|
||||
attribute-set: gtp
|
||||
value: 0
|
||||
dont-validate: [strict, dump]
|
||||
flags: [admin-perm]
|
||||
do:
|
||||
request: &pdp-attrs
|
||||
attributes:
|
||||
- link
|
||||
- version
|
||||
- tid
|
||||
- peer-address
|
||||
- peer-addr6
|
||||
- ms-address
|
||||
- ms-addr6
|
||||
- flow
|
||||
- i-tei
|
||||
- o-tei
|
||||
- family
|
||||
- net-ns-fd
|
||||
-
|
||||
name: delpdp
|
||||
doc: Delete a PDP context.
|
||||
attribute-set: gtp
|
||||
dont-validate: [strict, dump]
|
||||
flags: [admin-perm]
|
||||
do:
|
||||
request: &pdp-find
|
||||
attributes:
|
||||
- link
|
||||
- version
|
||||
- tid
|
||||
- ms-address
|
||||
- ms-addr6
|
||||
- i-tei
|
||||
- family
|
||||
- net-ns-fd
|
||||
-
|
||||
name: getpdp
|
||||
doc: Get or dump one or more PDP contexts.
|
||||
attribute-set: gtp
|
||||
dont-validate: [strict, dump]
|
||||
flags: [admin-perm]
|
||||
do:
|
||||
request: *pdp-find
|
||||
reply: &pdp-reply
|
||||
attributes:
|
||||
- link
|
||||
- version
|
||||
- tid
|
||||
- peer-address
|
||||
- peer-addr6
|
||||
- ms-address
|
||||
- ms-addr6
|
||||
- flow
|
||||
- i-tei
|
||||
- o-tei
|
||||
- family
|
||||
dump:
|
||||
reply: *pdp-reply
|
||||
-
|
||||
name: echoreq
|
||||
doc: |
|
||||
Send a GTP-U echo request to a peer. ms-address is not a mobile
|
||||
subscriber address here, but the local IPv4 address used as source
|
||||
of the request.
|
||||
attribute-set: gtp
|
||||
dont-validate: [strict, dump]
|
||||
flags: [admin-perm]
|
||||
do:
|
||||
request:
|
||||
attributes:
|
||||
- link
|
||||
- version
|
||||
- peer-address
|
||||
- ms-address
|
||||
- net-ns-fd
|
||||
|
||||
mcast-groups:
|
||||
list:
|
||||
-
|
||||
name: gtp
|
||||
@@ -22,7 +22,8 @@ definitions:
|
||||
type: enum
|
||||
name: handler-class
|
||||
value-start: 0
|
||||
entries: [none, tlshd, max]
|
||||
entries: [none, tlshd]
|
||||
render-max: true
|
||||
-
|
||||
type: enum
|
||||
name: msg-type
|
||||
@@ -67,7 +68,7 @@ attribute-sets:
|
||||
enum: auth
|
||||
-
|
||||
name: peer-identity
|
||||
type: u32
|
||||
type: s32
|
||||
multi-attr: true
|
||||
-
|
||||
name: certificate
|
||||
@@ -79,7 +80,7 @@ attribute-sets:
|
||||
type: string
|
||||
-
|
||||
name: keyring
|
||||
type: u32
|
||||
type: s32
|
||||
-
|
||||
name: done
|
||||
attributes:
|
||||
@@ -93,7 +94,7 @@ attribute-sets:
|
||||
type: s32
|
||||
-
|
||||
name: remote-auth
|
||||
type: u32
|
||||
type: s32
|
||||
multi-attr: true
|
||||
|
||||
operations:
|
||||
|
||||
@@ -80,7 +80,7 @@ definitions:
|
||||
-
|
||||
name: tx-checksum
|
||||
doc: >-
|
||||
L3 checksum HW offload is supported by the driver.
|
||||
L4 checksum HW offload is supported by the driver.
|
||||
-
|
||||
name: tx-launch-time-fifo
|
||||
doc: >-
|
||||
@@ -118,7 +118,8 @@ attribute-sets:
|
||||
enum: xdp-act
|
||||
-
|
||||
name: xdp-zc-max-segs
|
||||
doc: max fragment count supported by ZC driver
|
||||
doc: max buffer count per packet supported by ZC driver,
|
||||
including the head buffer
|
||||
type: u32
|
||||
checks:
|
||||
min: 1
|
||||
|
||||
@@ -97,7 +97,7 @@ definitions:
|
||||
- unexpected-frame
|
||||
- probe-client
|
||||
- register-beacons
|
||||
- unexpected-4-addr-frame
|
||||
- unexpected-4addr-frame
|
||||
- set-noack-map
|
||||
- ch-switch-notify
|
||||
- start-p2p-device
|
||||
@@ -202,7 +202,7 @@ definitions:
|
||||
- tdls-channel-switch
|
||||
- scan-random-mac-addr
|
||||
- sched-scan-random-mac-addr
|
||||
- no-random-mac-addr
|
||||
- nd-random-mac-addr
|
||||
-
|
||||
name: channel-type
|
||||
type: enum
|
||||
|
||||
@@ -42,6 +42,16 @@ definitions:
|
||||
- bitfield32
|
||||
- sint
|
||||
- uint
|
||||
-
|
||||
name: policy-byte-order
|
||||
doc: |
|
||||
Byte order of an integer attribute. Zero is left unused so that it
|
||||
can be taken to mean host byte order.
|
||||
enum-name: netlink-policy-byte-order
|
||||
type: enum
|
||||
value-start: 1
|
||||
entries:
|
||||
- big-endian
|
||||
|
||||
attribute-sets:
|
||||
-
|
||||
@@ -146,12 +156,17 @@ attribute-sets:
|
||||
-
|
||||
name: bitfield32-mask
|
||||
type: u32
|
||||
-
|
||||
name: pad
|
||||
type: pad
|
||||
-
|
||||
name: mask
|
||||
type: u64
|
||||
-
|
||||
name: pad
|
||||
type: pad
|
||||
name: byte-order
|
||||
doc: Byte order of the attribute, absent means host byte order.
|
||||
type: u32
|
||||
enum: policy-byte-order
|
||||
-
|
||||
name: op-policy-attrs
|
||||
name-prefix: ctrl-attr-policy-
|
||||
@@ -176,6 +191,7 @@ operations:
|
||||
request:
|
||||
value: 3
|
||||
attributes:
|
||||
- family-id
|
||||
- family-name
|
||||
reply: &all-attrs
|
||||
value: 1
|
||||
|
||||
@@ -38,6 +38,8 @@ attribute-sets:
|
||||
doc: |
|
||||
ifindex of the main netdevice linked to the PSP device,
|
||||
or the ifindex to associate with the PSP device.
|
||||
Only reported to the network namespace the main netdevice
|
||||
lives in, an ifindex has no meaning outside of it.
|
||||
type: u32
|
||||
-
|
||||
name: psp-versions-cap
|
||||
|
||||
@@ -77,6 +77,8 @@ definitions:
|
||||
name: mcautojoin
|
||||
-
|
||||
name: stable-privacy
|
||||
-
|
||||
name: global
|
||||
|
||||
attribute-sets:
|
||||
-
|
||||
@@ -119,7 +121,7 @@ attribute-sets:
|
||||
type: u32
|
||||
-
|
||||
name: target-netnsid
|
||||
type: binary
|
||||
type: s32
|
||||
-
|
||||
name: proto
|
||||
type: u8
|
||||
@@ -168,7 +170,17 @@ operations:
|
||||
attributes: *ifaddr-all
|
||||
-
|
||||
name: getmulticast
|
||||
doc: Get / dump IPv4/IPv6 multicast addresses.
|
||||
doc: |
|
||||
Get / dump multicast addresses. ifa-family must select the address
|
||||
family: AF_INET or AF_INET6 for the IP multicast groups joined on
|
||||
a device, AF_PACKET for the link-layer multicast addresses in the
|
||||
device filter. Link-layer entries added explicitly, e.g. with
|
||||
SIOCADDMULTI or "bridge fdb add ... self", rather than by a
|
||||
protocol join are reported with the global flag set. For AF_PACKET
|
||||
a non-zero ifa-index restricts the dump to that device and
|
||||
ifa-prefixlen, ifa-flags and ifa-scope must be zero, AF_INET and
|
||||
AF_INET6 apply this and target-netnsid with NETLINK_GET_STRICT_CHK
|
||||
only.
|
||||
attribute-set: addr-attrs
|
||||
fixed-header: ifaddrmsg
|
||||
do:
|
||||
@@ -181,10 +193,13 @@ operations:
|
||||
- multicast
|
||||
- mc-users
|
||||
- cacheinfo
|
||||
- flags
|
||||
- target-netnsid
|
||||
dump:
|
||||
request:
|
||||
value: 58
|
||||
attributes: []
|
||||
attributes:
|
||||
- target-netnsid
|
||||
reply:
|
||||
value: 58
|
||||
attributes: *mcaddr-attrs
|
||||
|
||||
@@ -25,17 +25,17 @@ definitions:
|
||||
-
|
||||
name: loopback
|
||||
-
|
||||
name: point-to-point
|
||||
name: pointopoint
|
||||
-
|
||||
name: no-trailers
|
||||
name: notrailers
|
||||
-
|
||||
name: running
|
||||
-
|
||||
name: no-arp
|
||||
name: noarp
|
||||
-
|
||||
name: promisc
|
||||
-
|
||||
name: all-multi
|
||||
name: allmulti
|
||||
-
|
||||
name: master
|
||||
-
|
||||
@@ -45,7 +45,7 @@ definitions:
|
||||
-
|
||||
name: portsel
|
||||
-
|
||||
name: auto-media
|
||||
name: automedia
|
||||
-
|
||||
name: dynamic
|
||||
-
|
||||
@@ -309,6 +309,7 @@ definitions:
|
||||
entries:
|
||||
-
|
||||
name: forwarding
|
||||
value: 1
|
||||
-
|
||||
name: mc-forwarding
|
||||
-
|
||||
@@ -494,6 +495,10 @@ definitions:
|
||||
name: ndisc-evict-nocarrier
|
||||
-
|
||||
name: accept-untracked-na
|
||||
-
|
||||
name: accept-ra-min-lft
|
||||
-
|
||||
name: force-forwarding
|
||||
-
|
||||
name: ifla-icmp6-stats
|
||||
enum-name:
|
||||
@@ -527,11 +532,21 @@ definitions:
|
||||
-
|
||||
name: indelivers
|
||||
-
|
||||
name: outforwdatagrams
|
||||
name: noectpkts
|
||||
-
|
||||
name: ect1pkts
|
||||
-
|
||||
name: ect0pkts
|
||||
-
|
||||
name: cepkts
|
||||
-
|
||||
name: outrequests
|
||||
-
|
||||
name: outpkts
|
||||
-
|
||||
name: outoctets
|
||||
-
|
||||
name: outforwdatagrams
|
||||
-
|
||||
name: inhdrerrors
|
||||
-
|
||||
@@ -582,14 +597,6 @@ definitions:
|
||||
name: outbcastoctets
|
||||
-
|
||||
name: csumerrors
|
||||
-
|
||||
name: noectpkts
|
||||
-
|
||||
name: ect1-pkts
|
||||
-
|
||||
name: ect0-pkts
|
||||
-
|
||||
name: cepkts
|
||||
-
|
||||
name: reasm-overlaps
|
||||
- name: br-boolopt-multi
|
||||
@@ -835,7 +842,7 @@ definitions:
|
||||
-
|
||||
name: ovpn-mode
|
||||
enum-name: ovpn-mode
|
||||
name-prefix: ovpn-mode
|
||||
name-prefix: ovpn-mode-
|
||||
type: enum
|
||||
entries:
|
||||
- p2p
|
||||
@@ -1087,6 +1094,10 @@ attribute-sets:
|
||||
-
|
||||
name: tailroom
|
||||
type: u16
|
||||
-
|
||||
name: pacing-offload
|
||||
type: u32
|
||||
doc: Enable EDT pacing offload (0 - disabled, 1 - enabled).
|
||||
-
|
||||
name: prop-list-link-attrs
|
||||
subset-of: link-attrs
|
||||
@@ -2220,7 +2231,7 @@ attribute-sets:
|
||||
name: conf
|
||||
type: binary
|
||||
sub-type: u32
|
||||
doc: u32 indexed by ipv6-devconf - 1 on output, on input it's a nest
|
||||
doc: u32 indexed by ipv6-devconf on output, input is not yet implemented
|
||||
-
|
||||
name: stats
|
||||
type: binary
|
||||
@@ -2555,6 +2566,7 @@ operations:
|
||||
- devlink-port
|
||||
- gso-ipv4-max-size
|
||||
- gro-ipv4-max-size
|
||||
- pacing-offload
|
||||
dump:
|
||||
request:
|
||||
value: 18
|
||||
|
||||
@@ -342,7 +342,7 @@ attribute-sets:
|
||||
name: interval-probe-time-ms
|
||||
type: u64
|
||||
checks:
|
||||
min: 1
|
||||
min: 1000
|
||||
max: 86400000
|
||||
|
||||
operations:
|
||||
|
||||
@@ -0,0 +1,761 @@
|
||||
# SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
|
||||
---
|
||||
name: rt-nexthop
|
||||
protocol: netlink-raw
|
||||
uapi-header: linux/nexthop.h
|
||||
protonum: 0
|
||||
|
||||
doc: >-
|
||||
Nexthop object management over rtnetlink.
|
||||
|
||||
definitions:
|
||||
-
|
||||
name: nhmsg
|
||||
type: struct
|
||||
members:
|
||||
-
|
||||
name: nh-family
|
||||
type: u8
|
||||
-
|
||||
name: nh-scope
|
||||
type: u8
|
||||
-
|
||||
name: nh-protocol
|
||||
type: u8
|
||||
-
|
||||
name: resvd
|
||||
type: pad
|
||||
len: 1
|
||||
-
|
||||
name: nh-flags
|
||||
type: u32
|
||||
enum: rtnh-f
|
||||
-
|
||||
name: rtnh-f
|
||||
type: flags
|
||||
name-prefix: rtnh-f-
|
||||
enum-name:
|
||||
entries:
|
||||
- dead
|
||||
- pervasive
|
||||
- onlink
|
||||
- offload
|
||||
- linkdown
|
||||
- unresolved
|
||||
- trap
|
||||
-
|
||||
name: nexthop-grp
|
||||
type: struct
|
||||
members:
|
||||
-
|
||||
name: id
|
||||
type: u32
|
||||
-
|
||||
name: weight
|
||||
type: u8
|
||||
-
|
||||
name: weight-high
|
||||
type: u8
|
||||
-
|
||||
name: resvd2
|
||||
type: pad
|
||||
len: 2
|
||||
-
|
||||
name: nexthop-grp-type
|
||||
type: enum
|
||||
name-prefix: nexthop-grp-type-
|
||||
enum-name:
|
||||
entries:
|
||||
- mpath
|
||||
- res
|
||||
-
|
||||
name: encap-type
|
||||
type: enum
|
||||
name-prefix: lwtunnel-encap-
|
||||
enum-name:
|
||||
entries:
|
||||
- none
|
||||
- mpls
|
||||
- ip
|
||||
- ila
|
||||
- ip6
|
||||
- seg6
|
||||
- bpf
|
||||
- seg6-local
|
||||
- rpl
|
||||
- ioam6
|
||||
- xfrm
|
||||
-
|
||||
name: seg6-local-actions
|
||||
type: enum
|
||||
name-prefix: seg6-local-action-
|
||||
enum-name:
|
||||
entries:
|
||||
- unspec
|
||||
- end
|
||||
- end-x
|
||||
- end-t
|
||||
- end-dx2
|
||||
- end-dx6
|
||||
- end-dx4
|
||||
- end-dt6
|
||||
- end-dt4
|
||||
- end-b6
|
||||
- end-b6-encap
|
||||
- end-bm
|
||||
- end-s
|
||||
- end-as
|
||||
- end-am
|
||||
- end-bpf
|
||||
- end-dt46
|
||||
-
|
||||
name: seg6-local-flv-ops
|
||||
type: enum
|
||||
name-prefix: seg6-local-flv-op-
|
||||
enum-name:
|
||||
entries:
|
||||
-
|
||||
name: unspec
|
||||
-
|
||||
name: psp
|
||||
-
|
||||
name: usp
|
||||
-
|
||||
name: usd
|
||||
-
|
||||
name: next-csid
|
||||
-
|
||||
name: nha-op-flag
|
||||
type: flags
|
||||
name-prefix: nha-op-flag-
|
||||
enum-name:
|
||||
entries:
|
||||
- dump-stats
|
||||
- dump-hw-stats
|
||||
-
|
||||
name: nha-op-flag-resp-grp-resvd-0
|
||||
type: const
|
||||
value: 2147483648
|
||||
|
||||
sub-messages:
|
||||
-
|
||||
name: encap-data
|
||||
formats:
|
||||
-
|
||||
value: mpls
|
||||
attribute-set: mpls-iptunnel
|
||||
-
|
||||
value: ip
|
||||
attribute-set: lwtunnel-ip
|
||||
-
|
||||
value: ila
|
||||
attribute-set: ila-attrs
|
||||
-
|
||||
value: ip6
|
||||
attribute-set: lwtunnel-ip6
|
||||
-
|
||||
value: seg6
|
||||
attribute-set: seg6-iptunnel
|
||||
-
|
||||
value: bpf
|
||||
attribute-set: lwt-bpf
|
||||
-
|
||||
value: seg6-local
|
||||
attribute-set: seg6-local
|
||||
-
|
||||
value: rpl
|
||||
attribute-set: rpl-iptunnel
|
||||
-
|
||||
value: ioam6
|
||||
attribute-set: ioam6-iptunnel
|
||||
-
|
||||
value: xfrm
|
||||
attribute-set: lwt-xfrm
|
||||
|
||||
attribute-sets:
|
||||
-
|
||||
name: nexthop-attrs
|
||||
name-prefix: nha-
|
||||
attributes:
|
||||
-
|
||||
name: id
|
||||
type: u32
|
||||
-
|
||||
name: group
|
||||
type: binary # array of struct: nexthop-grp
|
||||
-
|
||||
name: group-type
|
||||
type: u16
|
||||
enum: nexthop-grp-type
|
||||
-
|
||||
name: blackhole
|
||||
type: flag
|
||||
-
|
||||
name: oif
|
||||
type: u32
|
||||
-
|
||||
name: gateway
|
||||
type: binary
|
||||
display-hint: ipv4-or-v6
|
||||
-
|
||||
name: encap-type
|
||||
type: u16
|
||||
enum: encap-type
|
||||
-
|
||||
name: encap
|
||||
type: sub-message
|
||||
sub-message: encap-data
|
||||
selector: encap-type
|
||||
-
|
||||
name: groups
|
||||
type: flag
|
||||
-
|
||||
name: master
|
||||
type: u32
|
||||
-
|
||||
name: fdb
|
||||
type: flag
|
||||
-
|
||||
name: res-group
|
||||
type: nest
|
||||
nested-attributes: res-group-attrs
|
||||
-
|
||||
name: res-bucket
|
||||
type: nest
|
||||
nested-attributes: res-bucket-attrs
|
||||
-
|
||||
name: op-flags
|
||||
type: u32
|
||||
checks:
|
||||
flags-mask: nha-op-flag
|
||||
-
|
||||
name: group-stats
|
||||
type: nest
|
||||
nested-attributes: group-stats-attrs
|
||||
-
|
||||
name: hw-stats-enable
|
||||
type: u32
|
||||
checks:
|
||||
max: 1
|
||||
-
|
||||
name: hw-stats-used
|
||||
type: u32
|
||||
-
|
||||
name: dst-port
|
||||
type: u16
|
||||
byte-order: big-endian
|
||||
checks:
|
||||
min: 1
|
||||
-
|
||||
name: mpls-iptunnel
|
||||
name-prefix: mpls-iptunnel-
|
||||
header: linux/mpls_iptunnel.h
|
||||
attributes:
|
||||
-
|
||||
name: dst
|
||||
type: binary
|
||||
-
|
||||
name: ttl
|
||||
type: u8
|
||||
-
|
||||
name: lwtunnel-ip
|
||||
name-prefix: lwtunnel-ip-
|
||||
header: linux/lwtunnel.h
|
||||
attributes:
|
||||
-
|
||||
name: id
|
||||
type: u64
|
||||
byte-order: big-endian
|
||||
-
|
||||
name: dst
|
||||
type: u32
|
||||
byte-order: big-endian
|
||||
display-hint: ipv4
|
||||
-
|
||||
name: src
|
||||
type: u32
|
||||
byte-order: big-endian
|
||||
display-hint: ipv4
|
||||
-
|
||||
name: ttl
|
||||
type: u8
|
||||
-
|
||||
name: tos
|
||||
type: u8
|
||||
-
|
||||
name: flags
|
||||
type: u16
|
||||
byte-order: big-endian
|
||||
-
|
||||
name: pad
|
||||
type: pad
|
||||
-
|
||||
name: opts
|
||||
type: nest
|
||||
nested-attributes: lwtunnel-ip-opts
|
||||
-
|
||||
name: ila-attrs
|
||||
name-prefix: ila-attr-
|
||||
header: linux/ila.h
|
||||
attributes:
|
||||
-
|
||||
name: locator
|
||||
type: u64
|
||||
byte-order: big-endian
|
||||
-
|
||||
name: identifier
|
||||
type: u64
|
||||
-
|
||||
name: locator-match
|
||||
type: u64
|
||||
byte-order: big-endian
|
||||
-
|
||||
name: ifindex
|
||||
type: s32
|
||||
-
|
||||
name: dir
|
||||
type: u32
|
||||
-
|
||||
name: pad
|
||||
type: pad
|
||||
-
|
||||
name: csum-mode
|
||||
type: u8
|
||||
-
|
||||
name: ident-type
|
||||
type: u8
|
||||
-
|
||||
name: hook-type
|
||||
type: u8
|
||||
-
|
||||
name: lwtunnel-ip6
|
||||
name-prefix: lwtunnel-ip6-
|
||||
header: linux/lwtunnel.h
|
||||
attributes:
|
||||
-
|
||||
name: id
|
||||
type: u64
|
||||
byte-order: big-endian
|
||||
-
|
||||
name: dst
|
||||
type: binary
|
||||
display-hint: ipv6
|
||||
-
|
||||
name: src
|
||||
type: binary
|
||||
display-hint: ipv6
|
||||
-
|
||||
name: hoplimit
|
||||
type: u8
|
||||
-
|
||||
name: tc
|
||||
type: u8
|
||||
-
|
||||
name: flags
|
||||
type: u16
|
||||
byte-order: big-endian
|
||||
-
|
||||
name: pad
|
||||
type: pad
|
||||
-
|
||||
name: opts
|
||||
type: nest
|
||||
nested-attributes: lwtunnel-ip-opts
|
||||
-
|
||||
name: seg6-iptunnel
|
||||
name-prefix: seg6-iptunnel-
|
||||
header: linux/seg6_iptunnel.h
|
||||
attributes:
|
||||
-
|
||||
name: srh
|
||||
type: binary
|
||||
-
|
||||
name: src
|
||||
type: binary
|
||||
display-hint: ipv6
|
||||
-
|
||||
name: table
|
||||
type: u32
|
||||
-
|
||||
name: lwt-bpf
|
||||
name-prefix: lwt-bpf-
|
||||
header: linux/lwtunnel.h
|
||||
attributes:
|
||||
-
|
||||
name: in
|
||||
type: nest
|
||||
nested-attributes: lwt-bpf-prog
|
||||
-
|
||||
name: out
|
||||
type: nest
|
||||
nested-attributes: lwt-bpf-prog
|
||||
-
|
||||
name: xmit
|
||||
type: nest
|
||||
nested-attributes: lwt-bpf-prog
|
||||
-
|
||||
name: xmit-headroom
|
||||
type: u32
|
||||
-
|
||||
name: seg6-local
|
||||
name-prefix: seg6-local-
|
||||
header: linux/seg6_local.h
|
||||
attributes:
|
||||
-
|
||||
name: action
|
||||
type: u32
|
||||
enum: seg6-local-actions
|
||||
-
|
||||
name: srh
|
||||
type: binary
|
||||
-
|
||||
name: table
|
||||
type: u32
|
||||
-
|
||||
name: nh4
|
||||
type: u32
|
||||
byte-order: big-endian
|
||||
display-hint: ipv4
|
||||
-
|
||||
name: nh6
|
||||
type: binary
|
||||
display-hint: ipv6
|
||||
-
|
||||
name: iif
|
||||
type: u32
|
||||
-
|
||||
name: oif
|
||||
type: u32
|
||||
-
|
||||
name: bpf
|
||||
type: nest
|
||||
nested-attributes: seg6-local-bpf
|
||||
-
|
||||
name: vrftable
|
||||
type: u32
|
||||
-
|
||||
name: counters
|
||||
type: nest
|
||||
nested-attributes: seg6-local-cnt
|
||||
-
|
||||
name: flavors
|
||||
type: nest
|
||||
nested-attributes: seg6-local-flv
|
||||
-
|
||||
name: rpl-iptunnel
|
||||
name-prefix: rpl-iptunnel-
|
||||
header: linux/rpl_iptunnel.h
|
||||
attributes:
|
||||
-
|
||||
name: srh
|
||||
type: binary
|
||||
-
|
||||
name: ioam6-iptunnel
|
||||
name-prefix: ioam6-iptunnel-
|
||||
header: linux/ioam6_iptunnel.h
|
||||
attributes:
|
||||
-
|
||||
name: mode
|
||||
type: u8
|
||||
-
|
||||
name: dst
|
||||
type: binary
|
||||
display-hint: ipv6
|
||||
-
|
||||
name: trace
|
||||
type: binary
|
||||
-
|
||||
name: freq-k
|
||||
type: u32
|
||||
-
|
||||
name: freq-n
|
||||
type: u32
|
||||
-
|
||||
name: src
|
||||
type: binary
|
||||
display-hint: ipv6
|
||||
-
|
||||
name: lwt-xfrm
|
||||
name-prefix: lwt-xfrm-
|
||||
header: linux/lwtunnel.h
|
||||
attributes:
|
||||
-
|
||||
name: if-id
|
||||
type: u32
|
||||
-
|
||||
name: link
|
||||
type: u32
|
||||
-
|
||||
name: lwtunnel-ip-opts
|
||||
name-prefix: lwtunnel-ip-opts-
|
||||
attributes:
|
||||
-
|
||||
name: geneve
|
||||
type: binary
|
||||
-
|
||||
name: vxlan
|
||||
type: nest
|
||||
nested-attributes: lwtunnel-ip-opt-vxlan
|
||||
-
|
||||
name: erspan
|
||||
type: nest
|
||||
nested-attributes: lwtunnel-ip-opt-erspan
|
||||
-
|
||||
name: lwtunnel-ip-opt-vxlan
|
||||
name-prefix: lwtunnel-ip-opt-vxlan-
|
||||
attributes:
|
||||
-
|
||||
name: gbp
|
||||
type: u32
|
||||
-
|
||||
name: lwtunnel-ip-opt-erspan
|
||||
name-prefix: lwtunnel-ip-opt-erspan-
|
||||
attributes:
|
||||
-
|
||||
name: ver
|
||||
type: u8
|
||||
-
|
||||
name: index
|
||||
type: u32
|
||||
byte-order: big-endian
|
||||
-
|
||||
name: dir
|
||||
type: u8
|
||||
-
|
||||
name: hwid
|
||||
type: u8
|
||||
-
|
||||
name: lwt-bpf-prog
|
||||
name-prefix: lwt-bpf-prog-
|
||||
attributes:
|
||||
-
|
||||
name: fd
|
||||
type: u32
|
||||
-
|
||||
name: name
|
||||
type: string
|
||||
checks:
|
||||
max-len: 256
|
||||
-
|
||||
name: seg6-local-bpf
|
||||
name-prefix: seg6-local-bpf-
|
||||
attr-max-name: seg6-local-bpf-prog-max
|
||||
attributes:
|
||||
-
|
||||
name: prog
|
||||
type: u32
|
||||
-
|
||||
name: prog-name
|
||||
type: string
|
||||
checks:
|
||||
max-len: 256
|
||||
-
|
||||
name: seg6-local-cnt
|
||||
name-prefix: seg6-local-cnt-
|
||||
attributes:
|
||||
-
|
||||
name: pad
|
||||
type: pad
|
||||
-
|
||||
name: packets
|
||||
type: u64
|
||||
-
|
||||
name: bytes
|
||||
type: u64
|
||||
-
|
||||
name: errors
|
||||
type: u64
|
||||
-
|
||||
name: seg6-local-flv
|
||||
name-prefix: seg6-local-flv-
|
||||
attributes:
|
||||
-
|
||||
name: operation
|
||||
type: u32
|
||||
enum: seg6-local-flv-ops
|
||||
enum-as-flags: true
|
||||
-
|
||||
name: lcblock-bits
|
||||
type: u8
|
||||
-
|
||||
name: lcnode-fn-bits
|
||||
type: u8
|
||||
-
|
||||
name: res-group-attrs
|
||||
name-prefix: nha-res-group-
|
||||
attributes:
|
||||
-
|
||||
name: pad
|
||||
type: pad
|
||||
value: 0
|
||||
-
|
||||
name: buckets
|
||||
type: u16
|
||||
-
|
||||
name: idle-timer
|
||||
type: u32
|
||||
-
|
||||
name: unbalanced-timer
|
||||
type: u32
|
||||
-
|
||||
name: unbalanced-time
|
||||
type: u64
|
||||
-
|
||||
name: res-bucket-attrs
|
||||
name-prefix: nha-res-bucket-
|
||||
attributes:
|
||||
-
|
||||
name: pad
|
||||
type: pad
|
||||
value: 0
|
||||
-
|
||||
name: index
|
||||
type: u16
|
||||
-
|
||||
name: idle-time
|
||||
type: u64
|
||||
-
|
||||
name: nh-id
|
||||
type: u32
|
||||
-
|
||||
name: group-stats-attrs
|
||||
name-prefix: nha-group-stats-
|
||||
attributes:
|
||||
-
|
||||
name: entry
|
||||
type: nest
|
||||
nested-attributes: group-stats-entry-attrs
|
||||
multi-attr: true
|
||||
-
|
||||
name: group-stats-entry-attrs
|
||||
name-prefix: nha-group-stats-entry-
|
||||
attributes:
|
||||
-
|
||||
name: id
|
||||
type: u32
|
||||
-
|
||||
name: packets
|
||||
type: uint
|
||||
-
|
||||
name: packets-hw
|
||||
type: uint
|
||||
|
||||
operations:
|
||||
enum-model: directional
|
||||
fixed-header: nhmsg
|
||||
name-prefix: rtm-
|
||||
list:
|
||||
-
|
||||
name: newnexthop
|
||||
doc: Add new nexthop entry
|
||||
attribute-set: nexthop-attrs
|
||||
do:
|
||||
request:
|
||||
value: 104
|
||||
attributes:
|
||||
- id
|
||||
- group
|
||||
- group-type
|
||||
- blackhole
|
||||
- oif
|
||||
- gateway
|
||||
- encap-type
|
||||
- encap
|
||||
- fdb
|
||||
- res-group
|
||||
- hw-stats-enable
|
||||
- dst-port
|
||||
-
|
||||
name: delnexthop
|
||||
doc: Delete nexthop with given id.
|
||||
attribute-set: nexthop-attrs
|
||||
do:
|
||||
request:
|
||||
value: 105
|
||||
attributes:
|
||||
- id
|
||||
-
|
||||
name: getnexthop
|
||||
doc: Get or dump nexthop entries
|
||||
attribute-set: nexthop-attrs
|
||||
do:
|
||||
request:
|
||||
value: 106
|
||||
attributes:
|
||||
- id
|
||||
- op-flags
|
||||
reply:
|
||||
value: 104
|
||||
attributes: &nexthop-all-attrs
|
||||
- id
|
||||
- group
|
||||
- group-type
|
||||
- blackhole
|
||||
- oif
|
||||
- gateway
|
||||
- encap-type
|
||||
- encap
|
||||
- fdb
|
||||
- res-group
|
||||
- op-flags
|
||||
- group-stats
|
||||
- hw-stats-enable
|
||||
- hw-stats-used
|
||||
- dst-port
|
||||
dump:
|
||||
request:
|
||||
value: 106
|
||||
attributes:
|
||||
- oif
|
||||
- groups
|
||||
- master
|
||||
- fdb
|
||||
- op-flags
|
||||
reply:
|
||||
value: 104
|
||||
attributes: *nexthop-all-attrs
|
||||
-
|
||||
name: newnexthop-ntf
|
||||
doc: Notification about a created nexthop.
|
||||
value: 104
|
||||
notify: getnexthop
|
||||
-
|
||||
name: delnexthop-ntf
|
||||
doc: Notification about a deleted nexthop.
|
||||
value: 105
|
||||
notify: getnexthop
|
||||
-
|
||||
name: getnexthopbucket
|
||||
doc: Get or dump nexthop buckets
|
||||
attribute-set: nexthop-attrs
|
||||
do:
|
||||
request:
|
||||
value: 118
|
||||
attributes: &nexthop-bucket-all-attrs
|
||||
- id
|
||||
- res-bucket
|
||||
reply:
|
||||
value: 116
|
||||
attributes: *nexthop-bucket-all-attrs
|
||||
dump:
|
||||
request:
|
||||
value: 118
|
||||
attributes:
|
||||
- id
|
||||
- oif
|
||||
- master
|
||||
- res-bucket
|
||||
reply:
|
||||
value: 116
|
||||
attributes: *nexthop-bucket-all-attrs
|
||||
-
|
||||
name: newnexthopbucket-ntf
|
||||
doc: Notification about a created nexthop bucket.
|
||||
value: 116
|
||||
notify: getnexthopbucket
|
||||
|
||||
mcast-groups:
|
||||
list:
|
||||
-
|
||||
name: rtnlgrp-nexthop
|
||||
value: 32
|
||||
@@ -99,6 +99,97 @@ definitions:
|
||||
name: ra-withdrawn
|
||||
doc: A Router Advertisement withdrew the route with a zero
|
||||
lifetime.
|
||||
-
|
||||
name: encap-type
|
||||
type: enum
|
||||
name-prefix: lwtunnel-encap-
|
||||
enum-name:
|
||||
entries:
|
||||
- none
|
||||
- mpls
|
||||
- ip
|
||||
- ila
|
||||
- ip6
|
||||
- seg6
|
||||
- bpf
|
||||
- seg6-local
|
||||
- rpl
|
||||
- ioam6
|
||||
- xfrm
|
||||
-
|
||||
name: seg6-local-actions
|
||||
type: enum
|
||||
name-prefix: seg6-local-action-
|
||||
enum-name:
|
||||
entries:
|
||||
- unspec
|
||||
- end
|
||||
- end-x
|
||||
- end-t
|
||||
- end-dx2
|
||||
- end-dx6
|
||||
- end-dx4
|
||||
- end-dt6
|
||||
- end-dt4
|
||||
- end-b6
|
||||
- end-b6-encap
|
||||
- end-bm
|
||||
- end-s
|
||||
- end-as
|
||||
- end-am
|
||||
- end-bpf
|
||||
- end-dt46
|
||||
-
|
||||
name: seg6-local-flv-ops
|
||||
type: enum
|
||||
name-prefix: seg6-local-flv-op-
|
||||
enum-name:
|
||||
entries:
|
||||
-
|
||||
name: unspec
|
||||
-
|
||||
name: psp
|
||||
-
|
||||
name: usp
|
||||
-
|
||||
name: usd
|
||||
-
|
||||
name: next-csid
|
||||
|
||||
sub-messages:
|
||||
-
|
||||
name: encap-data
|
||||
formats:
|
||||
-
|
||||
value: mpls
|
||||
attribute-set: mpls-iptunnel
|
||||
-
|
||||
value: ip
|
||||
attribute-set: lwtunnel-ip
|
||||
-
|
||||
value: ila
|
||||
attribute-set: ila-attrs
|
||||
-
|
||||
value: ip6
|
||||
attribute-set: lwtunnel-ip6
|
||||
-
|
||||
value: seg6
|
||||
attribute-set: seg6-iptunnel
|
||||
-
|
||||
value: bpf
|
||||
attribute-set: lwt-bpf
|
||||
-
|
||||
value: seg6-local
|
||||
attribute-set: seg6-local
|
||||
-
|
||||
value: rpl
|
||||
attribute-set: rpl-iptunnel
|
||||
-
|
||||
value: ioam6
|
||||
attribute-set: ioam6-iptunnel
|
||||
-
|
||||
value: xfrm
|
||||
attribute-set: lwt-xfrm
|
||||
|
||||
attribute-sets:
|
||||
-
|
||||
@@ -174,9 +265,12 @@ attribute-sets:
|
||||
-
|
||||
name: encap-type
|
||||
type: u16
|
||||
enum: encap-type
|
||||
-
|
||||
name: encap
|
||||
type: binary # tunnel specific nest
|
||||
type: sub-message
|
||||
sub-message: encap-data
|
||||
selector: encap-type
|
||||
-
|
||||
name: expires
|
||||
type: u32
|
||||
@@ -277,6 +371,340 @@ attribute-sets:
|
||||
-
|
||||
name: fastopen-no-cookie
|
||||
type: u32
|
||||
-
|
||||
name: mpls-iptunnel
|
||||
name-prefix: mpls-iptunnel-
|
||||
header: linux/mpls_iptunnel.h
|
||||
attributes:
|
||||
-
|
||||
name: dst
|
||||
type: binary
|
||||
-
|
||||
name: ttl
|
||||
type: u8
|
||||
-
|
||||
name: lwtunnel-ip
|
||||
name-prefix: lwtunnel-ip-
|
||||
header: linux/lwtunnel.h
|
||||
attributes:
|
||||
-
|
||||
name: id
|
||||
type: u64
|
||||
byte-order: big-endian
|
||||
-
|
||||
name: dst
|
||||
type: u32
|
||||
byte-order: big-endian
|
||||
display-hint: ipv4
|
||||
-
|
||||
name: src
|
||||
type: u32
|
||||
byte-order: big-endian
|
||||
display-hint: ipv4
|
||||
-
|
||||
name: ttl
|
||||
type: u8
|
||||
-
|
||||
name: tos
|
||||
type: u8
|
||||
-
|
||||
name: flags
|
||||
type: u16
|
||||
byte-order: big-endian
|
||||
-
|
||||
name: pad
|
||||
type: pad
|
||||
-
|
||||
name: opts
|
||||
type: nest
|
||||
nested-attributes: lwtunnel-ip-opts
|
||||
-
|
||||
name: ila-attrs
|
||||
name-prefix: ila-attr-
|
||||
header: linux/ila.h
|
||||
attributes:
|
||||
-
|
||||
name: locator
|
||||
type: u64
|
||||
byte-order: big-endian
|
||||
-
|
||||
name: identifier
|
||||
type: u64
|
||||
-
|
||||
name: locator-match
|
||||
type: u64
|
||||
byte-order: big-endian
|
||||
-
|
||||
name: ifindex
|
||||
type: s32
|
||||
-
|
||||
name: dir
|
||||
type: u32
|
||||
-
|
||||
name: pad
|
||||
type: pad
|
||||
-
|
||||
name: csum-mode
|
||||
type: u8
|
||||
-
|
||||
name: ident-type
|
||||
type: u8
|
||||
-
|
||||
name: hook-type
|
||||
type: u8
|
||||
-
|
||||
name: lwtunnel-ip6
|
||||
name-prefix: lwtunnel-ip6-
|
||||
header: linux/lwtunnel.h
|
||||
attributes:
|
||||
-
|
||||
name: id
|
||||
type: u64
|
||||
byte-order: big-endian
|
||||
-
|
||||
name: dst
|
||||
type: binary
|
||||
display-hint: ipv6
|
||||
-
|
||||
name: src
|
||||
type: binary
|
||||
display-hint: ipv6
|
||||
-
|
||||
name: hoplimit
|
||||
type: u8
|
||||
-
|
||||
name: tc
|
||||
type: u8
|
||||
-
|
||||
name: flags
|
||||
type: u16
|
||||
byte-order: big-endian
|
||||
-
|
||||
name: pad
|
||||
type: pad
|
||||
-
|
||||
name: opts
|
||||
type: nest
|
||||
nested-attributes: lwtunnel-ip-opts
|
||||
-
|
||||
name: seg6-iptunnel
|
||||
name-prefix: seg6-iptunnel-
|
||||
header: linux/seg6_iptunnel.h
|
||||
attributes:
|
||||
-
|
||||
name: srh
|
||||
type: binary
|
||||
-
|
||||
name: src
|
||||
type: binary
|
||||
display-hint: ipv6
|
||||
-
|
||||
name: table
|
||||
type: u32
|
||||
-
|
||||
name: lwt-bpf
|
||||
name-prefix: lwt-bpf-
|
||||
header: linux/lwtunnel.h
|
||||
attributes:
|
||||
-
|
||||
name: in
|
||||
type: nest
|
||||
nested-attributes: lwt-bpf-prog
|
||||
-
|
||||
name: out
|
||||
type: nest
|
||||
nested-attributes: lwt-bpf-prog
|
||||
-
|
||||
name: xmit
|
||||
type: nest
|
||||
nested-attributes: lwt-bpf-prog
|
||||
-
|
||||
name: xmit-headroom
|
||||
type: u32
|
||||
-
|
||||
name: seg6-local
|
||||
name-prefix: seg6-local-
|
||||
header: linux/seg6_local.h
|
||||
attributes:
|
||||
-
|
||||
name: action
|
||||
type: u32
|
||||
enum: seg6-local-actions
|
||||
-
|
||||
name: srh
|
||||
type: binary
|
||||
-
|
||||
name: table
|
||||
type: u32
|
||||
-
|
||||
name: nh4
|
||||
type: u32
|
||||
byte-order: big-endian
|
||||
display-hint: ipv4
|
||||
-
|
||||
name: nh6
|
||||
type: binary
|
||||
display-hint: ipv6
|
||||
-
|
||||
name: iif
|
||||
type: u32
|
||||
-
|
||||
name: oif
|
||||
type: u32
|
||||
-
|
||||
name: bpf
|
||||
type: nest
|
||||
nested-attributes: seg6-local-bpf
|
||||
-
|
||||
name: vrftable
|
||||
type: u32
|
||||
-
|
||||
name: counters
|
||||
type: nest
|
||||
nested-attributes: seg6-local-cnt
|
||||
-
|
||||
name: flavors
|
||||
type: nest
|
||||
nested-attributes: seg6-local-flv
|
||||
-
|
||||
name: rpl-iptunnel
|
||||
name-prefix: rpl-iptunnel-
|
||||
header: linux/rpl_iptunnel.h
|
||||
attributes:
|
||||
-
|
||||
name: srh
|
||||
type: binary
|
||||
-
|
||||
name: ioam6-iptunnel
|
||||
name-prefix: ioam6-iptunnel-
|
||||
header: linux/ioam6_iptunnel.h
|
||||
attributes:
|
||||
-
|
||||
name: mode
|
||||
type: u8
|
||||
-
|
||||
name: dst
|
||||
type: binary
|
||||
display-hint: ipv6
|
||||
-
|
||||
name: trace
|
||||
type: binary
|
||||
-
|
||||
name: freq-k
|
||||
type: u32
|
||||
-
|
||||
name: freq-n
|
||||
type: u32
|
||||
-
|
||||
name: src
|
||||
type: binary
|
||||
display-hint: ipv6
|
||||
-
|
||||
name: lwt-xfrm
|
||||
name-prefix: lwt-xfrm-
|
||||
header: linux/lwtunnel.h
|
||||
attributes:
|
||||
-
|
||||
name: if-id
|
||||
type: u32
|
||||
-
|
||||
name: link
|
||||
type: u32
|
||||
-
|
||||
name: lwtunnel-ip-opts
|
||||
name-prefix: lwtunnel-ip-opts-
|
||||
attributes:
|
||||
-
|
||||
name: geneve
|
||||
type: binary
|
||||
-
|
||||
name: vxlan
|
||||
type: nest
|
||||
nested-attributes: lwtunnel-ip-opt-vxlan
|
||||
-
|
||||
name: erspan
|
||||
type: nest
|
||||
nested-attributes: lwtunnel-ip-opt-erspan
|
||||
-
|
||||
name: lwtunnel-ip-opt-vxlan
|
||||
name-prefix: lwtunnel-ip-opt-vxlan-
|
||||
attributes:
|
||||
-
|
||||
name: gbp
|
||||
type: u32
|
||||
-
|
||||
name: lwtunnel-ip-opt-erspan
|
||||
name-prefix: lwtunnel-ip-opt-erspan-
|
||||
attributes:
|
||||
-
|
||||
name: ver
|
||||
type: u8
|
||||
-
|
||||
name: index
|
||||
type: u32
|
||||
byte-order: big-endian
|
||||
-
|
||||
name: dir
|
||||
type: u8
|
||||
-
|
||||
name: hwid
|
||||
type: u8
|
||||
-
|
||||
name: lwt-bpf-prog
|
||||
name-prefix: lwt-bpf-prog-
|
||||
attributes:
|
||||
-
|
||||
name: fd
|
||||
type: u32
|
||||
-
|
||||
name: name
|
||||
type: string
|
||||
checks:
|
||||
max-len: 256
|
||||
-
|
||||
name: seg6-local-bpf
|
||||
name-prefix: seg6-local-bpf-
|
||||
attr-max-name: seg6-local-bpf-prog-max
|
||||
attributes:
|
||||
-
|
||||
name: prog
|
||||
type: u32
|
||||
-
|
||||
name: prog-name
|
||||
type: string
|
||||
checks:
|
||||
max-len: 256
|
||||
-
|
||||
name: seg6-local-cnt
|
||||
name-prefix: seg6-local-cnt-
|
||||
attributes:
|
||||
-
|
||||
name: pad
|
||||
type: pad
|
||||
-
|
||||
name: packets
|
||||
type: u64
|
||||
-
|
||||
name: bytes
|
||||
type: u64
|
||||
-
|
||||
name: errors
|
||||
type: u64
|
||||
-
|
||||
name: seg6-local-flv
|
||||
name-prefix: seg6-local-flv-
|
||||
attributes:
|
||||
-
|
||||
name: operation
|
||||
type: u32
|
||||
enum: seg6-local-flv-ops
|
||||
enum-as-flags: true
|
||||
-
|
||||
name: lcblock-bits
|
||||
type: u8
|
||||
-
|
||||
name: lcnode-fn-bits
|
||||
type: u8
|
||||
|
||||
operations:
|
||||
enum-model: directional
|
||||
|
||||
@@ -42,7 +42,7 @@ definitions:
|
||||
- skip-hw
|
||||
- skip-sw
|
||||
- in-hw
|
||||
- not-in-nw
|
||||
- not-in-hw
|
||||
- verbose
|
||||
-
|
||||
name: flower-key-ctrl-flags
|
||||
|
||||
@@ -32,7 +32,7 @@ attribute-sets:
|
||||
name: addr-ipv6
|
||||
type: binary
|
||||
checks:
|
||||
min-len: 16
|
||||
exact-len: 16
|
||||
byte-order: big-endian
|
||||
display-hint: ipv6
|
||||
-
|
||||
@@ -63,7 +63,7 @@ attribute-sets:
|
||||
name: fopen-cookie
|
||||
type: binary
|
||||
checks:
|
||||
min-len: tcp-fastopen-cookie-max
|
||||
max-len: tcp-fastopen-cookie-max
|
||||
-
|
||||
name: saddr-ipv4
|
||||
type: u32
|
||||
@@ -73,7 +73,7 @@ attribute-sets:
|
||||
name: saddr-ipv6
|
||||
type: binary
|
||||
checks:
|
||||
min-len: 16
|
||||
exact-len: 16
|
||||
byte-order: big-endian
|
||||
display-hint: ipv6
|
||||
-
|
||||
@@ -93,14 +93,12 @@ attribute-sets:
|
||||
name: rtt
|
||||
type: u32
|
||||
doc: |
|
||||
Round Trip Time (RTT), in msecs with 3 bits fractional
|
||||
(left-shift by 3 to get the msec value).
|
||||
Round Trip Time (RTT), in msecs with 3 bits fractional.
|
||||
-
|
||||
name: rttvar
|
||||
type: u32
|
||||
doc: |
|
||||
Round Trip Time VARiance (RTT), in msecs with 2 bits fractional
|
||||
(left-shift by 2 to get the msec value).
|
||||
Round Trip Time VARiance (RTTVAR), in msecs with 2 bits fractional.
|
||||
-
|
||||
name: ssthresh
|
||||
type: u32
|
||||
@@ -117,14 +115,12 @@ attribute-sets:
|
||||
name: rtt-us
|
||||
type: u32
|
||||
doc: |
|
||||
Round Trip Time (RTT), in usecs, with 3 bits fractional
|
||||
(left-shift by 3 to get the msec value).
|
||||
Round Trip Time (RTT), in usecs, with 3 bits fractional.
|
||||
-
|
||||
name: rttvar-us
|
||||
type: u32
|
||||
doc: |
|
||||
Round Trip Time (RTT), in usecs, with 2 bits fractional
|
||||
(left-shift by 3 to get the msec value).
|
||||
Round Trip Time VARiance (RTTVAR), in usecs, with 2 bits fractional.
|
||||
|
||||
operations:
|
||||
list:
|
||||
|
||||
@@ -277,8 +277,9 @@ Netfilter
|
||||
=========
|
||||
|
||||
The bridge netfilter module is a legacy feature that allows to filter bridged
|
||||
packets with iptables and ip6tables. Its use is discouraged. Users should
|
||||
consider using nftables for packet filtering.
|
||||
packets with iptables and ip6tables. This feature is scheduled for removal and
|
||||
not available in user namespaces. Consider using nftables for packet filtering
|
||||
instead.
|
||||
|
||||
The older ebtables tool is more feature-limited compared to nftables, but
|
||||
just like nftables it doesn't need this module either to function.
|
||||
|
||||
@@ -48,6 +48,7 @@ Contents:
|
||||
meta/fbnic
|
||||
microsoft/netvsc
|
||||
mucse/rnpgbe
|
||||
nebula-matrix/nbl
|
||||
netronome/nfp
|
||||
pensando/ionic
|
||||
pensando/ionic_rdma
|
||||
|
||||
@@ -692,7 +692,7 @@ queues: for each tc, <num queues>@<offset> (e.g. queues 16@0 16@16 assigns
|
||||
16 queues to tc0 at offset 0 and 16 queues to tc1 at offset 16. Max total
|
||||
number of queues for all tcs is 64 or number of cores, whichever is lower.)
|
||||
|
||||
hw 1 mode channel: ‘channel’ with ‘hw’ set to 1 is a new new hardware
|
||||
hw 1 mode channel: ‘channel’ with ‘hw’ set to 1 is a new hardware
|
||||
offload mode in mqprio that makes full use of the mqprio options, the
|
||||
TCs, the queue configurations, and the QoS parameters.
|
||||
|
||||
|
||||
@@ -171,7 +171,7 @@ queues: for each tc, <num queues>@<offset> (e.g. queues 16@0 16@16 assigns
|
||||
16 queues to tc0 at offset 0 and 16 queues to tc1 at offset 16. Max total
|
||||
number of queues for all tcs is 64 or number of cores, whichever is lower.)
|
||||
|
||||
hw 1 mode channel: ‘channel’ with ‘hw’ set to 1 is a new new hardware
|
||||
hw 1 mode channel: ‘channel’ with ‘hw’ set to 1 is a new hardware
|
||||
offload mode in mqprio that makes full use of the mqprio options, the
|
||||
TCs, the queue configurations, and the QoS parameters.
|
||||
|
||||
|
||||
@@ -116,5 +116,3 @@ XDP support
|
||||
before running XDP::
|
||||
|
||||
ethtool -K eth0 lro off
|
||||
|
||||
XDP_REDIRECT action is not yet supported.
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
.. SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
================================================================
|
||||
Linux Base Driver for Nebula-matrix m18110-NIC/m18000-NIC family
|
||||
================================================================
|
||||
|
||||
Overview:
|
||||
=========
|
||||
The m18110-NIC/m18000-NIC (marketed as SNIC s1000) is a series
|
||||
of network interface cards for the Data Center Area.
|
||||
|
||||
This driver provides the core infrastructure for m18110/m18000-NIC
|
||||
devices, including:
|
||||
|
||||
- PCI device enumeration and resource (BAR) management
|
||||
- Firmware command interface via PF mailbox
|
||||
- Channel-based communication between driver and firmware
|
||||
- Device initialization and teardown
|
||||
|
||||
Support
|
||||
=======
|
||||
|
||||
For more information about m18110-NIC/m18000-NIC, please visit the following URL:
|
||||
https://www.nebula-matrix.com/snic_s1000_en
|
||||
|
||||
If an issue is identified with the released source code on the supported kernel
|
||||
with a supported adapter, email the specific information related to the issue to
|
||||
[email protected].
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user