Y1.dtsi 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. gpio-keys-polled {
  10. compatible = "gpio-keys-polled";
  11. #address-cells = <1>;
  12. #size-cells = <0>;
  13. poll-interval = <20>;
  14. reset {
  15. label = "reset";
  16. gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
  17. linux,code = <KEY_RESTART>;
  18. };
  19. };
  20. };
  21. &gpio0 {
  22. status = "okay";
  23. };
  24. &gpio2 {
  25. status = "okay";
  26. };
  27. &gpio3 {
  28. status = "okay";
  29. };
  30. &spi0 {
  31. status = "okay";
  32. m25p80@0 {
  33. #address-cells = <1>;
  34. #size-cells = <1>;
  35. compatible = "jedec,spi-nor";
  36. reg = <0>;
  37. spi-max-frequency = <10000000>;
  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. label = "firmware";
  55. reg = <0x50000 0xfb0000>;
  56. };
  57. };
  58. };
  59. &ehci {
  60. status = "okay";
  61. };
  62. &ohci {
  63. status = "okay";
  64. };
  65. &pcie {
  66. status = "okay";
  67. pcie-bridge {
  68. mt76@0,0 {
  69. reg = <0x0000 0 0 0 0>;
  70. device_type = "pci";
  71. mediatek,mtd-eeprom = <&factory 0x8000>;
  72. ieee80211-freq-limit = <5000000 6000000>;
  73. };
  74. };
  75. };
  76. &wmac {
  77. ralink,mtd-eeprom = <&factory 0>;
  78. pinctrl-names = "default";
  79. pinctrl-0 = <&pa_pins>;
  80. };
  81. &pinctrl {
  82. state_default: pinctrl0 {
  83. gpio {
  84. ralink,group = "uartf", "wled", "nd_sd";
  85. ralink,function = "gpio";
  86. };
  87. };
  88. };