WIP: bcm63xx: SFR NB6V support
[openwrt/staging/noltari.git] / target / linux / bcm63xx / dts / bcm6361-sfr-neufbox-6-sercomm-r0.dts
1 /dts-v1/;
2
3 #include "bcm6362.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 model = "SFR Neufbox 6 (Sercomm)";
10 compatible = "sfr,neufbox-6-sercomm-r0", "brcm,bcm6361", "brcm,bcm6362";
11
12 aliases {
13 led-boot = &led_service1_green;
14 led-failsafe = &led_service1_red;
15 led-running = &led_service1_green;
16 led-upgrade = &led_service1_green;
17 };
18
19 chosen {
20 bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
21 stdout-path = "serial0:115200n8";
22 };
23
24 i2c {
25 compatible = "i2c-gpio";
26 sda-gpios = <&pinctrl 30 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
27 scl-gpios = <&pinctrl 2 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
28 #address-cells = <1>;
29 #size-cells = <0>;
30
31 pwm: nb6-hwmon@60 {
32 compatible = "sfr,nb6_hwmon";
33 reg = <0x60>;
34 #pwm-cells = <2>;
35 };
36 };
37
38 keys {
39 compatible = "gpio-keys-polled";
40 #address-cells = <1>;
41 #size-cells = <0>;
42 poll-interval = <20>;
43
44 service {
45 label = "service";
46 gpios = <&pinctrl 10 1>;
47 linux,code = <BTN_0>;
48 debounce-interval = <60>;
49 };
50
51 wlan {
52 label = "wlan";
53 gpios = <&pinctrl 12 1>;
54 linux,code = <KEY_WLAN>;
55 debounce-interval = <60>;
56 };
57
58 reset {
59 label = "reset";
60 gpios = <&pinctrl 24 1>;
61 linux,code = <KEY_RESTART>;
62 debounce-interval = <60>;
63 };
64
65 wps {
66 label = "wps";
67 gpios = <&pinctrl 25 1>;
68 linux,code = <KEY_WPS_BUTTON>;
69 debounce-interval = <60>;
70 };
71 };
72
73 pwm-leds {
74 compatible = "pwm-leds";
75
76 led_service1_red: service1_red {
77 label = "neufbox-6v-foxconn-r0:red:service1";
78 pwms = <&pwm 0 31>;
79 max-brightness = <31>;
80 };
81
82 service2_red {
83 label = "neufbox-6v-foxconn-r0:red:service2";
84 pwms = <&pwm 1 31>;
85 max-brightness = <31>;
86 };
87
88 service3_red {
89 label = "neufbox-6v-foxconn-r0:red:service3";
90 pwms = <&pwm 2 31>;
91 max-brightness = <31>;
92 };
93
94 led_service1_green: service1_green {
95 label = "neufbox-6v-foxconn-r0:green:service1";
96 pwms = <&pwm 3 31>;
97 max-brightness = <31>;
98 default-state = "on";
99 };
100
101 service2_green {
102 label = "neufbox-6v-foxconn-r0:green:service2";
103 pwms = <&pwm 4 31>;
104 max-brightness = <31>;
105 };
106
107 service3_green {
108 label = "neufbox-6v-foxconn-r0:green:service3";
109 pwms = <&pwm 5 31>;
110 max-brightness = <31>;
111 };
112
113 wan_white {
114 label = "neufbox-6v-foxconn-r0:white:wan";
115 pwms = <&pwm 6 31>;
116 max-brightness = <31>;
117 };
118
119 voip_white {
120 label = "neufbox-6v-foxconn-r0:white:voip";
121 pwms = <&pwm 7 31>;
122 max-brightness = <31>;
123 };
124
125 wlan_white {
126 label = "neufbox-6v-foxconn-r0:white:wlan";
127 pwms = <&pwm 8 31>;
128 max-brightness = <31>;
129 };
130 };
131
132 switch {
133 compatible = "realtek,rtl8367";
134 gpio-sda = <&pinctrl 18 0>;
135 gpio-sck = <&pinctrl 20 0>;
136
137 realtek,extif0 = <1 5 1 1 1 1 1 1 2>;
138 };
139 };
140
141 &hsspi {
142 status = "okay";
143
144 flash@0 {
145 compatible = "jedec,spi-nor";
146 spi-max-frequency = <20000000>;
147 spi-tx-bus-width = <2>;
148 spi-rx-bus-width = <2>;
149 reg = <0>;
150
151 #address-cells = <1>;
152 #size-cells = <1>;
153
154 partitions {
155 compatible = "fixed-partitions";
156 #address-cells = <1>;
157 #size-cells = <1>;
158
159 cfe@0 {
160 reg = <0x000000 0x010000>;
161 label = "cfe";
162 read-only;
163 };
164
165 linux@10000 {
166 reg = <0x010000 0xfe0000>;
167 label = "linux";
168 compatible = "brcm,bcm963xx-imagetag";
169 };
170
171 nvram@ff0000 {
172 reg = <0xff0000 0x010000>;
173 label = "nvram";
174 };
175 };
176 };
177 };
178
179 &uart0 {
180 status = "okay";
181 };