Y1.dtsi 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. #include "mt7620a.dtsi"
  2. / {
  3. chosen {
  4. bootargs = "console=ttyS0,115200";
  5. };
  6. gpio-keys-polled {
  7. compatible = "gpio-keys-polled";
  8. #address-cells = <1>;
  9. #size-cells = <0>;
  10. poll-interval = <20>;
  11. reset {
  12. label = "reset";
  13. gpios = <&gpio0 11 1>;
  14. linux,code = <0x198>;
  15. };
  16. };
  17. };
  18. &gpio0 {
  19. status = "okay";
  20. };
  21. &gpio2 {
  22. status = "okay";
  23. };
  24. &gpio3 {
  25. status = "okay";
  26. };
  27. &spi0 {
  28. status = "okay";
  29. m25p80@0 {
  30. #address-cells = <1>;
  31. #size-cells = <1>;
  32. compatible = "jedec,spi-nor";
  33. reg = <0>;
  34. linux,modalias = "m25p80", "w25q128";
  35. spi-max-frequency = <10000000>;
  36. partition@0 {
  37. label = "u-boot";
  38. reg = <0x0 0x30000>;
  39. read-only;
  40. };
  41. partition@30000 {
  42. label = "u-boot-env";
  43. reg = <0x30000 0x10000>;
  44. read-only;
  45. };
  46. factory: partition@40000 {
  47. label = "factory";
  48. reg = <0x40000 0x10000>;
  49. read-only;
  50. };
  51. partition@50000 {
  52. label = "firmware";
  53. reg = <0x50000 0xfb0000>;
  54. };
  55. };
  56. };
  57. &ehci {
  58. status = "okay";
  59. };
  60. &ohci {
  61. status = "okay";
  62. };
  63. &pcie {
  64. status = "okay";
  65. pcie-bridge {
  66. mt76@0,0 {
  67. reg = <0x0000 0 0 0 0>;
  68. device_type = "pci";
  69. mediatek,mtd-eeprom = <&factory 0x8000>;
  70. mediatek,2ghz = <0>;
  71. };
  72. };
  73. };
  74. &wmac {
  75. ralink,mtd-eeprom = <&factory 0>;
  76. };
  77. &pinctrl {
  78. state_default: pinctrl0 {
  79. gpio {
  80. ralink,group = "uartf", "wled", "nd_sd";
  81. ralink,function = "gpio";
  82. };
  83. pa {
  84. ralink,group = "pa";
  85. ralink,function = "pa";
  86. };
  87. };
  88. };