nb4-ser-r0.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. /dts-v1/;
  2. #include "bcm6358.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. model = "SFR Neuf Box 4 (Sercomm)";
  6. compatible = "sfr,nb4-ser-r0", "brcm,bcm6358";
  7. chosen {
  8. bootargs = "root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
  9. };
  10. spi-gpio {
  11. #address-cells = <1>;
  12. #size-cells = <1>;
  13. compatible = "spi-gpio";
  14. gpio-mosi = <&gpio0 7 0>;
  15. gpio-sck = <&gpio0 6 0>;
  16. num-chipselects = <0>;
  17. hc595: gpio-spi-controller@0 {
  18. compatible = "fairchild,74hc595";
  19. reg = <0>;
  20. registers-number = <1>;
  21. spi-max-frequency = <100000>;
  22. gpio-controller;
  23. #gpio-cells = <2>;
  24. };
  25. };
  26. gpio-keys-polled {
  27. compatible = "gpio-keys-polled";
  28. #address-cells = <1>;
  29. #size-cells = <0>;
  30. poll-interval = <20>;
  31. debounce-interval = <60>;
  32. service {
  33. label = "service";
  34. gpios = <&gpio0 27 1>;
  35. linux,code = <BTN_0>;
  36. };
  37. clip {
  38. label = "clip";
  39. gpios = <&gpio0 31 1>;
  40. linux,code = <BTN_1>;
  41. };
  42. reset {
  43. label = "reset";
  44. gpios = <&gpio1 2 1>;
  45. linux,code = <KEY_RESTART>;
  46. };
  47. wps {
  48. label = "wps";
  49. gpios = <&gpio1 5 1>;
  50. linux,code = <KEY_WPS_BUTTON>;
  51. };
  52. };
  53. gpio-leds {
  54. compatible = "gpio-leds";
  55. traffic_white {
  56. label = "NB4-SER-r0:white:traffic";
  57. gpios = <&gpio0 2 1>;
  58. };
  59. service_blue {
  60. label = "NB4-SER-r0:blue:service";
  61. gpios = <&gpio0 4 1>;
  62. };
  63. wifi_white {
  64. label = "NB4-SER-r0:white:wifi";
  65. gpios = <&gpio0 15 1>;
  66. };
  67. service_red {
  68. label = "NB4-SER-r0:red:service";
  69. gpios = <&gpio0 29 1>;
  70. };
  71. service_green {
  72. label = "NB4-SER-r0:green:service";
  73. gpios = <&gpio0 30 1>;
  74. };
  75. alarm_white {
  76. label = "NB4-SER-r0:white:alarm";
  77. gpios = <&hc595 0 1>;
  78. };
  79. tv_white {
  80. label = "NB4-SER-r0:white:tv";
  81. gpios = <&hc595 2 1>;
  82. };
  83. tel_white {
  84. label = "NB4-SER-r0:white:tel";
  85. gpios = <&hc595 3 1>;
  86. };
  87. adsl_white {
  88. label = "NB4-SER-r0:white:adsl";
  89. gpios = <&hc595 4 1>;
  90. };
  91. };
  92. };