Skip to contentSkip to conversation

ARM: tegra: Add XUSB controller support

GIT PULL Applied Thierry Reding 2 participants 10 messages Apr 29, 2016 – May 9, 2016 Tegra architecture support

lore
Share & tools
lore
#0 lore raw

Hi everyone,

This is a fairly complicated series of pull requests because of the dependencies involved. The goal is to take all of the patches through the ARM-SoC tree but I'm sending out these individual pull requests to document this. Also, if these branches were starting to cause conflicts they can be pulled into their respective subsystem trees for resolution.

Technically it would be enough to pull request 4/4 because it depends on all the others and will pull them in implicitly.

Thanks,
Thierry

#1 lore raw

[GIT PULL 1/4]: phy: tegra: Changes for v4.7-rc1

The following changes since commit 3358d2d9f47af86bdd71edb24b361f72a54ec04e:

clk: tegra: Add interface to enable hardware control of SATA/XUSB PLLs (2016-04-28 12:41:44 +0200)

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux.git tags/tegra-for-4.7-phy

for you to fetch changes up to 87d66f280672800c9c2ad1ce3b7a993ce1e04769:

phy: tegra: Add Tegra210 support (2016-04-29 16:44:48 +0200)

This depends on the first patch of a separate branch that will be merged through the clk tree.

Thierry

----------------------------------------------------------------
phy: tegra: Changes for v4.7-rc1

This set of patches adds support for the Tegra XUSB pad controller. The controller provides a set of pads (lanes) that are used for I/O by other IP blocks within Tegra SoCs (PCIe, SATA and XUSB).

----------------------------------------------------------------
Thierry Reding (6):
Merge branch 'for-4.7/clk' into for-4.7/phy
phy: core: Allow children node to be overridden
dt-bindings: phy: Add NVIDIA Tegra XUSB pad controller binding
dt-bindings: phy: tegra-xusb-padctl: Add Tegra210 support
phy: Add Tegra XUSB pad controller support
phy: tegra: Add Tegra210 support

 .../bindings/phy/nvidia,tegra124-xusb-padctl.txt   |  733 +++++++
 .../pinctrl/nvidia,tegra124-xusb-padctl.txt        |    6 +
 Documentation/phy.txt                              |   16 +-
 drivers/phy/Kconfig                                |    2 +
 drivers/phy/Makefile                               |    2 +
 drivers/phy/phy-core.c                             |   50 +-
 drivers/phy/tegra/Kconfig                          |    8 +
 drivers/phy/tegra/Makefile                         |    6 +
 drivers/phy/tegra/xusb-tegra124.c                  | 1752 +++++++++++++++++
 drivers/phy/tegra/xusb-tegra210.c                  | 2045 ++++++++++++++++++++
 drivers/phy/tegra/xusb.c                           | 1021 ++++++++++
 drivers/phy/tegra/xusb.h                           |  421 ++++
 drivers/pinctrl/tegra/pinctrl-tegra-xusb.c         |   20 +-
 include/linux/phy/phy.h                            |   31 +-
 include/linux/phy/tegra/xusb.h                     |   30 +
 include/soc/tegra/fuse.h                           |    1 +
 16 files changed, 6110 insertions(+), 34 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/phy/nvidia,tegra124-xusb-padctl.txt
 create mode 100644 drivers/phy/tegra/Kconfig
 create mode 100644 drivers/phy/tegra/Makefile
 create mode 100644 drivers/phy/tegra/xusb-tegra124.c
 create mode 100644 drivers/phy/tegra/xusb-tegra210.c
 create mode 100644 drivers/phy/tegra/xusb.c
 create mode 100644 drivers/phy/tegra/xusb.h
 create mode 100644 include/linux/phy/tegra/xusb.h
#2 lore raw

[GIT PULL 1/4]: phy: tegra: Changes for v4.7-rc1

Quoted 7 lines · On Friday 29 April 2016 17:52:26 Thierry Reding wrote:

phy: tegra: Changes for v4.7-rc1

