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