WRTNODE2.dtsi 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. #include "mt7628an.dtsi"
  2. / {
  3. chosen {
  4. bootargs = "console=ttyS0,115200";
  5. };
  6. gpio-keys-polled {
  7. compatible = "gpio-keys-polled";
  8. #address-cells = <1>;
  9. #size-cells = <0>;
  10. poll-interval = <20>;
  11. reset {
  12. label = "reset";
  13. gpios = <&gpio0 5 1>;
  14. linux,code = <0x198>;
  15. };
  16. };
  17. };
  18. &spi0 {
  19. status = "okay";
  20. m25p80@0 {
  21. #address-cells = <1>;
  22. #size-cells = <1>;
  23. compatible = "jedec,spi-nor";
  24. reg = <0>;
  25. spi-max-frequency = <10000000>;
  26. m25p,chunked-io = <32>;
  27. partition@0 {
  28. label = "u-boot";
  29. reg = <0x0 0x30000>;
  30. read-only;
  31. };
  32. partition@30000 {
  33. label = "u-boot-env";
  34. reg = <0x30000 0x10000>;
  35. read-only;
  36. };
  37. factory: partition@40000 {
  38. label = "factory";
  39. reg = <0x40000 0x10000>;
  40. read-only;
  41. };
  42. partition@50000 {
  43. label = "firmware";
  44. reg = <0x50000 0x1fb0000>;
  45. };
  46. };
  47. spidev@1 {
  48. #address-cells = <1>;
  49. #size-cells = <1>;
  50. compatible = "linux,spidev";
  51. reg = <1>;
  52. spi-max-frequency = <10000000>;
  53. };
  54. };
  55. &uart1 {
  56. status = "okay";
  57. };
  58. &i2c {
  59. status = "okay";
  60. };
  61. &ethernet {
  62. mtd-mac-address = <&factory 0x4>;
  63. ralink,port-map = "llllw";
  64. };
  65. &sdhci {
  66. status = "okay";
  67. };
  68. &pcie {
  69. status = "okay";
  70. };
  71. &wmac {
  72. status = "okay";
  73. };