2
0

RT-N15.dts 1.6 KB

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