From: Roger Quadros <hidden> Date: 2020-09-30 12:20:42
Hi Tero/Nishanth,
This series adds USB2.0 support for the J7200 EVM.
Series is based on top of: linux-next next-20200930
cheers,
-roger
Changelog:
v5:
- Rebased on next-20200930. Added Reviewed-by and Acked-by.
v4:
- use single header file for MUX defines. drop WIZ from macro names.
v3:
- use 0x00 instead of 0x0 in device tree for consistency.
- update commit log for USB support patch.
v2:
- fixed warnings when built with W=2. Still one warning is present
as property name "dr_mode" by USB core contains underscore.
Kishon Vijay Abraham I (1):
arm64: dts: ti: k3-j7200-common-proc-board: Configure the SERDES lane
function
Roger Quadros (5):
dt-bindings: ti-serdes-mux: Add defines for J7200 SoC
arm64: dts: ti: k3-j7200-main: Add SERDES lane control mux
arm64: dts: ti: k3-j7200-main.dtsi: Add USB to SERDES lane MUX
arm64: dts: ti: k3-j7200-main: Add USB controller
arm64: dts: ti: k3-j7200-common-proc-board: Add USB support
.../dts/ti/k3-j7200-common-proc-board.dts | 28 ++++++++++
arch/arm64/boot/dts/ti/k3-j7200-main.dtsi | 51 +++++++++++++++++++
include/dt-bindings/mux/ti-serdes.h | 22 ++++++++
3 files changed, 101 insertions(+)
--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
From: Roger Quadros <hidden> Date: 2020-09-30 12:20:48
There are 4 lanes in each J7200 SERDES. Each SERDES lane mux can
select upto 4 different IPs. Define all the possible functions.
Cc: Peter Rosin <redacted>
Signed-off-by: Roger Quadros <redacted>
Reviewed-by: Vignesh Raghavendra <vigneshr@ti.com>
Acked-by: Rob Herring <robh@kernel.org>
Acked-by: Peter Rosin <redacted>
---
include/dt-bindings/mux/ti-serdes.h | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
From: Roger Quadros <hidden> Date: 2020-09-30 12:20:50
The USB controller can be connected to one of the 2 lanes
of SERDES0 using a MUX. Add a MUX controller node for that.
Signed-off-by: Roger Quadros <redacted>
Reviewed-by: Vignesh Raghavendra <vigneshr@ti.com>
---
arch/arm64/boot/dts/ti/k3-j7200-main.dtsi | 6 ++++++
1 file changed, 6 insertions(+)
From: Roger Quadros <hidden> Date: 2020-09-30 12:20:51
The SERDES lane control mux registers are present in the
CTRLMMR space.
Signed-off-by: Roger Quadros <redacted>
Reviewed-by: Vignesh Raghavendra <vigneshr@ti.com>
---
arch/arm64/boot/dts/ti/k3-j7200-main.dtsi | 15 +++++++++++++++
1 file changed, 15 insertions(+)
From: Roger Quadros <hidden> Date: 2020-09-30 12:20:57
The board uses lane 3 of SERDES for USB. Set the mux
accordingly.
The USB controller and EVM supports super-speed for USB0
on the Type-C port. However, the SERDES has a limitation
that upto 2 protocols can be used at a time. The SERDES is
wired for PCIe, QSGMII and USB super-speed. It has been
chosen to use PCI2 and QSGMII as default. So restrict
USB0 to high-speed mode.
Signed-off-by: Roger Quadros <redacted>
Reviewed-by: Vignesh Raghavendra <vigneshr@ti.com>
---
.../dts/ti/k3-j7200-common-proc-board.dts | 22 +++++++++++++++++++
1 file changed, 22 insertions(+)
@@ -191,3 +197,19 @@idle-states=<J7200_SERDES0_LANE0_PCIE1_LANE0>,<J7200_SERDES0_LANE1_PCIE1_LANE1>,<J7200_SERDES0_LANE2_QSGMII_LANE1>,<J7200_SERDES0_LANE3_IP4_UNUSED>;};++&usb_serdes_mux{+idle-states=<1>;/* USB0 to SERDES lane 3 */+};++&usbss0{+pinctrl-names="default";+pinctrl-0=<&main_usbss0_pins_default>;+ti,vbus-divider;+ti,usb2-only;+};++&usb0{+dr_mode="otg";+maximum-speed="high-speed";+};
--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
From: Roger Quadros <hidden> Date: 2020-09-30 12:20:59
From: Kishon Vijay Abraham I <redacted>
First two lanes of SERDES is connected to PCIe, third lane is
connected to QSGMII and the last lane is connected to USB. However,
Cadence torrent SERDES doesn't support more than 2 protocols
at the same time. Configure it only for PCIe and QSGMII.
Signed-off-by: Kishon Vijay Abraham I <redacted>
Signed-off-by: Roger Quadros <redacted>
Reviewed-by: Vignesh Raghavendra <vigneshr@ti.com>
---
arch/arm64/boot/dts/ti/k3-j7200-common-proc-board.dts | 6 ++++++
1 file changed, 6 insertions(+)
On Wed, 30 Sep 2020 15:20:26 +0300, Roger Quadros wrote:
This series adds USB2.0 support for the J7200 EVM.
Series is based on top of: linux-next next-20200930
cheers,
-roger
[...]
Hi Roger Quadros,
I have applied the following to branch ti-k3-dts-next on [1] along with
ti-k3-dt-fixes-for-v5.9.
Thank you!
[1/6] dt-bindings: ti-serdes-mux: Add defines for J7200 SoC
commit: ba90e0c92666979298a2c42ca396ac56d00cf33e
[2/6] arm64: dts: ti: k3-j7200-main: Add SERDES lane control mux
commit: 1509295295c03c570bd65c3e393b334c188218cd
[3/6] arm64: dts: ti: k3-j7200-main.dtsi: Add USB to SERDES lane MUX
commit: 9a09e6e9cfcf5424e78636e9b9585de5c07407bc
[4/6] arm64: dts: ti: k3-j7200-main: Add USB controller
commit: 6197d7139d128d3391a94bfad467ffe349a869a6
[5/6] arm64: dts: ti: k3-j7200-common-proc-board: Configure the SERDES lane function
commit: e38a45b0192c4562e610c9c81e4c742b48fa69f0
[6/6] arm64: dts: ti: k3-j7200-common-proc-board: Add USB support
commit: bbcb0522ae0cea0f2561e7dad243f8a3d5ab5559
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent up the chain during
the next merge window (or sooner if it is a relevant bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
[1] git://git.kernel.org/pub/scm/linux/kernel/git/nmenon/linux.git
--
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D