2
0

PSR-680W.dts 1.4 KB

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