WIZFI630A.dts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. /dts-v1/;
  2. #include "rt5350.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "wiznet,wizfi630a", "ralink,rt5350-soc";
  7. model = "WIZnet WizFi630A";
  8. aliases {
  9. led-boot = &led_run;
  10. led-failsafe = &led_run;
  11. led-running = &led_run;
  12. led-upgrade = &led_run;
  13. };
  14. chosen {
  15. bootargs = "console=ttyS1,115200";
  16. };
  17. leds {
  18. compatible = "gpio-leds";
  19. led_run: run {
  20. label = "wizfi630a::run";
  21. gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
  22. };
  23. wps {
  24. label = "wizfi630a::wps";
  25. gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
  26. };
  27. uart1 {
  28. label = "wizfi630a::uart1";
  29. gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
  30. };
  31. uart2 {
  32. label = "wizfi630a::uart2";
  33. gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
  34. };
  35. };
  36. keys {
  37. compatible = "gpio-keys-polled";
  38. poll-interval = <20>;
  39. reset {
  40. label = "reset";
  41. gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
  42. linux,code = <KEY_RESTART>;
  43. };
  44. wps {
  45. label = "wps";
  46. gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
  47. linux,code = <KEY_WPS_BUTTON>;
  48. };
  49. scm1 {
  50. label = "SCM1";
  51. gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
  52. linux,code = <BTN_0>;
  53. };
  54. scm2 {
  55. label = "SCM2";
  56. gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
  57. linux,code = <BTN_1>;
  58. };
  59. };
  60. };
  61. &gpio1 {
  62. status = "okay";
  63. };
  64. &spi0 {
  65. status = "okay";
  66. m25p80@0 {
  67. compatible = "jedec,spi-nor";
  68. reg = <0>;
  69. spi-max-frequency = <10000000>;
  70. partitions {
  71. compatible = "fixed-partitions";
  72. #address-cells = <1>;
  73. #size-cells = <1>;
  74. partition@0 {
  75. #size-cells = <1>;
  76. label = "uboot";
  77. reg = <0x0 0x30000>;
  78. read-only;
  79. };
  80. partition@30000 {
  81. #size-cells = <1>;
  82. label = "uboot-env";
  83. reg = <0x30000 0x10000>;
  84. read-only;
  85. };
  86. factory: partition@40000 {
  87. #size-cells = <1>;
  88. label = "factory";
  89. reg = <0x40000 0x10000>;
  90. read-only;
  91. };
  92. partition@50000 {
  93. compatible = "denx,uimage";
  94. #size-cells = <1>;
  95. label = "firmware";
  96. reg = <0x50000 0xfb0000>;
  97. };
  98. };
  99. };
  100. };
  101. &uart {
  102. status = "okay";
  103. pinctrl-names = "default";
  104. pinctrl-0 = <&uartf_pins>;
  105. };
  106. &pinctrl {
  107. state_default: pinctrl0 {
  108. gpio {
  109. ralink,group = "i2c", "jtag" ;
  110. ralink,function = "gpio";
  111. };
  112. };
  113. };
  114. &ethernet {
  115. mtd-mac-address = <&factory 0x4>;
  116. };
  117. &esw {
  118. mediatek,portmap = <0x17>;
  119. };
  120. &wmac {
  121. ralink,mtd-eeprom = <&factory 0>;
  122. };
  123. &ehci {
  124. status = "okay";
  125. };
  126. &ohci {
  127. status = "okay";
  128. };