HC5X61.dtsi 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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. poll-interval = <20>;
  12. reset {
  13. label = "reset";
  14. gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
  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 GPIO_ACTIVE_HIGH>;
  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. compatible = "jedec,spi-nor";
  46. reg = <0>;
  47. spi-max-frequency = <10000000>;
  48. partitions {
  49. compatible = "fixed-partitions";
  50. #address-cells = <1>;
  51. #size-cells = <1>;
  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. };
  84. &ehci {
  85. status = "okay";
  86. };
  87. &ohci {
  88. status = "okay";
  89. };
  90. &ethernet {
  91. pinctrl-names = "default";
  92. pinctrl-0 = <&ephy_pins>;
  93. mtd-mac-address = <&factory 0x4>;
  94. mediatek,portmap = "wllll";
  95. };
  96. &sdhci {
  97. status = "okay";
  98. };
  99. &wmac {
  100. ralink,mtd-eeprom = <&factory 0>;
  101. pinctrl-names = "default";
  102. pinctrl-0 = <&pa_pins>;
  103. };
  104. &pcie {
  105. status = "okay";
  106. };
  107. &pinctrl {
  108. state_default: pinctrl0 {
  109. gpio {
  110. ralink,group = "uartf", "wled";
  111. ralink,function = "gpio";
  112. };
  113. };
  114. };