* [PATCH 1/4] ARM: dts: kirkwood: add Linksys EA4500
@ 2015-11-04 22:25 Luka Perkov
2015-11-04 22:41 ` Arnd Bergmann
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Luka Perkov @ 2015-11-04 22:25 UTC (permalink / raw)
To: linux-arm-kernel
Based on dts files from OpenWrt.
Signed-off-by: Luka Perkov <luka.perkov@sartura.hr>
---
.../devicetree/bindings/arm/marvell,kirkwood.txt | 1 +
.../devicetree/bindings/vendor-prefixes.txt | 1 +
arch/arm/boot/dts/Makefile | 1 +
arch/arm/boot/dts/kirkwood-ea4500.dts | 156 +++++++++++++++++++++
4 files changed, 159 insertions(+)
create mode 100644 arch/arm/boot/dts/kirkwood-ea4500.dts
diff --git a/Documentation/devicetree/bindings/arm/marvell,kirkwood.txt b/Documentation/devicetree/bindings/arm/marvell,kirkwood.txt
index 5171ad8..7a99d4a 100644
--- a/Documentation/devicetree/bindings/arm/marvell,kirkwood.txt
+++ b/Documentation/devicetree/bindings/arm/marvell,kirkwood.txt
@@ -49,6 +49,7 @@ board. Currently known boards are:
"lacie,netspace_max_v2"
"lacie,netspace_mini_v2"
"lacie,netspace_v2"
+"linksys,ea4500"
"marvell,db-88f6281-bp"
"marvell,db-88f6282-bp"
"marvell,mv88f6281gtw-ge"
diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt
index 82d2ac9..264f8ba 100644
--- a/Documentation/devicetree/bindings/vendor-prefixes.txt
+++ b/Documentation/devicetree/bindings/vendor-prefixes.txt
@@ -124,6 +124,7 @@ lantiq Lantiq Semiconductor
lenovo Lenovo Group Ltd.
lg LG Corporation
linux Linux-specific binding
+linksys Belkin International, Inc.
lsi LSI Corp. (LSI Logic)
lltc Linear Technology Corporation
marvell Marvell Technology Group Ltd.
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index bb8fa02..a16c04b 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -168,6 +168,7 @@ dtb-$(CONFIG_MACH_KIRKWOOD) += \
kirkwood-ds411.dtb \
kirkwood-ds411j.dtb \
kirkwood-ds411slim.dtb \
+ kirkwood-ea4500.dtb \
kirkwood-goflexnet.dtb \
kirkwood-guruplug-server-plus.dtb \
kirkwood-ib62x0.dtb \
diff --git a/arch/arm/boot/dts/kirkwood-ea4500.dts b/arch/arm/boot/dts/kirkwood-ea4500.dts
new file mode 100644
index 0000000..caccc8e
--- /dev/null
+++ b/arch/arm/boot/dts/kirkwood-ea4500.dts
@@ -0,0 +1,156 @@
+/*
+ * kirkwood-ea4500.dts - Device Tree file for Linksys EA4500
+ *
+ * (c) 2013 Jonas Gorski <jogo@openwrt.org>
+ * (c) 2013 Deutsche Telekom Innovation Laboratories
+ * (c) 2014 Luka Perkov <luka.perkov@sartura.hr>
+ *
+ * This file is licensed under the terms of the GNU General Public
+ * License version 2. This program is licensed "as is" without any
+ * warranty of any kind, whether express or implied.
+ */
+
+/dts-v1/;
+
+#include "kirkwood.dtsi"
+#include "kirkwood-6282.dtsi"
+
+/ {
+ model = "Linksys EA4500";
+ compatible = "linksys,ea4500", "marvell,kirkwood-88f6282", "marvell,kirkwood";
+
+ memory {
+ device_type = "memory";
+ reg = <0x00000000 0x8000000>;
+ };
+
+ chosen {
+ bootargs = "console=ttyS0,115200n8 earlyprintk";
+ };
+
+ mbus {
+ pcie-controller {
+ status = "okay";
+
+ pcie at 1,0 {
+ status = "okay";
+ };
+
+ pcie at 2,0 {
+ status = "okay";
+ };
+ };
+ };
+
+ ocp at f1000000 {
+ pinctrl: pin-controller at 10000 {
+ pmx_led_white_health: pmx-led-white-health {
+ marvell,pins = "mpp7";
+ marvell,function = "gpo";
+ };
+ pmx_led_white_pulse: pmx-led-white-pulse {
+ marvell,pins = "mpp14";
+ marvell,function = "gpio";
+ };
+ pmx_btn_wps: pmx-btn-wps {
+ marvell,pins = "mpp47";
+ marvell,function = "gpio";
+ };
+ pmx_btn_reset: pmx-btn-reset {
+ marvell,pins = "mpp48";
+ marvell,function = "gpio";
+ };
+ };
+
+ rtc at 10300 {
+ status = "disabled";
+ };
+
+ serial at 12000 {
+ status = "okay";
+ };
+
+ };
+
+ gpio_keys {
+ compatible = "gpio-keys";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ pinctrl-0 = < &pmx_btn_wps &pmx_btn_reset >;
+ pinctrl-names = "default";
+
+ button at 15 {
+ label = "WPS Button";
+ linux,code = <KEY_WPS_BUTTON>;
+ gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
+ };
+
+ button at 16 {
+ label = "Reset Button";
+ linux,code = <KEY_RESTART>;
+ gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
+ };
+ };
+
+ gpio-leds {
+ compatible = "gpio-leds";
+ pinctrl-0 = < &pmx_led_white_health &pmx_led_white_pulse >;
+ pinctrl-names = "default";
+
+ white-health {
+ label = "ea4500:white:health";
+ gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
+ };
+
+ white-pulse {
+ label = "ea4500:white:pulse";
+ gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
+ };
+ };
+};
+
+&nand {
+ status = "okay";
+ pinctrl-0 = <&pmx_nand>;
+ pinctrl-names = "default";
+
+ partition at 0 {
+ label = "u-boot";
+ reg = <0x0000000 0x80000>;
+ };
+
+ partition at 80000 {
+ label = "u-boot environment";
+ reg = <0x80000 0x20000>;
+ };
+
+ partition at 200000 {
+ label = "kernel";
+ reg = <0x200000 0x200000>;
+ };
+
+ partition at 400000 {
+ label = "root";
+ reg = <0x400000 0x1c00000>;
+ };
+};
+
+&mdio {
+ status = "okay";
+};
+
+ð0 {
+ status = "okay";
+ ethernet0-port at 0 {
+ speed = <1000>;
+ duplex = <1>;
+ };
+};
+
+ð1 {
+ status = "okay";
+ ethernet1-port at 0 {
+ speed = <1000>;
+ duplex = <1>;
+ };
+};
--
2.6.2
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 1/4] ARM: dts: kirkwood: add Linksys EA4500
2015-11-04 22:25 [PATCH 1/4] ARM: dts: kirkwood: add Linksys EA4500 Luka Perkov
@ 2015-11-04 22:41 ` Arnd Bergmann
2015-11-04 22:46 ` Luka Perkov
2015-11-05 11:03 ` Imre Kaloz
2015-11-04 23:34 ` Andrew Lunn
2015-11-05 11:00 ` Imre Kaloz
2 siblings, 2 replies; 8+ messages in thread
From: Arnd Bergmann @ 2015-11-04 22:41 UTC (permalink / raw)
To: linux-arm-kernel
On Wednesday 04 November 2015 22:25:05 Luka Perkov wrote:
> +/ {
> + model = "Linksys EA4500";
> + compatible = "linksys,ea4500", "marvell,kirkwood-88f6282", "marvell,kirkwood";
According to https://wikidevi.com/wiki/Linksys_EA4500 there are multiple versions
of this device, and at least EA4500v3 is completely incompatible with the version
in this patch. Should we add "linksys,ea4500v1" as a compatible string to identify
this better?
Arnd
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/4] ARM: dts: kirkwood: add Linksys EA4500
2015-11-04 22:41 ` Arnd Bergmann
@ 2015-11-04 22:46 ` Luka Perkov
2015-11-24 15:27 ` Jason Cooper
2015-11-05 11:03 ` Imre Kaloz
1 sibling, 1 reply; 8+ messages in thread
From: Luka Perkov @ 2015-11-04 22:46 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Nov 04, 2015 at 11:41:01PM +0100, Arnd Bergmann wrote:
> On Wednesday 04 November 2015 22:25:05 Luka Perkov wrote:
> > +/ {
> > + model = "Linksys EA4500";
> > + compatible = "linksys,ea4500", "marvell,kirkwood-88f6282", "marvell,kirkwood";
>
> According to https://wikidevi.com/wiki/Linksys_EA4500 there are multiple versions
> of this device, and at least EA4500v3 is completely incompatible with the version
> in this patch. Should we add "linksys,ea4500v1" as a compatible string to identify
> this better?
Right. I'll send v2 after getting some more comments.
Luka
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/4] ARM: dts: kirkwood: add Linksys EA4500
2015-11-04 22:25 [PATCH 1/4] ARM: dts: kirkwood: add Linksys EA4500 Luka Perkov
2015-11-04 22:41 ` Arnd Bergmann
@ 2015-11-04 23:34 ` Andrew Lunn
2015-11-05 11:00 ` Imre Kaloz
2 siblings, 0 replies; 8+ messages in thread
From: Andrew Lunn @ 2015-11-04 23:34 UTC (permalink / raw)
To: linux-arm-kernel
> diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt
> index 82d2ac9..264f8ba 100644
> --- a/Documentation/devicetree/bindings/vendor-prefixes.txt
> +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt
> @@ -124,6 +124,7 @@ lantiq Lantiq Semiconductor
> lenovo Lenovo Group Ltd.
> lg LG Corporation
> linux Linux-specific binding
> +linksys Belkin International, Inc.
> lsi LSI Corp. (LSI Logic)
> lltc Linear Technology Corporation
> marvell Marvell Technology Group Ltd.
Hi Luka
This part should probably be a patch of its own, sent to the DT
maintainers.
> +/ {
> + model = "Linksys EA4500";
> + compatible = "linksys,ea4500", "marvell,kirkwood-88f6282", "marvell,kirkwood";
> +
> + memory {
> + device_type = "memory";
> + reg = <0x00000000 0x8000000>;
> + };
> +
> + chosen {
> + bootargs = "console=ttyS0,115200n8 earlyprintk";
Please use stdout-path = &uart0; You can also put the baud rate etc on
the end.
> +&nand {
> + status = "okay";
> + pinctrl-0 = <&pmx_nand>;
> + pinctrl-names = "default";
> +
> + partition at 0 {
> + label = "u-boot";
> + reg = <0x0000000 0x80000>;
> + };
> +
> + partition at 80000 {
> + label = "u-boot environment";
> + reg = <0x80000 0x20000>;
> + };
Is there a hole here?
> +
> + partition at 200000 {
> + label = "kernel";
> + reg = <0x200000 0x200000>;
> + };
> +
> + partition at 400000 {
> + label = "root";
> + reg = <0x400000 0x1c00000>;
> + };
> +};
> +ð0 {
> + status = "okay";
> + ethernet0-port at 0 {
> + speed = <1000>;
> + duplex = <1>;
> + };
> +};
> +
> +ð1 {
> + status = "okay";
> + ethernet1-port at 0 {
> + speed = <1000>;
> + duplex = <1>;
> + };
> +};
Why fix the speed? Are they connected to a switch?
Andrew
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/4] ARM: dts: kirkwood: add Linksys EA4500
2015-11-04 22:25 [PATCH 1/4] ARM: dts: kirkwood: add Linksys EA4500 Luka Perkov
2015-11-04 22:41 ` Arnd Bergmann
2015-11-04 23:34 ` Andrew Lunn
@ 2015-11-05 11:00 ` Imre Kaloz
2 siblings, 0 replies; 8+ messages in thread
From: Imre Kaloz @ 2015-11-05 11:00 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, 04 Nov 2015 23:25:05 +0100, Luka Perkov <luka.perkov@sartura.hr>
wrote:
<snip>
> --- a/Documentation/devicetree/bindings/arm/marvell,kirkwood.txt
> +++ b/Documentation/devicetree/bindings/arm/marvell,kirkwood.txt
> @@ -49,6 +49,7 @@ board. Currently known boards are:
> "lacie,netspace_max_v2"
> "lacie,netspace_mini_v2"
> "lacie,netspace_v2"
> +"linksys,ea4500"
> "marvell,db-88f6281-bp"
> "marvell,db-88f6282-bp"
> "marvell,mv88f6281gtw-ge"
The same device was sold as the ea4200v2 as well. Please use the
engineering name "viper" instead, as discussed at
http://lists.infradead.org/pipermail/linux-arm-kernel/2015-January/319590.html
> --- a/Documentation/devicetree/bindings/vendor-prefixes.txt
> +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt
> @@ -124,6 +124,7 @@ lantiq Lantiq Semiconductor
> lenovo Lenovo Group Ltd.
> lg LG Corporation
> linux Linux-specific binding
> +linksys Belkin International, Inc.
> lsi LSI Corp. (LSI Logic)
> lltc Linear Technology Corporation
> marvell Marvell Technology Group Ltd.
Although Linksys is a subsidiary of Belkin, I think linksys should stay
Linksys here ;)
> diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
> index bb8fa02..a16c04b 100644
> --- a/arch/arm/boot/dts/Makefile
> +++ b/arch/arm/boot/dts/Makefile
> @@ -168,6 +168,7 @@ dtb-$(CONFIG_MACH_KIRKWOOD) += \
> kirkwood-ds411.dtb \
> kirkwood-ds411j.dtb \
> kirkwood-ds411slim.dtb \
> + kirkwood-ea4500.dtb \
> kirkwood-goflexnet.dtb \
> kirkwood-guruplug-server-plus.dtb \
> kirkwood-ib62x0.dtb \
"kirkwood-viper.dtb"
> --- /dev/null
> +++ b/arch/arm/boot/dts/kirkwood-ea4500.dts
> @@ -0,0 +1,156 @@
<snip>
> + model = "Linksys EA4500";
> + compatible = "linksys,ea4500", "marvell,kirkwood-88f6282",
> "marvell,kirkwood";
model = "Linksys EA4200v2 / EA4500"
compatible = "linksys,viper", "marvell,kirkwood-88f6282",
"marvell,kirkwood";
<snip>
> +&nand {
> + status = "okay";
> + pinctrl-0 = <&pmx_nand>;
> + pinctrl-names = "default";
> +
> + partition at 0 {
> + label = "u-boot";
> + reg = <0x0000000 0x80000>;
> + };
> +
> + partition at 80000 {
> + label = "u-boot environment";
> + reg = <0x80000 0x20000>;
> + };
> +
> + partition at 200000 {
> + label = "kernel";
> + reg = <0x200000 0x200000>;
> + };
> +
> + partition at 400000 {
> + label = "root";
> + reg = <0x400000 0x1c00000>;
> + };
> +};
Please use the factory partitions instead.
Imre
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/4] ARM: dts: kirkwood: add Linksys EA4500
2015-11-04 22:41 ` Arnd Bergmann
2015-11-04 22:46 ` Luka Perkov
@ 2015-11-05 11:03 ` Imre Kaloz
1 sibling, 0 replies; 8+ messages in thread
From: Imre Kaloz @ 2015-11-05 11:03 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, 04 Nov 2015 23:41:01 +0100, Arnd Bergmann <arnd@arndb.de> wrote:
> On Wednesday 04 November 2015 22:25:05 Luka Perkov wrote:
>> +/ {
>> + model = "Linksys EA4500";
>> + compatible = "linksys,ea4500", "marvell,kirkwood-88f6282",
>> "marvell,kirkwood";
>
> According to https://wikidevi.com/wiki/Linksys_EA4500 there are multiple
> versions
> of this device, and at least EA4500v3 is completely incompatible with
> the version
> in this patch. Should we add "linksys,ea4500v1" as a compatible string
> to identify
> this better?
Not sure, as "v1" is never marked on the box/boards, and for this reason
as far as I remember, we've never marked "v1" on any upstream code (unlike
vX).
Imre
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/4] ARM: dts: kirkwood: add Linksys EA4500
2015-11-04 22:46 ` Luka Perkov
@ 2015-11-24 15:27 ` Jason Cooper
2015-11-24 15:32 ` Luka Perkov
0 siblings, 1 reply; 8+ messages in thread
From: Jason Cooper @ 2015-11-24 15:27 UTC (permalink / raw)
To: linux-arm-kernel
Hey Luka,
On Wed, Nov 04, 2015 at 10:46:19PM +0000, Luka Perkov wrote:
> On Wed, Nov 04, 2015 at 11:41:01PM +0100, Arnd Bergmann wrote:
> > On Wednesday 04 November 2015 22:25:05 Luka Perkov wrote:
> > > +/ {
> > > + model = "Linksys EA4500";
> > > + compatible = "linksys,ea4500", "marvell,kirkwood-88f6282", "marvell,kirkwood";
> >
> > According to https://wikidevi.com/wiki/Linksys_EA4500 there are multiple versions
> > of this device, and at least EA4500v3 is completely incompatible with the version
> > in this patch. Should we add "linksys,ea4500v1" as a compatible string to identify
> > this better?
>
> Right. I'll send v2 after getting some more comments.
Did I miss the v2?
thx,
Jason.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/4] ARM: dts: kirkwood: add Linksys EA4500
2015-11-24 15:27 ` Jason Cooper
@ 2015-11-24 15:32 ` Luka Perkov
0 siblings, 0 replies; 8+ messages in thread
From: Luka Perkov @ 2015-11-24 15:32 UTC (permalink / raw)
To: linux-arm-kernel
Hi Jason,
On Tue, Nov 24, 2015 at 03:27:31PM +0000, Jason Cooper wrote:
> On Wed, Nov 04, 2015 at 10:46:19PM +0000, Luka Perkov wrote:
> > On Wed, Nov 04, 2015 at 11:41:01PM +0100, Arnd Bergmann wrote:
> > > On Wednesday 04 November 2015 22:25:05 Luka Perkov wrote:
> > > > +/ {
> > > > + model = "Linksys EA4500";
> > > > + compatible = "linksys,ea4500", "marvell,kirkwood-88f6282", "marvell,kirkwood";
> > >
> > > According to https://wikidevi.com/wiki/Linksys_EA4500 there are multiple versions
> > > of this device, and at least EA4500v3 is completely incompatible with the version
> > > in this patch. Should we add "linksys,ea4500v1" as a compatible string to identify
> > > this better?
> >
> > Right. I'll send v2 after getting some more comments.
>
> Did I miss the v2?
Nope, I'll send it out next week.
Regards,
Luka
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2015-11-24 15:32 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-04 22:25 [PATCH 1/4] ARM: dts: kirkwood: add Linksys EA4500 Luka Perkov
2015-11-04 22:41 ` Arnd Bergmann
2015-11-04 22:46 ` Luka Perkov
2015-11-24 15:27 ` Jason Cooper
2015-11-24 15:32 ` Luka Perkov
2015-11-05 11:03 ` Imre Kaloz
2015-11-04 23:34 ` Andrew Lunn
2015-11-05 11:00 ` Imre Kaloz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).