1
0

U25AWF-H1.dts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. /dts-v1/;
  2. #include "mt7620a.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. /{
  6. compatible = "kimax,u25awf-h1","ralink,mt7620a-soc";
  7. model = "Kimax U25AWF-H1";
  8. aliases {
  9. led-boot = &led_wifi;
  10. led-failsafe = &led_wifi;
  11. led-running = &led_wifi;
  12. led-upgrade = &led_wifi;
  13. };
  14. gpio-keys-polled {
  15. compatible = "gpio-keys-polled";
  16. poll-interval = <20>;
  17. reset {
  18. label = "reset";
  19. gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
  20. linux,code = <KEY_RESTART>;
  21. };
  22. };
  23. gpio-leds {
  24. compatible = "gpio-leds";
  25. led_wifi: wifi {
  26. label = "u25awf:red:wifi";
  27. gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
  28. };
  29. lan {
  30. label = "u25awf:green:lan";
  31. gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
  32. };
  33. };
  34. };
  35. &gpio2 {
  36. status = "okay";
  37. };
  38. &gpio3 {
  39. status = "okay";
  40. };
  41. &spi0 {
  42. status = "okay";
  43. m25p80@0 {
  44. compatible = "jedec,spi-nor";
  45. reg = <0>;
  46. spi-max-frequency = <10000000>;
  47. partitions {
  48. compatible = "fixed-partitions";
  49. #address-cells = <1>;
  50. #size-cells = <1>;
  51. partition@0 {
  52. label = "u-boot";
  53. reg = <0x0 0x30000>;
  54. read-only;
  55. };
  56. partition@30000 {
  57. label = "u-boot-env";
  58. reg = <0x30000 0x10000>;
  59. read-only;
  60. };
  61. factory: partition@40000 {
  62. label = "factory";
  63. reg = <0x40000 0x10000>;
  64. read-only;
  65. };
  66. partition@50000 {
  67. label = "firmware";
  68. reg = <0x50000 0xfb0000>;
  69. };
  70. };
  71. };
  72. };
  73. &ehci {
  74. status = "okay";
  75. };
  76. &ohci {
  77. status = "okay";
  78. };
  79. &ethernet {
  80. mtd-mac-address = <&factory 0x4>;
  81. };
  82. &wmac {
  83. ralink,mtd-eeprom = <&factory 0>;
  84. };
  85. &pinctrl {
  86. state_default: pinctrl0 {
  87. default {
  88. ralink,group = "uartf", "ephy", "wled";
  89. ralink,function = "gpio";
  90. };
  91. };
  92. };