OMEGA2.dtsi 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. #include "mt7628an.dtsi"
  2. #include <dt-bindings/gpio/gpio.h>
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "onion,omega2", "mediatek,mt7628an-soc";
  6. aliases {
  7. led-status = &system_led;
  8. };
  9. chosen {
  10. bootargs = "console=ttyS0,115200";
  11. };
  12. gpio-leds {
  13. compatible = "gpio-leds";
  14. system_led: system {
  15. gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
  16. };
  17. };
  18. gpio-keys-polled {
  19. compatible = "gpio-keys-polled";
  20. poll-interval = <20>;
  21. reset {
  22. label = "reset";
  23. gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
  24. linux,code = <KEY_RESTART>;
  25. };
  26. };
  27. };
  28. &pinctrl {
  29. state_default: pinctrl0 {
  30. gpio {
  31. ralink,group = "gpio";
  32. ralink,function = "gpio";
  33. };
  34. perst {
  35. ralink,group = "perst";
  36. ralink,function = "gpio";
  37. };
  38. refclk {
  39. ralink,group = "refclk";
  40. ralink,function = "gpio";
  41. };
  42. i2s {
  43. ralink,group = "i2s";
  44. ralink,function = "gpio";
  45. };
  46. spis {
  47. ralink,group = "spis";
  48. ralink,function = "gpio";
  49. };
  50. wled_kn {
  51. ralink,group = "wled_kn";
  52. ralink,function = "gpio";
  53. };
  54. wled_an {
  55. ralink,group = "wled_an";
  56. ralink,function = "gpio";
  57. };
  58. wdt {
  59. ralink,group = "wdt";
  60. ralink,function = "gpio";
  61. };
  62. pwm0 {
  63. ralink,group = "pwm0";
  64. ralink,function = "gpio";
  65. };
  66. pwm1 {
  67. ralink,group = "pwm1";
  68. ralink,function = "gpio";
  69. };
  70. };
  71. };
  72. &gpio1 {
  73. status = "okay";
  74. };
  75. &gpio2 {
  76. status = "okay";
  77. };
  78. &spi0 {
  79. status = "okay";
  80. pinctrl-names = "default";
  81. pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>;
  82. m25p80@0 {
  83. compatible = "jedec,spi-nor";
  84. reg = <0>;
  85. spi-max-frequency = <40000000>;
  86. m25p,chunked-io = <31>;
  87. partitions {
  88. compatible = "fixed-partitions";
  89. #address-cells = <1>;
  90. #size-cells = <1>;
  91. partition@0 {
  92. label = "u-boot";
  93. reg = <0x0 0x30000>;
  94. read-only;
  95. };
  96. partition@30000 {
  97. label = "u-boot-env";
  98. reg = <0x30000 0x10000>;
  99. read-only;
  100. };
  101. factory: partition@40000 {
  102. label = "factory";
  103. reg = <0x40000 0x10000>;
  104. read-only;
  105. };
  106. firmware: partition@50000 {
  107. label = "firmware";
  108. };
  109. };
  110. };
  111. spidev@1 {
  112. #address-cells = <1>;
  113. #size-cells = <1>;
  114. compatible = "linux,spidev";
  115. reg = <1>;
  116. spi-max-frequency = <40000000>;
  117. };
  118. };
  119. &i2c {
  120. status = "okay";
  121. };
  122. &uart1 {
  123. status = "okay";
  124. };
  125. &uart2 {
  126. status = "okay";
  127. };
  128. &ethernet {
  129. mtd-mac-address = <&factory 0x28>;
  130. };
  131. &sdhci {
  132. status = "okay";
  133. mediatek,cd-low;
  134. };
  135. &wmac {
  136. status = "okay";
  137. };