2
0

ar-5315u.dts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. /dts-v1/;
  2. #include "bcm6318.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. model = "Comtrend AR-5315u";
  6. compatible = "comtrend,ar-5315u", "brcm,bcm6318";
  7. chosen {
  8. bootargs = "root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
  9. stdout-path = "serial0:115200n8";
  10. };
  11. gpio-keys-polled {
  12. compatible = "gpio-keys-polled";
  13. #address-cells = <1>;
  14. #size-cells = <0>;
  15. poll-interval = <20>;
  16. debounce-interval = <60>;
  17. wps {
  18. label = "wps";
  19. gpios = <&pinctrl 3 1>;
  20. linux,code = <KEY_WPS_BUTTON>;
  21. };
  22. reset {
  23. label = "reset";
  24. gpios = <&pinctrl 33 1>;
  25. linux,code = <KEY_RESTART>;
  26. };
  27. };
  28. gpio-leds {
  29. compatible = "gpio-leds";
  30. wps_green {
  31. label = "AR-5315u:green:wps";
  32. gpios = <&pinctrl 0 1>;
  33. };
  34. power_green {
  35. label = "AR-5315u:green:power";
  36. gpios = <&pinctrl 1 1>;
  37. default-state = "on";
  38. };
  39. usb_green {
  40. label = "AR-5315u:green:usb";
  41. gpios = <&pinctrl 2 1>;
  42. };
  43. inet_green {
  44. label = "AR-5315u:green:inet";
  45. gpios = <&pinctrl 8 1>;
  46. };
  47. inet_red {
  48. label = "AR-5315u:red:inet";
  49. gpios = <&pinctrl 9 1>;
  50. };
  51. dsl_green {
  52. label = "AR-5315u:green:dsl";
  53. gpios = <&pinctrl 10 1>;
  54. };
  55. power_red {
  56. label = "AR-5315u:red:power";
  57. gpios = <&pinctrl 11 1>;
  58. };
  59. };
  60. };
  61. &hsspi {
  62. status = "ok";
  63. flash@0 {
  64. compatible = "jedec,spi-nor";
  65. spi-max-frequency = <62500000>;
  66. spi-tx-bus-width = <2>;
  67. spi-rx-bus-width = <2>;
  68. reg = <0>;
  69. #address-cells = <1>;
  70. #size-cells = <1>;
  71. linux,part-probe = "bcm63xxpart";
  72. partitions {
  73. compatible = "fixed-partitions";
  74. #address-cells = <1>;
  75. #size-cells = <1>;
  76. cfe@0 {
  77. reg = <0x000000 0x010000>;
  78. label = "cfe";
  79. read-only;
  80. };
  81. linux@10000 {
  82. reg = <0x010000 0xfe0000>;
  83. label = "linux";
  84. compatible = "brcm,bcm963xx-imagetag";
  85. };
  86. nvram@ff0000 {
  87. reg = <0xff0000 0x010000>;
  88. label = "nvram";
  89. };
  90. };
  91. };
  92. };
  93. &pinctrl {
  94. pinctrl-names = "default";
  95. pinctrl-0 = <&pinctrl_ephy0_act_led &pinctrl_ephy1_act_led
  96. &pinctrl_ephy2_act_led &pinctrl_ephy3_act_led>;
  97. };
  98. &uart0 {
  99. status = "ok";
  100. };