diff options
author | Adrian Chadd <adrian@FreeBSD.org> | 2017-05-06 06:20:34 +0000 |
---|---|---|
committer | Adrian Chadd <adrian@FreeBSD.org> | 2017-05-06 06:20:34 +0000 |
commit | 01c914420db0e7b31a64f658345a90c5b9a8380d (patch) | |
tree | a3e100414c44b303053f2990883e3ad3489cb5a3 /sys/gnu | |
parent | 5c99cda025c8a771e5a5248b713a093bef9e154e (diff) | |
download | src-01c914420db0e7b31a64f658345a90c5b9a8380d.tar.gz src-01c914420db0e7b31a64f658345a90c5b9a8380d.zip |
[mips] [rt2880] Add oldest Ralink MIPS SOC RT2880 support code.
* Target module have ic plus etherswitch ip175c.
* Also add etherswitch support code on rt driver.
Reviewed by: mizhka
Differential Revision: https://reviews.freebsd.org/D10336
Notes
Notes:
svn path=/head/; revision=317873
Diffstat (limited to 'sys/gnu')
-rw-r--r-- | sys/gnu/dts/mips/MZK-W04N-XX.dts | 94 | ||||
-rw-r--r-- | sys/gnu/dts/mips/rt2880.dtsi | 17 |
2 files changed, 104 insertions, 7 deletions
diff --git a/sys/gnu/dts/mips/MZK-W04N-XX.dts b/sys/gnu/dts/mips/MZK-W04N-XX.dts new file mode 100644 index 000000000000..5c198c9c779e --- /dev/null +++ b/sys/gnu/dts/mips/MZK-W04N-XX.dts @@ -0,0 +1,94 @@ +/dts-v1/; + +#include "rt2880.dtsi" + +/ { + compatible = "MZK-WNH", "ralink,rt2880-soc"; + model = "Planex MZK-WNH"; + +/* + memory@0 { + device_type = "memory"; + reg = <0x0 0x2000000>; + }; +*/ + + cfi@1f000000 { + compatible = "cfi-flash"; + reg = <0x1f000000 0x800000>; + bank-width = <2>; + device-width = <2>; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "Bootloader"; + reg = <0x0 0x30000>; + read-only; + }; + + devdata: partition@30000 { + label = "Config"; + reg = <0x00030000 0x00010000>; + read-only; + }; + + factory: partition@40000 { + label = "Factory"; + reg = <0x00040000 0x00010000>; + read-only; + }; + kernel: partition@50000 { + label = "kernel"; + reg = <0x00050000 0x000f0000>; + read-only; + }; + rootfs: partition@160000 { + label = "rootfs"; + reg = <0x00140000 0x002c0000>; + read-only; + }; + upgrade: partition@400000 { + label = "upgrade"; + reg = <0x00050000 0x003b0000>; + read-only; + }; + + }; + + gpio-leds { + compatible = "gpio-leds"; + + status { + label = "status"; + gpios = <&gpio0 12 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>; + }; + + }; + + ip17x@0 { + compatible = "icplus,ip17x"; + }; + +}; + +ðernet { + mtd-mac-address = <&factory 0x28>; +}; + +&wmac { + ralink,mtd-eeprom = <&factory 0>; +}; diff --git a/sys/gnu/dts/mips/rt2880.dtsi b/sys/gnu/dts/mips/rt2880.dtsi index ad882547f794..284a7e9b2c7d 100644 --- a/sys/gnu/dts/mips/rt2880.dtsi +++ b/sys/gnu/dts/mips/rt2880.dtsi @@ -5,7 +5,7 @@ cpus { cpu@0 { - compatible = "mips,mips24KEc"; + compatible = "mips,mips4KEc"; }; }; @@ -80,6 +80,9 @@ ralink,register-map = [ 00 04 08 0c 20 24 28 2c 30 34 ]; + + interrupt-parent = <&intc>; + interrupts = <7>; }; gpio1: gpio@638 { @@ -182,13 +185,13 @@ compatible = "ralink,rt2880-port", "mediatek,eth-port"; reg = <0>; }; + }; - mdio-bus { - #address-cells = <1>; - #size-cells = <0>; - - status = "disabled"; - }; + mdio-bus { + compatible = "ralink,rt2880-mdio"; + reg = <0x00400000 0x10000>; + #address-cells = <1>; + #size-cells = <0>; }; wmac: wmac@480000 { |