F7C027.dts 2.0 KB

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