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>
7 #include <dt-bindings/leds/common.h>
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 = "green:system";
25 gpios = <&gpio 23 GPIO_ACTIVE_HIGH>;
30 label = "green:wlan2g";
31 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
32 linux,default-trigger = "phy0tpt";
36 function = LED_FUNCTION_STATUS;
37 color = <LED_COLOR_ID_BLUE>;
38 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
43 compatible = "gpio-keys";
45 pinctrl-names = "default";
46 /* GPIO1 (poe_pass) and GPIO2 (watchdog) requires jtag disabled */
47 pinctrl-0 = <&jtag_disable_pins>;
51 linux,code = <KEY_RESTART>;
52 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
53 debounce-interval = <60>;
58 compatible = "linux,wdt-gpio";
59 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
61 hw_margin_ms = <1000>;
70 compatible = "pci168c,0033";
71 reg = <0x0000 0 0 0 0>;
79 compatible = "pci168c,0033";
80 reg = <0x0000 0 0 0 0>;
104 compatible = "jedec,spi-nor";
106 spi-max-frequency = <25000000>;
109 compatible = "fixed-partitions";
110 #address-cells = <1>;
115 reg = <0x000000 0x040000>;
120 label = "u-boot-env";
121 reg = <0x040000 0x010000>;
125 compatible = "denx,uimage";
127 reg = <0x050000 0x7c0000>;
132 reg = <0x810000 0x7d0000>;
137 reg = <0xfd0000 0x20000>;
140 art: partition@ff0000 {
142 reg = <0xff0000 0x010000>;
146 compatible = "fixed-layout";
147 #address-cells = <1>;
150 macaddr_art_0: macaddr@0 {
154 macaddr_art_6: macaddr@6 {
158 macaddr_art_c: macaddr@c {
170 phy0: ethernet-phy@0 {
172 qca,ar8327-initvals = <
173 0x04 0x87600000 /* PORT0: RGMII, MAC0/6 exchage, tx_delay 01, rx_delay 10 */
174 0x0c 0x00000080 /* PORT6: SGMII */
175 0x10 0x81000080 /* POWER_ON_STRAP: LED open drain, SerDes auto-neg disabled */
176 0x50 0xcf37cf37 /* LED_CTRL0 */
177 0x54 0xcf37cf37 /* LED_CTRL1 */
178 0x58 0xcf37cf37 /* LED_CTRL2 */
179 0x5c 0x0 /* LED_CTRL3 */
180 0x7c 0x0000007e /* PORT0_STATUS */
181 0x94 0x0000007e /* PORT6 STATUS */
189 pll-data = <0xa6000000 0x00000101 0x00001616>;
190 nvmem-cells = <&macaddr_art_0>;
191 nvmem-cell-names = "mac-address";
193 phy-handle = <&phy0>;
199 pll-data = <0x03000101 0x00000101 0x00001616>;
200 nvmem-cells = <&macaddr_art_6>;
201 nvmem-cell-names = "mac-address";
212 mtd-cal-data = <&art 0x1000>;
213 nvmem-cells = <&macaddr_art_c>;
214 nvmem-cell-names = "mac-address";