1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 # Copyright (C) Sunplus Co., Ltd. 2021
5 $id: http://devicetree.org/schemas/net/sunplus,sp7021-emac.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: Sunplus SP7021 Dual Ethernet MAC
11 - Wells Lu <wellslutw@gmail.com>
14 Sunplus SP7021 dual 10M/100M Ethernet MAC controller.
15 Device node of the controller has following properties.
19 const: sunplus,sp7021-emac
35 additionalProperties: false
36 description: Ethernet ports to PHY
48 additionalProperties: false
49 description: Port to PHY
64 - description: nvmem cell address of MAC address
67 description: names corresponding to the nvmem cells
80 unevaluatedProperties: false
82 additionalProperties: false
97 #include <dt-bindings/interrupt-controller/irq.h>
100 compatible = "sunplus,sp7021-emac";
101 reg = <0x9c108000 0x400>;
102 interrupt-parent = <&intc>;
103 interrupts = <66 IRQ_TYPE_LEVEL_HIGH>;
104 clocks = <&clkc 0xa7>;
105 resets = <&rstc 0x97>;
106 pinctrl-0 = <&emac_demo_board_v3_pins>;
107 pinctrl-names = "default";
110 #address-cells = <1>;
115 phy-handle = <ð_phy0>;
117 nvmem-cells = <&mac_addr0>;
118 nvmem-cell-names = "mac-address";
123 phy-handle = <ð_phy1>;
125 nvmem-cells = <&mac_addr1>;
126 nvmem-cell-names = "mac-address";
131 #address-cells = <1>;
134 eth_phy0: ethernet-phy@0 {
138 eth_phy1: ethernet-phy@1 {