DCS-930.dts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. /dts-v1/;
  2. /include/ "rt3050.dtsi"
  3. / {
  4. compatible = "DCS-930", "ralink,rt3050-soc";
  5. model = "D-Link DCS-930";
  6. pinctrl {
  7. state_default: pinctrl0 {
  8. gpio {
  9. ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf";
  10. ralink,function = "gpio";
  11. };
  12. };
  13. };
  14. cfi@1f000000 {
  15. compatible = "cfi-flash";
  16. reg = <0x1f000000 0x400000>;
  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 = "kernel";
  38. reg = <0x50000 0x150000>;
  39. };
  40. partition@150000 {
  41. label = "rootfs";
  42. reg = <0x150000 0x2b0000>;
  43. };
  44. partition {
  45. label = "firmware";
  46. reg = <0x50000 0x3b0000>;
  47. };
  48. };
  49. gpio-leds {
  50. compatible = "gpio-leds";
  51. wifi {
  52. label = "d-link:red:alert";
  53. gpios = <&gpio0 8 1>;
  54. };
  55. power {
  56. label = "d-link:green:status";
  57. gpios = <&gpio0 9 1>;
  58. };
  59. wps {
  60. label = "d-link:blue:wps";
  61. gpios = <&gpio0 13 1>;
  62. };
  63. };
  64. gpio-keys-polled {
  65. compatible = "gpio-keys-polled";
  66. #address-cells = <1>;
  67. #size-cells = <0>;
  68. poll-interval = <20>;
  69. wps {
  70. label = "wps";
  71. gpios = <&gpio0 0 1>;
  72. linux,code = <0x101>;
  73. };
  74. reset {
  75. label = "reset";
  76. gpios = <&gpio0 10 1>;
  77. linux,code = <0x198>;
  78. };
  79. };
  80. ethernet@10100000 {
  81. mtd-mac-address = <&factory 0x4>;
  82. };
  83. esw@10110000 {
  84. ralink,portmap = <0x2f>;
  85. };
  86. wmac@10180000 {
  87. ralink,mtd-eeprom = <&factory 0>;
  88. };
  89. otg@101c0000 {
  90. status = "okay";
  91. };
  92. };