diff options
author | John Crispin <john@openwrt.org> | 2014-04-22 08:08:51 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2014-04-22 08:08:51 +0000 |
commit | cd5f3584e2c2044c2cd53d723350a8d02b227aff (patch) | |
tree | 3095f0a68cfbd8e96d0a23d86608057aba1302fd /target/linux/ramips/dts | |
parent | 4f3c74011048239eb5c37a2740c428b59d161387 (diff) | |
download | mtk-20170518-cd5f3584e2c2044c2cd53d723350a8d02b227aff.zip mtk-20170518-cd5f3584e2c2044c2cd53d723350a8d02b227aff.tar.gz mtk-20170518-cd5f3584e2c2044c2cd53d723350a8d02b227aff.tar.bz2 |
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>
SVN-Revision: 40554
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 0000000..0dcafc4 --- /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>; + }; + }; +}; |