WRTNODE.dts 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. gpio-leds {
  8. compatible = "gpio-leds";
  9. indicator {
  10. label = "wrtnode:blue:indicator";
  11. gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
  12. };
  13. };
  14. };
  15. &gpio1 {
  16. status = "okay";
  17. };
  18. &gpio2 {
  19. status = "okay";
  20. };
  21. &gpio3 {
  22. status = "okay";
  23. };
  24. &spi0 {
  25. status = "okay";
  26. m25p80@0 {
  27. #address-cells = <1>;
  28. #size-cells = <1>;
  29. compatible = "jedec,spi-nor";
  30. reg = <0>;
  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. };