This set of patches adds support for the Tegra XUSB pad controller. The controller provides a set of pads (lanes) that are used for I/O by other IP blocks within Tegra SoCs (PCIe, SATA and XUSB).

Pulled into next/drivers, thanks!

Arnd

#3 lore raw

[GIT PULL 2/4]: PCI: tegra: Changes for v4.7-rc1

In reply to Thierry Reding

The following changes since commit 87d66f280672800c9c2ad1ce3b7a993ce1e04769:

phy: tegra: Add Tegra210 support (2016-04-29 16:44:48 +0200)

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux.git tags/tegra-for-4.7-pci

for you to fetch changes up to 6fe7c187e026c8b610df9dda7d9befc70cbfd169:

PCI: tegra: Support per-lane PHYs (2016-04-29 16:47:54 +0200)

This depends on pull request 1/4 containing the PHY changes.

Thierry

----------------------------------------------------------------
PCI: tegra: Changes for v4.7-rc1

These patches update the Tegra PCIe host bridge controller device tree bindings and driver to cope with per-lane PHYs on Tegra124 and later.

----------------------------------------------------------------
Thierry Reding (3):
Merge branch 'for-4.7/phy' into for-4.7/pci
dt-bindings: pci: tegra: Update for per-lane PHYs
PCI: tegra: Support per-lane PHYs

 .../bindings/pci/nvidia,tegra20-pcie.txt           | 224 ++++++++++++++++++-
 drivers/pci/host/pci-tegra.c                       | 244 +++++++++++++++++++--
 2 files changed, 446 insertions(+), 22 deletions(-)
#4 lore raw

[GIT PULL 2/4]: PCI: tegra: Changes for v4.7-rc1

Quoted 4 lines · On Friday 29 April 2016 17:52:27 Thierry Reding wrote:

PCI: tegra: Changes for v4.7-rc1

These patches update the Tegra PCIe host bridge controller device tree

Merged into next/drivers, thanks!

Arnd

#5 lore raw

[GIT PULL 3/4]: usb: host: xhci-tegra: Changes for v4.7-rc1

In reply to Thierry Reding

The following changes since commit 87d66f280672800c9c2ad1ce3b7a993ce1e04769:

phy: tegra: Add Tegra210 support (2016-04-29 16:44:48 +0200)

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux.git tags/tegra-for-4.7-xhci

for you to fetch changes up to ab065e969640d9afd3967266eb3193fb3ac298bd:

usb: xhci: tegra: Add Tegra210 support (2016-04-29 16:48:59 +0200)

This depends on pull request 1/4 containing the PHY changes.

Thierry

----------------------------------------------------------------
usb: host: xhci-tegra: Changes for v4.7-rc1

This set of patches introduces a driver for the XUSB controller found on NVIDIA Tegra SoCs. When loaded with a firmware (available via the linux- firmware repository), it provides an XHCI-compatible interface.

----------------------------------------------------------------
Thierry Reding (5):
Merge branch 'for-4.7/phy' into for-4.7/xhci
dt-bindings: usb: Add NVIDIA Tegra XUSB controller binding
dt-bindings: usb: xhci-tegra: Add Tegra210 XUSB controller support
usb: xhci: Add NVIDIA Tegra XUSB controller driver
usb: xhci: tegra: Add Tegra210 support

 .../bindings/usb/nvidia,tegra124-xusb.txt          |  120 ++
 drivers/usb/host/Kconfig                           |    9 +
 drivers/usb/host/Makefile                          |    1 +
 drivers/usb/host/xhci-tegra.c                      | 1331 ++++++++++++++++++++
 4 files changed, 1461 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/usb/nvidia,tegra124-xusb.txt
 create mode 100644 drivers/usb/host/xhci-tegra.c
#6 lore raw

[GIT PULL 3/4]: usb: host: xhci-tegra: Changes for v4.7-rc1

Quoted 6 lines · On Friday 29 April 2016 17:52:28 Thierry Reding wrote:

usb: host: xhci-tegra: Changes for v4.7-rc1

