From patchwork Mon Oct 28 21:59:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 11216707 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B8D6E1599 for ; Mon, 28 Oct 2019 22:00:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9478B218AC for ; Mon, 28 Oct 2019 22:00:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="OYj7c9Hl" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389675AbfJ1V7Y (ORCPT ); Mon, 28 Oct 2019 17:59:24 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:46127 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731405AbfJ1V7Y (ORCPT ); Mon, 28 Oct 2019 17:59:24 -0400 Received: by mail-pg1-f195.google.com with SMTP id f19so7877691pgn.13 for ; Mon, 28 Oct 2019 14:59:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=6V2QLtsUHV+VMkpsBsOUVHj2Zdm9O3NphSR9ng6V5hA=; b=OYj7c9HlB8KdZS8k0+yeFPli8FirbWlVRFcbS8UFAPa+JnPhe/WmMJQqOD9TR9Iy+d cAkoFHCrBgEaVtQw56Ddhea6Pm0JkBPg70l2pDjOpiKX+OgJFDMme6qNVrdzv4pP2d1l JkCyh+UyzoyNtXdlweJs3mVUru9pceP7+ME/mf45jUgy/v5wTjNyOE7ldIHwDUcGLZLg XWX1sS5rzYYn9/g0Gm8dSKRK56VtNHBJh1UB4BzyuqbX5jWUUrJk4fKBedWLY23IylV9 lIBi635LxlBiuSJKrgqyqRxSXx56Rh25fTaC8v5IyYULb8ZVGZyotFf51Nd+vJGgnTxM VcyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=6V2QLtsUHV+VMkpsBsOUVHj2Zdm9O3NphSR9ng6V5hA=; b=PTnMf84E19kFslSq82d/USWbbcNqWodB9HOJlkAbjiPwgL62aAoUptBbxRDdB8uaAu Hckg5CzLxfBR8198AE062UBmArL01/dkHoXLhLPdytMwgHjioeoJcVwlfAfLMXGMatig mVSS9+bW9yx3fDZp0UmhBSmgcH3k10K1o17fNBuT/iIY1V0ttONBOv/r/ywouziUcFEi YClT72KGBPc+xqCdPwZVoOFHeU2WDqeEntsRqu8Eo5aQXeIR3yr1TB/WpsHUN1C62NAa kp0oPsgIGSJ/7WuUM2J+bFfVw6xfNQhlzvfhy2mIPlhezFPhXKu0qUN5bbENK2Ivod7d pZUw== X-Gm-Message-State: APjAAAVLY98CfGFmizk3+IBNzI1Pmbc3IzD4Jz+/g/FNr5pabn4OwIOv cBhBNVvhnnygf0sWA+gp8Ph4tQ== X-Google-Smtp-Source: APXvYqzLBovy1k5lVCROdtfAnbXyuuhyue9xhrwrk3Xf7So7yVGNs2G5iePulNK+Mzx23renVRogBA== X-Received: by 2002:a65:6903:: with SMTP id s3mr22693935pgq.195.1572299963255; Mon, 28 Oct 2019 14:59:23 -0700 (PDT) Received: from localhost.localdomain (c-67-170-172-113.hsd1.or.comcast.net. [67.170.172.113]) by smtp.gmail.com with ESMTPSA id f12sm10880612pfn.152.2019.10.28.14.59.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2019 14:59:22 -0700 (PDT) From: John Stultz To: lkml Cc: John Stultz , Greg Kroah-Hartman , Rob Herring , Mark Rutland , ShuFan Lee , Heikki Krogerus , Suzuki K Poulose , Chunfeng Yun , Yu Chen , Felipe Balbi , Hans de Goede , Andy Shevchenko , Jun Li , Valentin Schneider , Jack Pham , linux-usb@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v4 0/9] Prereqs for HiKey960 USB support Date: Mon, 28 Oct 2019 21:59:10 +0000 Message-Id: <20191028215919.83697-1-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Just another round here trying to push forward a patch series submitted previously by Yu Chen to get HiKey960 dev-board's USB functionality working. This series focuses on just the dwc3 changes and bindings needed. The current full patchset can be found here: https://git.linaro.org/people/john.stultz/android-dev.git/log/?id=ce013895404bd4a5b6487df0ac30ed2dbea43f5d NOTE: I unfortunately don't have any deep knowledge of the hardware other then the previously submitted code and what I can intuit from testing, but I tried to document the previously undocumented bindings as best I could, fixed up a few minor checkpatch issues and tried to address previous feedback as best I could. I'd greatly appreciate any feedback or thoughts! thanks -john New in v4: * Just added a few Reviewed-by: lines from Rob Herring Cc: Greg Kroah-Hartman Cc: Rob Herring Cc: Mark Rutland CC: ShuFan Lee Cc: Heikki Krogerus Cc: Suzuki K Poulose Cc: Chunfeng Yun Cc: Yu Chen Cc: Felipe Balbi Cc: Hans de Goede Cc: Andy Shevchenko Cc: Jun Li Cc: Valentin Schneider Cc: Jack Pham Cc: linux-usb@vger.kernel.org Cc: devicetree@vger.kernel.org John Stultz (6): dt-bindings: usb: rt1711h: Add connector bindings dt-bindings: usb: dwc3: Allow clock list & resets to be more flexible usb: dwc3: Rework clock initialization to be more flexible usb: dwc3: Rework resets initialization to be more flexible dt-bindings: usb: generic: Add role-switch-default-host binding usb: dwc3: Add host-mode as default support Yu Chen (3): usb: dwc3: Execute GCTL Core Soft Reset while switch modes usb: dwc3: Increase timeout for CmdAct cleared by device controller usb: dwc3: Registering a role switch in the DRD code. .../devicetree/bindings/usb/dwc3.txt | 5 +- .../devicetree/bindings/usb/generic.txt | 5 ++ .../bindings/usb/richtek,rt1711h.txt | 29 +++++++ drivers/usb/dwc3/Kconfig | 1 + drivers/usb/dwc3/core.c | 38 +++++---- drivers/usb/dwc3/core.h | 6 ++ drivers/usb/dwc3/drd.c | 78 ++++++++++++++++++- drivers/usb/dwc3/gadget.c | 2 +- 8 files changed, 144 insertions(+), 20 deletions(-)