rt5350_unbranded_a5-v11.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. #include "rt5350.dtsi"
  2. #include <dt-bindings/gpio/gpio.h>
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "unbranded,a5-v11", "ralink,rt5350-soc";
  6. model = "A5-V11";
  7. aliases {
  8. led-boot = &led_power;
  9. led-failsafe = &led_power;
  10. led-running = &led_power;
  11. led-upgrade = &led_power;
  12. label-mac-device = &ethernet;
  13. };
  14. leds {
  15. compatible = "gpio-leds";
  16. system {
  17. label = "blue:system";
  18. gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
  19. };
  20. led_power: power {
  21. label = "red:power";
  22. gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
  23. };
  24. };
  25. keys {
  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. flash@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. compatible = "denx,uimage";
  76. label = "firmware";
  77. reg = <0x50000 0x3b0000>;
  78. };
  79. };
  80. };
  81. };
  82. &gpio1 {
  83. status = "okay";
  84. };
  85. &state_default {
  86. gpio {
  87. groups = "i2c", "jtag", "uartf", "led";
  88. function = "gpio";
  89. };
  90. };
  91. &ethernet {
  92. mtd-mac-address = <&factory 0x4>;
  93. };
  94. &esw {
  95. mediatek,portmap = <0x1>;
  96. mediatek,portdisable = <0x3e>;
  97. };
  98. &wmac {
  99. ralink,mtd-eeprom = <&factory 0x0>;
  100. };