FONERA20N.dts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. /dts-v1/;
  2. #include "rt3050.dtsi"
  3. / {
  4. compatible = "FONERA20N", "ralink,rt3052-soc";
  5. model = "La Fonera 2.0N";
  6. cfi@1f000000 {
  7. compatible = "cfi-flash";
  8. reg = <0x1f000000 0x800000>;
  9. bank-width = <2>;
  10. device-width = <2>;
  11. #address-cells = <1>;
  12. #size-cells = <1>;
  13. partition@0 {
  14. label = "u-boot";
  15. reg = <0x0 0x30000>;
  16. read-only;
  17. };
  18. partition@30000 {
  19. label = "u-boot-env";
  20. reg = <0x30000 0x10000>;
  21. read-only;
  22. };
  23. factory: partition@40000 {
  24. label = "factory";
  25. reg = <0x40000 0x10000>;
  26. read-only;
  27. };
  28. partition@50000 {
  29. label = "firmware";
  30. reg = <0x50000 0x7b0000>;
  31. };
  32. };
  33. gpio-leds {
  34. compatible = "gpio-leds";
  35. wifi {
  36. label = "fonera20n:orange:wifi";
  37. gpios = <&gpio0 7 1>;
  38. };
  39. power {
  40. label = "fonera20n:green:power";
  41. gpios = <&gpio0 9 1>;
  42. };
  43. usb {
  44. label = "fonera20n:orange:usb";
  45. gpios = <&gpio0 14 1>;
  46. };
  47. };
  48. gpio-keys-polled {
  49. compatible = "gpio-keys-polled";
  50. #address-cells = <1>;
  51. #size-cells = <0>;
  52. poll-interval = <20>;
  53. reset {
  54. label = "reset";
  55. gpios = <&gpio0 12 1>;
  56. linux,code = <0x198>;
  57. };
  58. switch {
  59. label = "switch";
  60. gpios = <&gpio0 13 1>;
  61. linux,code = <0xf7>;
  62. linux,input-type = <5>; /* EV_SW */
  63. };
  64. };
  65. };
  66. &pinctrl {
  67. state_default: pinctrl0 {
  68. gpio {
  69. ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf";
  70. ralink,function = "gpio";
  71. };
  72. };
  73. };
  74. &ethernet {
  75. mtd-mac-address = <&factory 0x28>;
  76. };
  77. &esw {
  78. mediatek,portmap = <0x2f>;
  79. port@0 {
  80. compatible = "swconfig,port";
  81. swconfig,segment = "lan";
  82. swconfig,portmap = <0 4>;
  83. };
  84. port@1 {
  85. compatible = "swconfig,port";
  86. swconfig,segment = "lan";
  87. swconfig,portmap = <1 3>;
  88. };
  89. port@2 {
  90. compatible = "swconfig,port";
  91. swconfig,segment = "lan";
  92. swconfig,portmap = <2 2>;
  93. };
  94. port@3 {
  95. compatible = "swconfig,port";
  96. swconfig,segment = "lan";
  97. swconfig,portmap = <3 1>;
  98. };
  99. port@4 {
  100. compatible = "swconfig,port";
  101. swconfig,segment = "wan";
  102. swconfig,portmap = <4 0>;
  103. };
  104. };
  105. &wmac {
  106. ralink,mtd-eeprom = <&factory 0>;
  107. };
  108. &otg {
  109. status = "okay";
  110. };