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>
11 led-failsafe = &led_user;
12 led-upgrade = &led_user;
17 compatible = "gpio-leds";
21 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
26 compatible = "gpio-keys";
30 linux,code = <KEY_RESTART>;
31 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
32 debounce-interval = <60>;
37 compatible = "gpio-export";
40 /* Beeper requires PWM for frequency selection */
41 gpio-export,name = "buzzer";
42 gpio-export,output = <0>;
43 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
47 gpio-export,name = "usb-power";
48 gpio-export,output = <0>;
49 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
54 compatible = "i2c-gpio";
56 sda-gpios = <&gpio 18 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
57 scl-gpios = <&gpio 19 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
58 i2c-gpio,delay-us = <5>;
59 i2c-gpio,timeout-ms = <1>;
63 compatible = "sff,sfp";
66 maximum-power-milliwatt = <1000>;
67 los-gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
68 mod-def0-gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
69 tx-disable-gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
70 // Toggling GPIO16 actually enables/disables the transmitter,
71 // but the SFP driver does not seem to be using it.
79 compatible = "jedec,spi-nor";
81 spi-max-frequency = <40000000>;
84 compatible = "fixed-partitions";
91 compatible = "mikrotik,routerboot-partitions";
96 label = "bootloader1";
111 label = "bootloader2";
121 compatible = "mikrotik,minor";
123 reg = <0x020000 0xfe0000>;
132 phy0: ethernet-phy@0 {
135 qca,ar8327-initvals = <
136 /* PAD0_MODE from vendor firmware
137 * RGMII_EN, TX/RXCLK_DELAY_EN, TXCLK_DELAY_SEL=1
139 0x04 0x07400000 /* PAD0_MODE */
140 0x50 0xc737c737 /* LED_CTRL0 */
141 0x54 0x00000000 /* LED_CTRL1 */
142 0x58 0x00000000 /* LED_CTRL2 */
143 0x5c 0x0030c300 /* LED_CTRL3 */
144 0x7c 0x0000007e /* PORT0_STATUS */
152 phy-handle = <&phy0>;
153 /* gigabit pll-data from vendor firmware
154 * TX_INVERT, TX_DELAY=3, GIGE, OFFSET_PHASE
156 pll-data = <0x8f000000 0x00000101 0x00001616>;
167 phy_sfp: ethernet-phy@0 {
177 phy-handle = <&phy_sfp>;
178 pll-data = <0x03000000 0x00000101 0x00001616>;