Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1112880ybl; Fri, 31 Jan 2020 14:23:13 -0800 (PST) X-Google-Smtp-Source: APXvYqxajhJWhkjlNCfQ8eajlguWgVMvltcZZadkWAyh8bVszip7mSr4zkFMkLNz95G+fZkjSAVf X-Received: by 2002:a9d:774e:: with SMTP id t14mr9137375otl.358.1580509393797; Fri, 31 Jan 2020 14:23:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580509393; cv=none; d=google.com; s=arc-20160816; b=FW++jtJ77XOaqs93NhXJmydJlzVMWZdyG+cqw4vCAYKRRv3wphtUHqRtZxKaG2KaFE WiM0/Kv+R9u1FdVCl8kPQwo2f47tsfeG0YeusL/3h2hN4S/Dqjtj9AhhbkFP7PYfoIG6 dQQ+zavSwYZRXQunTZLr2Vg3PrW6FG0mKiq/T1g/8yUHsLnGsnJOZbI47HhiCIa63wJd yU0nGSwnOMK86Juwow3wTXJGgDrynntnnu2XNmC39zGsRIMcEA2K5onHvj42UH+oGvlS sfxlXQOXi7hsj0+1+MqdXZw9aX0UFSmRLuPCAA/wBptjP4T8FTxPMrRSNblerkee2xlG 6ogQ== 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=/HFcoQMFwoF5gwXFjCOgMWeMPSstLjSDHZ4Dum+BpLY=; b=zVkIrOhrMQTNV5BiZfaYCs1uSkuoBsMHPNS7uG9GWW2ifIPMK06rUCnvkNnTUWBSgD 7AQY/NvJj9vosm4BDBFZp1k0RAV09+OGsdUVps8rn0bKskISTcp9hx90kMtL/PyL6cnX fkK32q5T5DkwnOtK4xUpH9Ms3PXd7PBFf2QH6WX8LPNDd+2xqEgXZEy3fXpqNdKTKk80 tRGGAaUOI9TXZAMleXJxTn5oMIckeqHkp6pD8CaIeh0dNfO7GHcq9n3TsIQ/x8emkDC3 jyhO0ef/6eWKfXrYuOBLH2i2K5iASwfgChYvqCd2c0ULWmByWC7pAJ5fk/Dw2DS5kpIZ bxMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DatComwm; 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 u16si5251114otq.92.2020.01.31.14.23.01; Fri, 31 Jan 2020 14:23:13 -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=DatComwm; 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 S1726443AbgAaWWJ (ORCPT + 99 others); Fri, 31 Jan 2020 17:22:09 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:44509 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726163AbgAaWWJ (ORCPT ); Fri, 31 Jan 2020 17:22:09 -0500 Received: by mail-pg1-f196.google.com with SMTP id x7so4218885pgl.11; Fri, 31 Jan 2020 14:22: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=/HFcoQMFwoF5gwXFjCOgMWeMPSstLjSDHZ4Dum+BpLY=; b=DatComwmXGtiPYRomdkOy0XFknlTGW4jw8cqnPXUs3c1PayQQ01hJkqNdNRCG8/3as pZ/HWMofmFNsf38uGdGoFb3KtxSkVedmPKnu1jwNA2VWD0/4lpfh7rRv7HJc7BHC4AJa O02dRGqtmspUgZGqsDhaanNF5EdARykMjcLg8SgyQktv9O3aCgdAdKUh2t+uFNq/6oBb 9tKZ9w8vkAtdC8LszUYhH4MUge04bpiWX+0BGuCp8I892FKG/uCFih4C0Sz3kVIhKEqk IM6KyEzpAP0RXQ1QsP0P5JnzqdRzaJdfvyMe4Y6yG5V9RDGEL7j/Dw0JyZdCWhnGly0V pSSA== 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=/HFcoQMFwoF5gwXFjCOgMWeMPSstLjSDHZ4Dum+BpLY=; b=rMaHTIZKmrRTJ+Z4TuawucBLdRtbxzHaUI4oLWn45kGp6bwxcIqkQJh9Xbc40NPFCK RVyYIWoZozaiMl3YDSex7mjhcS16tBtA68yC23Jq0gZFtiRJqpccVBgH5zhl/1ADO/u6 DYhfFu2TVCTdunlsQHkeV1Yy8jpQsbP84+Q2EmiSRYiFy7Igb7hjvv/wm5TR5P20vk9J bylwZiOjnu7WvQTqNE5/JFjbRYWtIYnFV1fQEdANDAoFngYyAFt3y94siud5e31X+d26 QaMFGDBBSLXpgXA9cPo7DC+hgOJksdDmbEzZtckK/PNsoYXrdkg5wqMnsoO/vcMzm83E IC9Q== X-Gm-Message-State: APjAAAWKmuXW2jpQNhY+qrnvwYGlZ17bnul31l9GHQZs+6MQjOW3Zmnl Y0g2kJsns65HVuQst4zd/Ss= X-Received: by 2002:a62:ddd0:: with SMTP id w199mr12425962pff.1.1580509327790; Fri, 31 Jan 2020 14:22:07 -0800 (PST) Received: from taoren-ubuntu-R90MNF91.thefacebook.com ([2620:10d:c090:200::1:a521]) by smtp.gmail.com with ESMTPSA id v8sm11201515pff.151.2020.01.31.14.22.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jan 2020 14:22:07 -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 Cc: Tao Ren Subject: [PATCH 0/3] aspeed-g6: enable usb support Date: Fri, 31 Jan 2020 14:21:54 -0800 Message-Id: <20200131222157.20849-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 moves hardcoded vhub attributes (number of downstream ports and endpoints) to "struct ast_hub_config" which is then attached to "struct of_device_id". By doing this, it will be easier to enable ast2600 vhub which supports more ports and endpoints. Patch #2 enables AST2600 support in aspeed-vhub gadget driver. Patch #3 adds USB devices and according pin groups in aspeed-g6 dtsi. Tao Ren (3): usb: gadget: aspeed: read vhub config from of_device_id usb: gadget: aspeed: add ast2600 vhub support ARM: dts: aspeed-g6: add usb functions arch/arm/boot/dts/aspeed-g6-pinctrl.dtsi | 25 +++++ arch/arm/boot/dts/aspeed-g6.dtsi | 43 ++++++++ drivers/usb/gadget/udc/aspeed-vhub/Kconfig | 4 +- drivers/usb/gadget/udc/aspeed-vhub/core.c | 109 ++++++++++++++------- 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 | 26 +++-- drivers/usb/gadget/udc/aspeed-vhub/vhub.h | 23 ++--- 8 files changed, 191 insertions(+), 73 deletions(-) -- 2.17.1