DCS-930.dts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. /dts-v1/;
  2. #include "rt3050.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "dlink,dcs-930", "ralink,rt3050-soc";
  7. model = "D-Link DCS-930";
  8. aliases {
  9. led-boot = &led_status;
  10. led-failsafe = &led_status;
  11. led-running = &led_status;
  12. led-upgrade = &led_status;
  13. };
  14. cfi@1f000000 {
  15. compatible = "cfi-flash";
  16. reg = <0x1f000000 0x400000>;
  17. bank-width = <2>;
  18. device-width = <2>;
  19. partitions {
  20. compatible = "fixed-partitions";
  21. #address-cells = <1>;
  22. #size-cells = <1>;
  23. partition@0 {
  24. label = "u-boot";
  25. reg = <0x0 0x30000>;
  26. read-only;
  27. };
  28. partition@30000 {
  29. label = "u-boot-env";
  30. reg = <0x30000 0x10000>;
  31. read-only;
  32. };
  33. factory: partition@40000 {
  34. label = "factory";
  35. reg = <0x40000 0x10000>;
  36. read-only;
  37. };
  38. partition@50000 {
  39. compatible = "denx,uimage";
  40. label = "firmware";
  41. reg = <0x50000 0x3b0000>;
  42. };
  43. };
  44. };
  45. leds {
  46. compatible = "gpio-leds";
  47. wifi {
  48. label = "dcs-930:red:alert";
  49. gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
  50. };
  51. led_status: status {
  52. label = "dcs-930:green:status";
  53. gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
  54. };
  55. wps {
  56. label = "dcs-930:blue:wps";
  57. gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
  58. };
  59. };
  60. keys {
  61. compatible = "gpio-keys-polled";
  62. poll-interval = <20>;
  63. wps {
  64. label = "wps";
  65. gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
  66. linux,code = <BTN_1>;
  67. };
  68. reset {
  69. label = "reset";
  70. gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
  71. linux,code = <KEY_RESTART>;
  72. };
  73. };
  74. };
  75. &pinctrl {
  76. state_default: pinctrl0 {
  77. gpio {
  78. ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf";
  79. ralink,function = "gpio";
  80. };
  81. };
  82. };
  83. &ethernet {
  84. mtd-mac-address = <&factory 0x4>;
  85. };
  86. &esw {
  87. mediatek,portmap = <0x2f>;
  88. };
  89. &wmac {
  90. ralink,mtd-eeprom = <&factory 0>;
  91. };
  92. &otg {
  93. status = "okay";
  94. };