1
0

RT-N15.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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. label = "firmware";
  42. reg = <0x50000 0x3b0000>;
  43. };
  44. };
  45. };
  46. rtl8366s {
  47. compatible = "realtek,rtl8366s";
  48. gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
  49. gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
  50. };
  51. gpio-keys-polled {
  52. compatible = "gpio-keys-polled";
  53. poll-interval = <100>;
  54. wps {
  55. label = "wps";
  56. gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
  57. linux,code = <KEY_WPS_BUTTON>;
  58. };
  59. reset {
  60. label = "reset";
  61. gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
  62. linux,code = <KEY_RESTART>;
  63. };
  64. };
  65. gpio-leds {
  66. compatible = "gpio-leds";
  67. led_power: power {
  68. label = "rt-n15:blue:power";
  69. gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
  70. };
  71. };
  72. };
  73. &gpio0 {
  74. status = "okay";
  75. };
  76. &pinctrl {
  77. state_default: pinctrl0 {
  78. gpio {
  79. ralink,group = "i2c", "uartlite", "mdio";
  80. ralink,function = "gpio";
  81. };
  82. };
  83. };
  84. &ethernet {
  85. status = "okay";
  86. mtd-mac-address = <&factory 0x4>;
  87. port@0 {
  88. mediatek,fixed-link = <1000 1 1 1>;
  89. };
  90. mdio-bus {
  91. status = "okay";
  92. phy0: ethernet-phy@0 {
  93. phy-mode = "mii";
  94. reg = <0>;
  95. };
  96. };
  97. };
  98. &wmac {
  99. ralink,mtd-eeprom = <&factory 0>;
  100. };