Y1.dtsi 1.5 KB

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