Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3071691ybf; Mon, 2 Mar 2020 22:24:31 -0800 (PST) X-Google-Smtp-Source: ADFU+vtMAoYx8ulCKZwsjdWBmw9Yw+v4sM6Goie7EeeoYhPu6U/RzwqAZpq+Jx8giw3JQzY/ozKe X-Received: by 2002:a9d:6d94:: with SMTP id x20mr2312232otp.222.1583216671096; Mon, 02 Mar 2020 22:24:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583216671; cv=none; d=google.com; s=arc-20160816; b=DkgKwQgT7k1AgZ0tDaorrPIg5GijudwTUmfZd2YNaUXeEGMz5Jnic7TgIHdxXLyfO4 YODRDBNtRxYUQlZoEedpSqXC6HS3TxE2lwf6+R5O9nqPBJ8bGIvvNaHoq/kGvlgDu+Tq 1BC7vyLiYSH/mVJwnb5mvXtOcWqwC/l8y3WfIcM5YoRB5Vtl6y1rqsW1HSdcEX/VZ2Wo pOxu37ELW3u+YIRaQR98Q6Au6my6caY0I447IdX5RWfMvCJ5vtbvpYLoPFBETAy6VVr7 Mh9u9u9XF/jEUlVcla9+IcQKHBkFT36g94qDbAoHYwNZmjDP87MzShJaFApB17lfFMO8 IeYA== 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=6UPltCTph8JATwkMOr1U3Yp5FDDP+y4EAKaRm5ThBwE=; b=sxI5k4vqTk7O/yEJfyBOKiXWu377WHUuNpUIb0krx+/AxFnGdW0i453OwFn3OzYCSw L/p7abkwpfH1Dik9Q3AL3zk3TeVhnw5az+nrVitgrwJqE2pB+QguLcm4r2s2YQ4w0Oeu J52VIt/HYXfTmJ0c9RVvQ3uEB2pw35U0Bt73Oekkd7Gqo6R0m36ejLhes3iKyASWhBMT kD3BJKA3FzS5nqKBTOx2KAeJeFwVVtVw5bukbzOHgd+WzzKHp3QIxu/OZgtQhLXWiC1w 6hkmEE5I7Bz/RhiENsDWYsRbtd2dykknZg8B94VWZqviMtjxdDtFs6DkBSFWxIGO+GXv JWkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Kc6n75Ej; 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 b9si7690960oiy.274.2020.03.02.22.23.56; Mon, 02 Mar 2020 22:24:31 -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=Kc6n75Ej; 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 S1727484AbgCCGXu (ORCPT + 99 others); Tue, 3 Mar 2020 01:23:50 -0500 Received: from mail-pj1-f68.google.com ([209.85.216.68]:55459 "EHLO mail-pj1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725765AbgCCGXt (ORCPT ); Tue, 3 Mar 2020 01:23:49 -0500 Received: by mail-pj1-f68.google.com with SMTP id a18so876895pjs.5; Mon, 02 Mar 2020 22:23:46 -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=6UPltCTph8JATwkMOr1U3Yp5FDDP+y4EAKaRm5ThBwE=; b=Kc6n75EjJhEh37Mawk55/f0mK1B/wLSfInD/iqmAB9GjGvp7CcQnF4DXEkCoxp55Ig KrLPGwAArvdTmZFYkk5iVpqzRLPpS96ZfzN1rSIqHWXCm2y0oNRUzUQJOr5oGEypb3UG 40jhd6lOd5DEopyFqpQvqkUDCYkvqAW5NuXkzHMDh7DUsZSNrmxIO0U8AFigqmr95pe6 je8schRmyv8m0fMmf+MclOWJN/Z8DQWTqK+pmtjfX+bYABPd4pIp4A5pXghYZQko9lBv 54WZidUTxOvI/mGKRMYrTLUt+/tMFWQDQD1O5KCFRxGy586WB9e1v+RDNyfqDZuT9X9X EXDw== 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=6UPltCTph8JATwkMOr1U3Yp5FDDP+y4EAKaRm5ThBwE=; b=B3JQpEw6CWK03mdgIIScTgYGa9zNdZSJVoIRpC5VDT3JX8FlH/HeXG4TxPIddWwckN bT0jFlAtUBU2DvNS4rGhEdJL9AEKtBDxuOw2v6ixzT04ucycPAkZI0CWF6Ih+BU5YJQu P69Ldwf+th6hkDEnWT02NWueZaSuyVFQLCkcY3Ivt/cXCsuw5dRStwzYiVtcILkXlfrg vLpnyLx0ooH5h7Q856kNskJ+1dW2FDhMRPxn0NKY4X+wZtXBqR9sU0Cn8EzQcOeFuGJV xo5PQs0X5Q/4NCPnLYWECDhN6P6AM3+4VorJDiRDkmj0T7XJ7VU7hNpIhNwMsbzInxlu z4vA== X-Gm-Message-State: ANhLgQ3F3mieBVyXAyV13AwHuaBW/PdD5zHFUigaBdHqfIxO7MsVzMSC KQf2OFtQut22i7IYCAYUTa8= X-Received: by 2002:a17:902:b611:: with SMTP id b17mr2783485pls.23.1583216626144; Mon, 02 Mar 2020 22:23:46 -0800 (PST) Received: from taoren-ubuntu-R90MNF91.thefacebook.com (c-24-4-25-55.hsd1.ca.comcast.net. [24.4.25.55]) by smtp.gmail.com with ESMTPSA id k5sm7453526pfp.66.2020.03.02.22.23.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Mar 2020 22:23:45 -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 v7 0/7] aspeed-g6: enable usb support Date: Mon, 2 Mar 2020 22:23:29 -0800 Message-Id: <20200303062336.7361-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 | 77 +++++++++++++++++++ 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, 290 insertions(+), 71 deletions(-) create mode 100644 Documentation/devicetree/bindings/usb/aspeed,usb-vhub.yaml -- 2.17.1