linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] ARM: dts: omap3-devkit8000: Add dm9000 support
@ 2015-05-21 19:52 Anthoine Bourgeois
  2015-05-21 19:52 ` [PATCH 2/2] ARM: OMAP: enable DM9000 in omap2plus_defconfig Anthoine Bourgeois
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Anthoine Bourgeois @ 2015-05-21 19:52 UTC (permalink / raw)
  To: linux-omap; +Cc: Anthoine Bourgeois

Support dm9000 network interface in the device tree of devkit8000 board.

Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@gmail.com>
---
 arch/arm/boot/dts/omap3-devkit8000.dts | 41 ++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/arch/arm/boot/dts/omap3-devkit8000.dts b/arch/arm/boot/dts/omap3-devkit8000.dts
index 283db1d..b32eeda 100644
--- a/arch/arm/boot/dts/omap3-devkit8000.dts
+++ b/arch/arm/boot/dts/omap3-devkit8000.dts
@@ -158,3 +158,44 @@
 		};
 	};
 };
+
+&gpmc {
+	ranges = <6 0 0x2c000000 0x1000000>;       /* CS6: 16MB for DM9000 */
+
+	ethernet@0,0 {
+		compatible = "davicom,dm9000";
+		reg = <6 0x000 3
+		       6 0x400 3>;
+		bank-width = <2>;
+		interrupt-parent = <&gpio1>;		/* CS6 -> DM9000 */
+		interrupts = <25 IRQ_TYPE_LEVEL_LOW>;
+		davicom,no-eeprom;
+
+		gpmc,mux-add-data = <0>;
+		gpmc,device-width = <1>;
+		gpmc,wait-pin = <0>;
+		gpmc,cycle2cycle-samecsen = <1>;
+		gpmc,cycle2cycle-diffcsen = <1>;
+
+		gpmc,cs-on-ns = <6>;
+		gpmc,cs-rd-off-ns = <180>;
+		gpmc,cs-wr-off-ns = <180>;
+		gpmc,adv-on-ns = <0>;
+		gpmc,adv-rd-off-ns = <18>;
+		gpmc,adv-wr-off-ns = <48>;
+		gpmc,oe-on-ns = <54>;
+		gpmc,oe-off-ns = <168>;
+		gpmc,we-on-ns = <54>;
+		gpmc,we-off-ns = <168>;
+		gpmc,rd-cycle-ns = <186>;
+		gpmc,wr-cycle-ns = <186>;
+		gpmc,access-ns = <144>;
+		gpmc,page-burst-access-ns = <24>;
+		gpmc,bus-turnaround-ns = <90>;
+		gpmc,cycle2cycle-delay-ns = <90>;
+		gpmc,wait-monitoring-ns = <0>;
+		gpmc,clk-activation-ns = <0>;
+		gpmc,wr-data-mux-bus-ns = <0>;
+		gpmc,wr-access-ns = <0>;
+	};
+};
-- 
2.0.5


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 2/2] ARM: OMAP: enable DM9000 in omap2plus_defconfig
  2015-05-21 19:52 [PATCH 1/2] ARM: dts: omap3-devkit8000: Add dm9000 support Anthoine Bourgeois
@ 2015-05-21 19:52 ` Anthoine Bourgeois
  2015-05-21 20:54 ` [PATCH 1/2] ARM: dts: omap3-devkit8000: Add dm9000 support Tony Lindgren
  2015-05-27 20:00 ` [PATCH v2 " Anthoine Bourgeois
  2 siblings, 0 replies; 7+ messages in thread
From: Anthoine Bourgeois @ 2015-05-21 19:52 UTC (permalink / raw)
  To: linux-omap; +Cc: Anthoine Bourgeois

This ethernet device is used on devkit8000 board.

Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@gmail.com>
---
 arch/arm/configs/omap2plus_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/configs/omap2plus_defconfig b/arch/arm/configs/omap2plus_defconfig
index 8e10859..08cd89c 100644
--- a/arch/arm/configs/omap2plus_defconfig
+++ b/arch/arm/configs/omap2plus_defconfig
@@ -135,6 +135,7 @@ CONFIG_NETDEVICES=y
 # CONFIG_NET_CADENCE is not set
 # CONFIG_NET_VENDOR_BROADCOM is not set
 # CONFIG_NET_VENDOR_CIRRUS is not set
+CONFIG_DM9000=y
 # CONFIG_NET_VENDOR_FARADAY is not set
 # CONFIG_NET_VENDOR_HISILICON is not set
 # CONFIG_NET_VENDOR_INTEL is not set
-- 
2.0.5


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/2] ARM: dts: omap3-devkit8000: Add dm9000 support
  2015-05-21 19:52 [PATCH 1/2] ARM: dts: omap3-devkit8000: Add dm9000 support Anthoine Bourgeois
  2015-05-21 19:52 ` [PATCH 2/2] ARM: OMAP: enable DM9000 in omap2plus_defconfig Anthoine Bourgeois
@ 2015-05-21 20:54 ` Tony Lindgren
  2015-05-27 20:00 ` [PATCH v2 " Anthoine Bourgeois
  2 siblings, 0 replies; 7+ messages in thread
From: Tony Lindgren @ 2015-05-21 20:54 UTC (permalink / raw)
  To: Anthoine Bourgeois; +Cc: linux-omap

Hi,

* Anthoine Bourgeois <anthoine.bourgeois@gmail.com> [150521 12:55]:
> Support dm9000 network interface in the device tree of devkit8000 board.
> 
> Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@gmail.com>
> ---
>  arch/arm/boot/dts/omap3-devkit8000.dts | 41 ++++++++++++++++++++++++++++++++++
>  1 file changed, 41 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/omap3-devkit8000.dts b/arch/arm/boot/dts/omap3-devkit8000.dts
> index 283db1d..b32eeda 100644
> --- a/arch/arm/boot/dts/omap3-devkit8000.dts
> +++ b/arch/arm/boot/dts/omap3-devkit8000.dts
> @@ -158,3 +158,44 @@
>  		};
>  	};
>  };
> +
> +&gpmc {
> +	ranges = <6 0 0x2c000000 0x1000000>;       /* CS6: 16MB for DM9000 */
> +
> +	ethernet@0,0 {
> +		compatible = "davicom,dm9000";
> +		reg = <6 0x000 3
> +		       6 0x400 3>;

So CS6 for GPMC and ioarea at offsets 0 and 0x400.. But the
size of 3 does not look right to me.. That's the size that
gets ioremapped by the Ethernet driver?

> +		bank-width = <2>;
> +		interrupt-parent = <&gpio1>;		/* CS6 -> DM9000 */

Is this comment maybe on the wrong line or how is the GPIO
interrupt related to the CS6? :)

Otherwise looks good to me.

Regards,

Tony

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH v2 1/2] ARM: dts: omap3-devkit8000: Add dm9000 support
  2015-05-21 19:52 [PATCH 1/2] ARM: dts: omap3-devkit8000: Add dm9000 support Anthoine Bourgeois
  2015-05-21 19:52 ` [PATCH 2/2] ARM: OMAP: enable DM9000 in omap2plus_defconfig Anthoine Bourgeois
  2015-05-21 20:54 ` [PATCH 1/2] ARM: dts: omap3-devkit8000: Add dm9000 support Tony Lindgren
@ 2015-05-27 20:00 ` Anthoine Bourgeois
  2015-05-27 20:00   ` [PATCH v2 2/2] ARM: OMAP: enable DM9000 in omap2plus_defconfig Anthoine Bourgeois
  2015-05-28 16:40   ` [PATCH v2 1/2] ARM: dts: omap3-devkit8000: Add dm9000 support Tony Lindgren
  2 siblings, 2 replies; 7+ messages in thread
