X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fdts%2FGL-MT300N.dts;h=27f3d065e10095a9703d48ce85e6766154c005ab;hb=e2aa0c3f8b49f62fc83ec90f0bc5a67560fffa73;hp=6a3600acb287f432690c8d2f732127b823d7fd53;hpb=9195d8da355d0d141ac02c9a5269452dc64ffd2d;p=oweals%2Fopenwrt.git diff --git a/target/linux/ramips/dts/GL-MT300N.dts b/target/linux/ramips/dts/GL-MT300N.dts index 6a3600acb2..27f3d065e1 100644 --- a/target/linux/ramips/dts/GL-MT300N.dts +++ b/target/linux/ramips/dts/GL-MT300N.dts @@ -2,8 +2,11 @@ #include "mt7620a.dtsi" +#include +#include + / { - compatible = "GL-MT300N", "ralink,mt7620a-soc"; + compatible = "glinet,gl-mt300n", "ralink,mt7620a-soc"; model = "GL-MT300N"; chosen { @@ -15,17 +18,17 @@ wan { label = "gl-mt300n:wan"; - gpios = <&gpio2 0 1>; + gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; }; lan { label = "gl-mt300n:lan"; - gpios = <&gpio2 1 1>; + gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; }; wlan { label = "gl-mt300n:wlan"; - gpios = <&gpio3 0 1>; + gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; @@ -37,20 +40,20 @@ poll-interval = <20>; reset { label = "reset"; - gpios = <&gpio0 1 1>; - linux,code = <0x198>; + gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; + linux,code = ; }; BTN_0 { label = "BTN_0"; - gpios = <&gpio2 2 1>; - linux,code = <0x100>; + gpios = <&gpio2 2 GPIO_ACTIVE_LOW>; + linux,code = ; }; BTN_1 { label = "BTN_1"; - gpios = <&gpio2 3 1>; - linux,code = <0x101>; + gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; + linux,code = ; }; }; }; @@ -77,9 +80,8 @@ m25p80@0 { #address-cells = <1>; #size-cells = <1>; - compatible = "w25q128"; - reg = <0 0>; - linux,modalias = "m25p80", "w25q128"; + compatible = "jedec,spi-nor"; + reg = <0>; spi-max-frequency = <10000000>; partition@0 { @@ -121,26 +123,13 @@ ðernet { mtd-mac-address = <&factory 0x4000>; - ralink,port-map = "wllll"; + mediatek,portmap = "wllll"; }; &wmac { ralink,mtd-eeprom = <&factory 0>; }; -&pcie { - status = "okay"; - - pcie-bridge { - mt76@0,0 { - reg = <0x0000 0 0 0 0>; - device_type = "pci"; - mediatek,mtd-eeprom = <&factory 0x8000>; - mediatek,2ghz = <0>; - }; - }; -}; - &pinctrl { state_default: pinctrl0 { gpio {