A5-V11.dts 1.7 KB

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