DIR-320-B1.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. /dts-v1/;
  2. #include "rt5350.dtsi"
  3. / {
  4. compatible = "DIR-320-B1", "ralink,rt5350-soc";
  5. model = "D-Link DIR-320 B1";
  6. gpio-leds {
  7. compatible = "gpio-leds";
  8. status {
  9. label = "dir-320-b1:green:status";
  10. gpios = <&gpio0 9 1>;
  11. };
  12. usb {
  13. label = "dir-320-b1:green:usb";
  14. gpios = <&gpio0 14 1>;
  15. };
  16. wps {
  17. label = "dir-320-b1:green:wps";
  18. gpios = <&gpio0 13 1>;
  19. };
  20. };
  21. gpio-keys-polled {
  22. compatible = "gpio-keys-polled";
  23. #address-cells = <1>;
  24. #size-cells = <0>;
  25. poll-interval = <20>;
  26. reset {
  27. label = "reset";
  28. gpios = <&gpio0 10 1>;
  29. linux,code = <0x198>;
  30. };
  31. wps {
  32. label = "wps";
  33. gpios = <&gpio0 0 1>;
  34. linux,code = <0x211>;
  35. };
  36. };
  37. gpio_export {
  38. compatible = "gpio-export";
  39. #size-cells = <0>;
  40. usb {
  41. gpio-export,name = "usb";
  42. gpio-export,output = <1>;
  43. gpios = <&gpio0 7 0>;
  44. };
  45. root_hub {
  46. gpio-export,name = "root_hub";
  47. gpio-export,output = <1>;
  48. gpios = <&gpio0 12 0>;
  49. };
  50. };
  51. };
  52. &spi0 {
  53. status = "okay";
  54. m25p80@0 {
  55. #address-cells = <1>;
  56. #size-cells = <1>;
  57. compatible = "jedec,spi-nor";
  58. reg = <0>;
  59. linux,modalias = "m25p80", "s25fl064k";
  60. spi-max-frequency = <10000000>;
  61. partition@0 {
  62. label = "u-boot";
  63. reg = <0x0 0x30000>;
  64. read-only;
  65. };
  66. partition@30000 {
  67. label = "u-boot-env";
  68. reg = <0x30000 0x10000>;
  69. read-only;
  70. };
  71. factory: partition@40000 {
  72. label = "factory";
  73. reg = <0x40000 0x10000>;
  74. read-only;
  75. };
  76. partition@50000 {
  77. label = "firmware";
  78. reg = <0x50000 0x7b0000>;
  79. };
  80. };
  81. };
  82. &pinctrl {
  83. state_default: pinctrl0 {
  84. gpio {
  85. ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
  86. ralink,function = "gpio";
  87. };
  88. };
  89. };
  90. &ethernet {
  91. mtd-mac-address = <&factory 0x4>;
  92. };
  93. &esw {
  94. mediatek,portmap = <0x2f>;
  95. mediatek,led_polarity = <0x17>;
  96. };
  97. &wmac {
  98. ralink,mtd-eeprom = <&factory 0>;
  99. };
  100. &ehci {
  101. status = "okay";
  102. };
  103. &ohci {
  104. status = "okay";
  105. };