WRTNODE2.dtsi 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. #include "mt7628an.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 5 1>;
  15. linux,code = <KEY_RESTART>;
  16. };
  17. };
  18. };
  19. &spi0 {
  20. status = "okay";
  21. m25p80@0 {
  22. #address-cells = <1>;
  23. #size-cells = <1>;
  24. compatible = "jedec,spi-nor";
  25. reg = <0>;
  26. spi-max-frequency = <10000000>;
  27. m25p,chunked-io = <32>;
  28. partition@0 {
  29. label = "u-boot";
  30. reg = <0x0 0x30000>;
  31. read-only;
  32. };
  33. partition@30000 {
  34. label = "u-boot-env";
  35. reg = <0x30000 0x10000>;
  36. read-only;
  37. };
  38. factory: partition@40000 {
  39. label = "factory";
  40. reg = <0x40000 0x10000>;
  41. read-only;
  42. };
  43. partition@50000 {
  44. label = "firmware";
  45. reg = <0x50000 0x1fb0000>;
  46. };
  47. };
  48. spidev@1 {
  49. #address-cells = <1>;
  50. #size-cells = <1>;
  51. compatible = "linux,spidev";
  52. reg = <1>;
  53. spi-max-frequency = <10000000>;
  54. };
  55. };
  56. &uart1 {
  57. status = "okay";
  58. };
  59. &i2c {
  60. status = "okay";
  61. };
  62. &ethernet {
  63. mtd-mac-address = <&factory 0x4>;
  64. ralink,port-map = "llllw";
  65. };
  66. &sdhci {
  67. status = "okay";
  68. };
  69. &pcie {
  70. status = "okay";
  71. };
  72. &wmac {
  73. status = "okay";
  74. };