qcom-ipq4029-ap-303.dts 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. // SPDX-License-Identifier: GPL-2.0-only OR MIT
  2. #include "qcom-ipq4029-aruba-glenmorangie.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. / {
  5. model = "Aruba AP-303";
  6. compatible = "aruba,ap-303";
  7. aliases {
  8. led-boot = &led_system_green;
  9. led-failsafe = &led_system_red;
  10. led-running = &led_system_green;
  11. led-upgrade = &led_system_red;
  12. };
  13. leds {
  14. compatible = "gpio-leds";
  15. wifi_green {
  16. label = "green:wifi";
  17. gpios = <&tlmm 39 GPIO_ACTIVE_HIGH>;
  18. linux,default-trigger = "phy0tpt";
  19. };
  20. wifi_amber {
  21. label = "amber:wifi";
  22. gpios = <&tlmm 40 GPIO_ACTIVE_HIGH>;
  23. linux,default-trigger = "phy1tpt";
  24. };
  25. led_system_red: system_red {
  26. label = "red:system";
  27. gpios = <&tlmm 46 GPIO_ACTIVE_HIGH>;
  28. };
  29. led_system_green: system_green {
  30. label = "green:system";
  31. gpios = <&tlmm 47 GPIO_ACTIVE_HIGH>;
  32. };
  33. };
  34. };
  35. &tlmm {
  36. /*
  37. * In addition to the Pins listed below,
  38. * the following GPIOs have "features":
  39. * 54 - out - active low to force HW reset
  40. * 41 - out - active low to reset TPM
  41. * 43 - out - active low to reset BLE radio
  42. * 19 - in - active high when DC powered
  43. */
  44. phy-reset {
  45. line-name = "PHY-reset";
  46. gpios = <42 GPIO_ACTIVE_HIGH>;
  47. gpio-hog;
  48. output-high;
  49. };
  50. };
  51. &blsp1_spi1 {
  52. pinctrl-0 = <&spi_0_pins>;
  53. pinctrl-names = "default";
  54. status = "okay";
  55. cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
  56. flash@0 {
  57. compatible = "jedec,spi-nor";
  58. reg = <0>;
  59. spi-max-frequency = <24000000>;
  60. partitions {
  61. compatible = "fixed-partitions";
  62. #address-cells = <1>;
  63. #size-cells = <1>;
  64. /*
  65. * There is no partition map for the NOR flash
  66. * in the stock firmware.
  67. *
  68. * All partitions here are based on offsets
  69. * found in the U-Boot GPL code and information
  70. * from smem.
  71. */
  72. partition@0 {
  73. label = "sbl1";
  74. reg = <0x0 0x40000>;
  75. read-only;
  76. };
  77. partition@40000 {
  78. label = "mibib";
  79. reg = <0x40000 0x20000>;
  80. read-only;
  81. };
  82. partition@60000 {
  83. label = "qsee";
  84. reg = <0x60000 0x60000>;
  85. read-only;
  86. };
  87. partition@c0000 {
  88. label = "cdt";
  89. reg = <0xc0000 0x10000>;
  90. read-only;
  91. };
  92. partition@d0000 {
  93. label = "ddrparams";
  94. reg = <0xd0000 0x10000>;
  95. read-only;
  96. };
  97. partition@e0000 {
  98. label = "ART";
  99. reg = <0xe0000 0x10000>;
  100. read-only;
  101. nvmem-layout {
  102. compatible = "fixed-layout";
  103. #address-cells = <1>;
  104. #size-cells = <1>;
  105. precal_art_1000: precal@1000 {
  106. reg = <0x1000 0x2f20>;
  107. };
  108. precal_art_5000: precal@5000 {
  109. reg = <0x5000 0x2f20>;
  110. };
  111. };
  112. };
  113. partition@f0000 {
  114. label = "appsbl";
  115. reg = <0xf0000 0xf0000>;
  116. read-only;
  117. };
  118. partition@1e0000 {
  119. label = "mfginfo";
  120. reg = <0x1e0000 0x10000>;
  121. read-only;
  122. nvmem-layout {
  123. compatible = "fixed-layout";
  124. #address-cells = <1>;
  125. #size-cells = <1>;
  126. macaddr_mfginfo_1d: macaddr@1d {
  127. compatible = "mac-base";
  128. reg = <0x1d 0x6>;
  129. #nvmem-cell-cells = <1>;
  130. };
  131. };
  132. };
  133. partition@1f0000 {
  134. label = "apcd";
  135. reg = <0x1f0000 0x10000>;
  136. read-only;
  137. };
  138. partition@200000 {
  139. label = "osss";
  140. reg = <0x200000 0x180000>;
  141. read-only;
  142. };
  143. partition@380000 {
  144. label = "appsblenv";
  145. reg = <0x380000 0x10000>;
  146. };
  147. partition@390000 {
  148. label = "pds";
  149. reg = <0x390000 0x10000>;
  150. read-only;
  151. };
  152. partition@3a0000 {
  153. label = "fcache";
  154. reg = <0x3a0000 0x10000>;
  155. read-only;
  156. };
  157. partition@3b0000 {
  158. /* Called osss1 in smem */
  159. label = "u-boot-env-bak";
  160. reg = <0x3b0000 0x10000>;
  161. read-only;
  162. };
  163. partition@3f0000 {
  164. label = "u-boot-env";
  165. reg = <0x3f0000 0x10000>;
  166. read-only;
  167. };
  168. };
  169. };
  170. };