1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qca955x.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "librerouter,librerouter-v1", "qca,qca9558";
10 model = "LibreRouter v1";
13 led-boot = &led_system;
14 led-failsafe = &led_system;
15 led-running = &led_system;
16 led-upgrade = &led_system;
20 compatible = "gpio-leds";
23 label = "green:system";
24 gpios = <&gpio 23 GPIO_ACTIVE_HIGH>;
29 label = "green:wlan2g";
30 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
31 linux,default-trigger = "phy0tpt";
35 label = "blue:status";
36 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
41 compatible = "gpio-keys";
43 pinctrl-names = "default";
44 /* GPIO1 (poe_pass) and GPIO2 (watchdog) requires jtag disabled */
45 pinctrl-0 = <&jtag_disable_pins>;
49 linux,code = <KEY_RESTART>;
50 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
51 debounce-interval = <60>;
56 compatible = "linux,wdt-gpio";
57 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
59 hw_margin_ms = <1000>;
68 compatible = "pci168c,0033";
69 reg = <0x0000 0 0 0 0>;
77 compatible = "pci168c,0033";
78 reg = <0x0000 0 0 0 0>;
106 compatible = "jedec,spi-nor";
108 spi-max-frequency = <25000000>;
111 compatible = "fixed-partitions";
112 #address-cells = <1>;
117 reg = <0x000000 0x040000>;
122 label = "u-boot-env";
123 reg = <0x040000 0x010000>;
127 compatible = "denx,uimage";
129 reg = <0x050000 0x7c0000>;
134 reg = <0x810000 0x7d0000>;
139 reg = <0xfd0000 0x20000>;
142 art: partition@ff0000 {
144 reg = <0xff0000 0x010000>;
154 phy0: ethernet-phy@0 {
156 qca,ar8327-initvals = <
157 0x04 0x87600000 /* PORT0: RGMII, MAC0/6 exchage, tx_delay 01, rx_delay 10 */
158 0x0c 0x00000080 /* PORT6: SGMII */
159 0x10 0x81000080 /* POWER_ON_STRAP: LED open drain, SerDes auto-neg disabled */
160 0x50 0xcf37cf37 /* LED_CTRL0 */
161 0x54 0xcf37cf37 /* LED_CTRL1 */
162 0x58 0xcf37cf37 /* LED_CTRL2 */
163 0x5c 0x0 /* LED_CTRL3 */
164 0x7c 0x0000007e /* PORT0_STATUS */
165 0x94 0x0000007e /* PORT6 STATUS */
173 pll-data = <0xa6000000 0x00000101 0x00001616>;
174 nvmem-cells = <&macaddr_art_0>;
175 nvmem-cell-names = "mac-address";
177 phy-handle = <&phy0>;
183 pll-data = <0x03000101 0x00000101 0x00001616>;
184 nvmem-cells = <&macaddr_art_6>;
185 nvmem-cell-names = "mac-address";
196 mtd-cal-data = <&art 0x1000>;
197 nvmem-cells = <&macaddr_art_c>;
198 nvmem-cell-names = "mac-address";
202 compatible = "nvmem-cells";
203 #address-cells = <1>;
206 macaddr_art_0: macaddr@0 {
210 macaddr_art_6: macaddr@6 {
214 macaddr_art_c: macaddr@c {