Y1.dtsi 1.6 KB

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