CY-SWR1100.dts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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. aliases {
  9. led-boot = &led_wps;
  10. led-failsafe = &led_wps;
  11. };
  12. nor-flash@1c000000 {
  13. compatible = "cfi-flash";
  14. reg = <0x1c000000 0x800000>;
  15. bank-width = <2>;
  16. partitions {
  17. compatible = "fixed-partitions";
  18. #address-cells = <1>;
  19. #size-cells = <1>;
  20. partition@0 {
  21. label = "uboot";
  22. reg = <0x0 0x30000>;
  23. read-only;
  24. };
  25. partition@30000 {
  26. label = "uboot-env";
  27. reg = <0x30000 0x4000>;
  28. read-only;
  29. };
  30. factory: partition@34000 {
  31. label = "factory";
  32. reg = <0x34000 0x4000>;
  33. read-only;
  34. };
  35. partition@38000 {
  36. label = "nvram";
  37. reg = <0x38000 0x8000>;
  38. read-only;
  39. };
  40. partition@40000 {
  41. label = "devdata";
  42. reg = <0x40000 0x10000>;
  43. };
  44. partition@50000 {
  45. compatible = "seama";
  46. label = "firmware";
  47. reg = <0x50000 0x7b0000>;
  48. };
  49. };
  50. };
  51. rtl8367 {
  52. compatible = "realtek,rtl8367";
  53. gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
  54. gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
  55. realtek,extif0 = <1 0 1 1 1 1 1 1 2>;
  56. };
  57. keys {
  58. compatible = "gpio-keys-polled";
  59. poll-interval = <100>;
  60. reset {
  61. label = "reset";
  62. gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
  63. linux,code = <KEY_RESTART>;
  64. };
  65. wps {
  66. label = "wps";
  67. gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
  68. linux,code = <KEY_WPS_BUTTON>;
  69. };
  70. };
  71. leds {
  72. compatible = "gpio-leds";
  73. led_wps: wps {
  74. label = "cy-swr1100:blue:wps";
  75. gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
  76. };
  77. usb {
  78. label = "cy-swr1100:blue:usb";
  79. gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
  80. trigger-sources = <&ohci_port1>, <&ehci_port1>;
  81. linux,default-trigger = "usbport";
  82. };
  83. };
  84. };
  85. &gpio1 {
  86. status = "okay";
  87. };
  88. &pinctrl {
  89. state_default: pinctrl0 {
  90. gpio {
  91. ralink,group = "i2c", "spi";
  92. ralink,function = "gpio";
  93. };
  94. };
  95. };
  96. &ethernet {
  97. port@0 {
  98. mediatek,fixed-link = <1000 1 1 1>;
  99. phy-mode = "rgmii";
  100. };
  101. };
  102. &pci {
  103. status = "okay";
  104. };
  105. &pci1 {
  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. &wmac {
  115. status = "okay";
  116. ralink,2ghz = <0>;
  117. ralink,mtd-eeprom = <&factory 0>;
  118. };
  119. &ehci {
  120. status = "okay";
  121. };
  122. &ohci {
  123. status = "okay";
  124. };