From patchwork Thu Dec 12 01:42:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 181372 Delivered-To: patches@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp280308ile; Wed, 11 Dec 2019 17:42:36 -0800 (PST) X-Received: by 2002:a63:66c6:: with SMTP id a189mr7068834pgc.401.1576114956321; Wed, 11 Dec 2019 17:42:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576114956; cv=none; d=google.com; s=arc-20160816; b=TWLtGbFpjin6n/RHs+VnobtQvx4Xc4ty0suqvqX/1pG7TEwoTytxyLcFt6rzgEuG2z 33wCyMyvlNmntotiS6JdSC8dZZLi1QHgawc6IWaGX3Q+mlsVZPQHOi4ACnYzDAnqfss9 dTwt845FJCC31WoIiJT2lh/3YtSkzUT3gl5yR9x7ktS9HlESMPbrTa4c0tC47lp9iSGo EGB+HoGVAdLwSbQFQ42DO51vrLssKlJtEKEs4wSQGe1l7A8DgYk5SeJdm6jOZMG9G25h KsoiavGUaFSxORLNr950G3burUTuSCk8U+5ANYg+VNWk+biQ1a4Vh1YCh80fsk74wVdF OHUw== 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=oYTlAQZvFCOXl+FtJCngIG4zVDYFRx+CdcBqRiduMI0=; b=VO402lxmdnm201wCAZH6/XvLY9mdA37TYkSKBmXGU5SRvEXxgCpfrOCmpnwgZMjWpA zHp84qJX/TiBffrMmrqDTaj0ESZ4QP0p9WMIj/5M8fNqbegxHt4fEpnvxtp1G5HPaKHg 13IBNRCYUZRL+QIr+ecr1qOoeH4fi/k7wMHLiieiM/O8jcSnWCbHu1B30v1JCpWb7swe MzhB/hkbTEDPue9BPZOmFjCiYFMECEXAWU3c+7k6HNc+KKFEue0+Ss/aU4p+AlGza776 9csXLUY9V3XzPLXF4FeBRLMFNNpcsCa1sGMcfK24Dp0sNWBsyjB5HACvpqIcXz1D7bgO /MVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vwteEu2Y; 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 n16sor4636480pjc.27.2019.12.11.17.42.36 for (Google Transport Security); Wed, 11 Dec 2019 17:42:36 -0800 (PST) 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=vwteEu2Y; 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=oYTlAQZvFCOXl+FtJCngIG4zVDYFRx+CdcBqRiduMI0=; b=vwteEu2YZkAnEvjWeKkVn0aBvUckSAG2P7VOoNA5s8hUGN3Yk8yr0boDilwBMdLuyj t4QG5GkPnobWw2v38BTnKHq+JV+uqyHhDdmhuElKHoxDPjGXC3oQAZopogp9FCEsarNP ubAIkoosYJyYMGYlNC4xFOoDp1U7o6APyF1XBeYNf6s9ziGl0G2iToAbYaM0JJDhwKjC B2CnHDwVIShWspatl2US/jXjzUFvrW908qOabx/Ey2z/xxA+zAHZZd5ZVVG1QsN8qLdo S/oFtJO2fB2yrTz6cyymBXeobJdiqLA0DW7DjHG3LmEKd9nooUG1eSBRRgQzIM/65i2S AIpg== 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=oYTlAQZvFCOXl+FtJCngIG4zVDYFRx+CdcBqRiduMI0=; b=IRnNp9/W1qzg9VQLx4Wor4ujOjxckj6QoOKKHbHW/Kg9zWS2pHLVkvKt/UKpuzGwt0 pMXK38aFgYicA3Uhnwki1lXlJgL3U0aVnk8XCqgjVgpRYdQrYR6yG9zufjKnvRfAWqw6 cHP9FolJRHPjog396f/CjeMtThR2CERwXySHPrBKak0MWbPQz6BgVMPoGxbGs+N3VGG4 M3hZRg3mVbFMJSzGyDZfFsXWBE9169ut9qEOm0G9864UKQ9vTLKuLS7hCF3amTMtWAnj DyEq+4bQT4r343+cdw4Cw9ShqZmM8CtVW1s0FnUZLy49QvGAF1LYxItu11pRYvsx3id3 18/A== X-Gm-Message-State: APjAAAU+BzaHKrAKUNL1s04LgTRt7sTyvR3W+1oJXGggJ4aKGBZfKykN dB1ormxR9fEBGVnSmIJWwlgNM0Zk X-Google-Smtp-Source: APXvYqyHpT1rDSGDYfNZlrajLahc84+7IwQNBWW64oNq2WP0Ja55cN6BBGowTeAh+WTxTc1jj60lsw== X-Received: by 2002:a17:90a:a4cb:: with SMTP id l11mr6981037pjw.47.1576114955837; Wed, 11 Dec 2019 17:42:35 -0800 (PST) Return-Path: Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id p16sm4217996pgi.50.2019.12.11.17.42.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Dec 2019 17:42:35 -0800 (PST) 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 , Guillaume Gardet , Jack Pham , linux-usb@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v7 0/8] HiKey960 USB support Date: Thu, 12 Dec 2019 01:42:25 +0000 Message-Id: <20191212014233.32799-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 originally by Yu Chen to get HiKey960 dev-board's USB functionality working. The full patchset (including dts changes not submitted here) can be found here: https://git.linaro.org/people/john.stultz/android-dev.git/log/?id=2ae2c2a9087b52857dd47313a169c7348261cbca I'd greatly appreciate any feedback or thoughts! thanks -john New in v7: * Guillaume Gardet reported issues with CONFIG_USB_ROLE_SWITCH=m which to fix required I use IS_ENABLED instead of just #ifdef on that config name. * Added MAINTAINERS file for usb hub misc driver * Switched the usb hub misc driver bindings to YAML 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: Guillaume Gardet Cc: Jack Pham Cc: linux-usb@vger.kernel.org Cc: devicetree@vger.kernel.org John Stultz (5): dt-bindings: usb: generic: Add role-switch-default-mode binding usb: dwc3: Add support for role-switch-default-mode binding 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 Yu Chen (3): usb: dwc3: Registering a role switch in the DRD code. dt-bindings: misc: Add bindings for HiSilicon usb hub and data role switch functionality on HiKey960 misc: hisi_hikey_usb: Driver to support onboard USB gpio hub on Hikey960 .../bindings/misc/hisilicon-hikey-usb.yaml | 85 +++++++++ .../devicetree/bindings/usb/dwc3.txt | 5 +- .../devicetree/bindings/usb/generic.txt | 6 + MAINTAINERS | 7 + drivers/misc/Kconfig | 9 + drivers/misc/Makefile | 1 + drivers/misc/hisi_hikey_usb.c | 178 ++++++++++++++++++ drivers/usb/dwc3/core.c | 22 +-- drivers/usb/dwc3/core.h | 6 + drivers/usb/dwc3/drd.c | 96 +++++++++- 10 files changed, 396 insertions(+), 19 deletions(-) create mode 100644 Documentation/devicetree/bindings/misc/hisilicon-hikey-usb.yaml create mode 100644 drivers/misc/hisi_hikey_usb.c -- 2.17.1