1
0

SL-R7205.dts 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. /dts-v1/;
  2. #include "rt3050.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "SL-R7205", "ralink,rt3052-soc";
  6. model = "Skyline SL-R7205 Wireless 3G Router";
  7. cfi@1f000000 {
  8. compatible = "cfi-flash";
  9. reg = <0x1f000000 0x800000>;
  10. bank-width = <2>;
  11. device-width = <2>;
  12. #address-cells = <1>;
  13. #size-cells = <1>;
  14. partition@0 {
  15. label = "u-boot";
  16. reg = <0x0 0x30000>;
  17. read-only;
  18. };
  19. partition@30000 {
  20. label = "u-boot-env";
  21. reg = <0x30000 0x10000>;
  22. read-only;
  23. };
  24. factory: partition@40000 {
  25. label = "factory";
  26. reg = <0x40000 0x10000>;
  27. read-only;
  28. };
  29. partition@50000 {
  30. label = "firmware";
  31. reg = <0x50000 0x3b0000>;
  32. };
  33. };
  34. gpio-leds {
  35. compatible = "gpio-leds";
  36. wifi {
  37. label = "sl-r7205:green:wifi";
  38. gpios = <&gpio0 7 1>;
  39. };
  40. };
  41. gpio-keys-polled {
  42. compatible = "gpio-keys-polled";
  43. #address-cells = <1>;
  44. #size-cells = <0>;
  45. poll-interval = <20>;
  46. reset {
  47. label = "reset";
  48. gpios = <&gpio0 10 1>;
  49. linux,code = <KEY_RESTART>;
  50. };
  51. wps {
  52. label = "wps";
  53. gpios = <&gpio0 0 1>;
  54. linux,code = <KEY_WPS_BUTTON>;
  55. };
  56. };
  57. };
  58. &pinctrl {
  59. state_default: pinctrl0 {
  60. gpio {
  61. ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
  62. ralink,function = "gpio";
  63. };
  64. };
  65. };
  66. &ethernet {
  67. mtd-mac-address = <&factory 0x4>;
  68. };
  69. &esw {
  70. mediatek,portmap = <0x3e>;
  71. };
  72. &wmac {
  73. ralink,mtd-eeprom = <&factory 0>;
  74. };
  75. &otg {
  76. status = "okay";
  77. };