1 # SPDX-License-Identifier: GPL-2.0
4 $id: http://devicetree.org/schemas/net/rockchip,emac.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Rockchip RK3036/RK3066/RK3188 Ethernet Media Access Controller (EMAC)
10 - Heiko Stuebner <heiko@sntech.de>
15 - rockchip,rk3036-emac
16 - rockchip,rk3066-emac
17 - rockchip,rk3188-emac
28 - description: host clock
29 - description: reference clock
30 - description: mac TX/RX clock
40 $ref: /schemas/types.yaml#/definitions/phandle
42 Phandle to the syscon GRF used to control speed and mode for the EMAC.
46 Phandle to a regulator if the PHY needs one.
50 unevaluatedProperties: false
64 - $ref: ethernet-controller.yaml#
69 const: rockchip,rk3036-emac
87 unevaluatedProperties: false
91 #include <dt-bindings/clock/rk3188-cru-common.h>
92 #include <dt-bindings/interrupt-controller/arm-gic.h>
95 compatible = "rockchip,rk3188-emac";
96 reg = <0xc0fc2000 0x3c>;
97 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
98 clocks = <&cru HCLK_EMAC>, <&cru SCLK_MAC>;
99 clock-names = "hclk", "macref";
100 rockchip,grf = <&grf>;
101 pinctrl-0 = <&emac_xfer>, <&emac_mdio>, <&phy_int>;
102 pinctrl-names = "default";
105 phy-supply = <&vcc_rmii>;
108 #address-cells = <1>;
111 phy0: ethernet-phy@0 {