From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 60F273CE0B1; Sun, 14 Jun 2026 17:01:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781456466; cv=none; b=K4JuIwvUGkCQR1Lb0bYAz5lp9S50jpMHIsBF0md75PcxSeYHh0beK4NRgHufrNl2K0jWQ5AOBGxstXvy/Rzn9bJMRAmN6RgqNS6OWdKHgsXsFd6BgJ4/lRZrXI1pb6akAyIoWYrYxxW4yOCFWo6jKe4pfU1u1hVO3i72dV0tbbE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781456466; c=relaxed/simple; bh=bZtQ9BdjOM39ASsq1r6ZE1bVy4jArJGL5hFFAXzb3+Y=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=YuXHEbzomd1/0RxukpO2i05e+80z+LAmqziN/w/eI2JF8cuH+MLidduwi7EXbBM6sCazYnwhy32UmmwHel4inL7l3ilmuV2l80/wZr82GySoAPfZqpclh2vdvZFi+EiuaQ12UR3BrAOWmVJZMPS+n2U2CUBM/7lTEKAQDkjb76A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZShDlx3O; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZShDlx3O" Received: by smtp.kernel.org (Postfix) with ESMTPS id 36E5AC4DDE6; Sun, 14 Jun 2026 17:01:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1781456466; bh=bZtQ9BdjOM39ASsq1r6ZE1bVy4jArJGL5hFFAXzb3+Y=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=ZShDlx3O0SHPihFAT310Vp9ti6TfnYtPVgDxr+ilBu/b24lo7XoGZf81N7OodFwTT 2KJQ9jkTF3MHCeMIti6Yz3YplYmMboQ67g0TpIf5S73F4pvX7D5wf+wMDetkNvJrz/ NSdjBKRLZ8BjxQq3l1gk8dq4MaCZ9No5u/iVejkbEBzUbd820TJkCrb/OupKgtNZsT VGxQclCn9Q/vPAMZG78rdn5UpsAPf9M5w4IY8HYgwAqKjM3KXaYHdyvhk3XqCkzxDv Bnx5RgcFBBkqVmP3JcyDB6qgM6okmNRRnShj+P3BSfxrnJ6wd314t1CPyWAItcABkg JY42BB/O9+U6w== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 249E2CD98C7; Sun, 14 Jun 2026 17:01:06 +0000 (UTC) From: Selvamani Rajagopal via B4 Relay Date: Sun, 14 Jun 2026 10:00:30 -0700 Subject: [PATCH net-next v5 14/15] dt-bindings: net: add onsemi's S2500 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20260614-s2500-mac-phy-support-v5-14-89874b72f725@onsemi.com> References: <20260614-s2500-mac-phy-support-v5-0-89874b72f725@onsemi.com> In-Reply-To: <20260614-s2500-mac-phy-support-v5-0-89874b72f725@onsemi.com> To: Andrew Lunn , Piergiorgio Beruto , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andrew Lunn , Parthiban Veerasooran , Selva Rajagopal , Richard Cochran , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Simon Horman , Jonathan Corbet , Shuah Khan Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-doc@vger.kernel.org, Jerry Ray , Selvamani Rajagopal X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1781456463; l=3240; i=Selvamani.Rajagopal@onsemi.com; s=20260531; h=from:subject:message-id; bh=MO2QIYiWf5+Y65ioA1xlgEZdigR/nzQWapf2oHFBbOc=; b=M2vvqie8jYIt0/fcmaoOgWMDM0mrkchr2mnzwArA5ahixPkbfLdRcbh6SLtt6OToDYMw6U6UG uENm5L4xLgeC7q+kITQ97OJjcjFrp87cJ5/xNnOCnk4gZnPkHbay8wa X-Developer-Key: i=Selvamani.Rajagopal@onsemi.com; a=ed25519; pk=5QRdM0HS/LGWWcUZZ9hVfZ+qbPQGZCumcTXOiN7Fyug= X-Endpoint-Received: by B4 Relay for Selvamani.Rajagopal@onsemi.com/20260531 with auth_id=803 X-Original-From: Selvamani Rajagopal Reply-To: Selvamani.Rajagopal@onsemi.com From: Selvamani Rajagopal Add YAML device tree binding for the onsemi S2500 IEEE 802.3cg compliant Ethernet transceiver device. We use IRQF_TRIGGER_FALLING, though OPEN Alliance 10BASE-T1x Serial Interface specification calls for IRQF_TRIGGER_LOW. This is to match IRQF_TRIGGER_FALLING used by OA TC6 framework code. This bug fix requires changes to the stable branch. At that time, this will be changed to IRQF_TRIGGER_LOW. --- 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 Signed-off-by: Selvamani Rajagopal --- .../devicetree/bindings/net/onnn,s2500.yaml | 67 ++++++++++++++++++++++ 1 file changed, 67 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..11edf10508d9 --- /dev/null +++ b/Documentation/devicetree/bindings/net/onnn,s2500.yaml @@ -0,0 +1,67 @@ +# 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 + + 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_EDGE_FALLING>; + spi-max-frequency = <15000000>; + }; + }; -- 2.43.0