<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/drivers/phy/marvell, branch v2018.09</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/drivers/phy/marvell?h=v2018.09</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/drivers/phy/marvell?h=v2018.09'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2018-05-14T08:01:56Z</updated>
<entry>
<title>phy: marvell: a3700: Fix compatible string for ehci</title>
<updated>2018-05-14T08:01:56Z</updated>
<author>
<name>Marek Behún</name>
<email>marek.behun@nic.cz</email>
</author>
<published>2018-05-11T08:03:39Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=ca734a875dec089c3978663a0ce303d776365b20'/>
<id>urn:sha1:ca734a875dec089c3978663a0ce303d776365b20</id>
<content type='text'>
The DTS file for armada-37xx uses the string "marvell,armada3700-ehci",
but the code searched for "marvell,armada-3700-ehci".

Signed-off-by: Marek Behun &lt;marek.behun@nic.cz&gt;
Signed-off-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
<entry>
<title>phy: marvell: core: Cosmetic fixes</title>
<updated>2018-05-14T08:00:15Z</updated>
<author>
<name>Marek Behún</name>
<email>marek.behun@nic.cz</email>
</author>
<published>2018-04-24T15:21:28Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=2d7a0f4399f924422e959613b4c2634dcd0ad87e'/>
<id>urn:sha1:2d7a0f4399f924422e959613b4c2634dcd0ad87e</id>
<content type='text'>
Move the reg_set* functions into comphy.h as static inline functions.
Change return type of get_*_string to const char *.

Signed-off-by: Marek Behun &lt;marek.behun@nic.cz&gt;
Reviewed-by: Stefan Roese &lt;sr@denx.de&gt;
Signed-off-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
<entry>
<title>phy: marvell: a3700: Save/restore selector reg in SGMII init</title>
<updated>2018-05-14T08:00:15Z</updated>
<author>
<name>Marek Behún</name>
<email>marek.behun@nic.cz</email>
</author>
<published>2018-04-24T15:21:24Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=7288182aa6c11e4b0b2783cd4c7762f93f12cb64'/>
<id>urn:sha1:7288182aa6c11e4b0b2783cd4c7762f93f12cb64</id>
<content type='text'>
In SGMII initialization PIN_PIPE_SEL has to be zero when resetting
the PHY. Since comphy_mux already set the selector register to
correct values, we have to store it's value before setting it to 0
and restore it after SGMII init.

Signed-off-by: Marek Behun &lt;marek.behun@nic.cz&gt;
Reviewed-by: Stefan Roese &lt;sr@denx.de&gt;
Signed-off-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
<entry>
<title>phy: marvell: a3700: Use comphy_mux on Armada 37xx.</title>
<updated>2018-05-14T08:00:15Z</updated>
<author>
<name>Marek Behún</name>
<email>marek.behun@nic.cz</email>
</author>
<published>2018-04-24T15:21:23Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=22f418935be4f5c6de26d2563a61d68136d80586'/>
<id>urn:sha1:22f418935be4f5c6de26d2563a61d68136d80586</id>
<content type='text'>
Lane 0 supports SGMII1 and USB3.
Lane 1 supports SGMII0 and PEX0.
Lane 2 supports SATA0 and USB3.

This is needed for Armada 37xx.

This introduces new device tree bindings. AFAIK there is currently no
driver for Armada 37xx comphy in Linux. When such a driver will be
pushed into Linux, this will need to be rewritten accordingly.

Signed-off-by: Marek Behun &lt;marek.behun@nic.cz&gt;
Signed-off-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
<entry>
<title>phy: marvell: a3700: Fix SGMII cfg and stat register addresses</title>
<updated>2018-05-14T08:00:15Z</updated>
<author>
<name>Marek Behún</name>
<email>marek.behun@nic.cz</email>
</author>
<published>2018-04-24T15:21:22Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=3282a3e75fbea752f96df63baaad4c7f7d14d3b6'/>
<id>urn:sha1:3282a3e75fbea752f96df63baaad4c7f7d14d3b6</id>
<content type='text'>
The register addresses on lanes 0 and 1 are switched, first comes 1 and
then 0.

Signed-off-by: Marek Behun &lt;marek.behun@nic.cz&gt;
Signed-off-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
<entry>
<title>phy: marvell: mux: Support nontrivial node order in selector register</title>
<updated>2018-05-14T08:00:15Z</updated>
<author>
<name>Marek Behún</name>
<email>marek.behun@nic.cz</email>
</author>
<published>2018-04-24T15:21:21Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=7586ac2b49dd3046868354201ab6a208c3a5b82c'/>
<id>urn:sha1:7586ac2b49dd3046868354201ab6a208c3a5b82c</id>
<content type='text'>
Currently comphy_mux supports only trivial order of nodes in pin
selector register, that is lane N on position N*bitcount.

Add support for nontrivial order, with map stored in device tree
property mux-lane-order.

This is needed for Armada 37xx.

