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