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 gpio-export,name = "mikrotik:power:nand";
40 gpio-export,output = <0>;
41 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
46 compatible = "i2c-gpio";
48 sda-gpios = <&gpio 18 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
49 scl-gpios = <&gpio 19 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
50 i2c-gpio,delay-us = <5>;
51 i2c-gpio,timeout-ms = <1>;
55 compatible = "sff,sfp";
58 maximum-power-milliwatt = <1000>;
59 los-gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
60 mod-def0-gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
61 tx-disable-gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
62 // Toggling GPIO16 actually enables/disables the transmitter,
63 // but the SFP driver does not seem to be using it.
70 phy4: ethernet-phy@4 {
79 pll-data = <0x8f000000 0xa0000101 0xa0001313>;
88 phy_sfp: ethernet-phy@0 {
96 phy-handle = <&phy_sfp>;
97 pll-data = <0x03000000 0x00000101 0x00001616>;
114 compatible = "jedec,spi-nor";
116 spi-max-frequency = <25000000>;
119 compatible = "mikrotik,routerboot-partitions";
120 #address-cells = <1>;
124 label = "routerboot";
147 nand-ecc-mode = "soft";
148 nand-ecc-step-size = <2048>;
153 compatible = "fixed-partitions";
154 #address-cells = <1>;
159 reg = <0x0000000 0x0040000>;
165 reg = <0x0040000 0x03c0000>;
170 reg = <0x0400000 0x7c00000>;