d88855f7a5a48d486713e1993942068c68d1e737
[openwrt/staging/mans0n.git] / target / linux / bcm63xx / dts / bcm6328-technicolor-tg582n-telecom-italia.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 #include <dt-bindings/leds/common.h>
7
8 / {
9 model = "Technicolor TG582n Telecom Italia";
10 compatible = "technicolor,tg582n-telecom-italia", "brcm,bcm6328";
11
12 aliases {
13 led-boot = &led_power_green;
14 led-failsafe = &led_power_green;
15 led-running = &led_power_green;
16 led-upgrade = &led_power_green;
17 };
18
19 chosen {
20 bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
21 stdout-path = "serial0:115200n8";
22 };
23
24 keys {
25 compatible = "gpio-keys-polled";
26 #address-cells = <1>;
27 #size-cells = <0>;
28 poll-interval = <20>;
29
30 reset {
31 label = "reset";
32 gpios = <&pinctrl 23 1>;
33 linux,code = <KEY_RESTART>;
34 debounce-interval = <60>;
35 };
36
37 wps {
38 label = "wps";
39 gpios = <&pinctrl 24 1>;
40 linux,code = <KEY_WPS_BUTTON>;
41 debounce-interval = <60>;
42 };
43 };
44 };
45
46 &leds {
47 status = "okay";
48
49 pinctrl-names = "default";
50 pinctrl-0 = <&pinctrl_leds>;
51
52 led@1 {
53 reg = <1>;
54 active-low;
55 label = "green:wifi";
56 };
57
58 led_power_green: led@4 {
59 reg = <4>;
60 active-low;
61 function = LED_FUNCTION_POWER;
62 color = <LED_COLOR_ID_GREEN>;
63 default-state = "on";
64 };
65
66 led@5 {
67 reg = <5>;
68 active-low;
69 label = "green:adsl";
70 };
71
72 led@7 {
73 reg = <7>;
74 active-low;
75 label = "red:wifi";
76 };
77
78 led@8 {
79 reg = <8>;
80 active-low;
81 function = LED_FUNCTION_POWER;
82 color = <LED_COLOR_ID_RED>;
83 };
84
85 led@11 {
86 reg = <11>;
87 active-low;
88 label = "green:internet";
89 };
90
91 led@14 {
92 reg = <14>;
93 active-low;
94 label = "red:internet";
95 };
96
97 led@18 {
98 reg = <18>;
99 active-low;
100 label = "red:service";
101 };
102
103 led@19 {
104 reg = <19>;
105 active-low;
106 label = "green:service";
107 };
108 };
109
110 &hsspi {
111 status = "okay";
112
113 flash@0 {
114 compatible = "jedec,spi-nor";
115 spi-max-frequency = <16666667>;
116 spi-tx-bus-width = <2>;
117 spi-rx-bus-width = <2>;
118 reg = <0>;
119
120 #address-cells = <1>;
121 #size-cells = <1>;
122
123 partitions {
124 compatible = "fixed-partitions";
125 #address-cells = <1>;
126 #size-cells = <1>;
127
128 partition@0 {
129 reg = <0x000000 0x010000>;
130 label = "cfe";
131 read-only;
132 };
133
134 partition@10000 {
135 reg = <0x010000 0xff0000>;
136 label = "linux";
137 compatible = "brcm,bcm963xx-imagetag";
138 };
139 };
140 };
141 };
142
143 &pinctrl {
144 pinctrl_leds: leds {
145 function = "led";
146 pins = "gpio1", "gpio4",
147 "gpio5", "gpio7",
148 "gpio8", "gpio11",
149 "gpio14", "gpio18",
150 "gpio19";
151 };
152 };
153
154 &uart0 {
155 status = "okay";
156 };