Y1.dtsi 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. #include "mt7620a.dtsi"
  2. #include <dt-bindings/gpio/gpio.h>
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "lenovo,newifi-y1", "ralink,mt7620a-soc";
  6. chosen {
  7. bootargs = "console=ttyS0,115200";
  8. };
  9. keys {
  10. compatible = "gpio-keys-polled";
  11. poll-interval = <20>;
  12. reset {
  13. label = "reset";
  14. gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
  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. compatible = "jedec,spi-nor";
  32. reg = <0>;
  33. spi-max-frequency = <10000000>;
  34. partitions {
  35. compatible = "fixed-partitions";
  36. #address-cells = <1>;
  37. #size-cells = <1>;
  38. partition@0 {
  39. label = "u-boot";
  40. reg = <0x0 0x30000>;
  41. read-only;
  42. };
  43. partition@30000 {
  44. label = "u-boot-env";
  45. reg = <0x30000 0x10000>;
  46. read-only;
  47. };
  48. factory: partition@40000 {
  49. label = "factory";
  50. reg = <0x40000 0x10000>;
  51. read-only;
  52. };
  53. partition@50000 {
  54. compatible = "denx,uimage";
  55. label = "firmware";
  56. reg = <0x50000 0xfb0000>;
  57. };
  58. };
  59. };
  60. };
  61. &ehci {
  62. status = "okay";
  63. };
  64. &ohci {
  65. status = "okay";
  66. };
  67. &pcie {
  68. status = "okay";
  69. };
  70. &pcie0 {
  71. mt76@0,0 {
  72. reg = <0x0000 0 0 0 0>;
  73. mediatek,mtd-eeprom = <&factory 0x8000>;
  74. ieee80211-freq-limit = <5000000 6000000>;
  75. };
  76. };
  77. &wmac {
  78. ralink,mtd-eeprom = <&factory 0>;
  79. pinctrl-names = "default";
  80. pinctrl-0 = <&pa_pins>;
  81. };
  82. &pinctrl {
  83. state_default: pinctrl0 {
  84. gpio {
  85. ralink,group = "uartf", "wled", "nd_sd";
  86. ralink,function = "gpio";
  87. };
  88. };
  89. };