OMNI-PLUG.dts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. /dts-v1/;
  2. /include/ "rt5350.dtsi"
  3. / {
  4. compatible = "OMNI-PLUG", "ralink,rt5350-soc";
  5. model = "Omnima MiniPlug";
  6. pinctrl {
  7. state_default: pinctrl0 {
  8. gpio {
  9. ralink,group = "i2c", "jtag", "uartf";
  10. ralink,function = "gpio";
  11. };
  12. };
  13. };
  14. gpio-leds {
  15. compatible = "gpio-leds";
  16. wlan {
  17. label = "miniplug:red:wlan";
  18. gpios = <&gpio0 9 0>;
  19. };
  20. mobile {
  21. label = "miniplug:green:mobile";
  22. gpios = <&gpio0 13 1>;
  23. };
  24. };
  25. gpio-keys-polled {
  26. compatible = "gpio-keys-polled";
  27. #address-cells = <1>;
  28. #size-cells = <0>;
  29. poll-interval = <20>;
  30. wps {
  31. label = "wps";
  32. gpios = <&gpio0 0 1>;
  33. linux,code = <0x211>;
  34. };
  35. reset {
  36. label = "reset";
  37. gpios = <&gpio0 10 1>;
  38. linux,code = <0x211>;
  39. };
  40. mode-one {
  41. label = "mode1";
  42. gpios = <&gpio0 11 1>;
  43. linux,code = <0x211>;
  44. };
  45. mode-two {
  46. label = "mode2";
  47. gpios = <&gpio0 12 1>;
  48. linux,code = <0x211>;
  49. };
  50. };
  51. palmbus@10000000 {
  52. gpio0: gpio@600 {
  53. status = "okay";
  54. };
  55. spi@b00 {
  56. status = "okay";
  57. m25p80@0 {
  58. #address-cells = <1>;
  59. #size-cells = <1>;
  60. compatible = "mx25l6405d";
  61. reg = <0 0>;
  62. linux,modalias = "m25p80", "mx25l6405d";
  63. spi-max-frequency = <10000000>;
  64. partition@0 {
  65. label = "u-boot";
  66. reg = <0x0 0x30000>;
  67. read-only;
  68. };
  69. partition@30000 {
  70. label = "u-boot-env";
  71. reg = <0x30000 0x10000>;
  72. read-only;
  73. };
  74. factory: partition@40000 {
  75. label = "factory";
  76. reg = <0x40000 0x10000>;
  77. read-only;
  78. };
  79. partition@50000 {
  80. label = "firmware";
  81. reg = <0x50000 0x7b0000>;
  82. };
  83. };
  84. };
  85. };
  86. ethernet@10100000 {
  87. mtd-mac-address = <&factory 0x4>;
  88. };
  89. esw@10110000 {
  90. ralink,portmap = <0x2f>;
  91. };
  92. wmac@10180000 {
  93. ralink,mtd-eeprom = <&factory 0>;
  94. };
  95. otg@101c0000 {
  96. status = "okay";
  97. };
  98. };