HT-TM02.dts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. /dts-v1/;
  2. #include "rt5350.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "HT-TM02", "ralink,rt5350-soc";
  6. model = "HooToo HT-TM02";
  7. gpio-leds {
  8. compatible = "gpio-leds";
  9. wlan {
  10. label = "ht-tm02:blue:wlan";
  11. gpios = <&gpio0 7 1>;
  12. };
  13. lan {
  14. label = "ht-tm02:green:lan";
  15. gpios = <&gpio0 12 1>;
  16. };
  17. };
  18. gpio-keys-polled {
  19. compatible = "gpio-keys-polled";
  20. #address-cells = <1>;
  21. #size-cells = <0>;
  22. poll-interval = <20>;
  23. reset {
  24. label = "reset";
  25. gpios = <&gpio0 10 1>;
  26. linux,code = <KEY_RESTART>;
  27. };
  28. modeswitch {
  29. label = "modeswitch";
  30. gpios = <&gpio0 14 1>;
  31. linux,code = <BTN_0>;
  32. linux,input-type = <EV_SW>;
  33. };
  34. };
  35. };
  36. &gpio0 {
  37. status = "okay";
  38. };
  39. &spi0 {
  40. status = "okay";
  41. m25p80@0 {
  42. #address-cells = <1>;
  43. #size-cells = <1>;
  44. compatible = "jedec,spi-nor";
  45. reg = <0>;
  46. linux,modalias = "m25p80", "mx25l6405d";
  47. spi-max-frequency = <10000000>;
  48. partition@0 {
  49. label = "u-boot";
  50. reg = <0x0 0x30000>;
  51. read-only;
  52. };
  53. partition@30000 {
  54. label = "u-boot-env";
  55. reg = <0x30000 0x10000>;
  56. read-only;
  57. };
  58. factory: partition@40000 {
  59. label = "factory";
  60. reg = <0x40000 0x10000>;
  61. read-only;
  62. };
  63. partition@50000 {
  64. label = "firmware";
  65. reg = <0x50000 0x7b0000>;
  66. };
  67. };
  68. };
  69. &pinctrl {
  70. state_default: pinctrl0 {
  71. gpio {
  72. ralink,group = "i2c", "jtag", "uartf";
  73. ralink,function = "gpio";
  74. };
  75. };
  76. };
  77. &ethernet {
  78. mtd-mac-address = <&factory 0x28>;
  79. };
  80. &esw {
  81. mediatek,portmap = <0x10>;
  82. mediatek,portdisable = <0x2f>;
  83. };
  84. &wmac {
  85. ralink,mtd-eeprom = <&factory 0>;
  86. };
  87. &ehci {
  88. status = "okay";
  89. };
  90. &ohci {
  91. status = "okay";
  92. };