This set of patches introduces a driver for the XUSB controller found on NVIDIA Tegra SoCs. When loaded with a firmware (available via the linux- firmware repository), it provides an XHCI-compatible interface.

Merged into next/drivers, thanks!

Arnd

#7 lore raw

[GIT PULL 4/4]: ARM: tegra: Enable the XUSB controller

In reply to Thierry Reding

The following changes since commit f55532a0c0b8bb6148f4e07853b876ef73bc69ca:

Linux 4.6-rc1 (2016-03-26 16:03:24 -0700)

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux.git tags/tegra-for-4.7-xusb

for you to fetch changes up to 7bdf9d2308192bf732798bff6af0781528ebb5f0:

ARM: multi_v7: Enable Tegra XUSB controller in defconfig (2016-04-29 16:49:57 +0200)

This depends on pull requests 1/4, 2/4 and 3/4. I've included the full shortlog and diffstat since v4.6-rc1 to make it more obvious what this will pull in exactly (and because I have no idea how to generate them since the union of all three dependencies).

Thierry

----------------------------------------------------------------
ARM: tegra: Enable the XUSB controller

These changes add support for the XUSB controller on Tegra124. It is an XHCI compatible controller that replaces the existing EHCI controllers. Support is enabled on Venice2, Jetson TK1 and Nyan-based Chromebooks.

----------------------------------------------------------------
Andrew Bresticker (1):
clk: tegra: Add interface to enable hardware control of SATA/XUSB PLLs

Thierry Reding (24):
Merge branch 'for-4.7/clk' into for-4.7/phy
phy: core: Allow children node to be overridden
dt-bindings: phy: Add NVIDIA Tegra XUSB pad controller binding
dt-bindings: phy: tegra-xusb-padctl: Add Tegra210 support
phy: Add Tegra XUSB pad controller support
phy: tegra: Add Tegra210 support
Merge branch 'for-4.7/phy' into for-4.7/pci
dt-bindings: pci: tegra: Update for per-lane PHYs
PCI: tegra: Support per-lane PHYs
Merge branch 'for-4.7/phy' into for-4.7/xhci
dt-bindings: usb: Add NVIDIA Tegra XUSB controller binding
dt-bindings: usb: xhci-tegra: Add Tegra210 XUSB controller support
usb: xhci: Add NVIDIA Tegra XUSB controller driver
usb: xhci: tegra: Add Tegra210 support
Merge branch 'for-4.7/phy' into for-4.7/xusb
Merge branch 'for-4.7/pci' into for-4.7/xusb
Merge branch 'for-4.7/xhci' into for-4.7/xusb
ARM: tegra: Move Tegra124 to the new XUSB pad controller binding
ARM: tegra: Add Tegra124 XUSB controller
ARM: tegra: Enable XUSB on Venice2
ARM: tegra: Enable XUSB on Jetson TK1
ARM: tegra: Enable XUSB on Nyan
ARM: tegra: Enable XUSB controller in defconfig
ARM: multi_v7: Enable Tegra XUSB controller in defconfig

 .../bindings/pci/nvidia,tegra20-pcie.txt           |  224 ++-
 .../bindings/phy/nvidia,tegra124-xusb-padctl.txt   |  733 +++++++
 .../pinctrl/nvidia,tegra124-xusb-padctl.txt        |    6 +
 .../bindings/usb/nvidia,tegra124-xusb.txt          |  120 ++
 Documentation/phy.txt                              |   16 +-
 arch/arm/boot/dts/tegra124-jetson-tk1.dts          |  116 +-
 arch/arm/boot/dts/tegra124-nyan.dtsi               |  122 +-
 arch/arm/boot/dts/tegra124-venice2.dts             |  101 +-
 arch/arm/boot/dts/tegra124.dtsi                    |  167 +-
 arch/arm/configs/multi_v7_defconfig                |    2 +
 arch/arm/configs/tegra_defconfig                   |    2 +
 drivers/clk/tegra/clk-tegra210.c                   |   58 +
 drivers/pci/host/pci-tegra.c                       |  244 ++-
 drivers/phy/Kconfig                                |    2 +
 drivers/phy/Makefile                               |    2 +
 drivers/phy/phy-core.c                             |   50 +-
 drivers/phy/tegra/Kconfig                          |    8 +
 drivers/phy/tegra/Makefile                         |    6 +
 drivers/phy/tegra/xusb-tegra124.c                  | 1752 +++++++++++++++++
 drivers/phy/tegra/xusb-tegra210.c                  | 2045 ++++++++++++++++++++
 drivers/phy/tegra/xusb.c                           | 1021 ++++++++++
 drivers/phy/tegra/xusb.h                           |  421 ++++
 drivers/pinctrl/tegra/pinctrl-tegra-xusb.c         |   20 +-
 drivers/usb/host/Kconfig                           |    9 +
 drivers/usb/host/Makefile                          |    1 +
 drivers/usb/host/xhci-tegra.c                      | 1331 +++++++++++++
 include/linux/clk/tegra.h                          |    5 +
 include/linux/phy/phy.h                            |   31 +-
 include/linux/phy/tegra/xusb.h                     |   30 +
 include/soc/tegra/fuse.h                           |    1 +
 30 files changed, 8540 insertions(+), 106 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/phy/nvidia,tegra124-xusb-padctl.txt
 create mode 100644 Documentation/devicetree/bindings/usb/nvidia,tegra124-xusb.txt
 create mode 100644 drivers/phy/tegra/Kconfig
 create mode 100644 drivers/phy/tegra/Makefile
 create mode 100644 drivers/phy/tegra/xusb-tegra124.c
 create mode 100644 drivers/phy/tegra/xusb-tegra210.c
 create mode 100644 drivers/phy/tegra/xusb.c
 create mode 100644 drivers/phy/tegra/xusb.h
 create mode 100644 drivers/usb/host/xhci-tegra.c
 create mode 100644 include/linux/phy/tegra/xusb.h
