Skylink SL-R7205 comes in a 4M and a 8M flash memory version. This patch allows the creation of firmware files for both versions.
Signed-off-by: Hanno Schupp <[email protected]> --- Index: target/linux/ramips/dts/SL-R7205-4M.dts =================================================================== --- target/linux/ramips/dts/SL-R7205-4M.dts (revision 0) +++ target/linux/ramips/dts/SL-R7205-4M.dts (working copy) @@ -0,0 +1,87 @@ +/dts-v1/; + +/include/ "rt3050.dtsi" + +/ { + compatible = "SL-R7205", "ralink,rt3052-soc"; + model = "Skyline SL-R7205 Wireless 3G Router"; + + pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; + }; + + cfi@1f000000 { + compatible = "cfi-flash"; + reg = <0x1f000000 0x800000>; + + bank-width = <2>; + device-width = <2>; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "u-boot-env"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + label = "firmware"; + reg = <0x50000 0x3b0000>; + }; + }; + + ethernet@10100000 { + mtd-mac-address = <&factory 0x4>; + }; + + esw@10110000 { + ralink,portmap = <0x3e>; + }; + + gpio-leds { + compatible = "gpio-leds"; + wifi { + label = "sl-r7205:green:wifi"; + gpios = <&gpio0 7 1>; + }; + }; + + gpio-keys-polled { + compatible = "gpio-keys-polled"; + #address-cells = <1>; + #size-cells = <0>; + poll-interval = <20>; + reset { + label = "reset"; + gpios = <&gpio0 10 1>; + linux,code = <0x198>; + }; + wps { + label = "wps"; + gpios = <&gpio0 0 1>; + linux,code = <0x211>; + }; + }; + + otg@101c0000 { + status = "okay"; + }; +}; Index: target/linux/ramips/dts/SL-R7205-8M.dts =================================================================== --- target/linux/ramips/dts/SL-R7205-8M.dts (revision 0) +++ target/linux/ramips/dts/SL-R7205-8M.dts (working copy) @@ -0,0 +1,87 @@ +/dts-v1/; + +/include/ "rt3050.dtsi" + +/ { + compatible = "SL-R7205", "ralink,rt3052-soc"; + model = "Skyline SL-R7205 Wireless 3G Router"; + + pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; + }; + + cfi@1f000000 { + compatible = "cfi-flash"; + reg = <0x1f000000 0x800000>; + + bank-width = <2>; + device-width = <2>; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "u-boot-env"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + label = "firmware"; + reg = <0x50000 0x7b0000>; + }; + }; + + ethernet@10100000 { + mtd-mac-address = <&factory 0x4>; + }; + + esw@10110000 { + ralink,portmap = <0x3e>; + }; + + gpio-leds { + compatible = "gpio-leds"; + wifi { + label = "sl-r7205:green:wifi"; + gpios = <&gpio0 7 1>; + }; + }; + + gpio-keys-polled { + compatible = "gpio-keys-polled"; + #address-cells = <1>; + #size-cells = <0>; + poll-interval = <20>; + reset { + label = "reset"; + gpios = <&gpio0 10 1>; + gpios = <&gpio0 0 1>; + linux,code = <0x211>; + }; + }; + + otg@101c0000 { + status = "okay"; + }; +}; Index: target/linux/ramips/dts/SL-R7205.dts =================================================================== --- target/linux/ramips/dts/SL-R7205.dts (revision 39202) +++ target/linux/ramips/dts/SL-R7205.dts (working copy) @@ -1,87 +0,0 @@ -/dts-v1/; - -/include/ "rt3050.dtsi" - -/ { - compatible = "SL-R7205", "ralink,rt3052-soc"; - model = "Skyline SL-R7205 Wireless 3G Router"; - - pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; - }; - - cfi@1f000000 { - compatible = "cfi-flash"; - reg = <0x1f000000 0x800000>; - - bank-width = <2>; - device-width = <2>; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "u-boot"; - reg = <0x0 0x30000>; - read-only; - }; - - partition@30000 { - label = "u-boot-env"; - reg = <0x30000 0x10000>; - read-only; - }; - - factory: partition@40000 { - label = "factory"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - label = "firmware"; - reg = <0x50000 0x3b0000>; - }; - }; - - ethernet@10100000 { - mtd-mac-address = <&factory 0x4>; - }; - - esw@10110000 { - ralink,portmap = <0x3e>; - }; - - gpio-leds { - compatible = "gpio-leds"; - wifi { - label = "sl-r7205:green:wifi"; - gpios = <&gpio0 7 1>; - }; - }; - - gpio-keys-polled { - compatible = "gpio-keys-polled"; - #address-cells = <1>; - #size-cells = <0>; - poll-interval = <20>; - reset { - label = "reset"; - gpios = <&gpio0 10 1>; - linux,code = <0x198>; - }; - wps { - label = "wps"; - gpios = <&gpio0 0 1>; - linux,code = <0x211>; - }; - }; - - otg@101c0000 { - status = "okay"; - }; -}; Index: target/linux/ramips/image/Makefile =================================================================== --- target/linux/ramips/image/Makefile (revision 39202) +++ target/linux/ramips/image/Makefile (working copy) @@ -432,7 +432,7 @@ Image/Build/Profile/RTN10PLUS=$(call BuildFirmware/Default4M/$(1),$(1),rt-n10-plus,RT-N10-PLUS) -Image/Build/Profile/SL-R7205=$(call BuildFirmware/Default4M/$(1),$(1),sl-r7205,SL-R7205) +Image/Build/Profile/SL-R7205=$(call BuildFirmware/DefaultDualSize/$(1),$(1),sl-r7205,SL-R7205) Image/Build/Profile/V22RW-2X2=$(call BuildFirmware/Default4M/$(1),$(1),v22rw-2x2,V22RW-2X2) _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
