red-15w-rev1.dts 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. // SPDX-License-Identifier: GPL-2.0-or-later or MIT
  2. #include <dt-bindings/gpio/gpio.h>
  3. /include/ "fsl/p1010si-pre.dtsi"
  4. / {
  5. model = "Sophos RED 15w Rev.1";
  6. compatible = "sophos,red-15w-rev1";
  7. aliases {
  8. led-boot = &system_green;
  9. led-failsafe = &system_red;
  10. led-running = &system_green;
  11. led-upgrade = &system_red;
  12. };
  13. memory {
  14. device_type = "memory";
  15. };
  16. leds {
  17. compatible = "gpio-leds";
  18. system_green: system_green {
  19. gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
  20. label = "red-15w-rev1:green:system";
  21. };
  22. system_red: system_red {
  23. gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>;
  24. label = "red-15w-rev1:red:system";
  25. };
  26. router {
  27. gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
  28. label = "red-15w-rev1:green:router";
  29. };
  30. internet {
  31. gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
  32. label = "red-15w-rev1:green:internet";
  33. };
  34. tunnel {
  35. gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
  36. label = "red-15w-rev1:green:tunnel";
  37. };
  38. };
  39. soc: soc@ffe00000 {
  40. ranges = <0x0 0x0 0xffe00000 0x100000>;
  41. i2c@3000 {
  42. eeprom@50 {
  43. compatible = "st,24c256";
  44. reg = <0x50>;
  45. };
  46. };
  47. i2c@3100 {
  48. eeprom@52 {
  49. compatible = "atmel,24c01";
  50. reg = < 0x52 >;
  51. };
  52. };
  53. gpio0: gpio-controller@fc00 {
  54. };
  55. usb@22000 {
  56. phy_type = "utmi";
  57. dr_mode = "host";
  58. };
  59. mdio@24000 {
  60. phy0: ethernet-phy@0 {
  61. reg = <0x0>;
  62. };
  63. };
  64. mdio@25000 {
  65. tbi_phy: tbi-phy@11 {
  66. reg = <0x11>;
  67. };
  68. };
  69. mdio@26000 {
  70. status = "disabled";
  71. };
  72. enet0: ethernet@b0000 {
  73. phy-connection-type = "rgmii-id";
  74. fixed-link {
  75. speed = <1000>;
  76. full-duplex;
  77. };
  78. };
  79. enet1: ethernet@b1000 {
  80. phy-handle = <&phy0>;
  81. phy-connection-type = "sgmii";
  82. tbi-handle = <&tbi_phy>;
  83. };
  84. enet2: ethernet@b2000 {
  85. status = "disabled";
  86. };
  87. sdhc@2e000 {
  88. status = "disabled";
  89. };
  90. };
  91. ifc: ifc@ffe1e000 {
  92. reg = <0x0 0xffe1e000 0 0x2000>;
  93. /* NOR, NAND Flashes and CPLD on board */
  94. ranges = <0x0 0x0 0x0 0xee000000 0x02000000
  95. 0x1 0x0 0x0 0xff800000 0x00010000
  96. 0x3 0x0 0x0 0xffb00000 0x00000020>;
  97. nand@1,0 {
  98. compatible = "fsl,ifc-nand";
  99. reg = <0x1 0x0 0x10000>;
  100. partitions {
  101. compatible = "fixed-partitions";
  102. #address-cells = <1>;
  103. #size-cells = <1>;
  104. /*
  105. * Original partition layout:
  106. * 0x000000000000-0x000000100000 : "NAND U-Boot Image"
  107. * 0x000000100000-0x000000200000 : "NAND U-Boot Environment"
  108. * 0x000000200000-0x000000300000 : "Provisioning"
  109. * - OS-Image 1
  110. * 0x000000300000-0x000000400000 : "fdt1"
  111. * 0x000000400000-0x000000c00000 : "uimage1"
  112. * 0x000000c00000-0x000001c00000 : "rootfs1"
  113. * - OS-Image 2
  114. * 0x000001c00000-0x000001d00000 : "fdt2"
  115. * 0x000001d00000-0x000002500000 : "uimage2"
  116. * 0x000002500000-0x000003500000 : "rootfs2"
  117. * - Empty
  118. * 0x000003500000-0x000008000000 : "data"
  119. */
  120. partition@0 {
  121. reg = <0x0 0x100000>;
  122. label = "u-boot";
  123. read-only;
  124. };
  125. partition@100000 {
  126. reg = <0x100000 0x100000>;
  127. label = "u-boot-env";
  128. };
  129. partition@200000 {
  130. reg = <0x200000 0x100000>;
  131. label = "provisioning";
  132. read-only;
  133. };
  134. partition@300000 {
  135. reg = <0x300000 0x800000>;
  136. label = "kernel";
  137. };
  138. partition@b00000 {
  139. reg = <0xb00000 0x7500000>;
  140. label = "ubi";
  141. };
  142. oem-partition@300000 {
  143. reg = <0x300000 0x1900000>;
  144. label = "sophos-os1";
  145. };
  146. oem-partition@1c00000 {
  147. reg = <0x1c00000 0x1900000>;
  148. label = "sophos-os2";
  149. };
  150. oem-partition@3500000 {
  151. reg = <0x3500000 0x4b00000>;
  152. label = "sophos-data";
  153. };
  154. };
  155. };
  156. };
  157. pci0: pcie@ffe09000 {
  158. status = "disabled";
  159. };
  160. pci1: pcie@ffe0a000 {
  161. reg = <0 0xffe0a000 0 0x1000>;
  162. ranges = <0x2000000 0x0 0x80000000 0 0x80000000 0x0 0x20000000
  163. 0x1000000 0x0 0x00000000 0 0xffc00000 0x0 0x10000>;
  164. pcie@0 {
  165. ranges = <0x2000000 0x0 0x80000000
  166. 0x2000000 0x0 0x80000000
  167. 0x0 0x20000000
  168. 0x1000000 0x0 0x0
  169. 0x1000000 0x0 0x0
  170. 0x0 0x100000>;
  171. };
  172. };
  173. };
  174. /include/ "fsl/p1010si-post.dtsi"
  175. /*
  176. * For the OpenWrt 22.03 release, since Linux 5.10.138 now uses
  177. * aliases to determine PCI domain numbers, drop aliases so as not to
  178. * change the sysfs path of our wireless netdevs.
  179. */
  180. / {
  181. aliases {
  182. /delete-property/ pci0;
  183. /delete-property/ pci1;
  184. };
  185. };