1 #include "mt7620a.dtsi"
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/mtd/partitions/uimage.h>
8 compatible = "lava,lr-25g001", "ralink,mt7620a-soc";
9 model = "LAVA LR-25G001";
12 led-boot = &led_status;
13 led-failsafe = &led_status;
14 led-running = &led_status;
15 led-upgrade = &led_status;
19 compatible = "gpio-keys";
23 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
24 linux,code = <KEY_WPS_BUTTON>;
29 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_RESTART>;
35 compatible = "gpio-leds";
38 label = "green:status";
39 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
43 label = "green:wifi2g";
44 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
45 linux,default-trigger = "phy1tpt";
49 label = "green:wifi5g";
50 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
51 linux,default-trigger = "phy0tpt";
56 compatible = "gpio-export";
60 gpio-export,name = "usbpower";
61 gpio-export,output = <1>;
62 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
71 compatible = "jedec,spi-nor";
73 spi-max-frequency = <10000000>;
76 compatible = "fixed-partitions";
87 compatible = "openwrt,uimage", "denx,uimage";
88 openwrt,ih-magic = <IH_MAGIC_OKLI>;
89 openwrt,offset = <0x10000>;
91 reg = <0x10000 0xfe0000>;
94 config: partition@ff0000 {
96 reg = <0xff0000 0x10000>;
100 compatible = "fixed-layout";
101 #address-cells = <1>;
104 eeprom_config_e08a: eeprom@e08a {
105 reg = <0xe08a 0x200>;
108 macaddr_config_e07e: macaddr@e07e {
126 pinctrl-names = "default";
127 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
132 mediatek,fixed-link = <1000 1 1 1>;
141 qca,ar8327-initvals = <
142 0x04 0x87300000 /* PORT0 PAD MODE CTRL */
143 0x0c 0x00000000 /* PORT6 PAD MODE CTRL */
144 0x7c 0x0000007e /* PORT0_STATUS */
145 0x80 0x00001200 /* PORT1_STATUS */
146 0x84 0x00001200 /* PORT2_STATUS */
147 0x88 0x00001200 /* PORT3_STATUS */
148 0x8c 0x00001200 /* PORT4_STATUS */
149 0x90 0x00001200 /* PORT5_STATUS */
150 0x94 0x00000000 /* PORT6_STATUS */
157 mediatek,ephy-base = /bits/ 8 <8>;
166 reg = <0x0000 0 0 0 0>;
167 nvmem-cells = <&eeprom_config_e08a>, <&macaddr_config_e07e>;
168 nvmem-cell-names = "eeprom", "mac-address";
169 mac-address-increment = <2>;
175 groups = "uartf", "i2c";