mt7623a-rfb-emmc.dts 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (c) 2017-2018 MediaTek Inc.
  4. * Author: Sean Wang <sean.wang@mediatek.com>
  5. *
  6. */
  7. /dts-v1/;
  8. #include <dt-bindings/input/input.h>
  9. #include "mt7623a.dtsi"
  10. #include "mt6323.dtsi"
  11. / {
  12. model = "MediaTek MT7623A with eMMC reference board";
  13. compatible = "mediatek,mt7623a-rfb-emmc", "mediatek,mt7623";
  14. aliases {
  15. serial2 = &uart2;
  16. };
  17. chosen {
  18. stdout-path = "serial2:115200n8";
  19. };
  20. cpus {
  21. cpu@0 {
  22. proc-supply = <&mt6323_vproc_reg>;
  23. };
  24. cpu@1 {
  25. proc-supply = <&mt6323_vproc_reg>;
  26. };
  27. cpu@2 {
  28. proc-supply = <&mt6323_vproc_reg>;
  29. };
  30. cpu@3 {
  31. proc-supply = <&mt6323_vproc_reg>;
  32. };
  33. };
  34. gpio-keys {
  35. compatible = "gpio-keys";
  36. pinctrl-names = "default";
  37. pinctrl-0 = <&key_pins_a>;
  38. button-factory {
  39. label = "factory";
  40. linux,code = <BTN_0>;
  41. gpios = <&pio 256 GPIO_ACTIVE_LOW>;
  42. };
  43. button-wps {
  44. label = "wps";
  45. linux,code = <KEY_WPS_BUTTON>;
  46. gpios = <&pio 257 GPIO_ACTIVE_HIGH>;
  47. };
  48. };
  49. memory@80000000 {
  50. device_type = "memory";
  51. reg = <0 0x80000000 0 0x20000000>;
  52. };
  53. reg_1p8v: regulator-1p8v {
  54. compatible = "regulator-fixed";
  55. regulator-name = "fixed-1.8V";
  56. regulator-min-microvolt = <1800000>;
  57. regulator-max-microvolt = <1800000>;
  58. regulator-boot-on;
  59. regulator-always-on;
  60. };
  61. reg_3p3v: regulator-3p3v {
  62. compatible = "regulator-fixed";
  63. regulator-name = "fixed-3.3V";
  64. regulator-min-microvolt = <3300000>;
  65. regulator-max-microvolt = <3300000>;
  66. regulator-boot-on;
  67. regulator-always-on;
  68. };
  69. reg_5v: regulator-5v {
  70. compatible = "regulator-fixed";
  71. regulator-name = "fixed-5V";
  72. regulator-min-microvolt = <5000000>;
  73. regulator-max-microvolt = <5000000>;
  74. regulator-boot-on;
  75. regulator-always-on;
  76. };
  77. sound {
  78. compatible = "mediatek,mt2701-wm8960-machine";
  79. mediatek,platform = <&afe>;
  80. audio-routing =
  81. "Headphone", "HP_L",
  82. "Headphone", "HP_R",
  83. "LINPUT1", "AMIC",
  84. "RINPUT1", "AMIC";
  85. mediatek,audio-codec = <&wm8960>;
  86. pinctrl-names = "default";
  87. pinctrl-0 = <&i2s0_pins_a>;
  88. };
  89. };
  90. &btif {
  91. status = "okay";
  92. };
  93. &crypto {
  94. status = "okay";
  95. };
  96. &switch0 {
  97. ports {
  98. port@0 {
  99. status = "okay";
  100. label = "lan0";
  101. };
  102. port@1 {
  103. status = "okay";
  104. label = "lan1";
  105. };
  106. port@2 {
  107. status = "okay";
  108. label = "lan2";
  109. };
  110. port@3 {
  111. status = "okay";
  112. label = "lan3";
  113. };
  114. port@4 {
  115. status = "okay";
  116. label = "wan";
  117. };
  118. };
  119. };
  120. &i2c0 {
  121. pinctrl-names = "default";
  122. pinctrl-0 = <&i2c0_pins_a>;
  123. status = "okay";
  124. };
  125. &i2c1 {
  126. pinctrl-names = "default";
  127. pinctrl-0 = <&i2c1_pins_b>;
  128. status = "okay";
  129. wm8960: wm8960@1a {
  130. compatible = "wlf,wm8960";
  131. reg = <0x1a>;
  132. };
  133. };
  134. &i2c2 {
  135. pinctrl-names = "default";
  136. pinctrl-0 = <&i2c2_pins_b>;
  137. status = "okay";
  138. };
  139. &mmc0 {
  140. pinctrl-names = "default", "state_uhs";
  141. pinctrl-0 = <&mmc0_pins_default>;
  142. pinctrl-1 = <&mmc0_pins_uhs>;
  143. status = "okay";
  144. bus-width = <8>;
  145. max-frequency = <50000000>;
  146. cap-mmc-highspeed;
  147. vmmc-supply = <&reg_3p3v>;
  148. vqmmc-supply = <&reg_1p8v>;
  149. non-removable;
  150. };
  151. &mmc1 {
  152. pinctrl-names = "default", "state_uhs";
  153. pinctrl-0 = <&mmc1_pins_default>;
  154. pinctrl-1 = <&mmc1_pins_uhs>;
  155. status = "okay";
  156. bus-width = <4>;
  157. max-frequency = <50000000>;
  158. cap-sd-highspeed;
  159. cd-gpios = <&pio 261 GPIO_ACTIVE_LOW>;
  160. vmmc-supply = <&reg_3p3v>;
  161. vqmmc-supply = <&reg_3p3v>;
  162. };
  163. &pcie {
  164. pinctrl-names = "default";
  165. pinctrl-0 = <&pcie_default>;
  166. status = "okay";
  167. pcie@0,0 {
  168. status = "okay";
  169. };
  170. pcie@1,0 {
  171. status = "okay";
  172. };
  173. };
  174. &pcie0_phy {
  175. status = "okay";
  176. };
  177. &pcie1_phy {
  178. status = "okay";
  179. };
  180. &pwm {
  181. pinctrl-names = "default";
  182. pinctrl-0 = <&pwm_pins_a>;
  183. status = "okay";
  184. };
  185. &spi0 {
  186. pinctrl-names = "default";
  187. pinctrl-0 = <&spi0_pins_a>;
  188. status = "okay";
  189. };
  190. &spi1 {
  191. pinctrl-names = "default";
  192. pinctrl-0 = <&spi1_pins_a>;
  193. status = "okay";
  194. };
  195. &uart2 {
  196. pinctrl-names = "default";
  197. pinctrl-0 = <&uart2_pins_b>;
  198. status = "okay";
  199. };
  200. &usb1 {
  201. vusb33-supply = <&reg_3p3v>;
  202. vbus-supply = <&reg_5v>;
  203. status = "okay";
  204. };
  205. &u3phy1 {
  206. status = "okay";
  207. };