mt7628an_wrtnode_wrtnode2.dtsi 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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";
  11. reset {
  12. label = "reset";
  13. gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
  14. linux,code = <KEY_RESTART>;
  15. };
  16. };
  17. };
  18. &spi0 {
  19. status = "okay";
  20. m25p80@0 {
  21. compatible = "jedec,spi-nor";
  22. reg = <0>;
  23. spi-max-frequency = <10000000>;
  24. partitions {
  25. compatible = "fixed-partitions";
  26. #address-cells = <1>;
  27. #size-cells = <1>;
  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. compatible = "denx,uimage";
  45. label = "firmware";
  46. reg = <0x50000 0x1fb0000>;
  47. };
  48. };
  49. };
  50. };
  51. &uart1 {
  52. status = "okay";
  53. };
  54. &i2c {
  55. status = "okay";
  56. };
  57. &ethernet {
  58. mtd-mac-address = <&factory 0x4>;
  59. mediatek,portmap = "llllw";
  60. };
  61. &sdhci {
  62. status = "okay";
  63. };
  64. &pcie {
  65. status = "okay";
  66. };
  67. &wmac {
  68. status = "okay";
  69. };