#8 lore raw

[GIT PULL v2 4/4]: ARM: tegra: Enable the XUSB controller

The following changes since commit f55532a0c0b8bb6148f4e07853b876ef73bc69ca:

Linux 4.6-rc1 (2016-03-26 16:03:24 -0700)

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux.git tags/tegra-for-4.7-xusb-no-defconfig

for you to fetch changes up to 1333ce4defc5829d920472005c105eb0e0a1825a:

ARM: tegra: Enable XUSB on Nyan (2016-04-29 16:49:56 +0200)

As discussed with Arnd on IRC, this is the same pull request but leaves out the top two patches which modify the Tegra and multi-v7 default configurations.

Thierry

----------------------------------------------------------------
ARM: tegra: Enable the XUSB controller

These changes add support for the XUSB controller on Tegra124. It is an XHCI compatible controller that replaces the existing EHCI controllers. Support is enabled on Venice2, Jetson TK1 and Nyan-based Chromebooks.

----------------------------------------------------------------
Andrew Bresticker (1):
clk: tegra: Add interface to enable hardware control of SATA/XUSB PLLs

Thierry Reding (22):
Merge branch 'for-4.7/clk' into for-4.7/phy
phy: core: Allow children node to be overridden
dt-bindings: phy: Add NVIDIA Tegra XUSB pad controller binding
dt-bindings: phy: tegra-xusb-padctl: Add Tegra210 support
phy: Add Tegra XUSB pad controller support
phy: tegra: Add Tegra210 support
Merge branch 'for-4.7/phy' into for-4.7/pci
dt-bindings: pci: tegra: Update for per-lane PHYs
PCI: tegra: Support per-lane PHYs
Merge branch 'for-4.7/phy' into for-4.7/xhci
dt-bindings: usb: Add NVIDIA Tegra XUSB controller binding
dt-bindings: usb: xhci-tegra: Add Tegra210 XUSB controller support
usb: xhci: Add NVIDIA Tegra XUSB controller driver
usb: xhci: tegra: Add Tegra210 support
Merge branch 'for-4.7/phy' into for-4.7/xusb
Merge branch 'for-4.7/pci' into for-4.7/xusb
Merge branch 'for-4.7/xhci' into for-4.7/xusb
ARM: tegra: Move Tegra124 to the new XUSB pad controller binding
ARM: tegra: Add Tegra124 XUSB controller
ARM: tegra: Enable XUSB on Venice2
ARM: tegra: Enable XUSB on Jetson TK1
ARM: tegra: Enable XUSB on Nyan

 .../bindings/pci/nvidia,tegra20-pcie.txt           |  224 ++-
 .../bindings/phy/nvidia,tegra124-xusb-padctl.txt   |  733 +++++++
 .../pinctrl/nvidia,tegra124-xusb-padctl.txt        |    6 +
 .../bindings/usb/nvidia,tegra124-xusb.txt          |  120 ++
 Documentation/phy.txt                              |   16 +-
 arch/arm/boot/dts/tegra124-jetson-tk1.dts          |  116 +-
 arch/arm/boot/dts/tegra124-nyan.dtsi               |  122 +-
 arch/arm/boot/dts/tegra124-venice2.dts             |  101 +-
 arch/arm/boot/dts/tegra124.dtsi                    |  167 +-
 drivers/clk/tegra/clk-tegra210.c                   |   58 +
 drivers/pci/host/pci-tegra.c                       |  244 ++-
 drivers/phy/Kconfig                                |    2 +
 drivers/phy/Makefile                               |    2 +
 drivers/phy/phy-core.c                             |   50 +-
 drivers/phy/tegra/Kconfig                          |    8 +
 drivers/phy/tegra/Makefile                         |    6 +
 drivers/phy/tegra/xusb-tegra124.c                  | 1752 +++++++++++++++++
 drivers/phy/tegra/xusb-tegra210.c                  | 2045 ++++++++++++++++++++
 drivers/phy/tegra/xusb.c                           | 1021 ++++++++++
 drivers/phy/tegra/xusb.h                           |  421 ++++
 drivers/pinctrl/tegra/pinctrl-tegra-xusb.c         |   20 +-
 drivers/usb/host/Kconfig                           |    9 +
 drivers/usb/host/Makefile                          |    1 +
 drivers/usb/host/xhci-tegra.c                      | 1331 +++++++++++++
 include/linux/clk/tegra.h                          |    5 +
 include/linux/phy/phy.h                            |   31 +-
 include/linux/phy/tegra/xusb.h                     |   30 +
 include/soc/tegra/fuse.h                           |    1 +
 28 files changed, 8536 insertions(+), 106 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/phy/nvidia,tegra124-xusb-padctl.txt
 create mode 100644 Documentation/devicetree/bindings/usb/nvidia,tegra124-xusb.txt
 create mode 100644 drivers/phy/tegra/Kconfig
 create mode 100644 drivers/phy/tegra/Makefile
 create mode 100644 drivers/phy/tegra/xusb-tegra124.c
 create mode 100644 drivers/phy/tegra/xusb-tegra210.c
 create mode 100644 drivers/phy/tegra/xusb.c
 create mode 100644 drivers/phy/tegra/xusb.h
 create mode 100644 drivers/usb/host/xhci-tegra.c
 create mode 100644 include/linux/phy/tegra/xusb.h
#9 lore raw

[GIT PULL v2 4/4]: ARM: tegra: Enable the XUSB controller

Quoted 6 lines · On Friday 29 April 2016 18:13:30 Thierry Reding wrote:

ARM: tegra: Enable the XUSB controller

These changes add support for the XUSB controller on Tegra124. It is an XHCI compatible controller that replaces the existing EHCI controllers. Support is enabled on Venice2, Jetson TK1 and Nyan-based Chromebooks.

I have merged branches 1, 2, and 3 into next/drivers, and then again into next/late, with this one on top. We will probably send the late branch at the same time as the others, but this keeps the dependency sorted out. Thanks,

Arnd