2
0

r5010unv2.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. /dts-v1/;
  2. #include "bcm6328.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. model = "NuCom R5010UN v2";
  6. compatible = "nucom,r5010unv2", "brcm,bcm6328";
  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. reset {
  18. label = "reset";
  19. gpios = <&pinctrl 23 1>;
  20. linux,code = <KEY_RESTART>;
  21. };
  22. wps {
  23. label = "wps";
  24. gpios = <&pinctrl 24 1>;
  25. linux,code = <KEY_WPS_BUTTON>;
  26. };
  27. };
  28. gpio-leds {
  29. compatible = "gpio-leds";
  30. inet_green {
  31. label = "R5010UNv2:green:inet";
  32. gpios = <&pinctrl 1 1>;
  33. };
  34. inet_fail_red {
  35. label = "R5010UNv2:red:inet-fail";
  36. gpios = <&pinctrl 2 1>;
  37. };
  38. dsl_red {
  39. label = "R5010UNv2:green:dsl";
  40. gpios = <&pinctrl 3 1>;
  41. };
  42. power_green {
  43. label = "R5010UNv2:green:power";
  44. gpios = <&pinctrl 4 1>;
  45. default-state = "on";
  46. };
  47. power_fail_red {
  48. label = "R5010UNv2:red:power-fail";
  49. gpios = <&pinctrl 5 1>;
  50. };
  51. wps_green {
  52. label = "R5010UNv2:green:wps";
  53. gpios = <&pinctrl 10 1>;
  54. };
  55. usb_green {
  56. label = "R5010UNv2:green:usb";
  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 = <16666667>;
  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 0x7e0000>;
  83. label = "linux";
  84. compatible = "brcm,bcm963xx-imagetag";
  85. };
  86. nvram@7f0000 {
  87. reg = <0x7f0000 0x010000>;
  88. label = "nvram";
  89. };
  90. };
  91. };
  92. };
  93. &uart0 {
  94. status = "ok";
  95. };