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;
16 compatible = "gpio-leds";
20 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
25 compatible = "gpio-keys";
29 linux,code = <KEY_RESTART>;
30 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
31 debounce-interval = <60>;
36 compatible = "gpio-export";
39 /* Beeper requires PWM for frequency selection */
40 gpio-export,name = "buzzer";
41 gpio-export,output = <0>;
42 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
46 gpio-export,name = "usb-power";
47 gpio-export,output = <0>;
48 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
53 compatible = "i2c-gpio";
55 sda-gpios = <&gpio 18 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
56 scl-gpios = <&gpio 19 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
57 i2c-gpio,delay-us = <5>;
58 i2c-gpio,timeout-ms = <1>;
62 compatible = "sff,sfp";
65 maximum-power-milliwatt = <1000>;
66 los-gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
67 mod-def0-gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
68 tx-disable-gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
69 // Toggling GPIO16 actually enables/disables the transmitter,
70 // but the SFP driver does not seem to be using it.
78 compatible = "jedec,spi-nor";
80 spi-max-frequency = <40000000>;
83 compatible = "fixed-partitions";
90 compatible = "mikrotik,routerboot-partitions";
95 label = "bootloader1";
110 label = "bootloader2";
120 compatible = "mikrotik,minor";
122 reg = <0x020000 0xfe0000>;
131 phy0: ethernet-phy@0 {
134 qca,ar8327-initvals = <
135 /* PAD0_MODE from vendor firmware
136 * RGMII_EN, TX/RXCLK_DELAY_EN, TXCLK_DELAY_SEL=1
138 0x04 0x07400000 /* PAD0_MODE */
139 0x50 0xc737c737 /* LED_CTRL0 */
140 0x54 0x00000000 /* LED_CTRL1 */
141 0x58 0x00000000 /* LED_CTRL2 */
142 0x5c 0x0030c300 /* LED_CTRL3 */
143 0x7c 0x0000007e /* PORT0_STATUS */
151 phy-handle = <&phy0>;
152 /* gigabit pll-data from vendor firmware
153 * TX_INVERT, TX_DELAY=3, GIGE, OFFSET_PHASE
155 pll-data = <0x8f000000 0x00000101 0x00001616>;
166 phy_sfp: ethernet-phy@0 {
176 phy-handle = <&phy_sfp>;
177 pll-data = <0x03000000 0x00000101 0x00001616>;