bcm63xx: move dts-v1 statement to top-level DTSI files
[openwrt/staging/mkresin.git] / target / linux / bcm63xx / dts / bcm6328-comtrend-ar-5381u.dts
1 #include "bcm6328.dtsi"
2
3 #include <dt-bindings/input/input.h>
4
5 / {
6 model = "Comtrend AR-5381u";
7 compatible = "comtrend,ar-5381u", "brcm,bcm6328";
8
9 aliases {
10 led-boot = &led_power_green;
11 led-failsafe = &led_alarm_red;
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_alarm_red: led@2 {
81 reg = <2>;
82 active-low;
83 label = "red:alarm";
84 };
85
86 led@3 {
87 reg = <3>;
88 active-low;
89 label = "green:inet";
90 };
91
92 led_power_green: led@4 {
93 reg = <4>;
94 active-low;
95 label = "green:power";
96 default-state = "on";
97 };
98 };
99
100 &pinctrl {
101 pinctrl_leds: leds {
102 function = "led";
103 pins = "gpio2", "gpio3", "gpio4";
104 };
105 };
106
107 &uart0 {
108 status = "okay";
109 };