17 Jan, 2020

1 commit

  • In case of error, the function devm_ioremap() returns NULL pointer not
    ERR_PTR(). The IS_ERR() test in the return value check should be
    replaced with NULL test.

    Fixes: 091876cc355d ("phy: ti: j721e-wiz: Add support for WIZ module present in TI J721E SoC")
    Signed-off-by: Wei Yongjun
    Signed-off-by: Kishon Vijay Abraham I

    Wei Yongjun
     

14 Jan, 2020

13 commits

  • The Allwinner A80 SoCs have a USB PHY controller that is used by Linux,
    with a matching Device Tree binding.

    Now that we have the DT validation in place, let's convert the device tree
    bindings for that controller over to a YAML schemas.

    Reviewed-by: Chen-Yu Tsai
    Signed-off-by: Maxime Ripard
    Reviewed-by: Rob Herring
    Signed-off-by: Kishon Vijay Abraham I

    Maxime Ripard
     
  • commit 95f1061f715e ("phy: intel-lgm-emmc: Add support for eMMC PHY")
    introduces the below warning

    WARNING: modpost: missing MODULE_LICENSE() in
    drivers/phy/intel/phy-intel-emmc.o

    Fix it by adding missing MODULE_LICENSE.

    Signed-off-by: Ramuthevar Vadivel Murugan
    Reported-by: Stephen Rothwell
    Signed-off-by: Kishon Vijay Abraham I

    Ramuthevar Vadivel Murugan
     
  • Based on this GPIO state we need to configure LN10
    bit to swap lane0 and lane1 if required (flipped connector).

    Type-C companions typically need some time after the cable is
    plugged before and before they reflect the correct status of
    Type-C plug orientation on the DIR line.

    Type-C Spec specifies CC attachment debounce time (tCCDebounce)
    of 100 ms (min) to 200 ms (max).

    Use the DT property to figure out if we need to add delay
    or not before sampling the Type-C DIR line.

    Signed-off-by: Roger Quadros
    Signed-off-by: Sekhar Nori
    Reviewed-by: Jyri Sarha
    Signed-off-by: Kishon Vijay Abraham I

    Roger Quadros
     
  • This is an optional GPIO, if specified will be used to
    swap lane 0 and lane 1 based on GPIO status. This is required
    to achieve plug flip support for USB Type-C.

    Type-C companions typically need some time after the cable is
    plugged before and before they reflect the correct status of
    Type-C plug orientation on the DIR line.

    Type-C Spec specifies CC attachment debounce time (tCCDebounce)
    of 100 ms (min) to 200 ms (max).

    Allow the DT node to specify the time (in ms) that we need
    to wait before sampling the DIR line.

    Signed-off-by: Roger Quadros
    Cc: Rob Herring
    Reviewed-by: Rob Herring
    Signed-off-by: Kishon Vijay Abraham I

    Roger Quadros
     
  • Some platforms e.g. J721e need lane swap register
    to be programmed before reset is deasserted.
    This patch ensures that we propagate the phy_reset
    back to the reset controller driver.

    Signed-off-by: Roger Quadros
    Signed-off-by: Sekhar Nori
    Reviewed-by: Jyri Sarha
    Signed-off-by: Kishon Vijay Abraham I

    Roger Quadros
     
  • The pointer regmap is being initialized with a value that is never
    read and it is being updated later with a new value from
    phy->regmap_common_cdb. The initialization is redundant and can be
    removed.

    Addresses-Coverity: ("Unused value")
    Signed-off-by: Colin Ian King
    Signed-off-by: Kishon Vijay Abraham I

    Colin Ian King
     
  • Allow DisplayPort PHYs to be configured through the generic
    functions through a custom structure added to the generic union.
    The configuration structure is used for reconfiguration of
    DisplayPort PHYs during link training operation.

    The parameters added here are the ones defined in the DisplayPort
    spec v1.4 which include link rate, number of lanes, voltage swing
    and pre-emphasis.

    Add the DisplayPort phy mode to the generic phy_mode enum.

    Signed-off-by: Yuti Amonkar
    Reviewed-by: Maxime Ripard
    Reviewed-by: Jyri Sarha
    Signed-off-by: Kishon Vijay Abraham I

    Yuti Amonkar
     
  • Some of the phy drivers can be compile tested to increase build
    coverage.

    Signed-off-by: Krzysztof Kozlowski
    Acked-by: Florian Fainelli
    Signed-off-by: Kishon Vijay Abraham I

    Krzysztof Kozlowski
     
  • Adjust indentation from spaces to tab (+optional two spaces) as in
    coding style.

    Signed-off-by: Krzysztof Kozlowski
    Reviewed-by: Stanley Chu
    Acked-by: Florian Fainelli
    Signed-off-by: Kishon Vijay Abraham I

    Krzysztof Kozlowski
     
  • Add support for eMMC PHY on Intel's Lightning Mountain SoC.

    Signed-off-by: Ramuthevar Vadivel Murugan
    Reviewed-by: Andy Shevchenko
    Signed-off-by: Kishon Vijay Abraham I

    Ramuthevar Vadivel Murugan
     
  • Add a YAML schema to use the host controller driver with the
    eMMC PHY on Intel's Lightning Mountain SoC.

    Signed-off-by: Ramuthevar Vadivel Murugan
    Reviewed-by: Rob Herring
    Signed-off-by: Kishon Vijay Abraham I

    Ramuthevar Vadivel Murugan
     
  • Add support for WIZ module present in TI's J721E SoC. WIZ is a SERDES
    wrapper used to configure some of the input signals to the SERDES. It is
    used with both Sierra(16G) and Torrent(10G) SERDES. This driver configures
    three clock selects (pll0, pll1, dig), two divider clocks and supports
    resets for each of the lanes.

    [jsarha@ti.com: Add support for Torrent(10G) SERDES wrapper]
    Signed-off-by: Jyri Sarha
    Signed-off-by: Kishon Vijay Abraham I

    Kishon Vijay Abraham I
     
  • Add DT binding documentation for WIZ (SERDES wrapper). WIZ is *NOT* a
    PHY but a wrapper used to configure some of the input signals to the
    SERDES. It is used with both Sierra(16G) and Torrent(10G) serdes.

    Signed-off-by: Kishon Vijay Abraham I
    [jsarha@ti.com: Add separate compatible for Sierra(16G) and Torrent(10G)
    SERDES]
    Signed-off-by: Jyri Sarha
    Reviewed-by: Rob Herring

    Kishon Vijay Abraham I
     

08 Jan, 2020

26 commits