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 Device Tree Bindings
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 description: Ethernet ports to PHY
47 description: Port to PHY
62 - description: nvmem cell address of MAC address
65 description: names corresponding to the nvmem cells
78 unevaluatedProperties: false
80 additionalProperties: false
95 #include <dt-bindings/interrupt-controller/irq.h>
98 compatible = "sunplus,sp7021-emac";
99 reg = <0x9c108000 0x400>;
100 interrupt-parent = <&intc>;
101 interrupts = <66 IRQ_TYPE_LEVEL_HIGH>;
102 clocks = <&clkc 0xa7>;
103 resets = <&rstc 0x97>;
104 pinctrl-0 = <&emac_demo_board_v3_pins>;
105 pinctrl-names = "default";
108 #address-cells = <1>;
113 phy-handle = <ð_phy0>;
115 nvmem-cells = <&mac_addr0>;
116 nvmem-cell-names = "mac-address";
121 phy-handle = <ð_phy1>;
123 nvmem-cells = <&mac_addr1>;
124 nvmem-cell-names = "mac-address";
129 #address-cells = <1>;
132 eth_phy0: ethernet-phy@0 {
136 eth_phy1: ethernet-phy@1 {