* [PATCH 0/3] MIPS: OCTEON: Add support for D-Link DSR-500N router
@ 2016-09-02 21:11 Aaro Koskinen
2016-09-02 21:11 ` [PATCH 1/3] MIPS: OCTEON: split dlink_dsr-1000n.dts Aaro Koskinen
[not found] ` <20160902211136.8610-1-aaro.koskinen-X3B1VOXEql0@public.gmane.org>
0 siblings, 2 replies; 5+ messages in thread
From: Aaro Koskinen @ 2016-09-02 21:11 UTC (permalink / raw)
To: Ralf Baechle, linux-mips-6z/3iImG2C8G8FEW9MqTrA
Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA,
devicetree-u79uwXL29TY76Z2rM5mHXA, Aaro Koskinen
Hi,
D-Link DSR-500N is close to 1000N and with small changes we
can support both.
A.
Aaro Koskinen (3):
MIPS: OCTEON: split dlink_dsr-1000n.dts
MIPS: OCTEON: add DTS for D-Link DSR-500N
MIPS: OCTEON: fix PCI interrupt routing on D-Link DSR-500N
.../boot/dts/cavium-octeon/dlink_dsr-1000n.dts | 45 +----------------
.../dts/cavium-octeon/dlink_dsr-500n-1000n.dtsi | 58 ++++++++++++++++++++++
.../mips/boot/dts/cavium-octeon/dlink_dsr-500n.dts | 42 ++++++++++++++++
arch/mips/pci/pci-octeon.c | 2 +
4 files changed, 103 insertions(+), 44 deletions(-)
create mode 100644 arch/mips/boot/dts/cavium-octeon/dlink_dsr-500n-1000n.dtsi
create mode 100644 arch/mips/boot/dts/cavium-octeon/dlink_dsr-500n.dts
--
2.9.2
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/3] MIPS: OCTEON: split dlink_dsr-1000n.dts
2016-09-02 21:11 [PATCH 0/3] MIPS: OCTEON: Add support for D-Link DSR-500N router Aaro Koskinen
@ 2016-09-02 21:11 ` Aaro Koskinen
[not found] ` <20160902211136.8610-1-aaro.koskinen-X3B1VOXEql0@public.gmane.org>
1 sibling, 0 replies; 5+ messages in thread
From: Aaro Koskinen @ 2016-09-02 21:11 UTC (permalink / raw)
To: Ralf Baechle, linux-mips; +Cc: linux-kernel, devicetree, Aaro Koskinen
Split dlink_dsr-1000n.dts to allow reuse with D-Link DSR-500N.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
---
.../boot/dts/cavium-octeon/dlink_dsr-1000n.dts | 45 +----------------
.../dts/cavium-octeon/dlink_dsr-500n-1000n.dtsi | 58 ++++++++++++++++++++++
2 files changed, 59 insertions(+), 44 deletions(-)
create mode 100644 arch/mips/boot/dts/cavium-octeon/dlink_dsr-500n-1000n.dtsi
diff --git a/arch/mips/boot/dts/cavium-octeon/dlink_dsr-1000n.dts b/arch/mips/boot/dts/cavium-octeon/dlink_dsr-1000n.dts
index b134798..cfa2915 100644
--- a/arch/mips/boot/dts/cavium-octeon/dlink_dsr-1000n.dts
+++ b/arch/mips/boot/dts/cavium-octeon/dlink_dsr-1000n.dts
@@ -8,55 +8,16 @@
* published by the Free Software Foundation.
*/
-/include/ "octeon_3xxx.dtsi"
+/include/ "dlink_dsr-500n-1000n.dtsi"
#include <dt-bindings/gpio/gpio.h>
/ {
model = "dlink,dsr-1000n";
soc@0 {
- smi0: mdio@1180000001800 {
- phy8: ethernet-phy@8 {
- reg = <8>;
- compatible = "ethernet-phy-ieee802.3-c22";
- };
- };
-
- pip: pip@11800a0000000 {
- interface@0 {
- ethernet@0 {
- fixed-link {
- speed = <1000>;
- full-duplex;
- };
- };
- ethernet@1 {
- fixed-link {
- speed = <1000>;
- full-duplex;
- };
- };
- ethernet@2 {
- phy-handle = <&phy8>;
- };
- };
- };
-
- twsi0: i2c@1180000001000 {
- rtc@68 {
- compatible = "dallas,ds1337";
- reg = <0x68>;
- };
- };
-
uart0: serial@1180000000800 {
clock-frequency = <500000000>;
};
-
- usbn: usbn@1180068000000 {
- refclk-frequency = <12000000>;
- refclk-type = "crystal";
- };
};
leds {
@@ -87,8 +48,4 @@
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
};
};
-
- aliases {
- pip = &pip;
- };
};
diff --git a/arch/mips/boot/dts/cavium-octeon/dlink_dsr-500n-1000n.dtsi b/arch/mips/boot/dts/cavium-octeon/dlink_dsr-500n-1000n.dtsi
new file mode 100644
index 0000000..246b598
--- /dev/null
+++ b/arch/mips/boot/dts/cavium-octeon/dlink_dsr-500n-1000n.dtsi
@@ -0,0 +1,58 @@
+/*
+ * Device tree source for D-Link DSR-500N/1000N (common parts).
+ *
+ * Written by: Aaro Koskinen <aaro.koskinen@iki.fi>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+/include/ "octeon_3xxx.dtsi"
+
+/ {
+ soc@0 {
+ smi0: mdio@1180000001800 {
+ phy8: ethernet-phy@8 {
+ reg = <8>;
+ compatible = "ethernet-phy-ieee802.3-c22";
+ };
+ };
+
+ pip: pip@11800a0000000 {
+ interface@0 {
+ ethernet@0 {
+ fixed-link {
+ speed = <1000>;
+ full-duplex;
+ };
+ };
+ ethernet@1 {
+ fixed-link {
+ speed = <1000>;
+ full-duplex;
+ };
+ };
+ ethernet@2 {
+ phy-handle = <&phy8>;
+ };
+ };
+ };
+
+ twsi0: i2c@1180000001000 {
+ rtc@68 {
+ compatible = "dallas,ds1337";
+ reg = <0x68>;
+ };
+ };
+
+ usbn: usbn@1180068000000 {
+ refclk-frequency = <12000000>;
+ refclk-type = "crystal";
+ };
+ };
+
+ aliases {
+ pip = &pip;
+ };
+};
--
2.9.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/3] MIPS: OCTEON: add DTS for D-Link DSR-500N
[not found] ` <20160902211136.8610-1-aaro.koskinen-X3B1VOXEql0@public.gmane.org>
@ 2016-09-02 21:11 ` Aaro Koskinen
2016-09-03 12:09 ` Sergei Shtylyov
2016-09-02 21:11 ` [PATCH 3/3] MIPS: OCTEON: fix PCI interrupt routing on " Aaro Koskinen
1 sibling, 1 reply; 5+ messages in thread
From: Aaro Koskinen @ 2016-09-02 21:11 UTC (permalink / raw)
To: Ralf Baechle, linux-mips-6z/3iImG2C8G8FEW9MqTrA
Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA,
devicetree-u79uwXL29TY76Z2rM5mHXA, Aaro Koskinen
Add DTS for D-Link DSR-500N.
Signed-off-by: Aaro Koskinen <aaro.koskinen-X3B1VOXEql0@public.gmane.org>
---
.../mips/boot/dts/cavium-octeon/dlink_dsr-500n.dts | 42 ++++++++++++++++++++++
1 file changed, 42 insertions(+)
create mode 100644 arch/mips/boot/dts/cavium-octeon/dlink_dsr-500n.dts
diff --git a/arch/mips/boot/dts/cavium-octeon/dlink_dsr-500n.dts b/arch/mips/boot/dts/cavium-octeon/dlink_dsr-500n.dts
new file mode 100644
index 0000000..6cacabb
--- /dev/null
+++ b/arch/mips/boot/dts/cavium-octeon/dlink_dsr-500n.dts
@@ -0,0 +1,42 @@
+/*
+ * Device tree source for D-Link DSR-500N.
+ *
+ * Written by: Aaro Koskinen <aaro.koskinen-X3B1VOXEql0@public.gmane.org>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+/include/ "dlink_dsr-500n-1000n.dtsi"
+#include <dt-bindings/gpio/gpio.h>
+
+/ {
+ model = "dlink,dsr-500n";
+ compatible = "dlink,dsr-500n", "cavium,octeon-3860";
+
+ soc@0 {
+ uart0: serial@1180000000800 {
+ clock-frequency = <300000000>;
+ };
+ };
+
+ leds {
+ compatible = "gpio-leds";
+
+ usb {
+ label = "usb";
+ gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
+ };
+
+ wps {
+ label = "wps";
+ gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
+ };
+
+ wireless {
+ label = "2.4g";
+ gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
+ };
+ };
+};
--
2.9.2
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 3/3] MIPS: OCTEON: fix PCI interrupt routing on D-Link DSR-500N
[not found] ` <20160902211136.8610-1-aaro.koskinen-X3B1VOXEql0@public.gmane.org>
2016-09-02 21:11 ` [PATCH 2/3] MIPS: OCTEON: add DTS for D-Link DSR-500N Aaro Koskinen
@ 2016-09-02 21:11 ` Aaro Koskinen
1 sibling, 0 replies; 5+ messages in thread
From: Aaro Koskinen @ 2016-09-02 21:11 UTC (permalink / raw)
To: Ralf Baechle, linux-mips-6z/3iImG2C8G8FEW9MqTrA
Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA,
devicetree-u79uwXL29TY76Z2rM5mHXA, Aaro Koskinen
Fix PCI interrupt routing on D-Link DSR-500N.
Signed-off-by: Aaro Koskinen <aaro.koskinen-X3B1VOXEql0@public.gmane.org>
---
arch/mips/pci/pci-octeon.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/mips/pci/pci-octeon.c b/arch/mips/pci/pci-octeon.c
index c258cd4..308d051 100644
--- a/arch/mips/pci/pci-octeon.c
+++ b/arch/mips/pci/pci-octeon.c
@@ -204,6 +204,8 @@ const char *octeon_get_pci_interrupts(void)
* Interrupt Number (INTA# = 0, INTB# = 1, INTC# = 2, and
* INTD# = 3)
*/
+ if (of_machine_is_compatible("dlink,dsr-500n"))
+ return "CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC";
switch (octeon_bootinfo->board_type) {
case CVMX_BOARD_TYPE_NAO38:
/* This is really the NAC38 */
--
2.9.2
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 2/3] MIPS: OCTEON: add DTS for D-Link DSR-500N
2016-09-02 21:11 ` [PATCH 2/3] MIPS: OCTEON: add DTS for D-Link DSR-500N Aaro Koskinen
@ 2016-09-03 12:09 ` Sergei Shtylyov
0 siblings, 0 replies; 5+ messages in thread
From: Sergei Shtylyov @ 2016-09-03 12:09 UTC (permalink / raw)
To: Aaro Koskinen, Ralf Baechle, linux-mips; +Cc: linux-kernel, devicetree
Hello.
On 9/3/2016 12:11 AM, Aaro Koskinen wrote:
> Add DTS for D-Link DSR-500N.
>
> Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
> ---
> .../mips/boot/dts/cavium-octeon/dlink_dsr-500n.dts | 42 ++++++++++++++++++++++
> 1 file changed, 42 insertions(+)
> create mode 100644 arch/mips/boot/dts/cavium-octeon/dlink_dsr-500n.dts
>
> diff --git a/arch/mips/boot/dts/cavium-octeon/dlink_dsr-500n.dts b/arch/mips/boot/dts/cavium-octeon/dlink_dsr-500n.dts
> new file mode 100644
> index 0000000..6cacabb
> --- /dev/null
> +++ b/arch/mips/boot/dts/cavium-octeon/dlink_dsr-500n.dts
> @@ -0,0 +1,42 @@
> +/*
> + * Device tree source for D-Link DSR-500N.
> + *
> + * Written by: Aaro Koskinen <aaro.koskinen@iki.fi>
> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License version 2 as
> + * published by the Free Software Foundation.
> + */
> +
> +/include/ "dlink_dsr-500n-1000n.dtsi"
> +#include <dt-bindings/gpio/gpio.h>
> +
> +/ {
> + model = "dlink,dsr-500n";
> + compatible = "dlink,dsr-500n", "cavium,octeon-3860";
> +
> + soc@0 {
> + uart0: serial@1180000000800 {
> + clock-frequency = <300000000>;
> + };
> + };
> +
> + leds {
> + compatible = "gpio-leds";
> +
> + usb {
> + label = "usb";
> + gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
> + };
> +
> + wps {
> + label = "wps";
You don't need LED labels when the are identical to the node names.
[...]
MBR, Sergei
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-09-03 12:09 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-02 21:11 [PATCH 0/3] MIPS: OCTEON: Add support for D-Link DSR-500N router Aaro Koskinen
2016-09-02 21:11 ` [PATCH 1/3] MIPS: OCTEON: split dlink_dsr-1000n.dts Aaro Koskinen
[not found] ` <20160902211136.8610-1-aaro.koskinen-X3B1VOXEql0@public.gmane.org>
2016-09-02 21:11 ` [PATCH 2/3] MIPS: OCTEON: add DTS for D-Link DSR-500N Aaro Koskinen
2016-09-03 12:09 ` Sergei Shtylyov
2016-09-02 21:11 ` [PATCH 3/3] MIPS: OCTEON: fix PCI interrupt routing on " Aaro Koskinen
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).