HT-TM02.dts 1.7 KB

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