W306R_V20.dts 1.3 KB

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