nb4-ser-r0.dts 1.7 KB

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