CY-SWR1100.dts 2.3 KB

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