V22RW-2X2.dts 1.4 KB

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