From: Anthoine Bourgeois @ 2015-05-27 20:00 UTC (permalink / raw)
  To: linux-omap; +Cc: Tony Lindgren, Anthoine Bourgeois

Support dm9000 network interface in the device tree of devkit8000 board.

Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@gmail.com>
---

Changes since v1:
 * Fix io-mapping size
 * Fix comments

 arch/arm/boot/dts/omap3-devkit8000.dts | 41 ++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/arch/arm/boot/dts/omap3-devkit8000.dts b/arch/arm/boot/dts/omap3-devkit8000.dts
index 283db1d..2af54cb 100644
--- a/arch/arm/boot/dts/omap3-devkit8000.dts
+++ b/arch/arm/boot/dts/omap3-devkit8000.dts
@@ -158,3 +158,44 @@
 		};
 	};
 };
+
+&gpmc {
+	ranges = <6 0 0x2c000000 0x1000000>;       /* CS6: 16MB for DM9000 */
+
+	ethernet@0,0 {
+		compatible = "davicom,dm9000";
+		reg =  <6 0x000 2
+			6 0x400 2>; /* CS6, offset 0 and 0x400, IO size 2 */
+		bank-width = <2>;
+		interrupt-parent = <&gpio1>;
+		interrupts = <25 IRQ_TYPE_LEVEL_LOW>;
+		davicom,no-eeprom;
+
+		gpmc,mux-add-data = <0>;
+		gpmc,device-width = <1>;
+		gpmc,wait-pin = <0>;
+		gpmc,cycle2cycle-samecsen = <1>;
+		gpmc,cycle2cycle-diffcsen = <1>;
+
+		gpmc,cs-on-ns = <6>;
+		gpmc,cs-rd-off-ns = <180>;
+		gpmc,cs-wr-off-ns = <180>;
+		gpmc,adv-on-ns = <0>;
+		gpmc,adv-rd-off-ns = <18>;
+		gpmc,adv-wr-off-ns = <48>;
+		gpmc,oe-on-ns = <54>;
+		gpmc,oe-off-ns = <168>;
+		gpmc,we-on-ns = <54>;
+		gpmc,we-off-ns = <168>;
+		gpmc,rd-cycle-ns = <186>;
+		gpmc,wr-cycle-ns = <186>;
+		gpmc,access-ns = <144>;
+		gpmc,page-burst-access-ns = <24>;
+		gpmc,bus-turnaround-ns = <90>;
+		gpmc,cycle2cycle-delay-ns = <90>;
+		gpmc,wait-monitoring-ns = <0>;
+		gpmc,clk-activation-ns = <0>;
+		gpmc,wr-data-mux-bus-ns = <0>;
+		gpmc,wr-access-ns = <0>;
+	};
+};
-- 
2.0.5


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH v2 2/2] ARM: OMAP: enable DM9000 in omap2plus_defconfig
  2015-05-27 20:00 ` [PATCH v2 " Anthoine Bourgeois
@ 2015-05-27 20:00   ` Anthoine Bourgeois
  2015-05-29 17:08     ` Tony Lindgren
  2015-05-28 16:40   ` [PATCH v2 1/2] ARM: dts: omap3-devkit8000: Add dm9000 support Tony Lindgren
  1 sibling, 1 reply; 7+ messages in thread
