2
0

F7C027.dts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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. spi-max-frequency = <10000000>;
  56. partition@0 {
  57. label = "u-boot";
  58. reg = <0x0 0x30000>;
  59. read-only;
  60. };
  61. partition@30000 {
  62. label = "u-boot-env";
  63. reg = <0x30000 0x10000>;
  64. read-only;
  65. };
  66. factory: partition@40000 {
  67. label = "factory";
  68. reg = <0x40000 0x10000>;
  69. read-only;
  70. };
  71. partition@50000 {
  72. label = "firmware";
  73. reg = <0x50000 0x770000>;
  74. };
  75. partition@7c0000 {
  76. label = "firmware2";
  77. reg = <0x7c0000 0x770000>;
  78. };
  79. partition@f30000 {
  80. label = "belkin_settings";
  81. reg = <0xf30000 0xa0000>;
  82. };
  83. partition@fd0000 {
  84. label = "unknown";
  85. reg = <0xfd0000 0x10000>;
  86. };
  87. partition@fe0000 {
  88. label = "nvram";
  89. reg = <0xfe0000 0x10000>;
  90. };
  91. partition@ff0000 {
  92. label = "user_factory";
  93. reg = <0xff0000 0x10000>;
  94. };
  95. };
  96. };
  97. &wmac {
  98. ralink,mtd-eeprom = <&factory 0>;
  99. };
  100. &pinctrl {
  101. state_default: pinctrl0 {
  102. gpio {
  103. ralink,group = "i2c", "jtag", "uartf";
  104. ralink,function = "gpio";
  105. };
  106. };
  107. };