X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fdts%2FFIREWRT.dts;h=b72066afe3cb2684ad8900c1494ffd30aa117fe7;hb=40f808600c9d1f821fa3d0eee34a52916415f69f;hp=4e9e28bc9fab0d350ec3ab1df20d24bd87c67ec0;hpb=1258b4cc94425d7b756869804706ebb664e73bac;p=oweals%2Fopenwrt.git diff --git a/target/linux/ramips/dts/FIREWRT.dts b/target/linux/ramips/dts/FIREWRT.dts index 4e9e28bc9f..b72066afe3 100644 --- a/target/linux/ramips/dts/FIREWRT.dts +++ b/target/linux/ramips/dts/FIREWRT.dts @@ -7,7 +7,8 @@ model = "Firefly FireWRT"; memory@0 { - reg = <0x0 0x10000000>; + device_type = "memory"; + reg = <0x0 0x1c000000>, <0x20000000 0x4000000>; }; chosen { @@ -25,7 +26,7 @@ m25p80@0 { #address-cells = <1>; #size-cells = <1>; - compatible = "mx25l12805d"; + compatible = "w25q128"; reg = <0 0>; linux,modalias = "m25p80"; spi-max-frequency = <10000000>; @@ -50,9 +51,8 @@ partition@50000 { label = "firmware"; - reg = <0x50000 0x7b0000>; + reg = <0x50000 0xfb0000>; }; - }; }; }; @@ -83,4 +83,40 @@ mtd-mac-address = <&factory 0xe000>; }; + gpio-leds { + compatible = "gpio-leds"; + + power { + label = "firewrt:green:power"; + gpios = <&gpio0 22 1>; + }; + }; + + gpio-keys-polled { + compatible = "gpio-keys-polled"; + #address-cells = <1>; + #size-cells = <0>; + poll-interval = <20>; + + wps { + label = "wps"; + gpios = <&gpio0 18 1>; + linux,code = <0x211>; + }; + + power { + label = "power"; + gpios = <&gpio0 23 1>; + linux,code = <116>; + }; + }; + + pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "wdt", "rgmii2"; + ralink,function = "gpio"; + }; + }; + }; };