2
0

F7C027.dts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. /dts-v1/;
  2. #include "rt5350.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "F7C027", "ralink,rt5350-soc";
  6. model = "Belkin F7C027";
  7. gpio-leds {
  8. compatible = "gpio-leds";
  9. status {
  10. label = "f7c027:blue:status";
  11. gpios = <&gpio0 7 1>;
  12. };
  13. power {
  14. label = "f7c027:blue:power";
  15. gpios = <&gpio0 9 1>;
  16. };
  17. orange {
  18. label = "f7c027:orange:status";
  19. gpios = <&gpio0 11 1>;
  20. };
  21. relay {
  22. label = "f7c027:device:relay";
  23. gpios = <&gpio0 13 0>;
  24. };
  25. };
  26. gpio-keys-polled {
  27. compatible = "gpio-keys-polled";
  28. #address-cells = <1>;
  29. #size-cells = <0>;
  30. poll-interval = <20>;
  31. top {
  32. label = "restore";
  33. gpios = <&gpio0 10 1>;
  34. linux,code = <KEY_RESTART>;
  35. };
  36. power {
  37. label = "power";
  38. gpios = <&gpio0 12 1>;
  39. linux,code = <KEY_RFKILL>;
  40. };
  41. sensor {
  42. label = "sensor";
  43. gpios = <&gpio0 14 1>;
  44. linux,code = <BTN_0>;
  45. };
  46. };
  47. };
  48. &spi0 {
  49. status = "okay";
  50. m25p80@0 {
  51. #address-cells = <1>;
  52. #size-cells = <1>;
  53. compatible = "jedec,spi-nor";
  54. reg = <0>;
  55. linux,modalias = "m25p80", "mx25l12805d";
  56. spi-max-frequency = <10000000>;
  57. partition@0 {
  58. label = "u-boot";
  59. reg = <0x0 0x30000>;
  60. read-only;
  61. };
  62. partition@30000 {
  63. label = "u-boot-env";
  64. reg = <0x30000 0x10000>;
  65. read-only;
  66. };
  67. factory: partition@40000 {
  68. label = "factory";
  69. reg = <0x40000 0x10000>;
  70. read-only;
  71. };
  72. partition@50000 {
  73. label = "firmware";
  74. reg = <0x50000 0x770000>;
  75. };
  76. partition@7c0000 {
  77. label = "firmware2";
  78. reg = <0x7c0000 0x770000>;
  79. };
  80. partition@f30000 {
  81. label = "belkin_settings";
  82. reg = <0xf30000 0xa0000>;
  83. };
  84. partition@fd0000 {
  85. label = "unknown";
  86. reg = <0xfd0000 0x10000>;
  87. };
  88. partition@fe0000 {
  89. label = "nvram";
  90. reg = <0xfe0000 0x10000>;
  91. };
  92. partition@ff0000 {
  93. label = "user_factory";
  94. reg = <0xff0000 0x10000>;
  95. };
  96. };
  97. };
  98. &wmac {
  99. ralink,mtd-eeprom = <&factory 0>;
  100. };
  101. &pinctrl {
  102. state_default: pinctrl0 {
  103. gpio {
  104. ralink,group = "i2c", "jtag", "uartf";
  105. ralink,function = "gpio";
  106. };
  107. };
  108. };