From: Jay Monkman <jtm@lopingdog.com>
To: devicetree@vger.kernel.org, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org,
Piergiorgio Beruto <piergiorgio.beruto@gmail.com>,
Arndt Schuebel <Arndt.Schuebel@onsemi.com>
Subject: [PATCH 2/4] dt-bindings: net: Add onsemi NCN26010 ethernet controller
Date: Mon, 18 Sep 2023 01:58:58 -0500 [thread overview]
Message-ID: <ZQf1Mgb8lfHkB6rl@lopingdog.com> (raw)
Add devicetree bindings for onsemi's NCN26010 10BASE-T1S
ethernet controller.
Signed-off-by: Jay Monkman <jtm@lopingdog.com>
---
.../devicetree/bindings/net/onnn,macphy.yaml | 94 +++++++++++++++++++
1 file changed, 94 insertions(+)
create mode 100644 Documentation/devicetree/bindings/net/onnn,macphy.yaml
diff --git a/Documentation/devicetree/bindings/net/onnn,macphy.yaml b/Documentation/devicetree/bindings/net/onnn,macphy.yaml
new file mode 100644
index 000000000000..1813da81b95f
--- /dev/null
+++ b/Documentation/devicetree/bindings/net/onnn,macphy.yaml
@@ -0,0 +1,94 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/net/onnn,macphy.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: onsemi 10BASE-T1S Ethernet Controller
+
+maintainers:
+ - Jay Monkman <jtm@lopingdog.com>
+
+description: |
+ Bindings for onsemi 10BASE-T1S ethernet controller.
+
+ Supported devices:
+ ncn26010
+
+allOf:
+ - $ref: ethernet-controller.yaml#
+
+properties:
+ compatible:
+ const: onnn,ncn26010
+
+ ctrl-protected:
+ description: |
+ Enables control data read/write protection mode.
+ type: boolean
+
+ poll-interval:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ description: |
+ Defines how often the MACPHY thread runs in milliseconds.
+ If not specified, a default value of 5 is used.
+
+ tx-fcs-calc:
+ description: |
+ Enables driver calculation of the FCS on transmitted frames.
+ type: boolean
+
+ rx-fcs-check:
+ description: |
+ Enables driver checking of the FCS on received frames
+ type: boolean
+
+ interrupts:
+ maxItems: 1
+
+ reg:
+ maxItems: 1
+
+ mdio:
+ $ref: mdio.yaml#
+ unevaluatedProperties: false
+
+required:
+ - compatible
+
+additionalProperties: false
+
+examples:
+ - |
+ spi {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ ethernet@0 {
+ compatible = "onnn,ncn26010";
+ reg = <0>; /* CE0 */
+ ctrl-protected;
+ tx-fcs-calc;
+ rx-fcs-check;
+ poll-interval = <5>;
+ pinctrl-names = "default";
+ pinctrl-0 = <ð1_pins>;
+ interrupt-parent = <&gpio>;
+ interrupts = <25 0x2>;
+
+ mdio {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ ephy0: ethernet-phy@0 {
+ compatible = "ethernet-phy-ieee802.3-c22";
+ reg = <0>;
+ dio0-fn = "gpio";
+ dio0-slew = "slow";
+ dio1-fn = "gpio";
+ dio1-slew = "slow";
+ eni-enable;
+ };
+ };
+ };
+ };
--
2.40.1
next reply other threads:[~2023-09-18 7:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-18 6:58 Jay Monkman [this message]
2023-09-18 20:28 ` [PATCH 2/4] dt-bindings: net: Add onsemi NCN26010 ethernet controller Krzysztof Kozlowski
2023-09-19 3:19 ` Jay Monkman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZQf1Mgb8lfHkB6rl@lopingdog.com \
--to=jtm@lopingdog.com \
--cc=Arndt.Schuebel@onsemi.com \
--cc=devicetree@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=piergiorgio.beruto@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).