OMEGA2.dtsi 2.3 KB

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