OY-0001.dts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. /dts-v1/;
  2. #include "mt7620a.dtsi"
  3. / {
  4. compatible = "ralink,mt7620a-soc";
  5. model = "OY-0001";
  6. chosen {
  7. bootargs = "console=ttyS0,115200";
  8. };
  9. gpio-leds {
  10. compatible = "gpio-leds";
  11. powerled {
  12. label = "oy-0001:green:power";
  13. gpios = <&gpio0 9 1>;
  14. };
  15. wifiled {
  16. label = "oy-0001:green:wifi";
  17. gpios = <&gpio3 0 1>;
  18. };
  19. };
  20. gpio-keys-polled {
  21. compatible = "gpio-keys-polled";
  22. #address-cells = <1>;
  23. #size-cells = <0>;
  24. poll-interval = <20>;
  25. s1 {
  26. label = "reset";
  27. gpios = <&gpio0 1 1>;
  28. linux,code = <0x198>;
  29. };
  30. };
  31. };
  32. &gpio2 {
  33. status = "okay";
  34. };
  35. &gpio3 {
  36. status = "okay";
  37. };
  38. &spi0 {
  39. status = "okay";
  40. m25p80@0 {
  41. #address-cells = <1>;
  42. #size-cells = <1>;
  43. compatible = "jedec,spi-nor";
  44. reg = <0>;
  45. linux,modalias = "m25p80", "w25q128";
  46. spi-max-frequency = <10000000>;
  47. partition@0 {
  48. label = "u-boot";
  49. reg = <0x0 0x30000>;
  50. read-only;
  51. };
  52. partition@30000 {
  53. label = "u-boot-env";
  54. reg = <0x30000 0x10000>;
  55. read-only;
  56. };
  57. factory: partition@40000 {
  58. label = "factory";
  59. reg = <0x40000 0x10000>;
  60. read-only;
  61. };
  62. partition@50000 {
  63. label = "firmware";
  64. reg = <0x50000 0xfb0000>;
  65. };
  66. };
  67. };
  68. &pinctrl {
  69. state_default: pinctrl0 {
  70. gpio {
  71. ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd";
  72. ralink,function = "gpio";
  73. };
  74. };
  75. };
  76. &ethernet {
  77. pinctrl-names = "default";
  78. pinctrl-0 = <&ephy_pins>;
  79. mediatek,portmap = "llllw";
  80. };
  81. &gsw {
  82. mediatek,port4 = "ephy";
  83. };
  84. &wmac {
  85. ralink,mtd-eeprom = <&factory 0>;
  86. };
  87. &sdhci {
  88. status = "okay";
  89. };
  90. &ehci {
  91. status = "okay";
  92. };
  93. &ohci {
  94. status = "okay";
  95. };
  96. &pcie {
  97. status = "okay";
  98. };