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 "qca9557.dtsi"
10 compatible = "librerouter,librerouter-v1", "qca,qca9558";
11 model = "LibreRouter v1";
14 bootargs = "console=ttyS0,115200n8";
19 led-failsafe = &system;
20 led-running = &system;
21 led-upgrade = &system;
25 compatible = "gpio-leds";
28 label = "librerouter-v1:green:system";
29 gpios = <&gpio 23 GPIO_ACTIVE_HIGH>;
34 label = "librerouter-v1:green:wlan2g";
35 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
36 linux,default-trigger = "phy0tpt";
40 label = "librerouter-v1:blue:status";
41 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
47 compatible = "gpio-keys";
51 linux,code = <KEY_RESTART>;
52 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
53 debounce-interval = <60>;
59 compatible = "linux,wdt-gpio";
60 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
62 hw_margin_ms = <1000>;
72 compatible = "pci168c,0033";
73 reg = <0x0000 0 0 0 0>;
81 compatible = "pci168c,0033";
82 reg = <0x0000 0 0 0 0>;
109 #address-cells = <1>;
119 compatible = "jedec,spi-nor";
121 spi-max-frequency = <25000000>;
124 compatible = "fixed-partitions";
125 #address-cells = <1>;
130 reg = <0x000000 0x040000>;
135 label = "u-boot-env";
136 reg = <0x040000 0x010000>;
140 compatible = "denx,uimage";
142 reg = <0x050000 0x7c0000>;
147 reg = <0x810000 0x7d0000>;
152 reg = <0xfd0000 0x20000>;
155 ART: partition@ff0000 {
157 reg = <0xff0000 0x010000>;
167 phy0: ethernet-phy@0 {
169 qca,ar8327-initvals = <
170 0x04 0x87600000 /* PORT0: RGMII, MAC0/6 exchage, tx_delay 01, rx_delay 10 */
171 0x0c 0x00000080 /* PORT6: SGMII */
172 0x10 0x81000080 /* POWER_ON_STRAP: LED open drain, SerDes auto-neg disabled */
173 0x50 0xcf37cf37 /* LED_CTRL0 */
174 0x54 0xcf37cf37 /* LED_CTRL1 */
175 0x58 0xcf37cf37 /* LED_CTRL2 */
176 0x5c 0x0 /* LED_CTRL3 */
177 0x7c 0x0000007e /* PORT0_STATUS */
178 0x94 0x0000007e /* PORT6 STATUS */
186 pll-data = <0xa6000000 0x00000101 0x00001616>;
187 mtd-mac-address = <&ART 0x0>;
189 phy-handle = <&phy0>;
197 pll-data = <0x03000101 0x00000101 0x00001616>;
198 mtd-mac-address = <&ART 0x6>;
209 mtd-cal-data = <&ART 0x1000>;
210 mtd-mac-address = <&ART 0xc>;