RT-N15.dts 1.6 KB

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