0001 // SPDX-License-Identifier: GPL-2.0
0002 // Copyright (c) 2018, Linaro Limited
0003
0004 /dts-v1/;
0005
0006 #include <dt-bindings/gpio/gpio.h>
0007 #include "qcs404-evb.dtsi"
0008
0009 / {
0010 model = "Qualcomm Technologies, Inc. QCS404 EVB 4000";
0011 compatible = "qcom,qcs404-evb-4000", "qcom,qcs404-evb",
0012 "qcom,qcs404";
0013 };
0014
0015 ðernet {
0016 status = "okay";
0017
0018 snps,reset-gpio = <&tlmm 60 GPIO_ACTIVE_LOW>;
0019 snps,reset-active-low;
0020 snps,reset-delays-us = <0 10000 10000>;
0021
0022 pinctrl-names = "default";
0023 pinctrl-0 = <ðernet_defaults>;
0024
0025 phy-handle = <&phy1>;
0026 phy-mode = "rgmii";
0027 mdio {
0028 #address-cells = <0x1>;
0029 #size-cells = <0x0>;
0030 compatible = "snps,dwmac-mdio";
0031 phy1: phy@4 {
0032 compatible = "ethernet-phy-ieee802.3-c22";
0033 device_type = "ethernet-phy";
0034 reg = <0x4>;
0035 };
0036 };
0037 };
0038
0039 &tlmm {
0040 ethernet_defaults: ethernet-defaults {
0041 int {
0042 pins = "gpio61";
0043 function = "rgmii_int";
0044 bias-disable;
0045 drive-strength = <2>;
0046 };
0047 mdc {
0048 pins = "gpio76";
0049 function = "rgmii_mdc";
0050 bias-pull-up;
0051 };
0052 mdio {
0053 pins = "gpio75";
0054 function = "rgmii_mdio";
0055 bias-pull-up;
0056 };
0057 tx {
0058 pins = "gpio67", "gpio66", "gpio65", "gpio64";
0059 function = "rgmii_tx";
0060 bias-pull-up;
0061 drive-strength = <16>;
0062 };
0063 rx {
0064 pins = "gpio73", "gpio72", "gpio71", "gpio70";
0065 function = "rgmii_rx";
0066 bias-disable;
0067 drive-strength = <2>;
0068 };
0069 tx-ctl {
0070 pins = "gpio68";
0071 function = "rgmii_ctl";
0072 bias-pull-up;
0073 drive-strength = <16>;
0074 };
0075 rx-ctl {
0076 pins = "gpio74";
0077 function = "rgmii_ctl";
0078 bias-disable;
0079 drive-strength = <2>;
0080 };
0081 tx-ck {
0082 pins = "gpio63";
0083 function = "rgmii_ck";
0084 bias-pull-up;
0085 drive-strength = <16>;
0086 };
0087 rx-ck {
0088 pins = "gpio69";
0089 function = "rgmii_ck";
0090 bias-disable;
0091 drive-strength = <2>;
0092 };
0093 };
0094 };