WRTNODE2.dtsi 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. #address-cells = <1>;
  12. #size-cells = <0>;
  13. poll-interval = <20>;
  14. reset {
  15. label = "reset";
  16. gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
  17. linux,code = <KEY_RESTART>;
  18. };
  19. };
  20. };
  21. &spi0 {
  22. status = "okay";
  23. m25p80@0 {
  24. #address-cells = <1>;
  25. #size-cells = <1>;
  26. compatible = "jedec,spi-nor";
  27. reg = <0>;
  28. spi-max-frequency = <10000000>;
  29. m25p,chunked-io = <32>;
  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. spidev@1 {
  51. #address-cells = <1>;
  52. #size-cells = <1>;
  53. compatible = "linux,spidev";
  54. reg = <1>;
  55. spi-max-frequency = <10000000>;
  56. };
  57. };
  58. &uart1 {
  59. status = "okay";
  60. };
  61. &i2c {
  62. status = "okay";
  63. };
  64. &ethernet {
  65. mtd-mac-address = <&factory 0x4>;
  66. mediatek,portmap = "llllw";
  67. };
  68. &sdhci {
  69. status = "okay";
  70. };
  71. &pcie {
  72. status = "okay";
  73. };
  74. &wmac {
  75. status = "okay";
  76. };