ar-5315u.dts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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 = "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. partitions {
  72. compatible = "fixed-partitions";
  73. #address-cells = <1>;
  74. #size-cells = <1>;
  75. cfe@0 {
  76. reg = <0x000000 0x010000>;
  77. label = "cfe";
  78. read-only;
  79. };
  80. linux@10000 {
  81. reg = <0x010000 0xfe0000>;
  82. label = "linux";
  83. compatible = "brcm,bcm963xx-imagetag";
  84. };
  85. nvram@ff0000 {
  86. reg = <0xff0000 0x010000>;
  87. label = "nvram";
  88. };
  89. };
  90. };
  91. };
  92. &pinctrl {
  93. pinctrl-names = "default";
  94. pinctrl-0 = <&pinctrl_ephy0_act_led &pinctrl_ephy1_act_led
  95. &pinctrl_ephy2_act_led &pinctrl_ephy3_act_led>;
  96. };
  97. &uart0 {
  98. status = "ok";
  99. };