mt7620n_wrtnode_wrtnode.dts 1.4 KB

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