CY-SWR1100.dts 2.2 KB

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