Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp382311ybf; Wed, 26 Feb 2020 15:04:22 -0800 (PST) X-Google-Smtp-Source: APXvYqzFWqg6AcYzum5o9L/iSwvJclr96IEZNj4mfQJeWugf12Mrndn7MUfs1bqAy7+dwo5scbed X-Received: by 2002:a9d:5607:: with SMTP id e7mr1006912oti.196.1582758262020; Wed, 26 Feb 2020 15:04:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582758262; cv=none; d=google.com; s=arc-20160816; b=yjbySwyqSqdXe0yQmEathJ/zP3nYbto2CmJK3BXQeAT5yK5kmXFnV5p9RyHioRAxQw TS9tNbMIHCWT7n5fie8rdOOBYZduez2aGso8udBd3aOnCxbQLyb8xrTidkLCegl/B8RA PEZBLEqCdi/smVEe5AS3zEVOUr4+psk0GjrRdLXE+130keRPzn/su++WTU1FwAfaDSjV jaAoj4ohDQ2C3Ub058XvoQXqkpFhpaCevLtl1j42U7ENsCHIdAFQjEJE1f98U8KP91Kq 2iVNLyjS9Td7bnraZD3Op2x8TkzBvLQJ7xn0oIhoGaAj3H/+SiTz4pjb3Nn86m8XacFi hnow== 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=Bk/8S/Z3TX6gpAJL/01qav03pWjPrUS9+WLbM4tWfRA=; b=bWnaZPQamt6UNT5VIJBO+oiAmDtPHrUa+958AQqnoYAT6aqttK+Zzf+/QPNB6MLqPP 0b+UogbUR6YevR80a95f1Mfa7ltD/c8k04Cymr8TD6p+GHjjg9UzwsKl3ujMZ+KfTEt9 ZdNyNn6LdWP9KsMEllRv9XKvYFgo/wnX17T1sYCmrVmJKAzSbhXJqneeiBLHmoTgAZV+ wffP7/W0J7J3u8ptaNCD0K44s7R0ofw5jDAvrlPKtRSNvImz8vB03feHeXUvRNLyLydx uBzLhkAFUJhEz8t05IOR5lu64TVpRniYgXeR9Q3EThb8UUXZvHNsHx9qwisgECZAfa6B Rj4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iiIqG1tK; 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 t26si260953oic.169.2020.02.26.15.04.10; Wed, 26 Feb 2020 15:04:21 -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=iiIqG1tK; 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 S1727930AbgBZXED (ORCPT + 99 others); Wed, 26 Feb 2020 18:04:03 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:35962 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726413AbgBZXED (ORCPT ); Wed, 26 Feb 2020 18:04:03 -0500 Received: by mail-pf1-f194.google.com with SMTP id i13so391549pfe.3; Wed, 26 Feb 2020 15:04:01 -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=Bk/8S/Z3TX6gpAJL/01qav03pWjPrUS9+WLbM4tWfRA=; b=iiIqG1tKiFmSLw8ypVAFtG0a/VX8gxPi1TjGNgkgCIZ5Z7qjWdPW9+8K3J2U1skLnT XriD3Zl2Sxh5mVPXYsOttA2tMrRBEKKQxeTDuVOrlhQiU6sySvO9bd8fq52EStONOHlq C52UbmdpekyXeSt/SIj6TUrMBDVWXxhXdzSm+uaDVzREEtUjyyLy2AyWdJpSvRgR6Lnb 6Ilh/TDwkwoYBgXez0mR4sZfU+EELlY/vwrUDkjPmHy0LTkn0AHP+zGzsBQ3JchD8hmQ oH6cSIRBmiA6O31pnf9/q4rzMBFON1tzp8jO/Rx/QxqMaWVEZdp5K7TaNqlwL6fuWZ1g vrEw== 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=Bk/8S/Z3TX6gpAJL/01qav03pWjPrUS9+WLbM4tWfRA=; b=W2/sxuUNNaPZ5g+nN/HqTSM8nN8iYgpDztKxDWPVYP3LApHzBcliB6kgJt3ShhDAbF AsikI8a+owQ5GLFCl7eHAaypbth9/2hp0QFvoJsRNXnsOp0b7KVNTVA7HkUnp8q2l2qs 5P5YvCQ707D4JOZD9KCQ8Qk4ZVlC8pbXXvTLzi6lHVwLML094r4aztxkmAtYzvdPBb4I CSAMIEGTgWgghU/R4Ium4ml+rlgfxXqrWCe2IBT74H2EeOMsUlY71gWmUYBVdF33GB6T q0Y/oItSM1lnzAE5BpZc6EPMAED4IAijqB0vFe3zDkGuGNUyMGstiW6PmSGdnfCyPFvG aGrA== X-Gm-Message-State: APjAAAWw5usw9Lg8WydqipnmR9w7+yifi/DDqHnSNQx5fUUpI51HfHOx VGG/KDNQruUfQq0MTmpCKpg= X-Received: by 2002:a63:b347:: with SMTP id x7mr1087976pgt.275.1582758240225; Wed, 26 Feb 2020 15:04:00 -0800 (PST) Received: from taoren-ubuntu-R90MNF91.thefacebook.com ([2620:10d:c090:500::7:5ebf]) by smtp.gmail.com with ESMTPSA id 3sm3912621pjg.27.2020.02.26.15.03.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Feb 2020 15:03:59 -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 v4 0/7] aspeed-g6: enable usb support Date: Wed, 26 Feb 2020 15:03:39 -0800 Message-Id: <20200226230346.672-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 | 71 +++++++++++++++++++ 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, 284 insertions(+), 71 deletions(-) create mode 100644 Documentation/devicetree/bindings/usb/aspeed,usb-vhub.yaml -- 2.17.1