1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
7 #include "qca955x.dtsi"
10 compatible = "librerouter,librerouter-v1", "qca,qca9558";
11 model = "LibreRouter v1";
14 led-boot = &led_system;
15 led-failsafe = &led_system;
16 led-running = &led_system;
17 led-upgrade = &led_system;
21 compatible = "gpio-leds";
24 label = "librerouter-v1:green:system";
25 gpios = <&gpio 23 GPIO_ACTIVE_HIGH>;
30 label = "librerouter-v1:green:wlan2g";
31 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
32 linux,default-trigger = "phy0tpt";
36 label = "librerouter-v1:blue:status";
37 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
42 compatible = "gpio-keys";
46 linux,code = <KEY_RESTART>;
47 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
48 debounce-interval = <60>;
53 compatible = "linux,wdt-gpio";
54 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
56 hw_margin_ms = <1000>;
65 compatible = "pci168c,0033";
66 reg = <0x0000 0 0 0 0>;
74 compatible = "pci168c,0033";
75 reg = <0x0000 0 0 0 0>;
109 compatible = "jedec,spi-nor";
111 spi-max-frequency = <25000000>;
114 compatible = "fixed-partitions";
115 #address-cells = <1>;
120 reg = <0x000000 0x040000>;
125 label = "u-boot-env";
126 reg = <0x040000 0x010000>;
130 compatible = "denx,uimage";
132 reg = <0x050000 0x7c0000>;
137 reg = <0x810000 0x7d0000>;
142 reg = <0xfd0000 0x20000>;
145 art: partition@ff0000 {
147 reg = <0xff0000 0x010000>;
157 phy0: ethernet-phy@0 {
159 qca,ar8327-initvals = <
160 0x04 0x87600000 /* PORT0: RGMII, MAC0/6 exchage, tx_delay 01, rx_delay 10 */
161 0x0c 0x00000080 /* PORT6: SGMII */
162 0x10 0x81000080 /* POWER_ON_STRAP: LED open drain, SerDes auto-neg disabled */
163 0x50 0xcf37cf37 /* LED_CTRL0 */
164 0x54 0xcf37cf37 /* LED_CTRL1 */
165 0x58 0xcf37cf37 /* LED_CTRL2 */
166 0x5c 0x0 /* LED_CTRL3 */
167 0x7c 0x0000007e /* PORT0_STATUS */
168 0x94 0x0000007e /* PORT6 STATUS */
176 pll-data = <0xa6000000 0x00000101 0x00001616>;
177 mtd-mac-address = <&art 0x0>;
179 phy-handle = <&phy0>;
186 pll-data = <0x03000101 0x00000101 0x00001616>;
187 mtd-mac-address = <&art 0x6>;
198 mtd-cal-data = <&art 0x1000>;
199 mtd-mac-address = <&art 0xc>;