a703fd6629853a10513962fad695f53ed1dd80f7
[openwrt/openwrt.git] / target / linux / bcm63xx / dts / bcm6328-comtrend-ar-5387un.dts
1 #include "bcm6328.dtsi"
2
3 #include <dt-bindings/input/input.h>
4
5 / {
6 model = "Comtrend AR-5387un";
7 compatible = "comtrend,ar-5387un", "brcm,bcm6328";
8
9 aliases {
10 led-boot = &led_power_green;
11 led-failsafe = &led_power_green;
12 led-running = &led_power_green;
13 led-upgrade = &led_power_green;
14 };
15
16 chosen {
17 bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
18 stdout-path = "serial0:115200n8";
19 };
20
21 keys {
22 compatible = "gpio-keys-polled";
23 #address-cells = <1>;
24 #size-cells = <0>;
25 poll-interval = <20>;
26
27 reset {
28 label = "reset";
29 gpios = <&pinctrl 23 1>;
30 linux,code = <KEY_RESTART>;
31 debounce-interval = <60>;
32 };
33 };
34 };
35
36 &hsspi {
37 status = "okay";
38
39 flash@0 {
40 compatible = "jedec,spi-nor";
41 spi-max-frequency = <16666667>;
42 spi-tx-bus-width = <2>;
43 spi-rx-bus-width = <2>;
44 reg = <0>;
45
46 #address-cells = <1>;
47 #size-cells = <1>;
48
49 partitions {
50 compatible = "fixed-partitions";
51 #address-cells = <1>;
52 #size-cells = <1>;
53
54 cfe@0 {
55 reg = <0x000000 0x010000>;
56 label = "cfe";
57 read-only;
58 };
59
60 linux@10000 {
61 reg = <0x010000 0xfe0000>;
62 label = "linux";
63 compatible = "brcm,bcm963xx-imagetag";
64 };
65
66 nvram@ff0000 {
67 reg = <0xff0000 0x010000>;
68 label = "nvram";
69 };
70 };
71 };
72 };
73
74 &leds {
75 status = "okay";
76
77 pinctrl-names = "default";
78 pinctrl-0 = <&pinctrl_leds>;
79
80 led@1 {
81 reg = <1>;
82 label = "red:inet";
83 };
84
85 led@4 {
86 reg = <4>;
87 label = "red:power";
88 };
89
90 led@7 {
91 reg = <7>;
92 label = "green:inet";
93 };
94
95 led_power_green: led@8 {
96 reg = <8>;
97 label = "green:power";
98 default-state = "on";
99 };
100
101 led@11 {
102 reg = <11>;
103 active-low;
104 label = "green:dsl";
105 };
106 };
107
108 &pinctrl {
109 pinctrl_leds: leds {
110 function = "led";
111 pins = "gpio1", "gpio4", "gpio7",
112 "gpio8", "gpio11";
113 };
114 };
115
116 &uart0 {
117 status = "okay";
118 };