All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vivek Gautam <gautam.vivek@samsung.com>
To: linux-usb@vger.kernel.org, linux-samsung-soc@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
	linux-doc@vger.kernel.org, kishon@ti.com
Cc: gregkh@linuxfoundation.org, balbi@ti.com, kgene.kim@samsung.com,
	t.figa@samsung.com, k.debski@samsung.com, jg1.han@samsung.com,
	sylvester.nawrocki@gmail.com, gautam.vivek@samsung.com
Subject: [PATCH V4 0/5] Add Exynos5 USB 3.0 phy driver based on generic PHY framework
Date: Tue,  8 Apr 2014 20:06:38 +0530	[thread overview]
Message-ID: <1396967803-28868-1-git-send-email-gautam.vivek@samsung.com> (raw)

Based on 'next' branch of Kishon's phy tree (linux-phy).
Tested on 'usb-next' of Greg's usb tree.

Changes from V3:
1) Separated out the phy init sequences for utmi and pipe3 phys.
2) Changed the nomenclature across the phy to 'usbdrd-phy' to
   indicate USB 3.0 DRD PHY controller; and thereby changed the names                
   of functions correspondingly, including specific functions for
   utmi and pipe3 phys.                                                              
3) Modified the DT nodes for the updated nomenclature.
4) Using BIT macro for single bit definitions.                                       
5) Keeping track of reference clock after getting till the removal of                
   phy, and getting the ref clock using devm_clk_get() api.
6) Removed aliases for mutiple channel PHYs, and instead using
   'samsung,pmu-offset' property for PHY power control register offset.
7) Keeping the phy_init() and phy_power_on() separately in order to
   align with phy handling in the consumer (DWC3).

Changes from v2:
1) Added support for multiple PHYs (UTMI+ and PIPE3) and                   
   related changes in the driver structuring.
2) Added a xlate function to get the required phy out of
   number of PHYs in mutiple PHY scenerio.
3) Changed the names of few structures and variables to                
   have a clearer meaning. 
4) Added 'usb3phy_config' structure to take care of mutiple
   phys for a SoC having 'exynos5_usb3phy_drv_data' driver data.      
5) Not deleting support for old driver 'phy-samsung-usb3' until
   required support for generic phy is added to DWC3.  
 
Changes from RFC patch-set:
1) fixes in documentation file
 - added provision for syscon interface for using PMU register.
 - added clock names and description
 - modified description style for 'compatible property'                    
 - made usb30_sclk as additional clock rather then making it optional, since
   it is actually an additional clock for Exynos5420 Soc.
2) fixes in phy-exynos5-usb3 driver file
 - removed unnecessary #ifndef around KHZ and MHZ definitions            
 - removed 'samsung_cpu_type', 'usb3phy_state' enums; and merged necessary
   necessary from 'usb3phy_instance' structure to 'usb3phy_driver'.
 - changed name 'sclk_usbphy30' to 'usb30_sclk_100m' since this is the name
   indicated as input to the PHY block; and also added (!IS_ERR()) check for
   using usb30_sclk.
 - removed unnecessary 'state' check code.
 - moved 'of_device_id' structure definitions before 'probe()' to avoid
   unnecessary declaration.
 - added (pdev->dev.of_node == NULL) check at the starting of probe()
 - moved 'devm_of_phy_provider_register()' call to end of the probe().
 - removed 'label' for usb3drd phy.
 - corrected macros definition 'PHYCLKRST_MPLL_MULTIPLIER_50M_REF' from
   0x02 to 0x32 after confirming same from PHY's data sheet.
 - replaced pmu register handling, used for power-isolation, with syscon
   interface api's.
 - added '.init' and '.exit' callbacks and using them for one time
   PHY-initialization and deinitialization.
 - Filtering out the PHY 'power-on' and 'power-off' sequence to '.power_on"
   and ".power_off" callbacks.
 - Removed drivers/usb/phy/phy-samsung-usb3.c driver and related code.
3) fixes in dt files
 - added reference for 'samsung,syscon-phandle' to used for PMU register.
 - removed second register field which was earlier used for PMU.

