1
0

3G150B.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. /dts-v1/;
  2. #include "rt5350.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "tenda,3g150b", "ralink,rt5350-soc";
  7. model = "Tenda 3G150B";
  8. aliases {
  9. led-boot = &led_ap;
  10. led-failsafe = &led_ap;
  11. led-running = &led_ap;
  12. led-upgrade = &led_ap;
  13. };
  14. gpio-leds {
  15. compatible = "gpio-leds";
  16. led_ap: ap {
  17. label = "3g150b:blue:ap";
  18. gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
  19. };
  20. 3g {
  21. label = "3g150b:blue:3g";
  22. gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
  23. trigger-sources = <&ohci_port1>, <&ehci_port1>;
  24. linux,default-trigger = "usbport";
  25. };
  26. };
  27. gpio-keys-polled {
  28. compatible = "gpio-keys-polled";
  29. poll-interval = <20>;
  30. reset {
  31. label = "reset";
  32. gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
  33. linux,code = <KEY_RESTART>;
  34. };
  35. };
  36. gpio_export {
  37. compatible = "gpio-export";
  38. #size-cells = <0>;
  39. usb {
  40. gpio-export,name = "usb";
  41. gpio-export,output = <1>;
  42. gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
  43. };
  44. };
  45. };
  46. &spi0 {
  47. status = "okay";
  48. m25p80@0 {
  49. compatible = "jedec,spi-nor";
  50. reg = <0>;
  51. spi-max-frequency = <10000000>;
  52. partitions {
  53. compatible = "fixed-partitions";
  54. #address-cells = <1>;
  55. #size-cells = <1>;
  56. partition@0 {
  57. label = "u-boot";
  58. reg = <0x0 0x30000>;
  59. read-only;
  60. };
  61. partition@30000 {
  62. label = "u-boot-env";
  63. reg = <0x30000 0x10000>;
  64. read-only;
  65. };
  66. factory: partition@40000 {
  67. label = "factory";
  68. reg = <0x40000 0x10000>;
  69. read-only;
  70. };
  71. partition@50000 {
  72. label = "firmware";
  73. reg = <0x50000 0x3b0000>;
  74. };
  75. };
  76. };
  77. };
  78. &gpio1 {
  79. status = "okay";
  80. };
  81. &pinctrl {
  82. state_default: pinctrl0 {
  83. gpio {
  84. ralink,group = "i2c", "jtag", "uartf", "led";
  85. ralink,function = "gpio";
  86. };
  87. };
  88. };
  89. &ethernet {
  90. mtd-mac-address = <&factory 0x4>;
  91. };
  92. &esw {
  93. mediatek,portmap = <0x2f>;
  94. };
  95. &wmac {
  96. ralink,mtd-eeprom = <&factory 0>;
  97. ralink,led-polarity = <1>;
  98. };
  99. &ehci {
  100. status = "okay";
  101. };
  102. &ohci {
  103. status = "okay";
  104. };