Skip to content

Commit 3cfb5aa

Browse files
committed
Merge branch 'add-support-for-open-alliance-10base-t1x-macphy-serial-interface'
Parthiban Veerasooran says: ==================== Add support for OPEN Alliance 10BASE-T1x MACPHY Serial Interface This patch series contain the below updates, - Adds support for OPEN Alliance 10BASE-T1x MACPHY Serial Interface in the net/ethernet/oa_tc6.c. Link to the spec: ----------------- https://opensig.org/download/document/OPEN_Alliance_10BASET1x_MAC-PHY_Serial_Interface_V1.1.pdf - Adds driver support for Microchip LAN8650/1 Rev.B1 10BASE-T1S MACPHY Ethernet driver in the net/ethernet/microchip/lan865x/lan865x.c. Link to the product: -------------------- https://www.microchip.com/en-us/product/lan8650 Testing Details: ---------------- The driver performance was tested using iperf3 in the below two setups separately. Setup 1: -------- Node 0 - Raspberry Pi 4 with LAN8650 MAC-PHY Node 1 - Raspberry Pi 4 with EVB-LAN8670-USB USB Stick Setup 2: -------- Node 0 - SAMA7G54-EK with LAN8650 MAC-PHY Node 1 - Raspberry Pi 4 with EVB-LAN8670-USB USB Stick Achieved maximum of 9.4 Mbps. Some systems like Raspberry Pi 4 need performance mode enabled to get the proper clock speed for SPI. Refer below link for more details. raspberrypi/linux#3381 (comment) ==================== Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
2 parents e331673 + ac49b95 commit 3cfb5aa

File tree

15 files changed

+2471
-0
lines changed

15 files changed

+2471
-0
lines changed
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/net/microchip,lan8650.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Microchip LAN8650/1 10BASE-T1S MACPHY Ethernet Controllers
8+
9+
maintainers:
10+
- Parthiban Veerasooran <[email protected]>
11+
12+
description:
13+
The LAN8650/1 combines a Media Access Controller (MAC) and an Ethernet
14+
PHY to enable 10BASE‑T1S networks. The Ethernet Media Access Controller
15+
(MAC) module implements a 10 Mbps half duplex Ethernet MAC, compatible
16+
with the IEEE 802.3 standard and a 10BASE-T1S physical layer transceiver
17+
integrated into the LAN8650/1. The communication between the Host and
18+
the MAC-PHY is specified in the OPEN Alliance 10BASE-T1x MACPHY Serial
19+
Interface (TC6).
20+
21+
allOf:
22+
- $ref: /schemas/net/ethernet-controller.yaml#
23+
- $ref: /schemas/spi/spi-peripheral-props.yaml#
24+
25+
properties:
26+
compatible:
27+
oneOf:
28+
- const: microchip,lan8650
29+
- items:
30+
- const: microchip,lan8651
31+
- const: microchip,lan8650
32+
33+
reg:
34+
maxItems: 1
35+
36+
interrupts:
37+
description:
38+
Interrupt from MAC-PHY asserted in the event of Receive Chunks
39+
Available, Transmit Chunk Credits Available and Extended Status
40+
Event.
41+
maxItems: 1
42+
43+
spi-max-frequency:
44+
minimum: 15000000
45+
maximum: 25000000
46+
47+
required:
48+
- compatible
49+
- reg
50+
- interrupts
51+
- spi-max-frequency
52+
53+
unevaluatedProperties: false
54+
55+
examples:
56+
- |
57+
#include <dt-bindings/interrupt-controller/irq.h>
58+
#include <dt-bindings/gpio/gpio.h>
59+
60+
spi {
61+
#address-cells = <1>;
62+
#size-cells = <0>;
63+
64+
ethernet@0 {
65+
compatible = "microchip,lan8651", "microchip,lan8650";
66+
reg = <0>;
67+
pinctrl-names = "default";
68+
pinctrl-0 = <&eth0_pins>;
69+
interrupt-parent = <&gpio>;
70+
interrupts = <6 IRQ_TYPE_EDGE_FALLING>;
71+
local-mac-address = [04 05 06 01 02 03];
72+
spi-max-frequency = <15000000>;
73+
};
74+
};

Documentation/networking/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ Contents:
8888
nexthop-group-resilient
8989
nf_conntrack-sysctl
9090
nf_flowtable
91+
oa-tc6-framework
9192
openvswitch
9293
operstates
9394
packet_mmap

0 commit comments

Comments
 (0)