1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "bcm6328.dtsi"
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/leds/common.h>
9 model = "Technicolor TG582n";
10 compatible = "technicolor,tg582n", "brcm,bcm6328";
13 led-boot = &led_power_green;
14 led-failsafe = &led_power_green;
15 led-running = &led_power_green;
16 led-upgrade = &led_power_green;
20 bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
21 stdout-path = "serial0:115200n8";
25 compatible = "gpio-keys-polled";
32 gpios = <&pinctrl 15 1>;
33 linux,code = <KEY_WLAN>;
34 debounce-interval = <60>;
39 gpios = <&pinctrl 23 1>;
40 linux,code = <KEY_RESTART>;
41 debounce-interval = <60>;
46 gpios = <&pinctrl 24 1>;
47 linux,code = <KEY_WPS_BUTTON>;
48 debounce-interval = <60>;
56 pinctrl-names = "default";
57 pinctrl-0 = <&pinctrl_leds>;
62 label = "green:internet";
77 led_power_green: led@4 {
80 function = LED_FUNCTION_POWER;
81 color = <LED_COLOR_ID_GREEN>;
88 label = "green:ethernet";
94 label = "red:internet";
100 function = LED_FUNCTION_POWER;
101 color = <LED_COLOR_ID_RED>;
107 function = LED_FUNCTION_WPS;
108 color = <LED_COLOR_ID_GREEN>;
114 function = LED_FUNCTION_WPS;
115 color = <LED_COLOR_ID_RED>;
121 label = "green:broadband";
129 compatible = "jedec,spi-nor";
130 spi-max-frequency = <16666667>;
131 spi-tx-bus-width = <2>;
132 spi-rx-bus-width = <2>;
135 #address-cells = <1>;
139 compatible = "fixed-partitions";
140 #address-cells = <1>;
144 reg = <0x000000 0x010000>;
150 reg = <0x010000 0xff0000>;
152 compatible = "brcm,bcm963xx-imagetag";
161 pins = "gpio1", "gpio2",