PWH2004.dts 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /dts-v1/;
  2. /include/ "rt3050.dtsi"
  3. / {
  4. compatible = "PWH2004", "ralink,rt3052-soc";
  5. model = "Prolink PWH2004";
  6. palmbus@10000000 {
  7. sysc@0 {
  8. ralink,pinmux = "i2c", "spi", "uartlite", "jtag", "mdio", "sdram", "rgmii";
  9. ralink,uartmux = "gpio";
  10. ralink,wdtmux = <1>;
  11. };
  12. gpio0: gpio@600 {
  13. status = "okay";
  14. };
  15. };
  16. cfi@1f000000 {
  17. compatible = "cfi-flash";
  18. reg = <0x1f000000 0x800000>;
  19. bank-width = <2>;
  20. device-width = <2>;
  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. gpio-leds {
  44. compatible = "gpio-leds";
  45. wifi {
  46. label = "pwh2004:red:wifi";
  47. gpios = <&gpio0 14 1>;
  48. };
  49. power {
  50. label = "pwh2004:green:power";
  51. gpios = <&gpio0 9 1>;
  52. };
  53. };
  54. gpio-keys-polled {
  55. compatible = "gpio-keys-polled";
  56. #address-cells = <1>;
  57. #size-cells = <0>;
  58. poll-interval = <20>;
  59. wps {
  60. label = "wps";
  61. gpios = <&gpio0 12 1>;
  62. linux,code = <0x198>;
  63. };
  64. };
  65. ethernet@10100000 {
  66. status = "okay";
  67. };
  68. esw@10110000 {
  69. status = "okay";
  70. ralink,portmap = <0x2f>;
  71. };
  72. wmac@10180000 {
  73. status = "okay";
  74. };
  75. };