WRTNODE.dts 1.4 KB

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