NW718.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. /dts-v1/;
  2. #include "rt3050.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "netcore,nw718", "ralink,rt3050-soc";
  7. model = "Netcore NW718";
  8. aliases {
  9. led-boot = &led_cpu;
  10. led-failsafe = &led_cpu;
  11. led-running = &led_cpu;
  12. led-upgrade = &led_cpu;
  13. };
  14. gpio-leds {
  15. compatible = "gpio-leds";
  16. led_cpu: cpu {
  17. label = "nw718:amber:cpu";
  18. gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
  19. };
  20. usb {
  21. label = "nw718:amber:usb";
  22. gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
  23. trigger-sources = <&otg_port1>;
  24. linux,default-trigger = "usbport";
  25. };
  26. wps {
  27. label = "nw718:amber:wps";
  28. gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
  29. };
  30. };
  31. gpio-keys-polled {
  32. compatible = "gpio-keys-polled";
  33. poll-interval = <20>;
  34. reset {
  35. label = "reset";
  36. gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
  37. linux,code = <KEY_RESTART>;
  38. };
  39. wps {
  40. label = "wps";
  41. gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
  42. linux,code = <KEY_WPS_BUTTON>;
  43. };
  44. };
  45. };
  46. &spi0 {
  47. status = "okay";
  48. m25p80@0 {
  49. compatible = "jedec,spi-nor";
  50. reg = <0>;
  51. spi-max-frequency = <25000000>;
  52. partitions {
  53. compatible = "fixed-partitions";
  54. #address-cells = <1>;
  55. #size-cells = <1>;
  56. partition@0 {
  57. label = "u-boot";
  58. reg = <0x0 0x30000>;
  59. read-only;
  60. };
  61. partition@30000 {
  62. label = "config";
  63. reg = <0x30000 0x20000>;
  64. read-only;
  65. };
  66. factory: partition@50000 {
  67. label = "factory";
  68. reg = <0x50000 0x10000>;
  69. read-only;
  70. };
  71. partition@60000 {
  72. label = "firmware";
  73. reg = <0x60000 0x3a0000>;
  74. };
  75. };
  76. };
  77. };
  78. &pinctrl {
  79. state_default: pinctrl0 {
  80. gpio {
  81. ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
  82. ralink,function = "gpio";
  83. };
  84. };
  85. };
  86. &ethernet {
  87. mtd-mac-address = <&factory 0x4>;
  88. };
  89. &esw {
  90. mediatek,portmap = <0x2f>;
  91. };
  92. &wmac {
  93. ralink,mtd-eeprom = <&factory 0>;
  94. };
  95. &otg {
  96. status = "okay";
  97. };