From cd5f3584e2c2044c2cd53d723350a8d02b227aff Mon Sep 17 00:00:00 2001 From: John Crispin Date: Tue, 22 Apr 2014 08:08:51 +0000 Subject: ramips: Add support for the 7Links PX-4885 wireless router. The 7Links PX-4885 is a small battery-powered wireless router. It is based on a RT5350F WiSoC and features one ethernet port and one USB port. It is a Hame MPR-A1 clone, except it has different GPIOs, a different battery and more RAM (32 MB). This patch adds a profile for this board, the corresponding device tree file and the adequate base-files changes (incl. sysupgrade). Signed-off-by: Hugo Grostabussiat SVN-Revision: 40554 --- target/linux/ramips/dts/PX4885.dts | 90 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 target/linux/ramips/dts/PX4885.dts (limited to 'target/linux/ramips/dts') diff --git a/target/linux/ramips/dts/PX4885.dts b/target/linux/ramips/dts/PX4885.dts new file mode 100644 index 0000000000..0dcafc4b46 --- /dev/null +++ b/target/linux/ramips/dts/PX4885.dts @@ -0,0 +1,90 @@ +/dts-v1/; + +/include/ "rt5350.dtsi" + +/ { + compatible = "PX4885", "ralink,rt5350-soc"; + model = "7Links PX-4885"; + + palmbus@10000000 { + spi@b00 { + status = "okay"; + m25p80@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "mx25l3205d"; + reg = <0 0>; + linux,modalias = "m25p80", "mx25l3205d"; + spi-max-frequency = <10000000>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x20000>; + read-only; + }; + + partition@20000 { + label = "devdata"; + reg = <0x20000 0x20000>; + read-only; + }; + + factory: partition@40000 { + label = "devconf"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + label = "firmware"; + reg = <0x50000 0x3b0000>; + }; + }; + }; + }; + + pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "uartf"; + ralink,function = "gpio"; + }; + }; + }; + + ethernet@10100000 { + mtd-mac-address = <&factory 0x2e>; + }; + + esw@10110000 { + ralink,portmap = <0x3f>; + }; + + wmac@10180000 { + ralink,mtd-eeprom = <&factory 0>; + }; + + 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>; + }; + }; + + gpio-leds { + compatible = "gpio-leds"; + orange { + label = "7links:orange:wifi"; + gpios = <&gpio0 18 1>; + }; + blue { + label = "7links:blue:storage"; + gpios = <&gpio0 19 1>; + }; + }; +}; -- cgit v1.2.3