SL-R7205.dts 1.6 KB

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