As far as I know, there is no driver for Armada 37xx comphy in the
kernel. When such a driver comes, this will need to be rewritten to
support the device tree bindings from the kernel.

Signed-off-by: Marek Behun &lt;marek.behun@nic.cz&gt;
Signed-off-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
<entry>
<title>phy: marvell: a3700: revise the USB3 comphy setting during power on</title>
<updated>2018-05-14T08:00:15Z</updated>
<author>
<name>zachary</name>
<email>zhangzg@marvell.com</email>
</author>
<published>2018-04-24T15:21:20Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=7d7f22fbd30ec925b278275bd8b950837d6d3c7e'/>
<id>urn:sha1:7d7f22fbd30ec925b278275bd8b950837d6d3c7e</id>
<content type='text'>
This commit is based on commit d9899826 by
  zachary &lt;zhangzg@marvell.com&gt;
from u-boot-marvell, see
github.com/MarvellEmbeddedProcessors/u-boot-marvell/commit/d9899826

- According to design specification, the transmitter should be set to high
  impedence mode during electrical idle. Thus transmitter should detect RX
  at high impedence mode also, and delay is needed to accommodate high
  impedence off latency. Otherwise the USB3 will have detection issue that
  most of the time the USB3 device can not be detected at all, or be
  detected as USB2 device sometimes.
  Modified registers: RD005C302h (R181h) (0051h) Lane Configuration 1
  Bit 6: set to 1 to let Tx detect Rx at HiZ mode
  Bit [3:4]: set to 2 to be delayed by 2 clock cycles
  Bit 0: set to 1 to set transmitter to high impedance mode during idle.
- USB3 De-emphasize level of -3.5dB is mandatory, but USB3 MAC selects 0x2
  (emphasize disabled) in the MAC_PHY_TXDEEMPH [1:0], while it is supposed
  to select 0x1(3.5dB emphasize). Thus need to override what comes from
  the MAC(by setting register 0x1c2 bit2 to 0x1) and to configure the
  overridded values of MAC_PHY_TXDEEMPH [1:0] to 0x1(bit15 of register
  0x181 and bit0 of register 0x180).
- According to USB3 application note, need to update below comphy
  registers:
  Set max speed generation to USB3.0 5Gbps(set RD005C04Ah bit[11:10] to 1)
  Set capacitor value to 0xF(set RF005C224 bit[3:0] to 0xF)

Signed-off-by: Marek Behun &lt;marek.behun@nic.cz&gt;
Signed-off-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
<entry>
<title>phy: marvell: a3700: Set USB3 RX wait depending on ref clock</title>
<updated>2018-05-14T08:00:15Z</updated>
<author>
<name>Marek Behún</name>
<email>marek.behun@nic.cz</email>
</author>
<published>2018-04-24T15:21:19Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=de49bd0e73f7d4e764f3c6b67a536de5d4e8841b'/>
<id>urn:sha1:de49bd0e73f7d4e764f3c6b67a536de5d4e8841b</id>
<content type='text'>
According to specification, CFG_PM_RXDLOZ_WAIT should be set to 0x7
when reference clock is at 25 MHz. The specification (at least the
version I have) does not mentoin the setting for 40 MHz reference
clock, but Marvell's U-Boot sets 0xC in that case.

Signed-off-by: Marek Behun &lt;marek.behun@nic.cz&gt;
Reviewed-by: Stefan Roese &lt;sr@denx.de&gt;
Signed-off-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
<entry>
<title>phy: marvell: a3700: Access USB3 register indirectly on lane 2</title>
<updated>2018-05-14T08:00:15Z</updated>
<author>
<name>Marek Behún</name>
<email>marek.behun@nic.cz</email>
</author>
<published>2018-04-24T15:21:18Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=86093582618baee4611a53764d25858ada322102'/>
<id>urn:sha1:86093582618baee4611a53764d25858ada322102</id>
<content type='text'>
When USB3 is on comphy lane 2 on the Armada 37xx, the registers
have to be accessed indirectly via SATA indirect access.

This is the case of the Turris Mox board from CZ.NIC.

Signed-off-by: Marek Behun &lt;marek.behun@nic.cz&gt;
Signed-off-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
<entry>
<title>phy: marvell: a3700: Use reg_set_indirect istead of 2 reg_sets</title>
<updated>2018-05-14T08:00:15Z</updated>
<author>
<name>Marek Behún</name>
<email>marek.behun@nic.cz</email>
</author>
<published>2018-04-24T15:21:17Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=a2745c88032e27b16d0f78748175365601dd5107'/>
<id>urn:sha1:a2745c88032e27b16d0f78748175365601dd5107</id>
<content type='text'>
Create a special function for indirect register setting,
reg_set_indirect, and use it instead of the two calls to reg_set.

Signed-off-by: Marek Behun &lt;marek.behun@nic.cz&gt;
Reviewed-by: Stefan Roese &lt;sr@denx.de&gt;
Signed-off-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
</feed>
