NW718.dts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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. gpio-leds {
  9. compatible = "gpio-leds";
  10. cpu {
  11. label = "nw718:amber:cpu";
  12. gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
  13. };
  14. usb {
  15. label = "nw718:amber:usb";
  16. gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
  17. };
  18. wps {
  19. label = "nw718:amber:wps";
  20. gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
  21. };
  22. };
  23. gpio-keys-polled {
  24. compatible = "gpio-keys-polled";
  25. #address-cells = <1>;
  26. #size-cells = <0>;
  27. poll-interval = <20>;
  28. reset {
  29. label = "reset";
  30. gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
  31. linux,code = <KEY_RESTART>;
  32. };
  33. wps {
  34. label = "wps";
  35. gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
  36. linux,code = <KEY_WPS_BUTTON>;
  37. };
  38. };
  39. };
  40. &spi0 {
  41. status = "okay";
  42. m25p80@0 {
  43. #address-cells = <1>;
  44. #size-cells = <1>;
  45. compatible = "jedec,spi-nor";
  46. reg = <0>;
  47. spi-max-frequency = <25000000>;
  48. partition@0 {
  49. label = "u-boot";
  50. reg = <0x0 0x30000>;
  51. read-only;
  52. };
  53. partition@30000 {
  54. label = "config";
  55. reg = <0x30000 0x20000>;
  56. read-only;
  57. };
  58. factory: partition@50000 {
  59. label = "factory";
  60. reg = <0x50000 0x10000>;
  61. read-only;
  62. };
  63. partition@60000 {
  64. label = "firmware";
  65. reg = <0x60000 0x3a0000>;
  66. };
  67. };
  68. };
  69. &pinctrl {
  70. state_default: pinctrl0 {
  71. gpio {
  72. ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
  73. ralink,function = "gpio";
  74. };
  75. };
  76. };
  77. &ethernet {
  78. mtd-mac-address = <&factory 0x4>;
  79. };
  80. &esw {
  81. mediatek,portmap = <0x2f>;
  82. };
  83. &wmac {
  84. ralink,mtd-eeprom = <&factory 0>;
  85. };
  86. &otg {
  87. status = "okay";
  88. };