RT-N15.dts 1.8 KB

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