8a6a8b58a2c34be0ea0502287128a52fb6f8a519
[openwrt/staging/stintel.git] / target / linux / bcm63xx / dts / bcm6328-adb-pdg-a4001n-a-000-1a1-ax.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 /dts-v1/;
4
5 #include "bcm6328.dtsi"
6
7 #include <dt-bindings/input/input.h>
8
9 / {
10 model = "ADB P.DG A4001N A-000-1A1-AX";
11 compatible = "adb,pdg-a4001n-a-000-1a1-ax", "brcm,bcm6328";
12
13 aliases {
14 led-boot = &led_power_green;
15 led-failsafe = &led_power_green;
16 led-running = &led_power_green;
17 led-upgrade = &led_power_green;
18 };
19
20 chosen {
21 bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
22 stdout-path = "serial0:115200n8";
23 };
24
25 keys {
26 compatible = "gpio-keys-polled";
27 #address-cells = <1>;
28 #size-cells = <0>;
29 poll-interval = <20>;
30
31 reset {
32 label = "reset";
33 gpios = <&pinctrl 23 1>;
34 linux,code = <KEY_RESTART>;
35 debounce-interval = <60>;
36 };
37
38 wps {
39 label = "wifi-led";
40 gpios = <&pinctrl 24 1>;
41 linux,code = <KEY_WPS_BUTTON>;
42 debounce-interval = <60>;
43 };
44 };
45 };
46
47 &leds {
48 status = "okay";
49
50 pinctrl-names = "default";
51 pinctrl-0 = <&pinctrl_leds>;
52
53 led@2 {
54 reg = <2>;
55 active-low;
56 label = "pdg-a4001n-a-000-1a1-ax:red:internet";
57 };
58
59 led@3 {
60 reg = <3>;
61 active-low;
62 label = "pdg-a4001n-a-000-1a1-ax:green:adsl";
63 };
64
65 led@5 {
66 reg = <5>;
67 active-low;
68 label = "pdg-a4001n-a-000-1a1-ax:red:adsl";
69 };
70
71 led@6 {
72 reg = <6>;
73 active-low;
74 label = "pdg-a4001n-a-000-1a1-ax:green:service";
75 };
76
77 led@7 {
78 reg = <7>;
79 active-low;
80 label = "pdg-a4001n-a-000-1a1-ax:red:service";
81 };
82
83 led@8 {
84 reg = <8>;
85 active-low;
86 label = "pdg-a4001n-a-000-1a1-ax:red:power";
87 };
88
89 led@9 {
90 reg = <9>;
91 active-low;
92 label = "pdg-a4001n-a-000-1a1-ax:green:wifi";
93 };
94
95 led@10 {
96 reg = <10>;
97 active-low;
98 label = "pdg-a4001n-a-000-1a1-ax:red:wifi";
99 };
100
101 led@11 {
102 reg = <11>;
103 active-low;
104 label = "pdg-a4001n-a-000-1a1-ax:green:internet";
105 };
106
107 led_power_green: led@12 {
108 reg = <12>;
109 active-low;
110 label = "pdg-a4001n-a-000-1a1-ax:green:power";
111 default-state = "on";
112 };
113 };
114
115 &hsspi {
116 status = "okay";
117
118 flash@0 {
119 compatible = "jedec,spi-nor";
120 spi-max-frequency = <16666667>;
121 spi-tx-bus-width = <2>;
122 spi-rx-bus-width = <2>;
123 reg = <0>;
124
125 #address-cells = <1>;
126 #size-cells = <1>;
127
128 partitions {
129 compatible = "fixed-partitions";
130 #address-cells = <1>;
131 #size-cells = <1>;
132
133 partition@0 {
134 reg = <0x000000 0x010000>;
135 label = "cfe";
136 read-only;
137 };
138
139 partition@10000 {
140 reg = <0x010000 0xfe0000>;
141 label = "linux";
142 compatible = "brcm,bcm963xx-imagetag";
143 };
144
145 partition@ff0000 {
146 reg = <0xff0000 0x010000>;
147 label = "nvram";
148 };
149 };
150 };
151 };
152
153 &pinctrl {
154 pinctrl_leds: leds {
155 function = "led";
156 pins = "gpio2", "gpio3",
157 "gpio5", "gpio6",
158 "gpio7", "gpio8",
159 "gpio9", "gpio10",
160 "gpio11", "gpio12";
161 };
162 };
163
164 &uart0 {
165 status = "okay";
166 };