3 #include "mt7620a.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "lava,lr-25g001", "ralink,mt7620a-soc";
10 model = "LAVA LR-25G001";
13 led-boot = &led_status;
14 led-failsafe = &led_status;
15 led-running = &led_status;
16 led-upgrade = &led_status;
20 compatible = "gpio-keys-polled";
25 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_WPS_BUTTON>;
31 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_RESTART>;
37 compatible = "gpio-leds";
40 label = "lr-25g001:green:status";
41 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
45 label = "lr-25g001:green:wifi2g";
46 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
50 label = "lr-25g001:green:wifi5g";
51 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
56 compatible = "gpio-export";
60 gpio-export,name = "usbpower";
61 gpio-export,output = <1>;
62 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
75 compatible = "jedec,spi-nor";
77 spi-max-frequency = <10000000>;
80 compatible = "fixed-partitions";
91 compatible = "amit,jimage";
93 reg = <0x10000 0xfe0000>;
96 config: partition@ff0000 {
98 reg = <0xff0000 0x10000>;
115 pinctrl-names = "default";
116 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
121 mediatek,fixed-link = <1000 1 1 1>;
126 mediatek,mdio-mode = <1>;
128 phy0: ethernet-phy@0 {
131 qca,ar8327-initvals = <
132 0x04 0x87300000 /* PORT0 PAD MODE CTRL */
133 0x0c 0x00000000 /* PORT6 PAD MODE CTRL */
134 0x7c 0x0000007e /* PORT0_STATUS */
135 0x94 0x00000000 /* PORT6_STATUS */
139 phy1: ethernet-phy@1 {
144 phy2: ethernet-phy@2 {
149 phy3: ethernet-phy@3 {
154 phy4: ethernet-phy@4 {
167 reg = <0x0000 0 0 0 0>;
168 mtd-mac-address = <&config 0xe07e>;
169 mtd-mac-address-increment = <(2)>;
170 mediatek,mtd-eeprom = <&config 0xe08a>;
175 state_default: pinctrl0 {
177 ralink,group = "uartf", "i2c";
178 ralink,function = "gpio";