Vivek Gautam (5):
  phy: Add new Exynos5 USB 3.0 PHY driver
  dt: exynos5420: Enable support for USB 3.0 PHY controller
  dt: exynos5420: Enable support for DWC3 controller
  dt: exynos5250: Enable support for generic USB DRD phy
  usb-phy: samsung-usb3: Remove older phy-samsung-usb3 driver

 .../devicetree/bindings/phy/samsung-phy.txt        |   42 ++
 arch/arm/boot/dts/exynos5250.dtsi                  |   21 +-
 arch/arm/boot/dts/exynos5420.dtsi                  |   54 ++
 drivers/phy/Kconfig                                |   11 +
 drivers/phy/Makefile                               |    1 +
 drivers/phy/phy-exynos5-usbdrd.c                   |  668 ++++++++++++++++++++
 drivers/usb/phy/phy-samsung-usb.h                  |   83 ---
 drivers/usb/phy/phy-samsung-usb3.c                 |  350 ----------
 8 files changed, 785 insertions(+), 445 deletions(-)
 create mode 100644 drivers/phy/phy-exynos5-usbdrd.c
 delete mode 100644 drivers/usb/phy/phy-samsung-usb3.c

-- 
1.7.10.4


WARNING: multiple messages have this Message-ID (diff)
From: gautam.vivek@samsung.com (Vivek Gautam)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH V4 0/5] Add Exynos5 USB 3.0 phy driver based on generic PHY framework
Date: Tue,  8 Apr 2014 20:06:38 +0530	[thread overview]
Message-ID: <1396967803-28868-1-git-send-email-gautam.vivek@samsung.com> (raw)

Based on 'next' branch of Kishon's phy tree (linux-phy).
Tested on 'usb-next' of Greg's usb tree.

Changes from V3:
1) Separated out the phy init sequences for utmi and pipe3 phys.
2) Changed the nomenclature across the phy to 'usbdrd-phy' to
   indicate USB 3.0 DRD PHY controller; and thereby changed the names                
   of functions correspondingly, including specific functions for
   utmi and pipe3 phys.                                                              
3) Modified the DT nodes for the updated nomenclature.
4) Using BIT macro for single bit definitions.                                       
5) Keeping track of reference clock after getting till the removal of                
   phy, and getting the ref clock using devm_clk_get() api.
6) Removed aliases for mutiple channel PHYs, and instead using
   'samsung,pmu-offset' property for PHY power control register offset.
7) Keeping the phy_init() and phy_power_on() separately in order to
   align with phy handling in the consumer (DWC3).

Changes from v2:
1) Added support for multiple PHYs (UTMI+ and PIPE3) and                   
   related changes in the driver structuring.
2) Added a xlate function to get the required phy out of
   number of PHYs in mutiple PHY scenerio.
3) Changed the names of few structures and variables to                
   have a clearer meaning. 
4) Added 'usb3phy_config' structure to take care of mutiple
   phys for a SoC having 'exynos5_usb3phy_drv_data' driver data.      
5) Not deleting support for old driver 'phy-samsung-usb3' until
   required support for generic phy is added to DWC3.  
 
Changes from RFC patch-set:
1) fixes in documentation file
 - added provision for syscon interface for using PMU register.
 - added clock names and description
 - modified description style for 'compatible property'                    
 - made usb30_sclk as additional clock rather then making it optional, since
   it is actually an additional clock for Exynos5420 Soc.
2) fixes in phy-exynos5-usb3 driver file
 - removed unnecessary #ifndef around KHZ and MHZ definitions            
 - removed 'samsung_cpu_type', 'usb3phy_state' enums; and merged necessary
   necessary from 'usb3phy_instance' structure to 'usb3phy_driver'.
 - changed name 'sclk_usbphy30' to 'usb30_sclk_100m' since this is the name
   indicated as input to the PHY block; and also added (!IS_ERR()) check for
   using usb30_sclk.
 - removed unnecessary 'state' check code.
 - moved 'of_device_id' structure definitions before 'probe()' to avoid
   unnecessary declaration.
 - added (pdev->dev.of_node == NULL) check at the starting of probe()
 - moved 'devm_of_phy_provider_register()' call to end of the probe().
 - removed 'label' for usb3drd phy.
 - corrected macros definition 'PHYCLKRST_MPLL_MULTIPLIER_50M_REF' from
   0x02 to 0x32 after confirming same from PHY's data sheet.
 - replaced pmu register handling, used for power-isolation, with syscon
   interface api's.
 - added '.init' and '.exit' callbacks and using them for one time
   PHY-initialization and deinitialization.
 - Filtering out the PHY 'power-on' and 'power-off' sequence to '.power_on"
   and ".power_off" callbacks.
 - Removed drivers/usb/phy/phy-samsung-usb3.c driver and related code.
3) fixes in dt files
 - added reference for 'samsung,syscon-phandle' to used for PMU register.
 - removed second register field which was earlier used for PMU.

