WL-351.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. /dts-v1/;
  2. /include/ "rt3050.dtsi"
  3. / {
  4. compatible = "WL-351", "ralink,rt3052-soc";
  5. model = "Sitecom WL-351 v1 002";
  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. ethernet@10100000 {
  42. mtd-mac-address = <&factory 0x4>;
  43. };
  44. esw@10110000 {
  45. ralink,portmap = <0x3f>;
  46. ralink,fct2 = <0x0002500c>;
  47. /*
  48. * ext phy base addr 31, rx/tx clock skew 0,
  49. * turbo mii off, rgmi 3.3v off, port 5 polling off
  50. * port5: enabled, gige, full-duplex, rx/tx-flow-control
  51. * port6: enabled, gige, full-duplex, rx/tx-flow-control
  52. */
  53. ralink,fpa2 = <0x1f003fff>;
  54. };
  55. wmac@10180000 {
  56. ralink,mtd-eeprom = <&factory 0>;
  57. };
  58. otg@101c0000 {
  59. status = "okay";
  60. };
  61. gpio-leds {
  62. compatible = "gpio-leds";
  63. power {
  64. label = "wl-351:amber:power";
  65. gpios = <&gpio0 8 1>;
  66. };
  67. unpopulated {
  68. label = "wl-351:amber:unpopulated";
  69. gpios = <&gpio0 12 1>;
  70. };
  71. unpopulated2 {
  72. label = "wl-351:blue:unpopulated";
  73. gpios = <&gpio0 13 1>;
  74. };
  75. };
  76. gpio-keys-polled {
  77. compatible = "gpio-keys-polled";
  78. #address-cells = <1>;
  79. #size-cells = <0>;
  80. poll-interval = <20>;
  81. reset {
  82. label = "reset";
  83. gpios = <&gpio0 10 1>;
  84. linux,code = <0x198>;
  85. };
  86. wps {
  87. label = "wps";
  88. gpios = <&gpio0 0 1>;
  89. linux,code = <0x211>;
  90. };
  91. };
  92. rtl8366rb {
  93. compatible = "rtl8366rb";
  94. gpio-sda = <&gpio0 1 0>;
  95. gpio-sck = <&gpio0 2 0>;
  96. };
  97. };