HG255D.dts 1.9 KB

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