Vivek Gautam (5):
  phy: Add new Exynos5 USB 3.0 PHY driver
  dt: exynos5420: Enable support for USB 3.0 PHY controller
  dt: exynos5420: Enable support for DWC3 controller
  dt: exynos5250: Enable support for generic USB DRD phy
  usb-phy: samsung-usb3: Remove older phy-samsung-usb3 driver

 .../devicetree/bindings/phy/samsung-phy.txt        |   42 ++
 arch/arm/boot/dts/exynos5250.dtsi                  |   21 +-
 arch/arm/boot/dts/exynos5420.dtsi                  |   54 ++
 drivers/phy/Kconfig                                |   11 +
 drivers/phy/Makefile                               |    1 +
 drivers/phy/phy-exynos5-usbdrd.c                   |  668 ++++++++++++++++++++
 drivers/usb/phy/phy-samsung-usb.h                  |   83 ---
 drivers/usb/phy/phy-samsung-usb3.c                 |  350 ----------
 8 files changed, 785 insertions(+), 445 deletions(-)
 create mode 100644 drivers/phy/phy-exynos5-usbdrd.c
 delete mode 100644 drivers/usb/phy/phy-samsung-usb3.c

-- 
1.7.10.4

             reply	other threads:[~2014-04-08 14:37 UTC|newest]

