FONERA20N.dts 2.1 KB

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