Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp155538ybf; Thu, 27 Feb 2020 18:10:05 -0800 (PST) X-Google-Smtp-Source: APXvYqzKiw9uNZ0Ydv1819kPDOiDHPu1I4QEy6mxmA2y6ubbv/TpJpMfYKjVC+xqIRT6/7IT+Ucx X-Received: by 2002:a9d:7d9a:: with SMTP id j26mr1440383otn.21.1582855804873; Thu, 27 Feb 2020 18:10:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582855804; cv=none; d=google.com; s=arc-20160816; b=fFFFcFP8EdQddKC8zRAXLbwckcZ9FqMoHrBE3UZMiMbAKWNFu6lw/HiDdPcq0a9XXM ttQ4HOpmuktY16m3Jaj1AUIkdXBINkCicKLTEc/ognkT6wKfaJVOj0xe/U5kRrH17E5z elYdfsIuB6Z8/5b2DWtX67lAxz5riQSE7yeflvqhbeYAkksnwjlwGrv6aeFGWOOkmq7V rPIZFN+T8bI1/pQfChK+x2R0fSyL/GvRC3YW1OE6kE6RivKI/oQkQivuiq2ucRha1u1O A0h4sW1BeWaqqzoGuQjsEJiztwFA83C9TCQCeCtb9Yxz+rHZdL7XOQrgtFINtOLPfxwD KZUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=Z5AIbk2nbOcHqpTmcvhMG9mF23rIvUFPSLJXXgXhGns=; b=EM3sOg6tL+tk0sWcwBvqiqCM///xaWCenoVKp0fHGpWk8Hyp22glD7qvRE9vjAYvT4 REElwpYrB8RHGBBvn2V4u3coupchD2cDRdD17bujjLGxVtHZpXgGp7+nXdL/no0icDOK uf/aofMNspgpxuGrPeM3nDJcNF5khs+Dcjv8mIBnWVvC5d5rfXIkeervNfFeUiYDklZ1 oNN7uxlZdYa47WNOv8p0CrtM69WcpNQZu1arSVf12zLTF5WPQWNUNLkA5HGG7MTy2we0 3afYGbJki3EgpNeAcipvXVuTvuuycIDse0Srb3BLhVAurPvaSvd/Ox3vp/LTBqNj41Hq SS/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WxZo9JuH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 110si658627otj.303.2020.02.27.18.09.52; Thu, 27 Feb 2020 18:10:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WxZo9JuH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730542AbgB1CIK (ORCPT + 99 others); Thu, 27 Feb 2020 21:08:10 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:46685 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730346AbgB1CIK (ORCPT ); Thu, 27 Feb 2020 21:08:10 -0500 Received: by mail-pf1-f193.google.com with SMTP id o24so836793pfp.13; Thu, 27 Feb 2020 18:08:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=Z5AIbk2nbOcHqpTmcvhMG9mF23rIvUFPSLJXXgXhGns=; b=WxZo9JuHxs2vb8rzf2HkXGaALenOiLW17gU9FV7NRZnQX/R4Snkc7mWGvmDU4MAO7t 8jVaLqfz7cr3WemoDQyHzihCUa74B7tA2upzRpq3DhB56XOkNZEUAP+diQ8F5pr1mYYy /eINOAoaeDTbtQSjkQ7q78GZrG18X6ofyEIevln/VnS7x9LMTG0vZCQ7fdSQAuOm/YSX LPE2FMrcSLV42KJJN0Al145sJ40ccNpQSxso2CPCXZfPBYXsZdmZXydPm6TGRv8sxS8X IO+MQfO38hqOcgEArnArXh/Imkv8+osKKLguQ/jJgaRUiT+PKDryfxsvWMW27f74d2WQ +KMw== 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=Z5AIbk2nbOcHqpTmcvhMG9mF23rIvUFPSLJXXgXhGns=; b=KA1Vo/F0zAQs4sY+S3HHKQkAK3JfpNhyVorKqoCL8brqB23u4wBLsWZrlM913wmdpV ZS1Ylr4l4lJutkWt0up4d0a4iBw4eZ29sWnPZKeXKfQhLh2/PPuFmBWf1QZMG3dm4Csa jt/Ky6toeeGpGd8VktZUxbbiIZzROoBjGZqQy9KhKoTQ+HQ5SbKUj3E1rYEdc8+3jnXD HGJdoyL5c2FhC9+1ogro0tjXfZz0Ggt0dEmRG84DZaeRdJUWSg/KBBQa9xe8t5cV5q88 6jVLMcty/ZBrklGrJSMVz5ighA9etgk5mybVSEQQmTKY8Q5MxLmRxitOxLw039S6xF4s Uytw== X-Gm-Message-State: APjAAAXlXdvJ3bJNI0y9pAYQBwnJRp9Zrj3VWfpoudWGdUG5PXr3T97b C+QGWkCFkHMrnvYuq4UOXl4= X-Received: by 2002:a63:42c2:: with SMTP id p185mr2358809pga.268.1582855687383; Thu, 27 Feb 2020 18:08:07 -0800 (PST) Received: from taoren-ubuntu-R90MNF91.thefacebook.com ([2620:10d:c090:500::4:d8f5]) by smtp.gmail.com with ESMTPSA id k24sm4931972pgm.61.2020.02.27.18.08.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Feb 2020 18:08:06 -0800 (PST) From: rentao.bupt@gmail.com To: Felipe Balbi , Greg Kroah-Hartman , Joel Stanley , Andrew Jeffery , Benjamin Herrenschmidt , Chunfeng Yun , Colin Ian King , Stephen Boyd , Rob Herring , Mark Rutland , linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, taoren@fb.com Cc: Tao Ren Subject: [PATCH v6 0/7] aspeed-g6: enable usb support Date: Thu, 27 Feb 2020 18:07:50 -0800 Message-Id: <20200228020757.10513-1-rentao.bupt@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tao Ren The patch series aims at enabling USB Host and Gadget support on AST2600 platforms. Patch #1 includes vhub's usb descriptors in struct "ast_vhub": all usb descriptor changes will go to the per-vhub instance instead of touching the global default descriptors. Patch #2 replaces hardcoded vhub port/endpoint number with device tree properties, so that it's more convenient to add support for ast2600-vhub which provides more downstream ports and endpoints. Patch #3 enables ast2600 support in aspeed-vhub usb gadget driver. Patch #4 adds USB devices and according pin groups in aspeed-g6 dtsi. Patch #5 and #6 add vhub port/endpoint properties into aspeed-g4 and aspeed-g5 dtsi. Patch #7 adds device tree binding document for aspeed usb-vhub driver. Tao Ren (7): usb: gadget: aspeed: support per-vhub usb descriptors usb: gadget: aspeed: read vhub properties from device tree usb: gadget: aspeed: add ast2600 vhub support ARM: dts: aspeed-g6: add usb functions ARM: dts: aspeed-g5: add vhub port and endpoint properties ARM: dts: aspeed-g4: add vhub port and endpoint properties dt-bindings: usb: add documentation for aspeed usb-vhub .../bindings/usb/aspeed,usb-vhub.yaml | 73 +++++++++++++++++++ arch/arm/boot/dts/aspeed-g4.dtsi | 2 + arch/arm/boot/dts/aspeed-g5.dtsi | 2 + arch/arm/boot/dts/aspeed-g6-pinctrl.dtsi | 25 +++++++ arch/arm/boot/dts/aspeed-g6.dtsi | 45 ++++++++++++ drivers/usb/gadget/udc/aspeed-vhub/Kconfig | 4 +- drivers/usb/gadget/udc/aspeed-vhub/core.c | 71 +++++++++++------- drivers/usb/gadget/udc/aspeed-vhub/dev.c | 30 ++++++-- drivers/usb/gadget/udc/aspeed-vhub/epn.c | 4 +- drivers/usb/gadget/udc/aspeed-vhub/hub.c | 58 ++++++++++----- drivers/usb/gadget/udc/aspeed-vhub/vhub.h | 43 +++++++---- 11 files changed, 286 insertions(+), 71 deletions(-) create mode 100644 Documentation/devicetree/bindings/usb/aspeed,usb-vhub.yaml -- 2.17.1