ws-ap3710i.dts 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. // SPDX-License-Identifier: GPL-2.0-or-later or MIT
  2. #include <dt-bindings/input/input.h>
  3. #include <dt-bindings/gpio/gpio.h>
  4. /include/ "fsl/p1020si-pre.dtsi"
  5. / {
  6. model = "Enterasys WS-AP3710i";
  7. compatible = "enterasys,ws-ap3710i";
  8. aliases {
  9. led-boot = &led_power_green;
  10. led-failsafe = &led_power_red;
  11. led-running = &led_power_green;
  12. led-upgrade = &led_power_red;
  13. label-mac-device = &enet0;
  14. };
  15. memory {
  16. device_type = "memory";
  17. };
  18. leds {
  19. compatible = "gpio-leds";
  20. wifi1 {
  21. gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>;
  22. label = "ws-ap3710i:green:radio1";
  23. linux,default-trigger = "phy0tpt";
  24. };
  25. wifi2 {
  26. gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
  27. label = "ws-ap3710i:green:radio2";
  28. linux,default-trigger = "phy1tpt";
  29. };
  30. led_power_green: power_green {
  31. gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
  32. label = "ws-ap3710i:green:power";
  33. };
  34. led_power_red: power_red {
  35. gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
  36. label = "ws-ap3710i:red:power";
  37. };
  38. };
  39. keys {
  40. compatible = "gpio-keys";
  41. reset {
  42. label = "Reset button";
  43. gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
  44. linux,code = <KEY_RESTART>;
  45. };
  46. };
  47. lbc: localbus@ffe05000 {
  48. reg = <0 0xffe05000 0 0x1000>;
  49. ranges = <0x0 0x0 0x0 0xee000000 0x2000000>;
  50. nor@0,0 {
  51. #address-cells = <1>;
  52. #size-cells = <1>;
  53. compatible = "cfi-flash";
  54. reg = <0x0 0x0 0x2000000>;
  55. bank-width = <2>;
  56. device-width = <1>;
  57. partitions {
  58. compatible = "fixed-partitions";
  59. #address-cells = <1>;
  60. #size-cells = <1>;
  61. partition@0 {
  62. compatible = "denx,fit";
  63. reg = <0x0 0x1d80000>;
  64. label = "firmware";
  65. };
  66. partition@1d80000 {
  67. reg = <0x1d80000 0x80000>;
  68. label = "u-boot";
  69. read-only;
  70. };
  71. partition@1e00000 {
  72. reg = <0x1e00000 0x100000>;
  73. label = "nvram";
  74. read-only;
  75. };
  76. partition@1f00000 {
  77. reg = <0x1f00000 0x20000>;
  78. label = "cfg2";
  79. read-only;
  80. };
  81. partition@1f20000 {
  82. reg = <0x1f20000 0x20000>;
  83. label = "cfg1";
  84. read-only;
  85. };
  86. };
  87. };
  88. };
  89. soc: soc@ffe00000 {
  90. ranges = <0x0 0x0 0xffe00000 0x100000>;
  91. gpio0: gpio-controller@fc00 {
  92. };
  93. mdio@24000 {
  94. phy4: ethernet-phy@4 {
  95. reg = <0x4>;
  96. reset-gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
  97. };
  98. };
  99. enet0: ethernet@b0000 {
  100. phy-connection-type = "rgmii-id";
  101. phy-handle = <&phy4>;
  102. };
  103. enet1: ethernet@b1000 {
  104. status = "disabled";
  105. };
  106. enet2: ethernet@b2000 {
  107. status = "disabled";
  108. };
  109. usb@22000 {
  110. status = "disabled";
  111. };
  112. usb@23000 {
  113. status = "disabled";
  114. };
  115. };
  116. pci0: pcie@ffe09000 {
  117. ranges = <0x2000000 0x0 0xa0000000 0 0xa0000000 0x0 0x20000000
  118. 0x1000000 0x0 0x00000000 0 0xffc10000 0x0 0x10000>;
  119. reg = <0 0xffe09000 0 0x1000>;
  120. pcie@0 {
  121. ranges = <0x2000000 0x0 0xa0000000
  122. 0x2000000 0x0 0xa0000000
  123. 0x0 0x20000000
  124. 0x1000000 0x0 0x0
  125. 0x1000000 0x0 0x0
  126. 0x0 0x100000>;
  127. };
  128. };
  129. pci1: pcie@ffe0a000 {
  130. reg = <0 0xffe0a000 0 0x1000>;
  131. ranges = <0x2000000 0x0 0x80000000 0 0x80000000 0x0 0x20000000
  132. 0x1000000 0x0 0x00000000 0 0xffc00000 0x0 0x10000>;
  133. pcie@0 {
  134. ranges = <0x2000000 0x0 0x80000000
  135. 0x2000000 0x0 0x80000000
  136. 0x0 0x20000000
  137. 0x1000000 0x0 0x0
  138. 0x1000000 0x0 0x0
  139. 0x0 0x100000>;
  140. };
  141. };
  142. };
  143. /include/ "fsl/p1020si-post.dtsi"
  144. /*
  145. * For the OpenWrt 22.03 release, since Linux 5.10.138 now uses
  146. * aliases to determine PCI domain numbers, drop aliases so as not to
  147. * change the sysfs path of our wireless netdevs.
  148. */
  149. / {
  150. aliases {
  151. /delete-property/ pci0;
  152. /delete-property/ pci1;
  153. };
  154. };