linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Enable HiSilicon hip04 ethernet controller
@ 2015-04-10  7:16 Fathi Boudra
  2015-04-10  7:16 ` [PATCH 1/2] ARM: dts: add HiSilicon hip04 ethernet controller resource Fathi Boudra
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Fathi Boudra @ 2015-04-10  7:16 UTC (permalink / raw)
  To: linux-arm-kernel

The following patches enable the ethernet controller on HiSilicon hip04
as documented in the device tree binding but not currently enabled.
It has been tested on real hardware with tftp boot + NFS root filesystem.

Fathi Boudra (2):
  ARM: dts: add HiSilicon hip04 ethernet controller resource
  ARM: defconfig: hisi: enable HiSilicon hip04 ethernet controller

 arch/arm/boot/dts/hip04.dtsi    | 49 +++++++++++++++++++++++++++++++++++++++++
 arch/arm/configs/hisi_defconfig |  1 +
 2 files changed, 50 insertions(+)

-- 
2.1.4

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

* [PATCH 1/2] ARM: dts: add HiSilicon hip04 ethernet controller resource
  2015-04-10  7:16 [PATCH 0/2] Enable HiSilicon hip04 ethernet controller Fathi Boudra
@ 2015-04-10  7:16 ` Fathi Boudra
  2015-04-10  7:16 ` [PATCH 2/2] ARM: defconfig: hisi: enable HiSilicon hip04 ethernet controller Fathi Boudra
  2015-04-10  9:06 ` [PATCH 0/2] Enable " Arnd Bergmann
  2 siblings, 0 replies; 6+ messages in thread
From: Fathi Boudra @ 2015-04-10  7:16 UTC (permalink / raw)
  To: linux-arm-kernel

add the device tree binding for the HiSilicon hip04 ethernet controller
based on Documentation/devicetree/bindings/net/hisilicon-hip04-net.txt

Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
---
 arch/arm/boot/dts/hip04.dtsi | 49 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

diff --git a/arch/arm/boot/dts/hip04.dtsi b/arch/arm/boot/dts/hip04.dtsi
index 2388145..fc68753 100644
--- a/arch/arm/boot/dts/hip04.dtsi
+++ b/arch/arm/boot/dts/hip04.dtsi
@@ -269,6 +269,55 @@
 			interrupts = <0 372 4>;
 		};
 
