1 #include "mt7620a.dtsi"
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
6 #include <dt-bindings/mtd/partitions/uimage.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";
24 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
25 linux,code = <KEY_WPS_BUTTON>;
30 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_RESTART>;
36 compatible = "gpio-leds";
39 function = LED_FUNCTION_STATUS;
40 color = <LED_COLOR_ID_GREEN>;
41 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
45 label = "green:wifi2g";
46 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
47 linux,default-trigger = "phy1tpt";
51 label = "green:wifi5g";
52 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
53 linux,default-trigger = "phy0tpt";
58 compatible = "gpio-export";
62 gpio-export,name = "usbpower";
63 gpio-export,output = <1>;
64 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
73 compatible = "jedec,spi-nor";
75 spi-max-frequency = <10000000>;
78 compatible = "fixed-partitions";
89 compatible = "openwrt,uimage", "denx,uimage";
90 openwrt,ih-magic = <IH_MAGIC_OKLI>;
91 openwrt,offset = <0x10000>;
93 reg = <0x10000 0xfe0000>;
96 config: partition@ff0000 {
98 reg = <0xff0000 0x10000>;
102 compatible = "fixed-layout";
103 #address-cells = <1>;
106 eeprom_config_e08a: eeprom@e08a {
107 reg = <0xe08a 0x200>;
110 macaddr_config_e07e: macaddr@e07e {
111 compatible = "mac-base";
113 #nvmem-cell-cells = <1>;
130 pinctrl-names = "default";
131 pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
136 mediatek,fixed-link = <1000 1 1 1>;
145 qca,ar8327-initvals = <
146 0x04 0x87300000 /* PORT0 PAD MODE CTRL */
147 0x0c 0x00000000 /* PORT6 PAD MODE CTRL */
148 0x7c 0x0000007e /* PORT0_STATUS */
149 0x80 0x00001200 /* PORT1_STATUS */
150 0x84 0x00001200 /* PORT2_STATUS */
151 0x88 0x00001200 /* PORT3_STATUS */
152 0x8c 0x00001200 /* PORT4_STATUS */
153 0x90 0x00001200 /* PORT5_STATUS */
154 0x94 0x00000000 /* PORT6_STATUS */
161 mediatek,ephy-base = /bits/ 8 <8>;
170 reg = <0x0000 0 0 0 0>;
171 nvmem-cells = <&eeprom_config_e08a>, <&macaddr_config_e07e 2>;
172 nvmem-cell-names = "eeprom", "mac-address";
178 groups = "uartf", "i2c";