PSR-680W.dts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. /dts-v1/;
  2. #include "rt3050.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "petatel,psr-680w", "ralink,rt3052-soc";
  7. model = "Petatel PSR-680W Wireless 3G Router";
  8. aliases {
  9. led-boot = &led_wan;
  10. led-failsafe = &led_wan;
  11. led-running = &led_wan;
  12. led-upgrade = &led_wan;
  13. };
  14. chosen {
  15. bootargs = "console=ttyS0,115200";
  16. };
  17. cfi@1f000000 {
  18. compatible = "cfi-flash";
  19. reg = <0x1f000000 0x800000>;
  20. bank-width = <2>;
  21. device-width = <2>;
  22. partitions {
  23. compatible = "fixed-partitions";
  24. #address-cells = <1>;
  25. #size-cells = <1>;
  26. partition@0 {
  27. label = "u-boot";
  28. reg = <0x0 0x30000>;
  29. read-only;
  30. };
  31. partition@30000 {
  32. label = "u-boot-env";
  33. reg = <0x30000 0x10000>;
  34. read-only;
  35. };
  36. factory: partition@40000 {
  37. label = "factory";
  38. reg = <0x40000 0x10000>;
  39. read-only;
  40. };
  41. partition@50000 {
  42. label = "firmware";
  43. reg = <0x50000 0x3b0000>;
  44. };
  45. };
  46. };
  47. gpio-leds {
  48. compatible = "gpio-leds";
  49. led_wan: wan {
  50. label = "psr-680w:red:wan";
  51. gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
  52. };
  53. };
  54. gpio-keys-polled {
  55. compatible = "gpio-keys-polled";
  56. poll-interval = <20>;
  57. reset {
  58. label = "reset";
  59. gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
  60. linux,code = <KEY_RESTART>;
  61. };
  62. };
  63. };
  64. &pinctrl {
  65. state_default: pinctrl0 {
  66. gpio {
  67. ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
  68. ralink,function = "gpio";
  69. };
  70. };
  71. };
  72. &ethernet {
  73. mtd-mac-address = <&factory 0x4>;
  74. };
  75. &esw {
  76. mediatek,portmap = <0x3e>;
  77. };
  78. &wmac {
  79. ralink,mtd-eeprom = <&factory 0>;
  80. };
  81. &otg {
  82. status = "okay";
  83. };