HG255D.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. /dts-v1/;
  2. #include "rt3050.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "HG255D", "ralink,rt3052-soc";
  6. model = "HuaWei HG255D";
  7. cfi@1f000000 {
  8. compatible = "cfi-flash";
  9. reg = <0x1f000000 0x1000000>;
  10. bank-width = <2>;
  11. device-width = <2>;
  12. #address-cells = <1>;
  13. #size-cells = <1>;
  14. partition@0 {
  15. label = "u-boot";
  16. reg = <0x0 0x40000>;
  17. read-only;
  18. };
  19. partition@30000 {
  20. label = "u-boot-env";
  21. reg = <0x40000 0x20000>;
  22. read-only;
  23. };
  24. factory: partition@60000 {
  25. label = "factory";
  26. reg = <0x60000 0x20000>;
  27. read-only;
  28. };
  29. partition@80000 {
  30. label = "firmware";
  31. reg = <0x80000 0xf60000>;
  32. };
  33. partition@fa0000 {
  34. label = "factory-orig";
  35. reg = <0xfa0000 0x20000>;
  36. read-only;
  37. };
  38. };
  39. gpio-leds {
  40. compatible = "gpio-leds";
  41. power {
  42. label = "hg255d:green:power";
  43. gpios = <&gpio0 8 1>;
  44. };
  45. internet {
  46. label = "hg255d:green:internet";
  47. gpios = <&gpio0 13 1>;
  48. };
  49. wifi {
  50. label = "hg255d:green:wlan";
  51. gpios = <&gpio0 14 1>;
  52. };
  53. usb {
  54. label = "hg255d:green:usb";
  55. gpios = <&gpio0 9 1>;
  56. };
  57. wps {
  58. label = "hg255d:green:wps";
  59. gpios = <&gpio0 12 1>;
  60. };
  61. voice {
  62. label = "hg255d:green:voice";
  63. gpios = <&gpio0 5 1>;
  64. };
  65. };
  66. gpio-keys-polled {
  67. compatible = "gpio-keys-polled";
  68. #address-cells = <1>;
  69. #size-cells = <0>;
  70. poll-interval = <10>;
  71. reset {
  72. label = "reset";
  73. gpios = <&gpio0 4 1>;
  74. linux,code = <KEY_RESTART>;
  75. };
  76. wps {
  77. label = "wps";
  78. gpios = <&gpio0 10 1>;
  79. linux,code = <KEY_WPS_BUTTON>;
  80. };
  81. rfkill {
  82. label = "rfkill";
  83. gpios = <&gpio0 0 1>;
  84. linux,code = <KEY_RFKILL>;
  85. };
  86. };
  87. };
  88. &pinctrl {
  89. state_default: pinctrl0 {
  90. gpio {
  91. ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
  92. ralink,function = "gpio";
  93. };
  94. };
  95. };
  96. &ethernet {
  97. mtd-mac-address = <&factory 0x28>;
  98. };
  99. &esw {
  100. mediatek,portmap = <0x2f>;
  101. };
  102. &wmac {
  103. ralink,mtd-eeprom = <&factory 0>;
  104. };
  105. &otg {
  106. status = "okay";
  107. };