PSR-680W.dts 1.3 KB

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