OMNI-EMB-HPM.dts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. /dts-v1/;
  2. /include/ "rt3883.dtsi"
  3. / {
  4. compatible = "OMNI-EMB-HPM", "ralink,rt3883-soc";
  5. model = "Omnima EMB HPM";
  6. chosen {
  7. bootargs = "console=ttyS0,115200";
  8. };
  9. palmbus@10000000 {
  10. spi@b00 {
  11. status = "okay";
  12. m25p80@0 {
  13. compatible = "macronix,mx25l12805d";
  14. spi-max-frequency = <25000000>;
  15. reg = <0>;
  16. #address-cells = <1>;
  17. #size-cells = <1>;
  18. partition@0 {
  19. reg = <0x0 0x0030000>;
  20. label = "u-boot";
  21. read-only;
  22. };
  23. partition@30000 {
  24. reg = <0x00030000 0x00010000>;
  25. label = "config";
  26. read-only;
  27. };
  28. factory: partition@40000 {
  29. reg = <0x00040000 0x00010000>;
  30. label = "factory";
  31. read-only;
  32. };
  33. partition@50000 {
  34. reg = <0x00050000 0x00fb0000>;
  35. label = "firmware";
  36. };
  37. };
  38. };
  39. };
  40. pinctrl {
  41. state_default: pinctrl0 {
  42. gpio {
  43. ralink,group = "i2c", "jtag", "uartf";
  44. ralink,function = "gpio";
  45. };
  46. };
  47. };
  48. ethernet@10100000 {
  49. phy-handle = <&phy0>;
  50. phy-mode = "rgmii";
  51. mtd-mac-address = <&factory 0x28>;
  52. mdio-bus {
  53. status = "okay";
  54. phy0: ethernet-phy@4 {
  55. reg = <4>;
  56. };
  57. };
  58. };
  59. wmac@10180000 {
  60. ralink,mtd-eeprom = <&factory 0>;
  61. };
  62. ehci@101c0000 {
  63. status = "okay";
  64. };
  65. ohci@101c1000 {
  66. status = "okay";
  67. };
  68. gpio-keys-polled {
  69. compatible = "gpio-keys-polled";
  70. #address-cells = <1>;
  71. #size-cells = <0>;
  72. poll-interval = <100>;
  73. reset {
  74. label = "reset";
  75. gpios = <&gpio0 14 0>;
  76. linux,code = <0x198>;
  77. };
  78. };
  79. gpio-leds {
  80. compatible = "gpio-leds";
  81. power {
  82. label = "emb:orange:power";
  83. gpios = <&gpio0 7 1>;
  84. };
  85. status {
  86. label = "emb:green:status";
  87. gpios = <&gpio0 21 1>;
  88. };
  89. eth {
  90. label = "emb:green:eth";
  91. gpios = <&gpio0 20 1>;
  92. };
  93. eth2 {
  94. label = "emb:red:eth";
  95. gpios = <&gpio0 18 1>;
  96. };
  97. wifi {
  98. label = "emb:green:wifi";
  99. gpios = <&gpio0 17 1>;
  100. };
  101. wifi2 {
  102. label = "emb:red:wifi";
  103. gpios = <&gpio0 19 1>;
  104. };
  105. };
  106. gpio_export {
  107. compatible = "gpio-export";
  108. #size-cells = <0>;
  109. /* gpio 12 and 13 handle the OC input */
  110. usb0 {
  111. gpio-export,name = "usb0";
  112. gpio-export,output = <1>;
  113. gpios = <&gpio0 2 0>;
  114. };
  115. usb1 {
  116. gpio-export,name = "usb1";
  117. gpio-export,output = <1>;
  118. gpios = <&gpio0 1 0>;
  119. };
  120. };
  121. };