VR500.dts 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. memory@0 {
  9. device_type = "memory";
  10. reg = <0x0 0x10000000>;
  11. };
  12. chosen {
  13. bootargs = "console=ttyS0,57600";
  14. };
  15. gpio-leds {
  16. compatible = "gpio-leds";
  17. power {
  18. label = "vr500:green:power";
  19. gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
  20. };
  21. };
  22. gpio-keys-polled {
  23. compatible = "gpio-keys-polled";
  24. #address-cells = <1>;
  25. #size-cells = <0>;
  26. poll-interval = <20>;
  27. reset {
  28. label = "reset";
  29. gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
  30. linux,code = <KEY_RESTART>;
  31. };
  32. };
  33. };
  34. &spi0 {
  35. status = "okay";
  36. m25p80@0 {
  37. #address-cells = <1>;
  38. #size-cells = <1>;
  39. compatible = "jedec,spi-nor";
  40. reg = <0>;
  41. spi-max-frequency = <10000000>;
  42. m25p,chunked-io = <32>;
  43. partition@0 {
  44. label = "u-boot";
  45. reg = <0x0 0x30000>;
  46. read-only;
  47. };
  48. partition@30000 {
  49. label = "u-boot-env";
  50. reg = <0x30000 0x10000>;
  51. read-only;
  52. };
  53. factory: partition@40000 {
  54. label = "factory";
  55. reg = <0x40000 0x10000>;
  56. read-only;
  57. };
  58. partition@50000 {
  59. label = "firmware";
  60. reg = <0x50000 0x3fb0000>;
  61. };
  62. };
  63. };
  64. &pinctrl {
  65. state_default: pinctrl0 {
  66. gpio {
  67. ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci";
  68. ralink,function = "gpio";
  69. };
  70. };
  71. };