1. 16 Mar, 2018 12 commits
  2. 12 Mar, 2018 1 commit
    • Chen-Yu Tsai's avatar
      phy: allwinner: sun4i-usb: poll vbus changes on A23/A33 when driving VBUS · d7119224
      Chen-Yu Tsai authored
      The AXP223 PMIC, like the AXP221, does not generate VBUS change
      interrupts when N_VBUSEN is used to drive VBUS for the OTG port
      on the board.
      
      This was not noticed until recently, as most A23/A33 boards use
      a GPIO pin that does not support interrupts for OTG ID detection.
      This forces the driver to use polling. However the A33-OlinuXino
      uses a pin that does support interrupts, so the driver uses them.
      However the VBUS interrupt never fires, and the driver never gets
      to update the VBUS status. This results in musb timing out waiting
      for VBUS to rise.
      
      This was worked around for the AXP221 by resorting to polling
      changes in commit 91d96f06 ("phy-sun4i-usb: Add workaround for
      missing Vbus det interrupts on A31"). This patch adds the A23 and
      A33 to the list of SoCs that need the workaround.
      
      Fixes: fc1f45ed ("phy-sun4i-usb: Add support for the usb-phys on the
      		      sun8i-a33 SoC")
      Fixes: 123dfdbc ("phy-sun4i-usb: Add support for the usb-phys on the
      		      sun8i-a23 SoC")
      Cc: <stable@vger.kernel.org> # 4.3.x: 68dbc2ce phy-sun4i-usb:
      		Use of_match_node to get model specific config data
      Cc: <stable@vger.kernel.org> # 4.3.x: 5cf700ac phy: phy-sun4i-usb:
      		Fix optional gpios failing probe
      Cc: <stable@vger.kernel.org> # 4.3.x: 04e59a02 phy-sun4i-usb:
      		Fix irq free conditions to match request conditions
      Cc: <stable@vger.kernel.org> # 4.3.x: 91d96f06 phy-sun4i-usb:
      		Add workaround for missing Vbus det interrupts on A31
      Cc: <stable@vger.kernel.org> # 4.3.x
      Signed-off-by: default avatarChen-Yu Tsai <wens@csie.org>
      Acked-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
      Signed-off-by: default avatarKishon Vijay Abraham I <kishon@ti.com>
      Signed-off-by: default avatarKishon Vijay Abraham I <kishon@ti.com>
      d7119224
  3. 08 Mar, 2018 26 commits
  4. 21 Feb, 2018 1 commit
    • Jianguo Sun's avatar
      phy: add combo phy driver for HiSilicon STB SoCs · d0bffd17
      Jianguo Sun authored
      Add combo phy driver for HiSilicon STB SoCs. This phy can be
      used as pcie-phy, sata-phy or usb-phy.
      
      Changes for v5:
       - Add bindings doc for Hi3798CV200 peripheral controller, and refer to
         the bindings of this parent node in combphy bindings doc.
      
      Changes for v4:
       - Instead of relying on device id, add a new property
         hisilicon,fixed-mode for combphy device that doesn't support mode
         select but a fixed phy mode.
       - Move combphy mode select register bits definition to device tree, as
         it may vary from one device to another.
      
      Changes for v3:
       - Make combphy device be child of peripheral controller and use 'reg'
         property for mapping combphy configuration registers.
       - Kill "hisilicon,peripheral-syscon" property, since parent node is
         just the syscon controller now.
       - Check combphy id to handle the quirk that combphy0 can not configure
         mode but always works in USB3 mode.
       - Unify phy .init and .exit hooks for different combphy instances and
         work modes, as the only quirk we need to handle is that combphy0 can
         only work in USB3 mode.
       - Better naming for clock and reset, 'ref' to 'ref_clk', 'por' to
         'por_rst'.
      
      Changes for v2:
       - Move DT bindings into a separate patch.
       - Drop the spurious newline from drivers/phy/Makefile.
       - Use the phy type defines in dt-bindings/phy/phy.h.
       - Use PTR_ERR_OR_ZERO() for checking return from
         devm_of_phy_provider_register().
       - Add USB3 phy support.
      Signed-off-by: default avatarJianguo Sun <sunjianguo1@huawei.com>
      Signed-off-by: default avatarShawn Guo <shawn.guo@linaro.org>
      Signed-off-by: default avatarKishon Vijay Abraham I <kishon@ti.com>
      d0bffd17