HT-TM02.dts 1.7 KB

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