A5-V11.dts 2.0 KB

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