1
0

WRTNODE2.dtsi 1.4 KB

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