qcom-ipq4018-mf287_common.dtsi 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  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. label = "blue:power";
  28. function = LED_FUNCTION_POWER;
  29. color = <LED_COLOR_ID_BLUE>;
  30. };
  31. };
  32. keys {
  33. compatible = "gpio-keys";
  34. key_reset: key-reset {
  35. label = "reset";
  36. linux,code = <KEY_RESTART>;
  37. };
  38. key_wps: key-wps {
  39. label = "wps";
  40. linux,code = <KEY_WPS_BUTTON>;
  41. };
  42. };
  43. soc {
  44. rng@22000 {
  45. status = "okay";
  46. };
  47. tcsr@1949000 {
  48. compatible = "qcom,tcsr";
  49. reg = <0x1949000 0x100>;
  50. qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
  51. };
  52. tcsr@194b000 {
  53. /* select hostmode */
  54. compatible = "qcom,tcsr";
  55. reg = <0x194b000 0x100>;
  56. qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
  57. status = "okay";
  58. };
  59. ess_tcsr@1953000 {
  60. compatible = "qcom,tcsr";
  61. reg = <0x1953000 0x1000>;
  62. qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
  63. };
  64. tcsr@1957000 {
  65. compatible = "qcom,tcsr";
  66. reg = <0x1957000 0x100>;
  67. qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
  68. };
  69. };
  70. };
  71. &mdio {
  72. status = "okay";
  73. };
  74. &watchdog {
  75. status = "okay";
  76. };
  77. &blsp_dma {
  78. status = "okay";
  79. };
  80. &usb2 {
  81. status = "okay";
  82. };
  83. &usb3 {
  84. status = "okay";
  85. };
  86. &blsp1_uart1 {
  87. pinctrl-0 = <&serial_pins>;
  88. pinctrl-names = "default";
  89. status = "okay";
  90. };
  91. &crypto {
  92. status = "okay";
  93. };
  94. &cryptobam {
  95. status = "okay";
  96. };
  97. &gmac {
  98. status = "okay";
  99. nvmem-cell-names = "mac-address";
  100. nvmem-cells = <&macaddr_mac_0>;
  101. mac-address-increment = <2>;
  102. };
  103. &switch {
  104. status = "okay";
  105. };
  106. &swport2 {
  107. status = "okay";
  108. label = "lan1";
  109. };
  110. &swport3 {
  111. status = "okay";
  112. label = "lan2";
  113. };
  114. &swport4 {
  115. status = "okay";
  116. label = "lan3";
  117. };
  118. &swport5 {
  119. status = "okay";
  120. label = "lan4";
  121. };
  122. &qpic_bam {
  123. status = "okay";
  124. };
  125. &usb2_hs_phy {
  126. status = "okay";
  127. };
  128. &usb3_ss_phy {
  129. status = "okay";
  130. };
  131. &usb3_hs_phy {
  132. status = "okay";
  133. };
  134. &wifi0 {
  135. status = "okay";
  136. nvmem-cell-names = "pre-calibration", "mac-address";
  137. nvmem-cells = <&precal_art_1000>, <&macaddr_mac_0>;
  138. };
  139. &wifi1 {
  140. status = "okay";
  141. nvmem-cell-names = "pre-calibration", "mac-address";
  142. nvmem-cells = <&precal_art_5000>, <&macaddr_mac_0>;
  143. mac-address-increment = <1>;
  144. };