1
0

WRTNODE.dts 1.2 KB

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