1
0

PWH2004.dts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. /dts-v1/;
  2. #include "rt3050.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "prolink,pwh2004", "ralink,rt3052-soc";
  7. model = "Prolink PWH2004";
  8. aliases {
  9. led-boot = &led_power;
  10. led-failsafe = &led_power;
  11. led-running = &led_power;
  12. led-upgrade = &led_power;
  13. };
  14. cfi@1f000000 {
  15. compatible = "cfi-flash";
  16. reg = <0x1f000000 0x800000>;
  17. bank-width = <2>;
  18. device-width = <2>;
  19. partitions {
  20. compatible = "fixed-partitions";
  21. #address-cells = <1>;
  22. #size-cells = <1>;
  23. partition@0 {
  24. label = "u-boot";
  25. reg = <0x0 0x30000>;
  26. read-only;
  27. };
  28. partition@30000 {
  29. label = "u-boot-env";
  30. reg = <0x30000 0x10000>;
  31. read-only;
  32. };
  33. factory: partition@40000 {
  34. label = "factory";
  35. reg = <0x40000 0x10000>;
  36. read-only;
  37. };
  38. partition@50000 {
  39. label = "firmware";
  40. reg = <0x50000 0x7b0000>;
  41. };
  42. };
  43. };
  44. gpio-leds {
  45. compatible = "gpio-leds";
  46. wifi {
  47. label = "pwh2004:red:wifi";
  48. gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
  49. };
  50. led_power: power {
  51. label = "pwh2004:green:power";
  52. gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
  53. };
  54. };
  55. gpio-keys-polled {
  56. compatible = "gpio-keys-polled";
  57. poll-interval = <20>;
  58. wps {
  59. label = "wps";
  60. gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
  61. linux,code = <KEY_RESTART>;
  62. };
  63. };
  64. };
  65. &pinctrl {
  66. state_default: pinctrl0 {
  67. gpio {
  68. ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
  69. ralink,function = "gpio";
  70. };
  71. };
  72. };
  73. &esw {
  74. mediatek,portmap = <0x2f>;
  75. };
  76. &wmac {
  77. ralink,mtd-eeprom = <&factory 0>;
  78. };