All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFD] hix5hd2 datasheet?
@ 2016-09-08 22:58 Marty Plummer
  2016-09-09  8:34 ` Wei Xu
  0 siblings, 1 reply; 5+ messages in thread
From: Marty Plummer @ 2016-09-08 22:58 UTC (permalink / raw)
  To: linux-arm-kernel

Hello,

	I'm currently working to get the ethernet interface for the
hi3520 SoC to work, and I think (emphasis on think) the hix5hd2-gmac
driver is compatible, or nearly so, as checking the sdk source code
for the interface has a fairly large amount of similar code (well, as
similar as 2.6.24 vs 4.8-rc4 code can be) and identical register
definitions to the very bit, so I was hoping to compare the datasheets
and see how far the commonality goes. Plus, having the datasheets
readily available will be of assistance to anyone else looking to
contribute.

Thanks,
	Marty

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

* [RFD] hix5hd2 datasheet?
  2016-09-08 22:58 [RFD] hix5hd2 datasheet? Marty Plummer
@ 2016-09-09  8:34 ` Wei Xu
  2016-09-11  0:47   ` Marty Plummer
  0 siblings, 1 reply; 5+ messages in thread
From: Wei Xu @ 2016-09-09  8:34 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Marty,

On 08/09/2016 23:58, Marty Plummer wrote:
> Hello,
> 
> 	I'm currently working to get the ethernet interface for the
> hi3520 SoC to work, and I think (emphasis on think) the hix5hd2-gmac
> driver is compatible, or nearly so, as checking the sdk source code
> for the interface has a fairly large amount of similar code (well, as
> similar as 2.6.24 vs 4.8-rc4 code can be) and identical register
> definitions to the very bit, so I was hoping to compare the datasheets
> and see how far the commonality goes. Plus, having the datasheets
> readily available will be of assistance to anyone else looking to
> contribute.

+Jiancheng into this mail group.
Maybe you could get the hix5hd2 datasheets from him.
Thanks!

Best Regards,
Wei

> 
> Thanks,
> 	Marty
> 
> 

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

* [RFD] hix5hd2 datasheet?
  2016-09-09  8:34 ` Wei Xu
@ 2016-09-11  0:47   ` Marty Plummer
  2016-09-12  2:40     ` Jiancheng Xue
  2016-09-12  8:19     ` Wei Xu
  0 siblings, 2 replies; 5+ messages in thread
From: Marty Plummer @ 2016-09-11  0:47 UTC (permalink / raw)
  To: linux-arm-kernel

On 09/09/2016 03:34 AM, Wei Xu wrote:
> Hi Marty,
> 
> On 08/09/2016 23:58, Marty Plummer wrote:
>> Hello,
>>
>> 	I'm currently working to get the ethernet interface for the
>> hi3520 SoC to work, and I think (emphasis on think) the hix5hd2-gmac
>> driver is compatible, or nearly so, as checking the sdk source code
>> for the interface has a fairly large amount of similar code (well, as
>> similar as 2.6.24 vs 4.8-rc4 code can be) and identical register
>> definitions to the very bit, so I was hoping to compare the datasheets
>> and see how far the commonality goes. Plus, having the datasheets
>> readily available will be of assistance to anyone else looking to
>> contribute.
> 
> +Jiancheng into this mail group.
> Maybe you could get the hix5hd2 datasheets from him.
> Thanks!
> 
> Best Regards,
> Wei
> 
>>
>> Thanks,
>> 	Marty
>>
>>
> 
In additon, I'm wondering how the second reg property for the
hix5hd2-gmac devicetree is determined (in fact, that is my main concern),
as I'm pretty sure it will work with the gmac on hi3520, but I can't
find a register in the hi3520 datasheet that I could 100% say is the
right one, and adding the driver to the initrd causes a kernel panic
(I'm assuming this is because of wrong reg values unless otherwise
proven) on an otherwise mostly working kernel.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160910/39d7b739/attachment.sig>

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

* [RFD] hix5hd2 datasheet?
  2016-09-11  0:47   ` Marty Plummer
@ 2016-09-12  2:40     ` Jiancheng Xue
  2016-09-12  8:19     ` Wei Xu
  1 sibling, 0 replies; 5+ messages in thread
From: Jiancheng Xue @ 2016-09-12  2:40 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

