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: 177968 Delivered-To: patches@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp3978264ill; Mon, 28 Oct 2019 14:59:24 -0700 (PDT) X-Received: by 2002:a17:902:740b:: with SMTP id g11mr338607pll.10.1572299963990; Mon, 28 Oct 2019 14:59:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572299963; cv=none; d=google.com; s=arc-20160816; b=bM+8CYIjKlgA/txHz6y4y8TWAhgEYMCcFkeSG+jF+N/0cxvNGaTHjZb685l0ujL3MF aNOKlkHPXZ/3WTVYZMxCUcjNsUp9q2wfuP2y/SUZFXo7/bsAjYhOXAApXYO7amXULo/T n/9yvfiHycTjzsPbBW8ruKHOCxTNOnIccqFJThmUTPq/i4Ur0k11nIsNMcd2V/DEtbm+ /SWNTdhSiLk6U+udMwomQf6y0YCzXtBR3ERPPqwXCdtanLAONFCe4FzAgNWfHMS/30lG 8rninh7tMWGNKoyfBIBwrtQq7ELpLvWwKbJ7FcuU/d0Y2msCfU12zjkS2yzGj1hy4lZj pTxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature; bh=6V2QLtsUHV+VMkpsBsOUVHj2Zdm9O3NphSR9ng6V5hA=; b=D+QBQJdfQx00SpLLS7jKBZTDgUA+PKVOygaTJNlzQTtQErS3U87CJZh0FEdnM/4SkX iFBEf613P1PrTPP1UHbz613sfWqfDvSksmhdSKfuJVsM+4YclTKgsEcRizy3zJaw+M9S /ipF4r6GNCTanL4/7yN0c+Qbt1miv0KMsS60cBmbn+gg3DZZlquGy5/wlcuPq46d1CSE cEOpnt2lDRH1FiPylWEioRvut3xDFIgOqLgkjZra0e+XK5viKeTJpwsdPwORF7Vz7n2T 02o4uLHBgx3/0gMDiA/QnonOy7wWEjaPHkywlY1cIr0U9MgT6v0/erIo4+WmLCoEvo+t CknA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OYj7c9Hl; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id x85sor11281161pgx.26.2019.10.28.14.59.23 for (Google Transport Security); Mon, 28 Oct 2019 14:59:23 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OYj7c9Hl; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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=FeO//3ORYtvxQrSfUZEMa8rKCnmID8vQ89LZxB1Rr//fW8KaBeE3sj4moz2qQo0cu5 DTicLF8WTjP41O3GKb8mPRQL1M/+hQJjxqz849l25NEVHNVvq66HC9lOL5xBVpA12kyb cnDUTOGg2bkELTWo6jC8nKBPbGdWa2jFUPo9yXomeiu87MryQp+6LkBit/yj3htrA5x2 bBPHIKy/Dz4j7NoXGx3Z2bG3YC2jqco1r8HoygNXHOPvVBni9GVbverE/OYjliOLlA2F mfgKP8RANoQe+kI6l95Jpl2hSniU3Fuyki0ePiPJ/4CecC9ciSCNSJfoOmEWwy34BXoD ZdNQ== X-Gm-Message-State: APjAAAWcNHuZJWa0TZh4Txq3S9mKS37MxEl7Tzx5xYD0cNlZP8it6CWt ck2uTcixFjtZy8W4s+sl7yhLi7M+ 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) Return-Path: 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 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(-) -- 2.17.1