diff options
author | John Crispin <blogic@openwrt.org> | 2014-04-22 08:08:51 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-04-22 08:08:51 +0000 |
commit | 522d86d5bbae0b5f1d0fd9ea48607523a3aa6fd9 (patch) | |
tree | daa65e41f5a91ff32df353aa2b208329351a882d /target/linux/ramips/dts | |
parent | d5e2e74b3e8437d9f15e13c2fc5c8fd3a1bf98dd (diff) | |
download | upstream-522d86d5bbae0b5f1d0fd9ea48607523a3aa6fd9.tar.gz upstream-522d86d5bbae0b5f1d0fd9ea48607523a3aa6fd9.tar.bz2 upstream-522d86d5bbae0b5f1d0fd9ea48607523a3aa6fd9.zip |
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 <bonstra@bonstra.fr.eu.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40554 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/dts')
-rw-r--r-- | target/linux/ramips/dts/PX4885.dts | 90 |
1 files changed, 90 insertions, 0 deletions
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>; + }; + }; +}; |