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. keys {
  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. partitions {
  26. compatible = "fixed-partitions";
  27. #address-cells = <1>;
  28. #size-cells = <1>;
  29. partition@0 {
  30. label = "u-boot";
  31. reg = <0x0 0x30000>;
  32. read-only;
  33. };
  34. partition@30000 {
  35. label = "u-boot-env";
  36. reg = <0x30000 0x10000>;
  37. read-only;
  38. };
  39. factory: partition@40000 {
  40. label = "factory";
  41. reg = <0x40000 0x10000>;
  42. read-only;
  43. };
  44. partition@50000 {
  45. compatible = "denx,uimage";
  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. };