HC5XXX.dtsi 1.9 KB

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