WIZFI630A.dts 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. /dts-v1/;
  2. /include/ "rt5350.dtsi"
  3. / {
  4. compatible = "wizfi630a", "ralink,rt5350-soc";
  5. model = "WIZnet WizFi630A";
  6. chosen {
  7. bootargs = "console=ttyS1,115200";
  8. };
  9. palmbus@10000000 {
  10. gpio1: gpio@660 {
  11. status = "okay";
  12. };
  13. spi@b00 {
  14. status = "okay";
  15. m25p80@0 {
  16. #address-cells = <1>;
  17. #size-cells = <1>;
  18. compatible = "w25q128";
  19. reg = <0>;
  20. linux,modalias = "m25p80", "w25q128";
  21. spi-max-frequency = <10000000>;
  22. partition@0 {
  23. label = "uboot";
  24. reg = <0x0 0x30000>;
  25. read-only;
  26. };
  27. partition@30000 {
  28. label = "uboot-env";
  29. reg = <0x30000 0x10000>;
  30. read-only;
  31. };
  32. factory: partition@40000 {
  33. label = "factory";
  34. reg = <0x40000 0x10000>;
  35. read-only;
  36. };
  37. partition@50000 {
  38. label = "firmware";
  39. reg = <0x50000 0xfb0000>;
  40. };
  41. };
  42. };
  43. uart@500 {
  44. compatible = "ralink,mt7620a-uart", "ralink,rt2880-uart", "ns16550a";
  45. reg = <0x500 0x100>;
  46. resets = <&rstctrl 12>;
  47. reset-names = "uart";
  48. interrupt-parent = <&intc>;
  49. interrupts = <5>;
  50. reg-shift = <2>;
  51. status = "okay";
  52. };
  53. uartlite@c00 {
  54. compatible = "ralink,mt7620a-uart", "ralink,rt2880-uart", "ns16550a";
  55. reg = <0xc00 0x100>;
  56. resets = <&rstctrl 19>;
  57. reset-names = "uartl";
  58. interrupt-parent = <&intc>;
  59. interrupts = <12>;
  60. reg-shift = <2>;
  61. pinctrl-names = "default";
  62. pinctrl-0 = <&uartlite_pins>;
  63. };
  64. };
  65. pinctrl {
  66. state_default: pinctrl0 {
  67. gpio {
  68. ralink,group = "i2c", "jtag" ;
  69. ralink,function = "gpio";
  70. };
  71. };
  72. uartf_gpio_pins: uartf_gpio {
  73. uartf_gpio {
  74. ralink,group = "uartf";
  75. ralink,function = "uartf";
  76. };
  77. };
  78. uartlite_pins: uartlite {
  79. uart {
  80. ralink,group = "uartlite";
  81. ralink,function = "uartlite";
  82. };
  83. };
  84. };
  85. ethernet@10100000 {
  86. mtd-mac-address = <&factory 0x4>;
  87. };
  88. esw@10110000 {
  89. ralink,portmap = <0x17>;
  90. };
  91. wmac@10180000 {
  92. ralink,mtd-eeprom = <&factory 0>;
  93. };
  94. ehci@101c0000 {
  95. status = "okay";
  96. };
  97. ohci@101c1000 {
  98. status = "okay";
  99. };
  100. gpio-export {
  101. compatible = "gpio-export";
  102. #size-cells = <0>;
  103. };
  104. gpio-leds {
  105. compatible = "gpio-leds";
  106. run {
  107. label = "wizfi630a::run";
  108. gpios = <&gpio0 1 1>;
  109. };
  110. wps {
  111. label = "wizfi630a::wps";
  112. gpios = <&gpio0 20 1>;
  113. };
  114. uart1 {
  115. label = "wizfi630a::uart1";
  116. gpios = <&gpio0 18 1>;
  117. };
  118. uart2 {
  119. label = "wizfi630a::uart2";
  120. gpios = <&gpio0 21 1>;
  121. };
  122. };
  123. gpio-keys-polled {
  124. compatible = "gpio-keys-polled";
  125. #address-cells = <1>;
  126. #size-cells = <0>;
  127. poll-interval = <20>;
  128. reset {
  129. label = "reset";
  130. gpios = <&gpio0 17 1>;
  131. linux,code = <0x198>;
  132. };
  133. wps {
  134. label = "wps";
  135. gpios = <&gpio0 0 1>;
  136. linux,code = <0x211>;
  137. };
  138. scm1 {
  139. label = "SCM1";
  140. gpios = <&gpio0 19 1>;
  141. linux,code = <0x100>;
  142. };
  143. scm2 {
  144. label = "SCM2";
  145. gpios = <&gpio0 2 1>;
  146. linux,code = <0x101>;
  147. };
  148. };
  149. };