qcs404-evb-4000.dts 1.7 KB

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