mt7620n_wrtnode_wrtnode.dts 1.8 KB

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