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/PSR-680W.dts | 78 ++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 target/linux/ramips/dts/PSR-680W.dts (limited to 'target/linux/ramips/dts/PSR-680W.dts') diff --git a/target/linux/ramips/dts/PSR-680W.dts b/target/linux/ramips/dts/PSR-680W.dts new file mode 100644 index 000000000..440a847ad --- /dev/null +++ b/target/linux/ramips/dts/PSR-680W.dts @@ -0,0 +1,78 @@ +/dts-v1/; + +/include/ "rt3050.dtsi" + +/ { + #address-cells = <1>; + #size-cells = <1>; + compatible = "PSR-680W", "ralink,rt3052-soc"; + model = "Petatel PSR-680W Wireless 3G Router"; + + 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,3776k@0x50000(firmware)"; + }; + + palmbus@10000000 { + sysc@0 { + ralink,pinmmux = "i2c", "uartlite", "sdram"; + ralink,gpiommux = "spi", "jtag", "mdio", "rgmii"; + ralink,uartmux = "i2s uartf"; + ralink,wdtmux = <1>; + }; + + gpio0: gpio@600 { + status = "okay"; + }; + }; + + 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>; + }; + + gpio-leds { + compatible = "gpio-leds"; + wan { + label = "psr-680w:red:wan"; + gpios = <&gpio0 19 1>; + }; + }; + + gpio-keys-polled { + compatible = "gpio-keys-polled"; + #address-cells = <1>; + #size-cells = <0>; + poll-interval = <20>; + reset { + label = "reset"; + gpios = <&gpio0 0 1>; + linux,code = <0x198>; + }; + }; + + wmac@10180000 { + status = "okay"; + }; + + otg@101c0000 { + status = "okay"; + }; +}; -- cgit v1.2.3 From aec02c1c2753889e3794018aad363d3ff8d9498b Mon Sep 17 00:00:00 2001 From: blogic Date: Fri, 5 Apr 2013 23:10:42 +0000 Subject: [ramips] fix typo that made gpiomuxing fail Signed-off-by: John Crispin git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36212 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ramips/dts/PSR-680W.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target/linux/ramips/dts/PSR-680W.dts') diff --git a/target/linux/ramips/dts/PSR-680W.dts b/target/linux/ramips/dts/PSR-680W.dts index 440a847ad..1e5bfc54a 100644 --- a/target/linux/ramips/dts/PSR-680W.dts +++ b/target/linux/ramips/dts/PSR-680W.dts @@ -19,7 +19,7 @@ palmbus@10000000 { sysc@0 { ralink,pinmmux = "i2c", "uartlite", "sdram"; - ralink,gpiommux = "spi", "jtag", "mdio", "rgmii"; + ralink,gpiomux = "spi", "jtag", "mdio", "rgmii"; ralink,uartmux = "i2s uartf"; ralink,wdtmux = <1>; }; -- cgit v1.2.3 From f66fcf56daefae892d6b42f7cadf04be338a43a1 Mon Sep 17 00:00:00 2001 From: blogic Date: Sat, 6 Apr 2013 11:46:34 +0000 Subject: [ramips] fix typo pinmmux -> pinmux Signed-off-by: John Crispin git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36216 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ramips/dts/PSR-680W.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target/linux/ramips/dts/PSR-680W.dts') diff --git a/target/linux/ramips/dts/PSR-680W.dts b/target/linux/ramips/dts/PSR-680W.dts index 1e5bfc54a..986967b9c 100644 --- a/target/linux/ramips/dts/PSR-680W.dts +++ b/target/linux/ramips/dts/PSR-680W.dts @@ -18,7 +18,7 @@ palmbus@10000000 { sysc@0 { - ralink,pinmmux = "i2c", "uartlite", "sdram"; + ralink,pinmux = "i2c", "uartlite", "sdram"; ralink,gpiomux = "spi", "jtag", "mdio", "rgmii"; ralink,uartmux = "i2s uartf"; ralink,wdtmux = <1>; -- 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/PSR-680W.dts | 2 -- 1 file changed, 2 deletions(-) (limited to 'target/linux/ramips/dts/PSR-680W.dts') diff --git a/target/linux/ramips/dts/PSR-680W.dts b/target/linux/ramips/dts/PSR-680W.dts index 986967b9c..e4ea90bcf 100644 --- a/target/linux/ramips/dts/PSR-680W.dts +++ b/target/linux/ramips/dts/PSR-680W.dts @@ -3,8 +3,6 @@ /include/ "rt3050.dtsi" / { - #address-cells = <1>; - #size-cells = <1>; compatible = "PSR-680W", "ralink,rt3052-soc"; model = "Petatel PSR-680W Wireless 3G Router"; -- 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/PSR-680W.dts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'target/linux/ramips/dts/PSR-680W.dts') diff --git a/target/linux/ramips/dts/PSR-680W.dts b/target/linux/ramips/dts/PSR-680W.dts index e4ea90bcf..a1abf3720 100644 --- a/target/linux/ramips/dts/PSR-680W.dts +++ b/target/linux/ramips/dts/PSR-680W.dts @@ -35,6 +35,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 0x3b0000>; + }; }; 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/PSR-680W.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target/linux/ramips/dts/PSR-680W.dts') diff --git a/target/linux/ramips/dts/PSR-680W.dts b/target/linux/ramips/dts/PSR-680W.dts index a1abf3720..0d717bd4e 100644 --- a/target/linux/ramips/dts/PSR-680W.dts +++ b/target/linux/ramips/dts/PSR-680W.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,3776k@0x50000(firmware)"; + bootargs = "console=ttyS0,115200"; }; palmbus@10000000 { -- 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/PSR-680W.dts | 4 ---- 1 file changed, 4 deletions(-) (limited to 'target/linux/ramips/dts/PSR-680W.dts') diff --git a/target/linux/ramips/dts/PSR-680W.dts b/target/linux/ramips/dts/PSR-680W.dts index 0d717bd4e..f91eb2fe7 100644 --- a/target/linux/ramips/dts/PSR-680W.dts +++ b/target/linux/ramips/dts/PSR-680W.dts @@ -6,10 +6,6 @@ compatible = "PSR-680W", "ralink,rt3052-soc"; model = "Petatel PSR-680W Wireless 3G Router"; - memorydetect { - ralink,memory = <0x0 0x200000 0x4000000>; - }; - chosen { bootargs = "console=ttyS0,115200"; }; -- cgit v1.2.3