1// SPDX-License-Identifier: GPL-2.0 2// Copyright (c) 2018, Linaro Limited 3 4/dts-v1/; 5 6#include <dt-bindings/gpio/gpio.h> 7#include "qcs404-evb.dtsi" 8 9/ { 10 model = "Qualcomm Technologies, Inc. QCS404 EVB 4000"; 11 compatible = "qcom,qcs404-evb"; 12}; 13 14ðernet { 15 status = "ok"; 16 17 snps,reset-gpio = <&tlmm 60 GPIO_ACTIVE_LOW>; 18 snps,reset-active-low; 19 snps,reset-delays-us = <0 10000 10000>; 20 21 pinctrl-names = "default"; 22 pinctrl-0 = <ðernet_defaults>; 23 24 phy-handle = <&phy1>; 25 phy-mode = "rgmii"; 26 mdio { 27 #address-cells = <0x1>; 28 #size-cells = <0x0>; 29 compatible = "snps,dwmac-mdio"; 30 phy1: phy@4 { 31 compatible = "ethernet-phy-ieee802.3-c22"; 32 device_type = "ethernet-phy"; 33 reg = <0x4>; 34 }; 35 }; 36}; 37 38&tlmm { 39 ethernet_defaults: ethernet-defaults { 40 int { 41 pins = "gpio61"; 42 function = "rgmii_int"; 43 bias-disable; 44 drive-strength = <2>; 45 }; 46 mdc { 47 pins = "gpio76"; 48 function = "rgmii_mdc"; 49 bias-pull-up; 50 }; 51 mdio { 52 pins = "gpio75"; 53 function = "rgmii_mdio"; 54 bias-pull-up; 55 }; 56 tx { 57 pins = "gpio67", "gpio66", "gpio65", "gpio64"; 58 function = "rgmii_tx"; 59 bias-pull-up; 60 drive-strength = <16>; 61 }; 62 rx { 63 pins = "gpio73", "gpio72", "gpio71", "gpio70"; 64 function = "rgmii_rx"; 65 bias-disable; 66 drive-strength = <2>; 67 }; 68 tx-ctl { 69 pins = "gpio68"; 70 function = "rgmii_ctl"; 71 bias-pull-up; 72 drive-strength = <16>; 73 }; 74 rx-ctl { 75 pins = "gpio74"; 76 function = "rgmii_ctl"; 77 bias-disable; 78 drive-strength = <2>; 79 }; 80 tx-ck { 81 pins = "gpio63"; 82 function = "rgmii_ck"; 83 bias-pull-up; 84 drive-strength = <16>; 85 }; 86 rx-ck { 87 pins = "gpio69"; 88 function = "rgmii_ck"; 89 bias-disable; 90 drive-strength = <2>; 91 }; 92 }; 93}; 94