1
0

ZL5900V2.dts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. /dts-v1/;
  2. #include "rt5350.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "zorlik,zl5900v2", "ralink,rt5350-soc";
  7. model = "Zorlik ZL5900V2";
  8. aliases {
  9. led-boot = &led_power;
  10. led-failsafe = &led_power;
  11. led-running = &led_power;
  12. led-upgrade = &led_power;
  13. };
  14. gpio-leds {
  15. compatible = "gpio-leds";
  16. lan {
  17. label = "zl5900v2:green:lan";
  18. gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
  19. };
  20. led_power: power {
  21. label = "zl5900v2:blue:power";
  22. gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
  23. };
  24. };
  25. gpio-keys-polled {
  26. compatible = "gpio-keys-polled";
  27. poll-interval = <20>;
  28. reset {
  29. label = "reset";
  30. gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
  31. linux,code = <KEY_RESTART>;
  32. };
  33. };
  34. };
  35. &spi0 {
  36. status = "okay";
  37. m25p80@0 {
  38. compatible = "jedec,spi-nor";
  39. reg = <0>;
  40. spi-max-frequency = <10000000>;
  41. partitions {
  42. compatible = "fixed-partitions";
  43. #address-cells = <1>;
  44. #size-cells = <1>;
  45. partition@0 {
  46. label = "u-boot";
  47. reg = <0x0 0x30000>;
  48. read-only;
  49. };
  50. partition@30000 {
  51. label = "u-boot-env";
  52. reg = <0x30000 0x10000>;
  53. read-only;
  54. };
  55. factory: partition@40000 {
  56. label = "factory";
  57. reg = <0x40000 0x10000>;
  58. read-only;
  59. };
  60. partition@50000 {
  61. label = "firmware";
  62. reg = <0x50000 0x7b0000>;
  63. };
  64. };
  65. };
  66. };
  67. &pinctrl {
  68. state_default: pinctrl0 {
  69. gpio {
  70. ralink,group = "jtag", "uartf";
  71. ralink,function = "gpio";
  72. };
  73. };
  74. };
  75. &ethernet {
  76. mtd-mac-address = <&factory 0x4>;
  77. };
  78. &esw {
  79. mediatek,portmap = <0>;
  80. mediatek,portdisable = <0x2f>;
  81. };
  82. &wmac {
  83. ralink,mtd-eeprom = <&factory 0>;
  84. };