From: Anthoine Bourgeois @ 2015-05-27 20:00 UTC (permalink / raw)
  To: linux-omap; +Cc: Tony Lindgren, Anthoine Bourgeois

This ethernet device is used on devkit8000 board.

Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@gmail.com>
---
 arch/arm/configs/omap2plus_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/configs/omap2plus_defconfig b/arch/arm/configs/omap2plus_defconfig
index 8e10859..08cd89c 100644
--- a/arch/arm/configs/omap2plus_defconfig
+++ b/arch/arm/configs/omap2plus_defconfig
@@ -135,6 +135,7 @@ CONFIG_NETDEVICES=y
 # CONFIG_NET_CADENCE is not set
 # CONFIG_NET_VENDOR_BROADCOM is not set
 # CONFIG_NET_VENDOR_CIRRUS is not set
+CONFIG_DM9000=y
 # CONFIG_NET_VENDOR_FARADAY is not set
 # CONFIG_NET_VENDOR_HISILICON is not set
 # CONFIG_NET_VENDOR_INTEL is not set
-- 
2.0.5


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH v2 1/2] ARM: dts: omap3-devkit8000: Add dm9000 support
  2015-05-27 20:00 ` [PATCH v2 " Anthoine Bourgeois
  2015-05-27 20:00   ` [PATCH v2 2/2] ARM: OMAP: enable DM9000 in omap2plus_defconfig Anthoine Bourgeois
