HPM.dts 2.1 KB

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