DIR-615-D.dts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. /dts-v1/;
  2. /include/ "rt3050.dtsi"
  3. / {
  4. compatible = "DIR-615-D", "ralink,rt3050-soc";
  5. model = "D-Link DIR-615 D";
  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 0x800000>;
  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. devdata: partition@30000 {
  27. label = "devdata";
  28. reg = <0x30000 0x10000>;
  29. read-only;
  30. };
  31. partition@40000 {
  32. label = "devconf";
  33. reg = <0x40000 0x10000>;
  34. read-only;
  35. };
  36. partition@50000 {
  37. label = "firmware";
  38. reg = <0x50000 0x3b0000>;
  39. };
  40. };
  41. esw@10110000 {
  42. ralink,portmap = <0x2f>;
  43. };
  44. wmac@10180000 {
  45. ralink,mtd-eeprom = <&devdata 0x4000>;
  46. };
  47. gpio-keys-polled {
  48. compatible = "gpio-keys-polled";
  49. #address-cells = <1>;
  50. #size-cells = <0>;
  51. poll-interval = <20>;
  52. reset {
  53. label = "reset";
  54. gpios = <&gpio0 10 1>;
  55. linux,code = <0x198>;
  56. };
  57. wps {
  58. label = "wps";
  59. gpios = <&gpio0 0 1>;
  60. linux,code = <0x211>;
  61. };
  62. };
  63. gpio-leds {
  64. compatible = "gpio-leds";
  65. status {
  66. label = "d-link:amber:status";
  67. gpios = <&gpio0 8 1>;
  68. };
  69. status2 {
  70. label = "d-link:green:status";
  71. gpios = <&gpio0 9 1>;
  72. };
  73. wan {
  74. label = "d-link:amber:wan";
  75. gpios = <&gpio0 14 1>;
  76. };
  77. wan2 {
  78. label = "d-link:green:wan";
  79. gpios = <&gpio0 12 1>;
  80. };
  81. wps {
  82. label = "d-link:blue:wps";
  83. gpios = <&gpio0 13 1>;
  84. };
  85. };
  86. };