HC5XXX.dtsi 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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 12 1>;
  15. linux,code = <KEY_RESTART>;
  16. };
  17. };
  18. gpio_export {
  19. compatible = "gpio-export";
  20. #size-cells = <0>;
  21. usbpower {
  22. gpio-export,name = "usbpower";
  23. gpio-export,output = <1>;
  24. gpios = <&gpio0 13 0>;
  25. };
  26. };
  27. };
  28. &sysc {
  29. ralink,gpiomux = "i2c", "jtag";
  30. ralink,uartmux = "gpio";
  31. ralink,wdtmux = <1>;
  32. };
  33. &gpio0 {
  34. status = "okay";
  35. };
  36. &gpio2 {
  37. status = "okay";
  38. };
  39. &gpio3 {
  40. status = "okay";
  41. };
  42. &spi0 {
  43. status = "okay";
  44. m25p80@0 {
  45. #address-cells = <1>;
  46. #size-cells = <1>;
  47. compatible = "jedec,spi-nor";
  48. reg = <0>;
  49. linux,modalias = "m25p80", "w25q128";
  50. spi-max-frequency = <10000000>;
  51. partition@0 {
  52. label = "u-boot";
  53. reg = <0x0 0x30000>;
  54. };
  55. partition@30000 {
  56. label = "u-boot-env";
  57. reg = <0x30000 0x10000>;
  58. read-only;
  59. };
  60. factory: partition@40000 {
  61. label = "factory";
  62. reg = <0x40000 0x10000>;
  63. };
  64. partition@50000 {
  65. label = "firmware";
  66. reg = <0x50000 0xf80000>;
  67. };
  68. partition@fd0000 {
  69. label = "hwf_config";
  70. reg = <0xfd0000 0x10000>;
  71. };
  72. bdinfo: partition@fe0000 {
  73. label = "bdinfo";
  74. reg = <0xfe0000 0x10000>;
  75. };
  76. partition@ff0000 {
  77. label = "backup";
  78. reg = <0xff0000 0x10000>;
  79. };
  80. };
  81. };
  82. &ehci {
  83. status = "okay";
  84. };
  85. &ohci {
  86. status = "okay";
  87. };
  88. &ethernet {
  89. pinctrl-names = "default";
  90. pinctrl-0 = <&ephy_pins>;
  91. mtd-mac-address = <&factory 0x4>;
  92. mediatek,portmap = "wllll";
  93. };
  94. &sdhci {
  95. status = "okay";
  96. };
  97. &wmac {
  98. ralink,mtd-eeprom = <&factory 0>;
  99. };
  100. &pcie {
  101. status = "okay";
  102. };
  103. &pinctrl {
  104. state_default: pinctrl0 {
  105. gpio {
  106. ralink,group = "uartf", "wled", "nd_sd";
  107. ralink,function = "gpio";
  108. };
  109. pa {
  110. ralink,group = "pa";
  111. ralink,function = "pa";
  112. };
  113. };
  114. };