VOCORE2.dts 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. /dts-v1/;
  2. #include "mt7628an.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "vocore,VoCore2", "mediatek,mt7628an-soc";
  7. model = "VoCore2";
  8. chosen {
  9. bootargs = "console=ttyS2,115200";
  10. };
  11. memory@0 {
  12. device_type = "memory";
  13. reg = <0x0 0x8000000>;
  14. };
  15. gpio-leds {
  16. compatible = "gpio-leds";
  17. status {
  18. label = "vocore2:fuchsia:status";
  19. gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
  20. };
  21. };
  22. };
  23. &pinctrl {
  24. state_default: pinctrl0 {
  25. gpio {
  26. ralink,group = "wled_an", "refclk", "wdt";
  27. ralink,function = "gpio";
  28. };
  29. };
  30. };
  31. &wmac {
  32. status = "okay";
  33. ralink,mtd-eeprom = <&factory 0x4>;
  34. };
  35. &spi0 {
  36. status = "okay";
  37. m25p80@0 {
  38. #address-cells = <1>;
  39. #size-cells = <1>;
  40. compatible = "jedec,spi-nor";
  41. reg = <0>;
  42. spi-max-frequency = <10000000>;
  43. m25p,chunked-io = <32>;
  44. partition@0 {
  45. label = "u-boot";
  46. reg = <0x0 0x30000>;
  47. read-only;
  48. };
  49. partition@30000 {
  50. label = "u-boot-env";
  51. reg = <0x30000 0x10000>;
  52. read-only;
  53. };
  54. factory: partition@40000 {
  55. label = "factory";
  56. reg = <0x40000 0x10000>;
  57. read-only;
  58. };
  59. partition@50000 {
  60. label = "firmware";
  61. reg = <0x50000 0xfb0000>;
  62. };
  63. };
  64. };
  65. &esw {
  66. mediatek,portmap = <0x7>;
  67. mediatek,portdisable = <0x3a>;
  68. };
  69. &i2s {
  70. status = "okay";
  71. };
  72. &gdma {
  73. status = "okay";
  74. };
  75. &pwm {
  76. status = "okay";
  77. };
  78. &uart1 {
  79. status = "okay";
  80. };
  81. &uart2 {
  82. status = "okay";
  83. };