WRTNODE.dts 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. linux,modalias = "m25p80", "w25q128";
  31. spi-max-frequency = <10000000>;
  32. partition@0 {
  33. label = "u-boot";
  34. reg = <0x0 0x30000>;
  35. read-only;
  36. };
  37. partition@30000 {
  38. label = "u-boot-env";
  39. reg = <0x30000 0x10000>;
  40. read-only;
  41. };
  42. factory: partition@40000 {
  43. label = "factory";
  44. reg = <0x40000 0x10000>;
  45. read-only;
  46. };
  47. partition@50000 {
  48. label = "firmware";
  49. reg = <0x50000 0xfb0000>;
  50. };
  51. };
  52. };
  53. &ehci {
  54. status = "okay";
  55. };
  56. &ohci {
  57. status = "okay";
  58. };
  59. &ethernet {
  60. mtd-mac-address = <&factory 0x4>;
  61. mediatek,portmap = "wllll";
  62. };
  63. &wmac {
  64. ralink,mtd-eeprom = <&factory 0>;
  65. };
  66. &pinctrl {
  67. state_default: pinctrl0 {
  68. default {
  69. ralink,group = "ephy", "wled", "pa", "i2c", "wdt", "uartf", "spi refclk";
  70. ralink,function = "gpio";
  71. };
  72. };
  73. };