F5D8235_V2.dts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. /dts-v1/;
  2. #include "rt3050.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "belkin,f5d8235-v2", "ralink,rt3052-soc";
  7. model = "Belkin F5D8235 v2";
  8. aliases {
  9. led-boot = &led_router;
  10. led-failsafe = &led_router;
  11. led-running = &led_router;
  12. led-upgrade = &led_router;
  13. };
  14. cfi@1f000000 {
  15. compatible = "cfi-flash";
  16. reg = <0x1f000000 0x800000>;
  17. bank-width = <2>;
  18. device-width = <2>;
  19. partitions {
  20. compatible = "fixed-partitions";
  21. #address-cells = <1>;
  22. #size-cells = <1>;
  23. uboot: partition@0 {
  24. label = "uboot";
  25. reg = <0x0 0x50000>;
  26. read-only;
  27. };
  28. partition@50000 {
  29. label = "firmware";
  30. reg = <0x50000 0x790000>;
  31. };
  32. partition@7e0000 {
  33. label = "nvram";
  34. reg = <0x7e0000 0x10000>;
  35. };
  36. factory: partition@7f0000 {
  37. label = "factory";
  38. reg = <0x7f0000 0x10000>;
  39. };
  40. };
  41. };
  42. rtl8366rb {
  43. compatible = "realtek,rtl8366rb";
  44. gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
  45. gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
  46. };
  47. gpio-leds {
  48. compatible = "gpio-leds";
  49. internet {
  50. label = "f5d8235-v2:blue:internet";
  51. gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
  52. };
  53. internet2 {
  54. label = "f5d8235-v2:amber:internet";
  55. gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
  56. };
  57. modem {
  58. label = "f5d8235-v2:blue:modem";
  59. gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
  60. };
  61. modem2 {
  62. label = "f5d8235-v2:amber:modem";
  63. gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
  64. };
  65. led_router: router {
  66. label = "f5d8235-v2:blue:router";
  67. gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
  68. };
  69. storage {
  70. label = "f5d8235-v2:blue:storage";
  71. gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
  72. trigger-sources = <&otg_port1>;
  73. linux,default-trigger = "usbport";
  74. };
  75. storage2 {
  76. label = "f5d8235-v2:amber:storage";
  77. gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
  78. };
  79. security {
  80. label = "f5d8235-v2:blue:security";
  81. gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
  82. };
  83. security2 {
  84. label = "f5d8235-v2:amber:security";
  85. gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
  86. };
  87. };
  88. };
  89. &pinctrl {
  90. state_default: pinctrl0 {
  91. gpio {
  92. ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
  93. ralink,function = "gpio";
  94. };
  95. };
  96. };
  97. &ethernet {
  98. mtd-mac-address = <&uboot 0x40004>;
  99. };
  100. &esw {
  101. mediatek,portmap = <0x3f>;
  102. };
  103. &wmac {
  104. ralink,mtd-eeprom = <&uboot 0x40000>;
  105. };
  106. &otg {
  107. status = "okay";
  108. };