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>;
102 #address-cells = <1>;
113 compatible = "jedec,spi-nor";
115 spi-max-frequency = <25000000>;
118 compatible = "fixed-partitions";
119 #address-cells = <1>;
124 reg = <0x000000 0x040000>;
129 label = "u-boot-env";
130 reg = <0x040000 0x010000>;
134 compatible = "denx,uimage";
136 reg = <0x050000 0x7c0000>;
141 reg = <0x810000 0x7d0000>;
146 reg = <0xfd0000 0x20000>;
149 art: partition@ff0000 {
151 reg = <0xff0000 0x010000>;
161 phy0: ethernet-phy@0 {
163 qca,ar8327-initvals = <
164 0x04 0x87600000 /* PORT0: RGMII, MAC0/6 exchage, tx_delay 01, rx_delay 10 */
165 0x0c 0x00000080 /* PORT6: SGMII */
166 0x10 0x81000080 /* POWER_ON_STRAP: LED open drain, SerDes auto-neg disabled */
167 0x50 0xcf37cf37 /* LED_CTRL0 */
168 0x54 0xcf37cf37 /* LED_CTRL1 */
169 0x58 0xcf37cf37 /* LED_CTRL2 */
170 0x5c 0x0 /* LED_CTRL3 */
171 0x7c 0x0000007e /* PORT0_STATUS */
172 0x94 0x0000007e /* PORT6 STATUS */
180 pll-data = <0xa6000000 0x00000101 0x00001616>;
181 mtd-mac-address = <&art 0x0>;
183 phy-handle = <&phy0>;
190 pll-data = <0x03000101 0x00000101 0x00001616>;
191 mtd-mac-address = <&art 0x6>;
202 mtd-cal-data = <&art 0x1000>;
203 mtd-mac-address = <&art 0xc>;