From: Selvamani Rajagopal Add device tree binding for the onsemi S2500 IEEE 802.3cg compliant Ethernet transceiver device. S2500 has both Media Access Controller (MAC) and 10Base-T1S Ethernet PHY. MAC implements 10 Mbps half duplex Ethernet MAC. Communication between the host and MAC-PHY is defined in OPEN Alliance 10BASE-T1x MACPHY Serial Interface document Reviewed-by: Krzysztof Kozlowski Signed-off-by: Selvamani Rajagopal --- changes in v8 - Changed the interrupt type to level triggered - Added reset-gpio entry that was recently supported. changes in v7 - Added the missing review tag - Removed the word YAML from the commit message changes in v6 - Moved the signed off information to the right place. changes in v5 - no changes changes in v4: - added spi-max-frequency as suggested by AI review - changed interrupt to IRQ_TYPE_EDGE_FALLING as it is being taken care in net (stable) branch changes in v3 - Removed URL link that failed verification changes in v2 - removed spi-max-frequency entry - changed the compatible string to s2500 changes in v1 - Added the first version of YAML file for onsemi MAC-PHY --- .../devicetree/bindings/net/onnn,s2500.yaml | 72 ++++++++++++++++++++++ MAINTAINERS | 7 +++ 2 files changed, 79 insertions(+) diff --git a/Documentation/devicetree/bindings/net/onnn,s2500.yaml b/Documentation/devicetree/bindings/net/onnn,s2500.yaml new file mode 100644 index 000000000000..97d1cda36683 --- /dev/null +++ b/Documentation/devicetree/bindings/net/onnn,s2500.yaml @@ -0,0 +1,72 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/onnn,s2500.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: onsemi S2500 10BASE-T1S MACPHY Ethernet Controllers + +maintainers: + - Piergiorgio Beruto + - Selva Rajagopal + +description: + The S2500 combines a Media Access Controller (MAC) and an + Ethernet PHY to enable 10BASE‑T1S networks. The Ethernet Media Access + Controller (MAC) module implements a 10 Mbps half duplex Ethernet MAC, + compatible with the IEEE 802.3 standard and a 10BASE-T1S physical layer + transceiver integrated into the S2500. The communication between + the host and the MAC-PHY is specified in the OPEN Alliance 10BASE-T1x + MACPHY Serial Interface (TC6). + +allOf: + - $ref: /schemas/net/ethernet-controller.yaml# + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +properties: + compatible: + const: onnn,s2500 + + reg: + maxItems: 1 + + interrupts: + description: + Interrupt from MAC-PHY asserted in the event of Receive Chunks + Available, Transmit Chunk Credits Available and Extended Status + Event. + maxItems: 1 + + reset-gpios: + description: + GPIO connected to the active-low RST_N pin of the MAC-PHY. + maxItems: 1 + + spi-max-frequency: + maximum: 25000000 + +required: + - compatible + - reg + - interrupts + - spi-max-frequency + +unevaluatedProperties: false + +examples: + - | + #include + spi { + #address-cells = <1>; + #size-cells = <0>; + + ethernet@0 { + compatible = "onnn,s2500"; + reg = <0>; + pinctrl-names = "default"; + pinctrl-0 = <ð0_pins>; + interrupt-parent = <&gpio>; + interrupts = <25 IRQ_TYPE_LEVEL_LOW>; + spi-max-frequency = <15000000>; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 6de1ff058db6..64da809e4602 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -20426,6 +20426,13 @@ S: Supported W: http://www.onsemi.com F: drivers/net/phy/ncn* +ONSEMI S2500 10BASE-T1S MACPHY ETHERNET DRIVER +M: Selva Rajagopal +L: netdev@vger.kernel.org +S: Supported +F: Documentation/devicetree/bindings/net/onnn,s2500.yaml +F: drivers/net/ethernet/onsemi/s2500/s2500_* + OP-TEE DRIVER M: Jens Wiklander L: op-tee@lists.trustedfirmware.org (moderated for non-subscribers) -- 2.43.0