Thread overview: 119+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-08 14:36 Vivek Gautam [this message]
2014-04-08 14:36 ` [PATCH V4 0/5] Add Exynos5 USB 3.0 phy driver based on generic PHY framework Vivek Gautam
2014-04-08 14:36 ` [PATCH V4 1/5] phy: Add new Exynos5 USB 3.0 PHY driver Vivek Gautam
2014-04-08 14:36   ` Vivek Gautam
2014-04-08 14:36   ` Vivek Gautam
2014-04-09 11:06   ` Tomasz Figa
2014-04-09 11:06     ` Tomasz Figa
2014-04-09 11:06     ` Tomasz Figa
2014-04-09 11:49     ` Vivek Gautam
2014-04-09 11:49       ` Vivek Gautam
2014-04-09 11:49       ` Vivek Gautam
2014-04-09 13:33       ` Tomasz Figa
2014-04-09 13:33         ` Tomasz Figa
2014-04-09 13:33         ` Tomasz Figa
2014-04-10 11:39         ` Vivek Gautam
2014-04-10 11:39           ` Vivek Gautam
2014-04-10 11:39           ` Vivek Gautam
2014-04-15  6:09           ` Vivek Gautam
2014-04-15  6:09             ` Vivek Gautam
2014-04-15  6:09             ` Vivek Gautam
2014-04-16 13:44             ` Tomasz Figa
2014-04-16 13:44               ` Tomasz Figa
2014-04-16 13:44               ` Tomasz Figa
2014-04-16 14:49               ` Vivek Gautam
2014-04-16 14:49                 ` Vivek Gautam
2014-04-16 14:49                 ` Vivek Gautam
2014-04-22  2:18                 ` Jingoo Han
2014-04-22  2:18                   ` Jingoo Han
2014-04-22  3:35                   ` Vivek Gautam
2014-04-22  3:35                     ` Vivek Gautam
2014-04-22  3:35                     ` Vivek Gautam
2014-04-14 11:54     ` Kishon Vijay Abraham I
2014-04-14 11:54       ` Kishon Vijay Abraham I
2014-04-14 11:54       ` Kishon Vijay Abraham I
2014-04-14 12:05       ` Vivek Gautam
2014-04-14 12:05         ` Vivek Gautam
2014-04-14 12:05         ` Vivek Gautam
2014-04-14 13:05         ` Kishon Vijay Abraham I
2014-04-14 13:05           ` Kishon Vijay Abraham I
2014-04-14 13:05           ` Kishon Vijay Abraham I
2014-04-14 13:44           ` Tomasz Figa
2014-04-14 13:44             ` Tomasz Figa
2014-04-14 13:44             ` Tomasz Figa
2014-04-14 13:49             ` Vivek Gautam
2014-04-14 13:49               ` Vivek Gautam
2014-04-14 13:49               ` Vivek Gautam
2014-04-14 14:21               ` Sylwester Nawrocki
2014-04-14 14:21                 ` Sylwester Nawrocki
2014-04-14 14:21                 ` Sylwester Nawrocki
2014-04-15  5:07                 ` Vivek Gautam
2014-04-15  5:07                   ` Vivek Gautam
2014-04-15  5:07                   ` Vivek Gautam
2014-04-14 12:27   ` Kishon Vijay Abraham I
2014-04-14 12:27     ` Kishon Vijay Abraham I
2014-04-14 12:27     ` Kishon Vijay Abraham I
2014-04-14 12:42     ` Vivek Gautam
2014-04-14 12:42       ` Vivek Gautam
2014-04-14 12:42       ` Vivek Gautam
2014-04-14 12:59       ` Kishon Vijay Abraham I
2014-04-14 12:59         ` Kishon Vijay Abraham I
2014-04-14 12:59         ` Kishon Vijay Abraham I
2014-04-14 13:20         ` Vivek Gautam
2014-04-14 13:20           ` Vivek Gautam
2014-04-14 13:20           ` Vivek Gautam
2014-04-14 13:26           ` Kishon Vijay Abraham I
2014-04-14 13:26             ` Kishon Vijay Abraham I
2014-04-14 13:26             ` Kishon Vijay Abraham I
2014-04-14 13:40             ` Vivek Gautam
2014-04-14 13:40               ` Vivek Gautam
2014-04-14 13:40               ` Vivek Gautam
2014-04-14 13:46               ` Vivek Gautam
2014-04-14 13:46                 ` Vivek Gautam
2014-04-14 13:46                 ` Vivek Gautam
2014-04-14 13:49               ` Tomasz Figa
2014-04-14 13:49                 ` Tomasz Figa
2014-04-14 13:49                 ` Tomasz Figa
2014-04-15 13:59                 ` Kishon Vijay Abraham I
2014-04-15 13:59                   ` Kishon Vijay Abraham I
2014-04-15 13:59                   ` Kishon Vijay Abraham I
2014-04-14 14:37   ` Sylwester Nawrocki
2014-04-14 14:37     ` Sylwester Nawrocki
2014-04-15  5:09     ` Vivek Gautam
2014-04-15  5:09       ` Vivek Gautam
2014-04-15  5:09       ` Vivek Gautam
2014-04-25  7:57     ` Tushar Behera
2014-04-25  7:57       ` Tushar Behera
2014-04-25  7:57       ` Tushar Behera
2014-04-25  8:08       ` Vivek Gautam
2014-04-25  8:08         ` Vivek Gautam
2014-04-25  8:08         ` Vivek Gautam
2014-04-08 14:36 ` [PATCH v4 2/5] dt: exynos5420: Enable support for USB 3.0 PHY controller Vivek Gautam
2014-04-08 14:36   ` Vivek Gautam
2014-04-08 14:36   ` Vivek Gautam
2014-04-09 11:10   ` Tomasz Figa
2014-04-09 11:10     ` Tomasz Figa
2014-04-09 11:10     ` Tomasz Figa
2014-04-08 14:36 ` [PATCH V4 3/5] dt: exynos5420: Enable support for DWC3 controller Vivek Gautam
2014-04-08 14:36   ` Vivek Gautam
2014-04-08 14:36   ` Vivek Gautam
2014-04-09 11:11   ` Tomasz Figa
2014-04-09 11:11     ` Tomasz Figa
2014-04-08 14:36 ` [PATCH V4 4/5] dt: exynos5250: Enable support for generic USB DRD phy Vivek Gautam
2014-04-08 14:36   ` Vivek Gautam
2014-04-09 11:11   ` Tomasz Figa
2014-04-09 11:11     ` Tomasz Figa
2014-04-09 11:11     ` Tomasz Figa
2014-04-08 14:36 ` [PATCH V4 5/5] usb-phy: samsung-usb3: Remove older phy-samsung-usb3 driver Vivek Gautam
2014-04-08 14:36   ` Vivek Gautam
2014-04-09 11:13   ` Tomasz Figa
2014-04-09 11:13     ` Tomasz Figa
2014-04-09 11:34     ` Vivek Gautam
2014-04-09 11:34       ` Vivek Gautam
2014-04-09 11:34       ` Vivek Gautam
2014-04-16 13:33       ` Richard Genoud
2014-04-16 13:33         ` Richard Genoud
2014-04-16 13:33         ` Richard Genoud
2014-04-16 14:42         ` Vivek Gautam
2014-04-16 14:42           ` Vivek Gautam
2014-04-16 14:42           ` Vivek Gautam

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1396967803-28868-1-git-send-email-gautam.vivek@samsung.com \
    --to=gautam.vivek@samsung.com \
    --cc=balbi@ti.com \
    --cc=devicetree@vger.kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=jg1.han@samsung.com \
    --cc=k.debski@samsung.com \
    --cc=kgene.kim@samsung.com \
    --cc=kishon@ti.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=sylvester.nawrocki@gmail.com \
    --cc=t.figa@samsung.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.