On 2016/9/11 8:47, Marty Plummer wrote:
> On 09/09/2016 03:34 AM, Wei Xu wrote:
>> Hi Marty,
>>
>> On 08/09/2016 23:58, Marty Plummer wrote:
>>> Hello,
>>>
>>> 	I'm currently working to get the ethernet interface for the
>>> hi3520 SoC to work, and I think (emphasis on think) the hix5hd2-gmac
>>> driver is compatible, or nearly so, as checking the sdk source code
>>> for the interface has a fairly large amount of similar code (well, as
>>> similar as 2.6.24 vs 4.8-rc4 code can be) and identical register
>>> definitions to the very bit, so I was hoping to compare the datasheets
>>> and see how far the commonality goes. Plus, having the datasheets
>>> readily available will be of assistance to anyone else looking to
>>> contribute.
>>
>> +Jiancheng into this mail group.
>> Maybe you could get the hix5hd2 datasheets from him.
>> Thanks!
>>
Currently, the complete datasheet can only be released to customers and
partners who have signed NDA with hisilicon. We have no public version
to supply in this case. I'll point out this issue internally. I hope we can
get the solution.

>> Best Regards,
>> Wei
>>
>>>
>>> Thanks,
>>> 	Marty
>>>
>>>
>>
> In additon, I'm wondering how the second reg property for the
> hix5hd2-gmac devicetree is determined (in fact, that is my main concern),
> as I'm pretty sure it will work with the gmac on hi3520, but I can't
> find a register in the hi3520 datasheet that I could 100% say is the
> right one, and adding the driver to the initrd causes a kernel panic
> (I'm assuming this is because of wrong reg values unless otherwise
> proven) on an otherwise mostly working kernel.
> 

As being described in the ./Documentation/devicetree/bindings/net/hisilicon-hix5hd2-gmac.txt,
the second reg property means MAC_IF control register. The bits layout in this register of
hix5hd2 is like this:
  Bits       	Access     	Name			Description
[31:20]      	RO         	reserved		reserved
[19]		RO		phy_link_status		0:Link Down 1:Link Up
[18:17]		RO		phy_link_speed		00:2.5MHz 01:25MHz 10:125MHz 11:reserved
[16]		RO		phy_link_mode		0:full duplex 1:half duplex
[15:9]		RO		reserved		reserved
[8]		RW		loopback_mode		0:disable 1:enable
[7:5]		RW		phy_select		000:GMII/MII Mode 001:RGMII mode 002:RMII mode
[4]		RW		duplex_mode		0:full 1:half
[3]		RW		tx_config		0:disable 1:enable
[2]		RW		link_status		0:Link Down 1:Link Up
[1]		RW		mac_speed		0:10Mbps 1:100Mbps
[0]		RW		port_select		0:1000Mbps 1:10/1000Mbps

I have no hi3520 datasheet,either.I'm not sure about that they use the same gmac IP block.
I hope this information can help you.

Regards,
Jiancheng

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

* [RFD] hix5hd2 datasheet?
  2016-09-11  0:47   ` Marty Plummer
  2016-09-12  2:40     ` Jiancheng Xue
@ 2016-09-12  8:19     ` Wei Xu
  1 sibling, 0 replies; 5+ messages in thread
From: Wei Xu @ 2016-09-12  8:19 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Jiancheng,

On 11/09/2016 01:47, Marty Plummer wrote:
> On 09/09/2016 03:34 AM, Wei Xu wrote:
>> Hi Marty,
>>
>> On 08/09/2016 23:58, Marty Plummer wrote:
>>> Hello,
>>>
>>> 	I'm currently working to get the ethernet interface for the
>>> hi3520 SoC to work, and I think (emphasis on think) the hix5hd2-gmac
>>> driver is compatible, or nearly so, as checking the sdk source code
>>> for the interface has a fairly large amount of similar code (well, as
>>> similar as 2.6.24 vs 4.8-rc4 code can be) and identical register
>>> definitions to the very bit, so I was hoping to compare the datasheets
>>> and see how far the commonality goes. Plus, having the datasheets
>>> readily available will be of assistance to anyone else looking to
>>> contribute.
>>
>> +Jiancheng into this mail group.
>> Maybe you could get the hix5hd2 datasheets from him.
>> Thanks!
>>
>> Best Regards,
>> Wei
>>
>>>
>>> Thanks,
>>> 	Marty
>>>
>>>
>>
> In additon, I'm wondering how the second reg property for the
> hix5hd2-gmac devicetree is determined (in fact, that is my main concern),
> as I'm pretty sure it will work with the gmac on hi3520, but I can't
> find a register in the hi3520 datasheet that I could 100% say is the
> right one, and adding the driver to the initrd causes a kernel panic
> (I'm assuming this is because of wrong reg values unless otherwise
> proven) on an otherwise mostly working kernel.
> 

Could you share more about the second external reg if you have?
Thanks!

Best Regards,
Wei

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

end of thread, other threads:[~2016-09-12  8:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-08 22:58 [RFD] hix5hd2 datasheet? Marty Plummer
2016-09-09  8:34 ` Wei Xu
2016-09-11  0:47   ` Marty Plummer
2016-09-12  2:40     ` Jiancheng Xue
2016-09-12  8:19     ` Wei Xu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.