NA930.dts 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. /dts-v1/;
  2. /include/ "mt7620a.dtsi"
  3. / {
  4. compatible = "ralink,mt7620a-eval-board", "ralink,mt7620a-soc";
  5. model = "Sercomm NA930";
  6. chosen {
  7. bootargs = "console=ttyS1,57600";
  8. };
  9. pinctrl {
  10. state_default: pinctrl0 {
  11. gpio {
  12. ralink,group = "i2c", "rgmii2", "spi", "ephy";
  13. ralink,function = "gpio";
  14. };
  15. uartf_gpio {
  16. ralink,group = "uartf";
  17. ralink,function = "gpio uartf";
  18. };
  19. };
  20. };
  21. palmbus@10000000 {
  22. uart@500 {
  23. status = "okay";
  24. };
  25. gpio@638 {
  26. status = "okay";
  27. };
  28. gpio@660 {
  29. status = "okay";
  30. };
  31. };
  32. nand {
  33. #address-cells = <1>;
  34. #size-cells = <1>;
  35. compatible = "mtk,mt7620-nand";
  36. partition@0 {
  37. label = "u-boot";
  38. reg = <0x0 0x20000>;
  39. read-only;
  40. };
  41. partition@200000 {
  42. label = "factory";
  43. reg = <0x200000 0x40000>;
  44. read-only;
  45. };
  46. partition@240000 {
  47. label = "Config";
  48. reg = <0x240000 0x400000>;
  49. read-only;
  50. };
  51. partition@640000 {
  52. label = "firmware";
  53. reg = <0x640000 0x1400000>;
  54. };
  55. };
  56. ethernet@10100000 {
  57. status = "okay";
  58. pinctrl-names = "default";
  59. pinctrl-0 = <&rgmii1_pins &mdio_pins>;
  60. ralink,port-map = "llllw";
  61. port@4 {
  62. status = "okay";
  63. phy-handle = <&phy4>;
  64. phy-mode = "rgmii";
  65. };
  66. port@5 {
  67. status = "okay";
  68. phy-handle = <&phy5>;
  69. phy-mode = "rgmii";
  70. };
  71. mdio-bus {
  72. status = "okay";
  73. phy4: ethernet-phy@4 {
  74. reg = <4>;
  75. phy-mode = "rgmii";
  76. };
  77. phy5: ethernet-phy@5 {
  78. reg = <5>;
  79. phy-mode = "rgmii";
  80. };
  81. };
  82. };
  83. gpio-keys-polled {
  84. compatible = "gpio-keys-polled";
  85. #address-cells = <1>;
  86. #size-cells = <0>;
  87. poll-interval = <20>;
  88. reset {
  89. label = "reset";
  90. gpios = <&gpio0 11 1>;
  91. linux,code = <0x198>;
  92. };
  93. zwave {
  94. label = "zwave";
  95. gpios = <&gpio0 12 1>;
  96. linux,code = <0x100>;
  97. };
  98. wps {
  99. label = "wps";
  100. gpios = <&gpio0 14 1>;
  101. linux,code = <0x211>;
  102. };
  103. };
  104. gpio-leds {
  105. compatible = "gpio-leds";
  106. zwave {
  107. label = "na930:blue:zwave";
  108. gpios = <&gpio2 0 1>;
  109. };
  110. status {
  111. label = "na930:blue:status";
  112. gpios = <&gpio2 26 1>;
  113. };
  114. service {
  115. label = "na930:blue:service";
  116. gpios = <&gpio2 28 1>;
  117. };
  118. power {
  119. label = "na930:blue:power";
  120. gpios = <&gpio2 29 1>;
  121. };
  122. };
  123. gpio_export {
  124. compatible = "gpio-export";
  125. #size-cells = <0>;
  126. telit {
  127. gpio-export,name = "telit";
  128. gpio-export,output = <1>;
  129. gpios = <&gpio0 13 0>;
  130. };
  131. };
  132. gsw@10110000 {
  133. ralink,port4 = "gmac";
  134. };
  135. ehci@101c0000 {
  136. status = "okay";
  137. };
  138. ohci@101c1000 {
  139. status = "okay";
  140. };
  141. };