ipq6010-re-cs-07.dts 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. /dts-v1/;
  3. #include "ipq6010-re-cs.dtsi"
  4. / {
  5. model = "JDCloud RE-CS-07";
  6. compatible = "jdcloud,re-cs-07", "qcom,ipq6018";
  7. aliases {
  8. ethernet0 = &dp1;
  9. ethernet1 = &dp2;
  10. ethernet2 = &dp3;
  11. ethernet3 = &dp4;
  12. label-mac-device = &dp2;
  13. serial0 = &blsp1_uart3;
  14. };
  15. keys {
  16. compatible = "gpio-keys";
  17. pinctrl-0 = <&button_pins>;
  18. pinctrl-names = "default";
  19. reset {
  20. label = "reset";
  21. linux,code = <KEY_RESTART>;
  22. gpios = <&tlmm 56 GPIO_ACTIVE_LOW>;
  23. };
  24. };
  25. };
  26. &tlmm {
  27. button_pins: button-pins {
  28. mux {
  29. pins = "gpio56";
  30. function = "gpio";
  31. drive-strength = <8>;
  32. bias-pull-up;
  33. };
  34. };
  35. };
  36. &switch {
  37. status = "okay";
  38. switch_lan_bmp = <(ESS_PORT2 | ESS_PORT3 | ESS_PORT4)>;
  39. switch_wan_bmp = <ESS_PORT1>;
  40. switch_mac_mode = <MAC_MODE_PSGMII>;
  41. qcom,port_phyinfo {
  42. port@1 {
  43. port_id = <1>;
  44. phy_address = <24>;
  45. };
  46. port@2 {
  47. port_id = <2>;
  48. phy_address = <25>;
  49. };
  50. port@3 {
  51. port_id = <3>;
  52. phy_address = <26>;
  53. };
  54. port@4 {
  55. port_id = <4>;
  56. phy_address = <27>;
  57. };
  58. };
  59. };
  60. &edma {
  61. status = "okay";
  62. };
  63. &dp1 {
  64. status = "okay";
  65. phy-handle = <&qca8075_0>;
  66. label = "wan";
  67. };
  68. &dp2 {
  69. status = "okay";
  70. phy-handle = <&qca8075_1>;
  71. label = "lan1";
  72. };
  73. &dp3 {
  74. status = "okay";
  75. phy-handle = <&qca8075_2>;
  76. label = "lan2";
  77. };
  78. &dp4 {
  79. status = "okay";
  80. phy-handle = <&qca8075_3>;
  81. label = "lan3";
  82. };