qcom-ipq4018-mf287_common.dtsi 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. // Copyright (c) 2022, Pawel Dembicki <[email protected]>.
  3. // Copyright (c) 2022, Giammarco Marzano <[email protected]>.
  4. // Copyright (c) 2023, Andreas Böhler <[email protected]>
  5. #include "qcom-ipq4019.dtsi"
  6. #include <dt-bindings/soc/qcom,tcsr.h>
  7. #include <dt-bindings/gpio/gpio.h>
  8. #include <dt-bindings/input/input.h>
  9. #include <dt-bindings/leds/common.h>
  10. / {
  11. aliases {
  12. led-boot = &led_status;
  13. led-failsafe = &led_status;
  14. led-running = &led_status;
  15. led-upgrade = &led_status;
  16. };
  17. chosen {
  18. /*
  19. * bootargs forced by u-boot bootipq command:
  20. * 'ubi.mtd=rootfs root=mtd:ubi_rootfs rootfstype=squashfs rootwait'
  21. */
  22. bootargs-append = " root=/dev/ubiblock0_1";
  23. };
  24. leds {
  25. compatible = "gpio-leds";
  26. led_status: led-0 {
  27. function = LED_FUNCTION_POWER;
  28. color = <LED_COLOR_ID_BLUE>;
  29. };
  30. };
  31. gpio_export {
  32. compatible = "gpio-export";
  33. #size-cells = <0>;
  34. gpio_modem_reset: modem {
  35. gpio-export,name = "modem-reset";
  36. gpio-export,output = <0>;
  37. };
  38. };
  39. keys {
  40. compatible = "gpio-keys";
  41. key_reset: key-reset {
  42. label = "reset";
  43. linux,code = <KEY_RESTART>;
  44. };
  45. key_wps: key-wps {
  46. label = "wps";
  47. linux,code = <KEY_WPS_BUTTON>;
  48. };
  49. };
  50. soc {
  51. rng@22000 {
  52. status = "okay";
  53. };
  54. tcsr@1949000 {
  55. compatible = "qcom,tcsr";
  56. reg = <0x1949000 0x100>;
  57. qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
  58. };
  59. tcsr@194b000 {
  60. /* select hostmode */
  61. compatible = "qcom,tcsr";
  62. reg = <0x194b000 0x100>;
  63. qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
  64. status = "okay";
  65. };
  66. ess_tcsr@1953000 {
  67. compatible = "qcom,tcsr";
  68. reg = <0x1953000 0x1000>;
  69. qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
  70. };
  71. tcsr@1957000 {
  72. compatible = "qcom,tcsr";
  73. reg = <0x1957000 0x100>;
  74. qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
  75. };
  76. };
  77. };
  78. &mdio {
  79. status = "okay";
  80. };
  81. &watchdog {
  82. status = "okay";
  83. };
  84. &blsp_dma {
  85. status = "okay";
  86. };
  87. &usb2 {
  88. status = "okay";
  89. };
  90. &usb3 {
  91. status = "okay";
  92. };
  93. &blsp1_uart1 {
  94. pinctrl-0 = <&serial_pins>;
  95. pinctrl-names = "default";
  96. status = "okay";
  97. };
  98. &crypto {
  99. status = "okay";
  100. };
  101. &cryptobam {
  102. status = "okay";
  103. };
  104. &gmac {
  105. status = "okay";
  106. nvmem-cell-names = "mac-address";
  107. nvmem-cells = <&macaddr_mac_0 2>;
  108. };
  109. &switch {
  110. status = "okay";
  111. };
  112. &swport2 {
  113. status = "okay";
  114. label = "lan1";
  115. };
  116. &swport3 {
  117. status = "okay";
  118. label = "lan2";
  119. };
  120. &swport4 {
  121. status = "okay";
  122. label = "lan3";
  123. };
  124. &swport5 {
  125. status = "okay";
  126. label = "lan4";
  127. };
  128. &qpic_bam {
  129. status = "okay";
  130. };
  131. &usb2_hs_phy {
  132. status = "okay";
  133. };
  134. &usb3_ss_phy {
  135. status = "okay";
  136. };
  137. &usb3_hs_phy {
  138. status = "okay";
  139. };
  140. &wifi0 {
  141. status = "okay";
  142. nvmem-cell-names = "pre-calibration", "mac-address";
  143. nvmem-cells = <&precal_art_1000>, <&macaddr_mac_0 0>;
  144. };
  145. &wifi1 {
  146. status = "okay";
  147. nvmem-cell-names = "pre-calibration", "mac-address";
  148. nvmem-cells = <&precal_art_5000>, <&macaddr_mac_0 1>;
  149. };