RT-N15.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. /dts-v1/;
  2. #include "rt2880.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. #address-cells = <1>;
  7. #size-cells = <1>;
  8. compatible = "asus,rt-n15", "ralink,rt2880-soc";
  9. model = "Asus RT-N15";
  10. aliases {
  11. led-boot = &led_power;
  12. led-failsafe = &led_power;
  13. led-running = &led_power;
  14. led-upgrade = &led_power;
  15. };
  16. cfi@1f000000 {
  17. compatible = "cfi-flash";
  18. reg = <0x1f000000 0x800000>;
  19. bank-width = <2>;
  20. device-width = <2>;
  21. partitions {
  22. compatible = "fixed-partitions";
  23. #address-cells = <1>;
  24. #size-cells = <1>;
  25. partition@0 {
  26. label = "uboot";
  27. reg = <0x0 0x30000>;
  28. read-only;
  29. };
  30. partition@30000 {
  31. label = "uboot-env";
  32. reg = <0x30000 0x10000>;
  33. read-only;
  34. };
  35. factory: partition@40000 {
  36. label = "factory";
  37. reg = <0x40000 0x10000>;
  38. read-only;
  39. };
  40. partition@50000 {
  41. compatible = "denx,uimage";
  42. label = "firmware";
  43. reg = <0x50000 0x3b0000>;
  44. };
  45. };
  46. };
  47. rtl8366s {
  48. compatible = "realtek,rtl8366s";
  49. gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
  50. gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
  51. };
  52. keys {
  53. compatible = "gpio-keys-polled";
  54. poll-interval = <100>;
  55. wps {
  56. label = "wps";
  57. gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
  58. linux,code = <KEY_WPS_BUTTON>;
  59. };
  60. reset {
  61. label = "reset";
  62. gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
  63. linux,code = <KEY_RESTART>;
  64. };
  65. };
  66. leds {
  67. compatible = "gpio-leds";
  68. led_power: power {
  69. label = "rt-n15:blue:power";
  70. gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
  71. };
  72. };
  73. };
  74. &gpio0 {
  75. status = "okay";
  76. };
  77. &pinctrl {
  78. state_default: pinctrl0 {
  79. gpio {
  80. ralink,group = "i2c", "uartlite", "mdio";
  81. ralink,function = "gpio";
  82. };
  83. };
  84. };
  85. &ethernet {
  86. status = "okay";
  87. mtd-mac-address = <&factory 0x4>;
  88. port@0 {
  89. mediatek,fixed-link = <1000 1 1 1>;
  90. };
  91. mdio-bus {
  92. status = "okay";
  93. phy0: ethernet-phy@0 {
  94. phy-mode = "mii";
  95. reg = <0>;
  96. };
  97. };
  98. };
  99. &wmac {
  100. ralink,mtd-eeprom = <&factory 0>;
  101. };