@ 2015-05-28 16:40   ` Tony Lindgren
  1 sibling, 0 replies; 7+ messages in thread
From: Tony Lindgren @ 2015-05-28 16:40 UTC (permalink / raw)
  To: Anthoine Bourgeois; +Cc: linux-omap

* Anthoine Bourgeois <anthoine.bourgeois@gmail.com> [150527 13:02]:
> Support dm9000 network interface in the device tree of devkit8000 board.
> 
> Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@gmail.com>
> ---
> 
> Changes since v1:
>  * Fix io-mapping size
>  * Fix comments

Applying this one into omap-for-v4.2/dt thanks.

Tony

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v2 2/2] ARM: OMAP: enable DM9000 in omap2plus_defconfig
  2015-05-27 20:00   ` [PATCH v2 2/2] ARM: OMAP: enable DM9000 in omap2plus_defconfig Anthoine Bourgeois
@ 2015-05-29 17:08     ` Tony Lindgren
  0 siblings, 0 replies; 7+ messages in thread
From: Tony Lindgren @ 2015-05-29 17:08 UTC (permalink / raw)
  To: Anthoine Bourgeois; +Cc: linux-omap

* Anthoine Bourgeois <anthoine.bourgeois@gmail.com> [150527 13:02]:
> This ethernet device is used on devkit8000 board.
> 
> Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@gmail.com>
> ---
>  arch/arm/configs/omap2plus_defconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm/configs/omap2plus_defconfig b/arch/arm/configs/omap2plus_defconfig
> index 8e10859..08cd89c 100644
> --- a/arch/arm/configs/omap2plus_defconfig
> +++ b/arch/arm/configs/omap2plus_defconfig
> @@ -135,6 +135,7 @@ CONFIG_NETDEVICES=y
>  # CONFIG_NET_CADENCE is not set
>  # CONFIG_NET_VENDOR_BROADCOM is not set
>  # CONFIG_NET_VENDOR_CIRRUS is not set
> +CONFIG_DM9000=y
>  # CONFIG_NET_VENDOR_FARADAY is not set
>  # CONFIG_NET_VENDOR_HISILICON is not set
>  # CONFIG_NET_VENDOR_INTEL is not set

Applying into omap-for-v4.2/defconfig thanks.

Tony

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-05-29 17:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-21 19:52 [PATCH 1/2] ARM: dts: omap3-devkit8000: Add dm9000 support Anthoine Bourgeois
2015-05-21 19:52 ` [PATCH 2/2] ARM: OMAP: enable DM9000 in omap2plus_defconfig Anthoine Bourgeois
2015-05-21 20:54 ` [PATCH 1/2] ARM: dts: omap3-devkit8000: Add dm9000 support Tony Lindgren
2015-05-27 20:00 ` [PATCH v2 " Anthoine Bourgeois
2015-05-27 20:00   ` [PATCH v2 2/2] ARM: OMAP: enable DM9000 in omap2plus_defconfig Anthoine Bourgeois
2015-05-29 17:08     ` Tony Lindgren
2015-05-28 16:40   ` [PATCH v2 1/2] ARM: dts: omap3-devkit8000: Add dm9000 support Tony Lindgren

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).