bcm63xx: Add support for D-Link DSL-2750u rev C1
[openwrt/staging/rmilecki.git] / target / linux / bcm63xx / dts / bcm6328-d-link-dsl-2750u-c1.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 = "D-Link DSL-2750U rev C1";
9 compatible = "d-link,dsl-2750u-c1", "brcm,bcm6328";
10
11 aliases {
12 led-boot = &led_power_green;
13 led-failsafe = &led_power_green;
14 led-running = &led_power_green;
15 led-upgrade = &led_power_green;
16 };
17
18 chosen {
19 bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
20 stdout-path = "serial0:115200n8";
21 };
22
23 keys {
24 compatible = "gpio-keys-polled";
25 poll-interval = <20>;
26
27 wifi {
28 label = "wifi";
29 gpios = <&pinctrl 12 1>;
30 linux,code = <KEY_WLAN>;
31 debounce-interval = <60>;
32 };
33
34 reset {
35 label = "reset";
36 gpios = <&pinctrl 23 1>;
37 linux,code = <KEY_RESTART>;
38 debounce-interval = <60>;
39 };
40
41 wps {
42 label = "wps";
43 gpios = <&pinctrl 24 1>;
44 linux,code = <KEY_WPS_BUTTON>;
45 debounce-interval = <60>;
46 };
47 };
48 };
49
50 &hsspi {
51 status = "okay";
52
53 flash@0 {
54 compatible = "jedec,spi-nor";
55 spi-max-frequency = <16666667>;
56 spi-tx-bus-width = <2>;
57 spi-rx-bus-width = <2>;
58 reg = <0>;
59
60 partitions {
61 compatible = "fixed-partitions";
62 #address-cells = <1>;
63 #size-cells = <1>;
64
65 cfe@0 {
66 reg = <0x000000 0x010000>;
67 label = "cfe";
68 read-only;
69 };
70
71 linux@10000 {
72 reg = <0x010000 0x7e0000>;
73 label = "linux";
74 compatible = "brcm,bcm963xx-imagetag";
75 };
76
77 nvram@7f0000 {
78 reg = <0x7f0000 0x010000>;
79 label = "nvram";
80 };
81 };
82 };
83 };
84
85 &leds {
86 status = "okay";
87
88 pinctrl-names = "default";
89 pinctrl-0 = <&pinctrl_leds>;
90
91 led@1 {
92 reg = <1>;
93 active-low;
94 label = "green:inet";
95 };
96
97 led_power_green: led@4 {
98 reg = <4>;
99 active-low;
100 label = "green:power";
101 default-state = "on";
102 };
103
104 led@7 {
105 reg = <7>;
106 active-low;
107 label = "red:inet";
108 };
109
110 led@8 {
111 reg = <8>;
112 active-low;
113 label = "red:power";
114 };
115
116 led@9 {
117 reg = <9>;
118 active-low;
119 label = "green:wps";
120 };
121
122 led@10 {
123 reg = <10>;
124 active-low;
125 label = "green:usb";
126 };
127
128 led@11 {
129 reg = <11>;
130 active-low;
131 label = "green:dsl";
132 };
133 };
134
135 &pinctrl {
136 pinctrl_leds: leds {
137 function = "led";
138 pins = "gpio1", "gpio4", "gpio7",
139 "gpio8", "gpio9", "gpio10",
140 "gpio11";
141 };
142 };
143
144 &uart0 {
145 status = "okay";
146 };