F7C027.dts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. /dts-v1/;
  2. #include "rt5350.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "belkin,f7c027", "ralink,rt5350-soc";
  7. model = "Belkin F7C027";
  8. gpio-leds {
  9. compatible = "gpio-leds";
  10. status {
  11. label = "f7c027:blue:status";
  12. gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
  13. };
  14. power {
  15. label = "f7c027:blue:power";
  16. gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
  17. };
  18. orange {
  19. label = "f7c027:orange:status";
  20. gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
  21. };
  22. relay {
  23. label = "f7c027:device:relay";
  24. gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
  25. };
  26. };
  27. gpio-keys-polled {
  28. compatible = "gpio-keys-polled";
  29. #address-cells = <1>;
  30. #size-cells = <0>;
  31. poll-interval = <20>;
  32. top {
  33. label = "restore";
  34. gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
  35. linux,code = <KEY_RESTART>;
  36. };
  37. power {
  38. label = "power";
  39. gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
  40. linux,code = <KEY_RFKILL>;
  41. };
  42. sensor {
  43. label = "sensor";
  44. gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
  45. linux,code = <BTN_0>;
  46. };
  47. };
  48. };
  49. &spi0 {
  50. status = "okay";
  51. m25p80@0 {
  52. #address-cells = <1>;
  53. #size-cells = <1>;
  54. compatible = "jedec,spi-nor";
  55. reg = <0>;
  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. };