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>;
46 compatible = "gpio-keys";
50 linux,code = <KEY_RESTART>;
51 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
52 debounce-interval = <60>;
57 compatible = "linux,wdt-gpio";
58 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
60 hw_margin_ms = <1000>;
69 compatible = "pci168c,0033";
70 reg = <0x0000 0 0 0 0>;
78 compatible = "pci168c,0033";
79 reg = <0x0000 0 0 0 0>;
106 #address-cells = <1>;
116 compatible = "jedec,spi-nor";
118 spi-max-frequency = <25000000>;
121 compatible = "fixed-partitions";
122 #address-cells = <1>;
127 reg = <0x000000 0x040000>;
132 label = "u-boot-env";
133 reg = <0x040000 0x010000>;
137 compatible = "denx,uimage";
139 reg = <0x050000 0x7c0000>;
144 reg = <0x810000 0x7d0000>;
149 reg = <0xfd0000 0x20000>;
152 art: partition@ff0000 {
154 reg = <0xff0000 0x010000>;
164 phy0: ethernet-phy@0 {
166 qca,ar8327-initvals = <
167 0x04 0x87600000 /* PORT0: RGMII, MAC0/6 exchage, tx_delay 01, rx_delay 10 */
168 0x0c 0x00000080 /* PORT6: SGMII */
169 0x10 0x81000080 /* POWER_ON_STRAP: LED open drain, SerDes auto-neg disabled */
170 0x50 0xcf37cf37 /* LED_CTRL0 */
171 0x54 0xcf37cf37 /* LED_CTRL1 */
172 0x58 0xcf37cf37 /* LED_CTRL2 */
173 0x5c 0x0 /* LED_CTRL3 */
174 0x7c 0x0000007e /* PORT0_STATUS */
175 0x94 0x0000007e /* PORT6 STATUS */
183 pll-data = <0xa6000000 0x00000101 0x00001616>;
184 mtd-mac-address = <&art 0x0>;
186 phy-handle = <&phy0>;
193 pll-data = <0x03000101 0x00000101 0x00001616>;
194 mtd-mac-address = <&art 0x6>;
205 mtd-cal-data = <&art 0x1000>;
206 mtd-mac-address = <&art 0xc>;