Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp19033ybf; Thu, 27 Feb 2020 15:07:57 -0800 (PST) X-Google-Smtp-Source: APXvYqzTf35GV4e0ES8SfTP0qXFZ3K+IFMSNrpmusM7JrW2H8+vaQNMRfvADY76aGwFBVVl/NIHm X-Received: by 2002:a05:6830:1689:: with SMTP id k9mr1042642otr.311.1582844877691; Thu, 27 Feb 2020 15:07:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582844877; cv=none; d=google.com; s=arc-20160816; b=bAxOZ7LgHmUtsvIJUVpbAJc1xWmHhtZgsuelaFmsZbv+Iip2WmTW4ejcjbftbd0v1V HNth2xPy9PUK34SxBlLvIsFyI72WZw+BWh4jH3Gp6qS/StUgzUGh7ww4CtC8EQLlW4lm K13/NjWtnn8qGpz/Wlbj42xT15TUQ+UyISIVtt+OhB1Z6f0hf52EQ8o/mAR86MOkChwn JWiUmVv/3qyaglwB3WwokCPDVor1Id+yk+S7R22EEVwaOkb8sXp4QD52Wddma+i6x/6h KGKUiCj5lRl87+82nU3Tbd+qifH7Re9EwJRVMIeIlQKSHakS0CAzl6pfyy85pdYwkXtB kW9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=yJC16zlFSOyxbyka2I18YVaxRbVkz24cosOoXMXos50=; b=teLcCQJYyoWMdtrKkJmMxw72waG6GhxIlO574JJc/N16QZ3HVoC71brQVYU1+p/UPK VfZlW6662xDYHgm3jPmpPzo9DX3JGjNBwiK014PIt9eCHKrvi4wSAs5LELttSfWuXmk+ mM9q+C4exX0PMF/n2S8nYsETIAbOBMB47SYmFVz72gbup+I99FeCUNs7Ge2PGdWb6Odk MZJ9lP3vnAoVU0p0bKMs+4twTTYbATGF9SCeOBXg4MDGJzP52hgPiLt0CQfhWTql29bs 5kyUOI91Gkvof/wJEYMl2bPAazDw1f/Jey1W7pBXBl5gi925YmmjSbjcOMFtdyRtMG+h ax5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="G8yUlb/U"; 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 w11si709760oic.62.2020.02.27.15.07.45; Thu, 27 Feb 2020 15:07:57 -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="G8yUlb/U"; 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 S1730309AbgB0XFY (ORCPT + 99 others); Thu, 27 Feb 2020 18:05:24 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:37314 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730275AbgB0XFX (ORCPT ); Thu, 27 Feb 2020 18:05:23 -0500 Received: by mail-pl1-f194.google.com with SMTP id q4so422302pls.4; Thu, 27 Feb 2020 15:05:21 -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:in-reply-to:references; bh=yJC16zlFSOyxbyka2I18YVaxRbVkz24cosOoXMXos50=; b=G8yUlb/UgIGBnsBBBzhuJpYS/b3TODQNj2LCX6Ni0FHusgj/dI6DvMfY3DyLXjCd+4 7TSd9b1kx4YHRO7u2jVBcK0cxQXp6n5BV8iCLJQ+B3D42RuDg3Hms+Zlt54xOer6ClP7 IT7OOA6dSTkTInmPaBZ0RaWcvMhuY5KFarW1iRYSDp+kz6SXgyA/kE7EAxmJq7qOPcj0 urJGWTP9TVVzwIAJnV6kgPEWj3UwU6XdjgbEQ0EALzqp7R1SIEBVb6PGa4hqIYzKkcDi p5OtNP8zApxHZPUF+HFvhu4WNzn/UY5Eph9q+gfBudKs+Vq2Yk3i8kl64/RMOmOJZOkH T2yg== 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:in-reply-to :references; bh=yJC16zlFSOyxbyka2I18YVaxRbVkz24cosOoXMXos50=; b=QkselsoZ0DIc4QFJ2Lh1DcJAYNjLuWAPupEv4yYcpEp+bzdywU3G3uQJchqqs7hP2h 7fRFTiUQHImcB2I0GB+rhuxeu1MkusfV+wHGjQ/i7Og7ADtrkf+Kx9KX2Icdygw2omVa CiyLdFCYz03ijiMSd8M+BrXLqw5yIhO7u9hN/yq2x2yByJJ5AQhesWWf65OBP+zvOxF3 2CqtVGtXnKycs6PjWlawhVgci6Tcci2I7BTp+g+SMYM1oiC5uPO1kUUgVSWMM3WlyQ6G qv5Qc27KDkenJgFvppaTuJSNdjQnd0Ba4tjrfOtXYnG8B+3M8fze2xi8jfZWjptyipHc 2IOA== X-Gm-Message-State: APjAAAXxecKbsylG4ChbgUHqqmgnPhkKgnUvo3cHHdiZknqrC381iqp8 x13/vNJNiTOodoHB2OlDnbE= X-Received: by 2002:a17:90a:d348:: with SMTP id i8mr1395591pjx.43.1582844721043; Thu, 27 Feb 2020 15:05:21 -0800 (PST) Received: from taoren-ubuntu-R90MNF91.thefacebook.com ([2620:10d:c090:500::4:d8f5]) by smtp.gmail.com with ESMTPSA id w2sm8275975pfw.43.2020.02.27.15.05.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Feb 2020 15:05:20 -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 v5 3/7] usb: gadget: aspeed: add ast2600 vhub support Date: Thu, 27 Feb 2020 15:05:03 -0800 Message-Id: <20200227230507.8682-4-rentao.bupt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200227230507.8682-1-rentao.bupt@gmail.com> References: <20200227230507.8682-1-rentao.bupt@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tao Ren Add AST2600 support in aspeed-vhub driver. There are 3 major differences between AST2500 and AST2600 vhub: - AST2600 supports 7 downstream ports while AST2500 supports 5. - AST2600 supports 21 generic endpoints while AST2500 supports 15. - EP0 data buffer's 8-byte DMA alignment restriction is removed from AST2600. Signed-off-by: Tao Ren Reviewed-by: Andrew Jeffery Acked-by: Benjamin Herrenschmidt --- No Change in v3/v4/v5. Changes in v2: - removed "ast_vhub_config" related logic. drivers/usb/gadget/udc/aspeed-vhub/Kconfig | 4 ++-- drivers/usb/gadget/udc/aspeed-vhub/core.c | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/udc/aspeed-vhub/Kconfig b/drivers/usb/gadget/udc/aspeed-vhub/Kconfig index 83ba8a2eb6af..605500b19cf3 100644 --- a/drivers/usb/gadget/udc/aspeed-vhub/Kconfig +++ b/drivers/usb/gadget/udc/aspeed-vhub/Kconfig @@ -4,5 +4,5 @@ config USB_ASPEED_VHUB depends on ARCH_ASPEED || COMPILE_TEST depends on USB_LIBCOMPOSITE help - USB peripheral controller for the Aspeed AST2500 family - SoCs supporting the "vHub" functionality and USB2.0 + USB peripheral controller for the Aspeed AST2400, AST2500 and + AST2600 family SoCs supporting the "vHub" functionality and USB2.0 diff --git a/drivers/usb/gadget/udc/aspeed-vhub/core.c b/drivers/usb/gadget/udc/aspeed-vhub/core.c index f8ab8e012f34..f8d35dd60c34 100644 --- a/drivers/usb/gadget/udc/aspeed-vhub/core.c +++ b/drivers/usb/gadget/udc/aspeed-vhub/core.c @@ -423,6 +423,9 @@ static const struct of_device_id ast_vhub_dt_ids[] = { { .compatible = "aspeed,ast2500-usb-vhub", }, + { + .compatible = "aspeed,ast2600-usb-vhub", + }, { } }; MODULE_DEVICE_TABLE(of, ast_vhub_dt_ids); -- 2.17.1