VR500.dts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. /dts-v1/;
  2. #include "mt7621.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "planex,vr500", "mediatek,mt7621-soc";
  7. model = "Planex VR500";
  8. aliases {
  9. led-boot = &led_power;
  10. led-failsafe = &led_power;
  11. led-running = &led_power;
  12. led-upgrade = &led_power;
  13. };
  14. memory@0 {
  15. device_type = "memory";
  16. reg = <0x0 0x10000000>;
  17. };
  18. chosen {
  19. bootargs = "console=ttyS0,57600";
  20. };
  21. leds {
  22. compatible = "gpio-leds";
  23. led_power: power {
  24. label = "vr500:green:power";
  25. gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
  26. };
  27. };
  28. keys {
  29. compatible = "gpio-keys-polled";
  30. poll-interval = <20>;
  31. reset {
  32. label = "reset";
  33. gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
  34. linux,code = <KEY_RESTART>;
  35. };
  36. };
  37. };
  38. &spi0 {
  39. status = "okay";
  40. m25p80@0 {
  41. compatible = "jedec,spi-nor";
  42. reg = <0>;
  43. spi-max-frequency = <10000000>;
  44. partitions {
  45. compatible = "fixed-partitions";
  46. #address-cells = <1>;
  47. #size-cells = <1>;
  48. partition@0 {
  49. label = "u-boot";
  50. reg = <0x0 0x30000>;
  51. read-only;
  52. };
  53. partition@30000 {
  54. label = "u-boot-env";
  55. reg = <0x30000 0x10000>;
  56. read-only;
  57. };
  58. factory: partition@40000 {
  59. label = "factory";
  60. reg = <0x40000 0x10000>;
  61. read-only;
  62. };
  63. partition@50000 {
  64. compatible = "denx,uimage";
  65. label = "firmware";
  66. reg = <0x50000 0x3fb0000>;
  67. };
  68. };
  69. };
  70. };
  71. &pinctrl {
  72. state_default: pinctrl0 {
  73. gpio {
  74. ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci";
  75. ralink,function = "gpio";
  76. };
  77. };
  78. };