HPM.dts 2.1 KB

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