Josua Mayer | df62d94 | 2024-03-30 18:35:55 -0300 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0 OR MIT) |
| 2 | |
| 3 | #include <dt-bindings/gpio/gpio.h> |
| 4 | |
| 5 | &fec { |
| 6 | pinctrl-names = "default"; |
| 7 | pinctrl-0 = <&pinctrl_microsom_enet_ar8035>; |
| 8 | phy-handle = <&phy>; |
| 9 | phy-mode = "rgmii-id"; |
| 10 | |
| 11 | /* |
| 12 | * The PHY seems to require a long-enough reset duration to avoid |
| 13 | * some rare issues where the PHY gets stuck in an inconsistent and |
| 14 | * non-functional state at boot-up. 10ms proved to be fine . |
| 15 | */ |
| 16 | phy-reset-duration = <10>; |
| 17 | phy-reset-gpios = <&gpio4 15 GPIO_ACTIVE_LOW>; |
| 18 | status = "okay"; |
| 19 | |
| 20 | mdio { |
| 21 | #address-cells = <1>; |
| 22 | #size-cells = <0>; |
| 23 | |
| 24 | ethernet-phy@0 { |
| 25 | status = "disabled"; |
| 26 | }; |
| 27 | |
| 28 | ethernet-phy@1 { |
| 29 | status = "disabled"; |
| 30 | }; |
| 31 | |
| 32 | ethernet-phy@4 { |
| 33 | status = "disabled"; |
| 34 | }; |
| 35 | |
| 36 | phy: ethernet-phy@ffffffff { |
| 37 | /* |
| 38 | * The PHY can appear either: |
| 39 | * - AR8035: at address 0 or 4 |
| 40 | * - ADIN1300: at address 1 |
| 41 | * Actual address being detected at runtime. |
| 42 | */ |
| 43 | reg = <0xffffffff>; |
| 44 | qca,clk-out-frequency = <125000000>; |
| 45 | qca,smarteee-tw-us-1g = <24>; |
| 46 | adi,phy-output-clock = "125mhz-free-running"; |
| 47 | }; |
| 48 | }; |
| 49 | }; |