mt7620n_wrtnode_wrtnode.dts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. label = "blue:indicator";
  16. gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
  17. };
  18. };
  19. };
  20. &gpio1 {
  21. status = "okay";
  22. };
  23. &spi0 {
  24. status = "okay";
  25. flash@0 {
  26. compatible = "jedec,spi-nor";
  27. reg = <0>;
  28. spi-max-frequency = <10000000>;
  29. partitions {
  30. compatible = "fixed-partitions";
  31. #address-cells = <1>;
  32. #size-cells = <1>;
  33. partition@0 {
  34. label = "u-boot";
  35. reg = <0x0 0x30000>;
  36. read-only;
  37. };
  38. partition@30000 {
  39. label = "u-boot-env";
  40. reg = <0x30000 0x10000>;
  41. read-only;
  42. };
  43. factory: partition@40000 {
  44. label = "factory";
  45. reg = <0x40000 0x10000>;
  46. read-only;
  47. };
  48. partition@50000 {
  49. compatible = "denx,uimage";
  50. label = "firmware";
  51. reg = <0x50000 0xfb0000>;
  52. };
  53. };
  54. };
  55. };
  56. &ehci {
  57. status = "okay";
  58. };
  59. &ohci {
  60. status = "okay";
  61. };
  62. &ethernet {
  63. nvmem-cells = <&macaddr_factory_4>;
  64. nvmem-cell-names = "mac-address";
  65. mediatek,portmap = "wllll";
  66. };
  67. &wmac {
  68. ralink,mtd-eeprom = <&factory 0x0>;
  69. };
  70. &state_default {
  71. default {
  72. groups = "ephy", "wled", "pa", "i2c", "wdt", "uartf", "spi refclk";
  73. function = "gpio";
  74. };
  75. };
  76. &factory {
  77. compatible = "nvmem-cells";
  78. #address-cells = <1>;
  79. #size-cells = <1>;
  80. macaddr_factory_4: macaddr@4 {
  81. reg = <0x4 0x6>;
  82. };
  83. };