mt7628an_wrtnode_wrtnode2.dtsi 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. };
  52. &uart1 {
  53. status = "okay";
  54. };
  55. &i2c {
  56. status = "okay";
  57. };
  58. &ethernet {
  59. mtd-mac-address = <&factory 0x4>;
  60. mediatek,portmap = "llllw";
  61. };
  62. &sdhci {
  63. status = "okay";
  64. };
  65. &pcie {
  66. status = "okay";
  67. };
  68. &wmac {
  69. status = "okay";
  70. };