From patchwork Wed Oct 2 23:16:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 1170948 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="XuU6hHtC"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 46kBpc0QYvz9sN1 for ; Thu, 3 Oct 2019 09:16:24 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728532AbfJBXQX (ORCPT ); Wed, 2 Oct 2019 19:16:23 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:35474 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727724AbfJBXQW (ORCPT ); Wed, 2 Oct 2019 19:16:22 -0400 Received: by mail-pl1-f193.google.com with SMTP id y10so575581plp.2 for ; Wed, 02 Oct 2019 16:16:22 -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=ze/XvAAk8GBZMksPYjyDCpmqV8AGCwQH61JmBZ7VYXE=; b=XuU6hHtCbzgnLgj5xFdd29USBSRIe9zpmWPOLYUJB/YMxHldDaP1t3RdXqKU7+9qST CHAm4YD7iyFga95zzDWl2BjqU7MUMTB3jy4xz1GdTiRkdD5XgK9GOF16bc+n1vXBwFTs cMRj5LW+ej1CyJRz6V9q57XBmn+T6zAnJz5PabxfyCmUJVXoe9vngSvvZmpQ/kbUIbMa +htweaej41pOqioUGALldV5jmpQexr9STl2LcRl08StyUthb17t34BXsB6Y8avXbOWPG 50XyAz92YjpfMHOFwtvoST77qm5oxCyFltxTEA2eGtbBN1yVvp8nGP7eMXXN+zGAZAp8 6SEQ== 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=ze/XvAAk8GBZMksPYjyDCpmqV8AGCwQH61JmBZ7VYXE=; b=gGCvIn8cbRbHZKbhyuZP+r7An4c4AIqS1utPWENcbPDlh+821Emn7o7uvh71hOqGPy XW8nRXvVL3Y3xyAXqQ0JuZpeKbE2wxYrfquUzOzGrMct/7NFafhd+Wc4SZCUSvld0lzI Sth35qSrXqSvHUdcTP1Yt9Fh/2QRZh+qieB0SkConreALTcDbdbDiAf0aClkcSWK57gM OG/JjP8lpid/rhkDDm/B6847wRS/d5johhHExR50tDeB6sWts1dl9A9miBPOUFbJ+r3/ xOpeogr2cKg9WL4ZgpKHVb6VqAV/mkfCME1MHljTaJlpV7rFjjrZRGZToTrqohu+kEKd iKqg== X-Gm-Message-State: APjAAAWCqLjA4OQklCkTpUuxAo+RVZ8qjY9zBwJJwZSEfZj4hNgQE64o a58fvkU9Suz315e4/T/xs/d05w== X-Google-Smtp-Source: APXvYqwKK+QsXsOrigPf5Vzcddlm1GWn4ouIdnrb8vXeJ7P0jW3FJ31myUBhJrIC1NEdFL3iiaRbbg== X-Received: by 2002:a17:902:a40a:: with SMTP id p10mr6399376plq.149.1570058181824; Wed, 02 Oct 2019 16:16:21 -0700 (PDT) Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id l7sm288791pjy.12.2019.10.02.16.16.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Oct 2019 16:16:21 -0700 (PDT) From: John Stultz To: lkml Cc: John Stultz , Greg Kroah-Hartman , Rob Herring , Mark Rutland , Heikki Krogerus , Suzuki K Poulose , Chunfeng Yun , Yu Chen , Felipe Balbi , Hans de Goede , Andy Shevchenko , Jun Li , Valentin Schneider , linux-usb@vger.kernel.org, devicetree@vger.kernel.org Subject: [RFC][PATCH 0/3] dwc3 role-switch handling for HiKey960 Date: Wed, 2 Oct 2019 23:16:14 +0000 Message-Id: <20191002231617.3670-1-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org I'm just trying to pick up parts of a patch previously by Yu Chen to get HiKey960 dev-board's USB functionality working. The current full patchset can be found here: https://git.linaro.org/people/john.stultz/android-dev.git/log/?id=12289c95c89e0e3173f8da1ebd3a29e52fd50a44 I don't have any real knowledge of the hardware other then the code, and what I can intuit from testing, but I tried to document the previously undocumented bindings as best I could and fixed up a few minor checkpatch issues. I'd greatly appreciate feedback or thoughts! thanks -john Cc: Greg Kroah-Hartman Cc: Rob Herring Cc: Mark Rutland 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: linux-usb@vger.kernel.org Cc: devicetree@vger.kernel.org John Stultz (1): dt-bindings: usb: generic: Add role-switch-default-host binding Yu Chen (2): usb: roles: Add usb role switch notifier. usb: dwc3: Registering a role switch in the DRD code. .../devicetree/bindings/usb/generic.txt | 5 ++ drivers/usb/dwc3/Kconfig | 1 + drivers/usb/dwc3/core.h | 6 ++ drivers/usb/dwc3/drd.c | 78 ++++++++++++++++++- drivers/usb/roles/class.c | 35 ++++++++- include/linux/usb/role.h | 16 ++++ 6 files changed, 139 insertions(+), 2 deletions(-)