+		mdio {
+			compatible = "hisilicon,hip04-mdio";
+			reg = <0x28f1000 0x1000>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			phy0: ethernet-phy at 0 {
+				compatible = "ethernet-phy-ieee802.3-c22";
+				reg = <0>;
+				marvell,reg-init = <18 0x14 0 0x8001>;
+			};
+
+			phy1: ethernet-phy at 1 {
+				compatible = "ethernet-phy-ieee802.3-c22";
+				reg = <1>;
+				marvell,reg-init = <18 0x14 0 0x8001>;
+			};
+		};
+
+		ppe: ppe at 28c0000 {
+			compatible = "hisilicon,hip04-ppe", "syscon";
+			reg = <0x28c0000 0x10000>;
+		};
+
+		fe: ethernet at 28b0000 {
+			compatible = "hisilicon,hip04-mac";
+			reg = <0x28b0000 0x10000>;
+			interrupts = <0 413 4>;
+			phy-mode = "mii";
+			port-handle = <&ppe 31 0>;
+		};
+
+		ge0: ethernet at 2800000 {
+			compatible = "hisilicon,hip04-mac";
+			reg = <0x2800000 0x10000>;
+			interrupts = <0 402 4>;
+			phy-mode = "sgmii";
+			port-handle = <&ppe 0 1>;
+			phy-handle = <&phy0>;
+		};
+
+		ge8: ethernet at 2880000 {
+			compatible = "hisilicon,hip04-mac";
+			reg = <0x2880000 0x10000>;
+			interrupts = <0 410 4>;
+			phy-mode = "sgmii";
+			port-handle = <&ppe 8 2>;
+			phy-handle = <&phy1>;
+		};
 	};
 
 	etb at 0,e3c42000 {
-- 
2.1.4

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

* [PATCH 2/2] ARM: defconfig: hisi: enable HiSilicon hip04 ethernet controller
  2015-04-10  7:16 [PATCH 0/2] Enable HiSilicon hip04 ethernet controller Fathi Boudra
  2015-04-10  7:16 ` [PATCH 1/2] ARM: dts: add HiSilicon hip04 ethernet controller resource Fathi Boudra
@ 2015-04-10  7:16 ` Fathi Boudra
  2015-04-10  9:06 ` [PATCH 0/2] Enable " Arnd Bergmann
  2 siblings, 0 replies; 6+ messages in thread
From: Fathi Boudra @ 2015-04-10  7:16 UTC (permalink / raw)
  To: linux-arm-kernel

Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
---
 arch/arm/configs/hisi_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/configs/hisi_defconfig b/arch/arm/configs/hisi_defconfig
index c34da58..e34314a 100644
--- a/arch/arm/configs/hisi_defconfig
+++ b/arch/arm/configs/hisi_defconfig
@@ -33,6 +33,7 @@ CONFIG_ATA=y
 CONFIG_SATA_AHCI_PLATFORM=y
 CONFIG_NETDEVICES=y
 CONFIG_HIX5HD2_GMAC=y
+CONFIG_HIP04_ETH=y
 CONFIG_SERIAL_8250=y
 CONFIG_SERIAL_8250_DEPRECATED_OPTIONS=y
 CONFIG_SERIAL_8250_CONSOLE=y
-- 
2.1.4

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

* [PATCH 0/2] Enable HiSilicon hip04 ethernet controller
  2015-04-10  7:16 [PATCH 0/2] Enable HiSilicon hip04 ethernet controller Fathi Boudra
  2015-04-10  7:16 ` [PATCH 1/2] ARM: dts: add HiSilicon hip04 ethernet controller resource Fathi Boudra
  2015-04-10  7:16 ` [PATCH 2/2] ARM: defconfig: hisi: enable HiSilicon hip04 ethernet controller Fathi Boudra
@ 2015-04-10  9:06 ` Arnd Bergmann
  2015-04-10 10:13   ` Wei Xu
  2015-04-10 13:59   ` Ding Tianhong
  2 siblings, 2 replies; 6+ messages in thread
From: Arnd Bergmann @ 2015-04-10  9:06 UTC (permalink / raw)
  To: linux-arm-kernel

On Friday 10 April 2015 10:16:18 Fathi Boudra wrote:
> The following patches enable the ethernet controller on HiSilicon hip04
> as documented in the device tree binding but not currently enabled.
> It has been tested on real hardware with tftp boot + NFS root filesystem.

The patches looks ok to me, but we don't normally pick up changes like
this from developers, you should address them to Wei Xu so he can send
them to arm-soc along with his other changes.

Note that there are some known bugs in this driver, I sent an experimental
patch for some of them but never heard back.

	Arnd

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

* [PATCH 0/2] Enable HiSilicon hip04 ethernet controller
  2015-04-10  9:06 ` [PATCH 0/2] Enable " Arnd Bergmann
@ 2015-04-10 10:13   ` Wei Xu
  2015-04-10 13:59   ` Ding Tianhong
  1 sibling, 0 replies; 6+ messages in thread
From: Wei Xu @ 2015-04-10 10:13 UTC (permalink / raw)
  To: linux-arm-kernel



On 2015/4/10 17:06, Arnd Bergmann wrote:
> On Friday 10 April 2015 10:16:18 Fathi Boudra wrote:
>> The following patches enable the ethernet controller on HiSilicon hip04
>> as documented in the device tree binding but not currently enabled.
>> It has been tested on real hardware with tftp boot + NFS root filesystem.

Hi Fathi and Arnd
> The patches looks ok to me, but we don't normally pick up changes like
> this from developers, you should address them to Wei Xu so he can send
> them to arm-soc along with his other changes.

Thanks!
I will test it and prepare the pull request with other changes.

> Note that there are some known bugs in this driver, I sent an experimental
> patch for some of them but never heard back.

I will contact with tianhong and zhangfei about it.
Thanks!

Best Regards,
Wei

> 	Arnd
> 
> .
> 

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

* [PATCH 0/2] Enable HiSilicon hip04 ethernet controller
  2015-04-10  9:06 ` [PATCH 0/2] Enable " Arnd Bergmann
  2015-04-10 10:13   ` Wei Xu
@ 2015-04-10 13:59   ` Ding Tianhong
  1 sibling, 0 replies; 6+ messages in thread
From: Ding Tianhong @ 2015-04-10 13:59 UTC (permalink / raw)
  To: linux-arm-kernel

On 2015/4/10 17:06, Arnd Bergmann wrote:
> On Friday 10 April 2015 10:16:18 Fathi Boudra wrote:
>> The following patches enable the ethernet controller on HiSilicon hip04
>> as documented in the device tree binding but not currently enabled.
>> It has been tested on real hardware with tftp boot + NFS root filesystem.
> 
> The patches looks ok to me, but we don't normally pick up changes like
> this from developers, you should address them to Wei Xu so he can send
> them to arm-soc along with his other changes.
>

Ok.

> Note that there are some known bugs in this driver, I sent an experimental
> patch for some of them but never heard back.
> 
> 	Arnd
>

I got the experimental patch and prepare the patches for several weeks, but too busy and not test them yet, sorry for that,
I will test and send them as soon as possible thanks for the advise.

Ding

 
> .
> 

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

end of thread, other threads:[~2015-04-10 13:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-10  7:16 [PATCH 0/2] Enable HiSilicon hip04 ethernet controller Fathi Boudra
2015-04-10  7:16 ` [PATCH 1/2] ARM: dts: add HiSilicon hip04 ethernet controller resource Fathi Boudra
2015-04-10  7:16 ` [PATCH 2/2] ARM: defconfig: hisi: enable HiSilicon hip04 ethernet controller Fathi Boudra
2015-04-10  9:06 ` [PATCH 0/2] Enable " Arnd Bergmann
2015-04-10 10:13   ` Wei Xu
2015-04-10 13:59   ` Ding Tianhong

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