From 673f5934497dbae5f876d634d538eac4f0c99273 Mon Sep 17 00:00:00 2001 From: blogic Date: Wed, 3 Apr 2013 09:59:46 +0000 Subject: [ramips] add the dts files that describe the boards in future Signed-off-by: John Crispin git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36168 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ramips/dts/FREESTATION5.dts | 45 ++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 target/linux/ramips/dts/FREESTATION5.dts (limited to 'target/linux/ramips/dts/FREESTATION5.dts') diff --git a/target/linux/ramips/dts/FREESTATION5.dts b/target/linux/ramips/dts/FREESTATION5.dts new file mode 100644 index 000000000..04170e39c --- /dev/null +++ b/target/linux/ramips/dts/FREESTATION5.dts @@ -0,0 +1,45 @@ +/dts-v1/; + +/include/ "rt3050.dtsi" + +/ { + #address-cells = <1>; + #size-cells = <1>; + compatible = "FREESTATION5", "ralink,rt3052-soc"; + model = "ARC FreeStation5"; + + memorydetect { + ralink,memory = <0x0 0x200000 0x4000000>; + }; + + chosen { + bootargs = "console=ttyS0,115200 mtdparts=1f000000.cfi:192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)ro,7872k@0x50000(firmware)"; + }; + + cfi@1f000000 { + compatible = "cfi-flash"; + reg = <0x1f000000 0x800000>; + + bank-width = <2>; + device-width = <2>; + #address-cells = <1>; + #size-cells = <1>; + }; + + ethernet@10100000 { + status = "okay"; + }; + + esw@10110000 { + status = "okay"; + ralink,portmap = <0x3e>; + }; + + wmac@10180000 { + status = "okay"; + }; + + otg@101c0000 { + status = "okay"; + }; +}; -- cgit v1.2.3 From c8c899e2aa030a98bdd78d182e588c15c5cf508c Mon Sep 17 00:00:00 2001 From: juhosg Date: Sun, 7 Apr 2013 08:19:10 +0000 Subject: ramips: remove top-level {address,size}-cells properties from .dts files Those are defined in the SoC specific .dtsi files. Signed-off-by: Gabor Juhos git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36237 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ramips/dts/FREESTATION5.dts | 2 -- 1 file changed, 2 deletions(-) (limited to 'target/linux/ramips/dts/FREESTATION5.dts') diff --git a/target/linux/ramips/dts/FREESTATION5.dts b/target/linux/ramips/dts/FREESTATION5.dts index 04170e39c..043744e2b 100644 --- a/target/linux/ramips/dts/FREESTATION5.dts +++ b/target/linux/ramips/dts/FREESTATION5.dts @@ -3,8 +3,6 @@ /include/ "rt3050.dtsi" / { - #address-cells = <1>; - #size-cells = <1>; compatible = "FREESTATION5", "ralink,rt3052-soc"; model = "ARC FreeStation5"; -- cgit v1.2.3 From af6f122ebdc85469a44781f807b7a808190792aa Mon Sep 17 00:00:00 2001 From: blogic Date: Tue, 9 Apr 2013 14:19:24 +0000 Subject: [ramips] add ofpart info to the devicetrees Signed-off-by: John Crispin git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36287 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ramips/dts/FREESTATION5.dts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'target/linux/ramips/dts/FREESTATION5.dts') diff --git a/target/linux/ramips/dts/FREESTATION5.dts b/target/linux/ramips/dts/FREESTATION5.dts index 043744e2b..2574bd387 100644 --- a/target/linux/ramips/dts/FREESTATION5.dts +++ b/target/linux/ramips/dts/FREESTATION5.dts @@ -22,6 +22,29 @@ 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 { -- cgit v1.2.3 From b945e78bc3eb53374715a44c0c4b49826d0a8c71 Mon Sep 17 00:00:00 2001 From: blogic Date: Tue, 9 Apr 2013 14:19:28 +0000 Subject: [ramips] remove bootargs from dts Signed-off-by: John Crispin git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36288 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ramips/dts/FREESTATION5.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target/linux/ramips/dts/FREESTATION5.dts') diff --git a/target/linux/ramips/dts/FREESTATION5.dts b/target/linux/ramips/dts/FREESTATION5.dts index 2574bd387..fb59498b2 100644 --- a/target/linux/ramips/dts/FREESTATION5.dts +++ b/target/linux/ramips/dts/FREESTATION5.dts @@ -11,7 +11,7 @@ }; chosen { - bootargs = "console=ttyS0,115200 mtdparts=1f000000.cfi:192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)ro,7872k@0x50000(firmware)"; + bootargs = "console=ttyS0,115200"; }; cfi@1f000000 { -- cgit v1.2.3 From 5d772fb05af1af8abb503bb6a4336cf9b535c441 Mon Sep 17 00:00:00 2001 From: blogic Date: Tue, 9 Apr 2013 14:19:36 +0000 Subject: [ramips] move memory detect node to dtsi files Signed-of-by: John Crispin git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36290 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ramips/dts/FREESTATION5.dts | 4 ---- 1 file changed, 4 deletions(-) (limited to 'target/linux/ramips/dts/FREESTATION5.dts') diff --git a/target/linux/ramips/dts/FREESTATION5.dts b/target/linux/ramips/dts/FREESTATION5.dts index fb59498b2..7b7d2d0af 100644 --- a/target/linux/ramips/dts/FREESTATION5.dts +++ b/target/linux/ramips/dts/FREESTATION5.dts @@ -6,10 +6,6 @@ compatible = "FREESTATION5", "ralink,rt3052-soc"; model = "ARC FreeStation5"; - memorydetect { - ralink,memory = <0x0 0x200000 0x4000000>; - }; - chosen { bootargs = "console=ttyS0,115200"; }; -- cgit v1.2.3 From 879ea89c252b59a44a6abe06cb8695a0695d676f Mon Sep 17 00:00:00 2001 From: blogic Date: Mon, 6 May 2013 16:45:35 +0000 Subject: ramips: Update ARC Freestation profile These devices are actually built around the 8devices Carambola dev board. ARC FreeStation, Flex mARC, iFlex, and SplitStation devices are supported with this image, see "ARCFlex Firmware Downloads": http://www.antennas.com/wiki/index.php?title=ARC-OS_Firmware_Downloads_and_Revision_History Funnily enough if present the external USB wlan ends up being wlan-0, with the SoC device being wlan-1. - Invert port map so special handling of vlan config can be removed. - Add LED config similar to original ArcOS firmware. - Add GPIO export for enabling PoE passthrough from ethernet port 0 to port 1 - Get MACs from factory partition. - Update description to list supported devices. - Carambola uses RT3050 (not RT3052), though my Carambola CPU actually reports itself as being an RT3350 while still having RT3050F markings. Signed-off-by: Tobias Diedrich git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36564 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ramips/dts/FREESTATION5.dts | 45 ++++++++++++++++++++++++++++++-- 1 file changed, 43 insertions(+), 2 deletions(-) (limited to 'target/linux/ramips/dts/FREESTATION5.dts') diff --git a/target/linux/ramips/dts/FREESTATION5.dts b/target/linux/ramips/dts/FREESTATION5.dts index 7b7d2d0af..a3cc8fc97 100644 --- a/target/linux/ramips/dts/FREESTATION5.dts +++ b/target/linux/ramips/dts/FREESTATION5.dts @@ -3,13 +3,25 @@ /include/ "rt3050.dtsi" / { - compatible = "FREESTATION5", "ralink,rt3052-soc"; + compatible = "FREESTATION5", "ralink,rt3050-soc"; model = "ARC FreeStation5"; chosen { bootargs = "console=ttyS0,115200"; }; + palmbus@10000000 { + sysc@0 { + ralink,pinmux = "i2c", "spi", "uartlite", "jtag", "mdio", "sdram", "rgmii"; + ralink,uartmux = "gpio"; + ralink,wdtmux = <1>; + }; + + gpio0: gpio@600 { + status = "okay"; + }; + }; + cfi@1f000000 { compatible = "cfi-flash"; reg = <0x1f000000 0x800000>; @@ -49,7 +61,7 @@ esw@10110000 { status = "okay"; - ralink,portmap = <0x3e>; + ralink,portmap = <0x01>; }; wmac@10180000 { @@ -59,4 +71,33 @@ otg@101c0000 { status = "okay"; }; + + gpio-export { + compatible = "gpio-export"; + // Used to enable power-over-ethernet passthrough from port0 to port1. + // Disable passthrough by default to prevent accidental equipment damage. + poe { + gpio-export,name = "poe-passthrough"; + gpio-export,output = <1>; // OUT_INIT_HIGH + gpios = <&gpio0 11 1>; // GPIO 11, ACTIVE_LOW + }; + }; + + gpio-leds { + compatible = "gpio-leds"; + // The following leds are defined in the ArcOS firmware, but reportedly + // not present in the Freestation5 device. + wifi { + label = "freestation:unknown:wifi"; + gpios = <&gpio0 7 1>; + }; + powerg { + label = "freestation:unknown:powerg"; + gpios = <&gpio0 9 1>; + }; + usb { + label = "freestation:unknown:usb"; + gpios = <&gpio0 14 1>; + }; + }; }; -- cgit v1.2.3