HG255D.dts 1.9 KB

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