RT-N15.dts 1.7 KB

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