1// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2/* 3 * Device Tree Source for the White Hawk RAVB/Ethernet(1000Base-T1) 4 * sub-board 5 * 6 * Copyright (C) 2022 Glider bv 7 */ 8 9/ { 10 aliases { 11 ethernet1 = &avb1; 12 ethernet2 = &avb2; 13 }; 14}; 15 16&avb1 { 17 pinctrl-0 = <&avb1_pins>; 18 pinctrl-names = "default"; 19 phy-handle = <&avb1_phy>; 20 status = "okay"; 21 22 mdio { 23 #address-cells = <1>; 24 #size-cells = <0>; 25 26 reset-gpios = <&gpio6 1 GPIO_ACTIVE_LOW>; 27 reset-post-delay-us = <4000>; 28 29 avb1_phy: ethernet-phy@0 { 30 compatible = "ethernet-phy-ieee802.3-c45"; 31 reg = <0>; 32 interrupts-extended = <&gpio6 3 IRQ_TYPE_LEVEL_LOW>; 33 }; 34 }; 35}; 36 37&avb2 { 38 pinctrl-0 = <&avb2_pins>; 39 pinctrl-names = "default"; 40 phy-handle = <&avb2_phy>; 41 status = "okay"; 42 43 mdio { 44 #address-cells = <1>; 45 #size-cells = <0>; 46 47 reset-gpios = <&gpio5 5 GPIO_ACTIVE_LOW>; 48 reset-post-delay-us = <4000>; 49 50 avb2_phy: ethernet-phy@0 { 51 compatible = "ethernet-phy-ieee802.3-c45"; 52 reg = <0>; 53 interrupts-extended = <&gpio5 4 IRQ_TYPE_LEVEL_LOW>; 54 }; 55 }; 56}; 57 58&i2c0 { 59 eeprom@53 { 60 compatible = "rohm,br24g01", "atmel,24c01"; 61 label = "ethernet-sub-board-id"; 62 reg = <0x53>; 63 pagesize = <8>; 64 }; 65}; 66 67&pfc { 68 avb1_pins: avb1 { 69 mux { 70 groups = "avb1_link", "avb1_mdio", "avb1_rgmii", 71 "avb1_txcrefclk"; 72 function = "avb1"; 73 }; 74 75 mdio { 76 groups = "avb1_mdio"; 77 drive-strength = <24>; 78 bias-disable; 79 }; 80 81 rgmii { 82 groups = "avb1_rgmii"; 83 drive-strength = <24>; 84 bias-disable; 85 }; 86 87 link { 88 groups = "avb1_link"; 89 bias-disable; 90 }; 91 }; 92 93 avb2_pins: avb2 { 94 mux { 95 groups = "avb2_link", "avb2_mdio", "avb2_rgmii", 96 "avb2_txcrefclk"; 97 function = "avb2"; 98 }; 99 100 mdio { 101 groups = "avb2_mdio"; 102 drive-strength = <24>; 103 bias-disable; 104 }; 105 106 rgmii { 107 groups = "avb2_rgmii"; 108 drive-strength = <24>; 109 bias-disable; 110 }; 111 112 link { 113 groups = "avb2_link"; 114 bias-disable; 115 }; 116 }; 117}; 118