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 = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
  9. stdout-path = "serial0:115200n8";
  10. };
  11. keys {
  12. compatible = "gpio-keys-polled";
  13. #address-cells = <1>;
  14. #size-cells = <0>;
  15. poll-interval = <20>;
  16. reset {
  17. label = "reset";
  18. gpios = <&pinctrl 23 1>;
  19. linux,code = <KEY_RESTART>;
  20. debounce-interval = <60>;
  21. };
  22. wps {
  23. label = "wps";
  24. gpios = <&pinctrl 24 1>;
  25. linux,code = <KEY_WPS_BUTTON>;
  26. debounce-interval = <60>;
  27. };
  28. };
  29. leds {
  30. compatible = "gpio-leds";
  31. inet_green {
  32. label = "R5010UNv2:green:inet";
  33. gpios = <&pinctrl 1 1>;
  34. };
  35. inet_fail_red {
  36. label = "R5010UNv2:red:inet-fail";
  37. gpios = <&pinctrl 2 1>;
  38. };
  39. dsl_red {
  40. label = "R5010UNv2:green:dsl";
  41. gpios = <&pinctrl 3 1>;
  42. };
  43. power_green {
  44. label = "R5010UNv2:green:power";
  45. gpios = <&pinctrl 4 1>;
  46. default-state = "on";
  47. };
  48. power_fail_red {
  49. label = "R5010UNv2:red:power-fail";
  50. gpios = <&pinctrl 5 1>;
  51. };
  52. wps_green {
  53. label = "R5010UNv2:green:wps";
  54. gpios = <&pinctrl 10 1>;
  55. };
  56. usb_green {
  57. label = "R5010UNv2:green:usb";
  58. gpios = <&pinctrl 11 1>;
  59. };
  60. };
  61. };
  62. &hsspi {
  63. status = "ok";
  64. flash@0 {
  65. compatible = "jedec,spi-nor";
  66. spi-max-frequency = <16666667>;
  67. spi-tx-bus-width = <2>;
  68. spi-rx-bus-width = <2>;
  69. reg = <0>;
  70. #address-cells = <1>;
  71. #size-cells = <1>;
  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. };