1
0

CY-SWR1100.dts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. /dts-v1/;
  2. #include "rt3883.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "CY-SWR1100", "ralink,rt3883-soc";
  6. model = "Samsung CY-SWR1100";
  7. nor-flash@1c000000 {
  8. compatible = "cfi-flash";
  9. reg = <0x1c000000 0x800000>;
  10. bank-width = <2>;
  11. #address-cells = <1>;
  12. #size-cells = <1>;
  13. partition@0 {
  14. label = "uboot";
  15. reg = <0x0 0x30000>;
  16. read-only;
  17. };
  18. partition@30000 {
  19. label = "uboot-env";
  20. reg = <0x30000 0x4000>;
  21. read-only;
  22. };
  23. factory: partition@34000 {
  24. label = "factory";
  25. reg = <0x34000 0x4000>;
  26. read-only;
  27. };
  28. partition@38000 {
  29. label = "nvram";
  30. reg = <0x38000 0x8000>;
  31. read-only;
  32. };
  33. partition@40000 {
  34. label = "devdata";
  35. reg = <0x40000 0x10000>;
  36. };
  37. partition@50000 {
  38. label = "firmware";
  39. reg = <0x50000 0x7b0000>;
  40. };
  41. };
  42. rtl8367 {
  43. compatible = "realtek,rtl8367";
  44. gpio-sda = <&gpio0 1 0>;
  45. gpio-sck = <&gpio0 2 0>;
  46. realtek,extif0 = <1 0 1 1 1 1 1 1 2>;
  47. };
  48. gpio-keys-polled {
  49. compatible = "gpio-keys-polled";
  50. #address-cells = <1>;
  51. #size-cells = <0>;
  52. poll-interval = <100>;
  53. reset {
  54. label = "reset";
  55. gpios = <&gpio0 6 1>;
  56. linux,code = <KEY_RESTART>;
  57. };
  58. wps {
  59. label = "wps";
  60. gpios = <&gpio0 3 1>;
  61. linux,code = <KEY_WPS_BUTTON>;
  62. };
  63. };
  64. gpio-leds {
  65. compatible = "gpio-leds";
  66. wps {
  67. label = "cy-swr1100:blue:wps";
  68. gpios = <&gpio0 0 1>;
  69. };
  70. usb {
  71. label = "cy-swr1100:blue:usb";
  72. gpios = <&gpio1 1 1>;
  73. };
  74. };
  75. };
  76. &gpio1 {
  77. status = "okay";
  78. };
  79. &pinctrl {
  80. state_default: pinctrl0 {
  81. gpio {
  82. ralink,group = "i2c", "spi";
  83. ralink,function = "gpio";
  84. };
  85. };
  86. };
  87. &ethernet {
  88. port@0 {
  89. mediatek,fixed-link = <1000 1 1 1>;
  90. phy-mode = "rgmii";
  91. };
  92. };
  93. &pci {
  94. status = "okay";
  95. pinctrl-names = "default";
  96. pinctrl-0 = <&pci_pins>;
  97. pci_pins: pci {
  98. pci {
  99. ralink,group = "pci";
  100. ralink,function = "pci-fnc";
  101. };
  102. };
  103. host-bridge {
  104. pci-bridge@1 {
  105. status = "okay";
  106. wifi@0,0 {
  107. compatible = "pci0,0";
  108. reg = <0x10000 0 0 0 0>;
  109. ralink,5ghz = <0>;
  110. ralink,mtd-eeprom = <&factory 0x2000>;
  111. };
  112. };
  113. };
  114. };
  115. &wmac {
  116. status = "okay";
  117. ralink,2ghz = <0>;
  118. ralink,mtd-eeprom = <&factory 0>;
  119. };
  120. &ehci {
  121. status = "okay";
  122. };
  123. &ohci {
  124. status = "okay";
  125. };