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 gpio-export,name = "mikrotik:power:nand";
41 gpio-export,output = <0>;
42 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
47 compatible = "i2c-gpio";
49 sda-gpios = <&gpio 18 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
50 scl-gpios = <&gpio 19 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
51 i2c-gpio,delay-us = <5>;
52 i2c-gpio,timeout-ms = <1>;
56 compatible = "sff,sfp";
59 maximum-power-milliwatt = <1000>;
60 los-gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
61 mod-def0-gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
62 tx-disable-gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
63 // Toggling GPIO16 actually enables/disables the transmitter,
64 // but the SFP driver does not seem to be using it.
71 phy4: ethernet-phy@4 {
80 pll-data = <0x8f000000 0xa0000101 0xa0001313>;
91 phy_sfp: ethernet-phy@0 {
101 phy-handle = <&phy_sfp>;
102 pll-data = <0x03000000 0x00000101 0x00001616>;
119 compatible = "jedec,spi-nor";
121 spi-max-frequency = <25000000>;
124 compatible = "mikrotik,routerboot-partitions";
125 #address-cells = <1>;
129 label = "routerboot";
152 nand-ecc-mode = "soft";
153 nand-ecc-step-size = <2048>;
158 compatible = "fixed-partitions";
159 #address-cells = <1>;
164 reg = <0x0000000 0x0040000>;
170 reg = <0x0040000 0x03c0000>;
175 reg = <0x0400000 0x7c00000>;