mt7620n_wrtnode_wrtnode.dts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. /dts-v1/;
  2. #include "mt7620n.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. / {
  5. compatible = "wrtnode,wrtnode", "ralink,mt7620n-soc";
  6. model = "WRTNODE";
  7. aliases {
  8. led-boot = &led_indicator;
  9. led-failsafe = &led_indicator;
  10. led-running = &led_indicator;
  11. led-upgrade = &led_indicator;
  12. };
  13. leds {
  14. compatible = "gpio-leds";
  15. led_indicator: indicator {
  16. label = "wrtnode:blue:indicator";
  17. gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
  18. };
  19. };
  20. };
  21. &gpio1 {
  22. status = "okay";
  23. };
  24. &gpio2 {
  25. status = "okay";
  26. };
  27. &gpio3 {
  28. status = "okay";
  29. };
  30. &spi0 {
  31. status = "okay";
  32. m25p80@0 {
  33. compatible = "jedec,spi-nor";
  34. reg = <0>;
  35. spi-max-frequency = <10000000>;
  36. partitions {
  37. compatible = "fixed-partitions";
  38. #address-cells = <1>;
  39. #size-cells = <1>;
  40. partition@0 {
  41. label = "u-boot";
  42. reg = <0x0 0x30000>;
  43. read-only;
  44. };
  45. partition@30000 {
  46. label = "u-boot-env";
  47. reg = <0x30000 0x10000>;
  48. read-only;
  49. };
  50. factory: partition@40000 {
  51. label = "factory";
  52. reg = <0x40000 0x10000>;
  53. read-only;
  54. };
  55. partition@50000 {
  56. compatible = "denx,uimage";
  57. label = "firmware";
  58. reg = <0x50000 0xfb0000>;
  59. };
  60. };
  61. };
  62. };
  63. &ehci {
  64. status = "okay";
  65. };
  66. &ohci {
  67. status = "okay";
  68. };
  69. &ethernet {
  70. mtd-mac-address = <&factory 0x4>;
  71. mediatek,portmap = "wllll";
  72. };
  73. &wmac {
  74. ralink,mtd-eeprom = <&factory 0>;
  75. };
  76. &state_default {
  77. default {
  78. ralink,group = "ephy", "wled", "pa", "i2c", "wdt", "uartf", "spi refclk";
  79. ralink,function = "gpio";
  80. };
  81. };