HC5X61.dtsi 2.0 KB

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