From patchwork Wed Apr 24 09:22:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Biju Das X-Patchwork-Id: 10914365 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id ABCB31708 for ; Wed, 24 Apr 2019 09:29:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9C858289B3 for ; Wed, 24 Apr 2019 09:29:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9067E289B8; Wed, 24 Apr 2019 09:29:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 37772289B5 for ; Wed, 24 Apr 2019 09:29:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727554AbfDXJ3T (ORCPT ); Wed, 24 Apr 2019 05:29:19 -0400 Received: from relmlor1.renesas.com ([210.160.252.171]:57182 "EHLO relmlie5.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726176AbfDXJ3S (ORCPT ); Wed, 24 Apr 2019 05:29:18 -0400 X-IronPort-AV: E=Sophos;i="5.60,389,1549897200"; d="scan'208";a="14200180" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 24 Apr 2019 18:29:16 +0900 Received: from be1yocto.ree.adwin.renesas.com (unknown [172.29.43.62]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 3FD0142A01BD; Wed, 24 Apr 2019 18:29:13 +0900 (JST) From: Biju Das To: Rob Herring , Greg Kroah-Hartman , Heikki Krogerus , Felipe Balbi , Mark Rutland Cc: Biju Das , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, Simon Horman , Yoshihiro Shimoda , Geert Uytterhoeven , Chris Paterson , Fabrizio Castro , linux-renesas-soc@vger.kernel.org Subject: [PATCH V5 0/9] Add USB3.0 and TI HD3SS3220 driver support Date: Wed, 24 Apr 2019 10:22:14 +0100 Message-Id: <1556097743-12717-1-git-send-email-biju.das@bp.renesas.com> X-Mailer: git-send-email 2.7.4 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This series adds USB 3.0 support for the CAT874 platform, including a new driver for the TI HD3SS3220 USB Type-C DRP port controller. This patch series supports: 1) Host hotplug operation 2) Device hot plug operation 3) USB type-C data_role switch (Tested with 2 RZ/G2E boards connected with a Type-C cable) This patchset is based on linux_next next-20190423 branch. V4-->V5 * Incorporated Heikki's review comment. (https://patchwork.kernel.org/patch/10902531/) * Patch 1 is a dependency patch to make the compilation successful. (https://patchwork.kernel.org/patch/10909971/) * Patch 2 is also dependency patch to make the compilation successful. Rebased on top of Patch1 and fixed Heikki's review comments (https://patchwork.kernel.org/patch/10882555/) * Incorporated Shimoda-San's review comment. (https://patchwork.kernel.org/patch/10902535/) V3-->V4 * Incorporated Chunfeng Yun's review comment (https://patchwork.kernel.org/project/linux-usb/list/?submitter=133171) * Used fwnode API's to get roleswitch handle V2-->V3 * Used the new API to usb_role_switch by node to find the remote endpoint (https://patchwork.kernel.org/patch/10882555/) * Added renesas,usb-role-switch property * Incorporated shimoda-san's review comment (https://patchwork.kernel.org/patch/10852507/) V1-->V2 * Use USB role class instead of extcon to receive connect and disconnect events and also for the dual role switch. * Dropped patch 6 * Squashed patch 8 and patch 9 * https://patchwork.kernel.org/cover/10840641/ Biju Das (7): dt-bindings: usb: hd3ss3220 device tree binding document dt-bindings: usb: renesas_usb3: Add renesas,usb-role-switch property usb: typec: driver for TI HD3SS3220 USB Type-C DRP port controller usb: gadget: udc: renesas_usb3: Use usb_role_switch framework arm64: defconfig: enable TYPEC_HD3SS3220 config option arm64: dts: renesas: r8a774c0-cat874: Enable USB3.0 host/peripheral device node arm64: dts: renesas: r8a774c0-cat874: Enable usb role switch support Chunfeng Yun (1): usb: roles: add API to get usb_role_switch by node Yu Chen (1): usb: roles: Introduce stubs for the exiting functions in role.h. .../devicetree/bindings/usb/renesas_usb3.txt | 22 ++ .../devicetree/bindings/usb/ti,hd3ss3220.txt | 37 +++ arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts | 56 +++++ arch/arm64/configs/defconfig | 2 + drivers/usb/gadget/udc/renesas_usb3.c | 92 ++++++- drivers/usb/roles/class.c | 25 ++ drivers/usb/typec/Kconfig | 10 + drivers/usb/typec/Makefile | 1 + drivers/usb/typec/hd3ss3220.c | 263 +++++++++++++++++++++ include/linux/usb/role.h | 38 +++ 10 files changed, 539 insertions(+), 7 deletions(-) create mode 100644 Documentation/devicetree/bindings/usb/ti,hd3ss3220.txt create mode 100644 drivers/usb/typec/hd3ss3220.c