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