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