Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp154583ybf; Thu, 27 Feb 2020 18:08:42 -0800 (PST) X-Google-Smtp-Source: APXvYqw6CQeoFalkb8CvZMjfL3dJ7LsOVMl/kaXdQHOavlnxo3C+tbAeIHm1CM2Azve33TQd1pJa X-Received: by 2002:a9d:7999:: with SMTP id h25mr1477874otm.347.1582855722103; Thu, 27 Feb 2020 18:08:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582855722; cv=none; d=google.com; s=arc-20160816; b=R1EEPg9DfUWgddSJg0f2YKlt+rH7u8xNq2BwJ0UwuVGClTqXS2hhA1ZrBHInR5QfOf G4Y7KyCetahthMxk8Qt5p5EimoUctE/1FQrbRJU1IKAamjhQM57l2tzZime9Sqsvhi2r RMvIQbJ+MdiURlUycT3S6Rf1pwb3YpzHcrZd6FV10qMytnfx8b5rLDka+S0OKLY30kkW 0zD19UijuPGaxjkX+uLYkQgkWyCSqE35CZMhqbWxr/m1d2m0A43/9FOGAP/9r7JLAv7n R3zzZXepsSS8uRGFSvmUpVnU3enDCZCH8YRbdPqWwg5gP6568oPNYqKPmL3FOgKDYjze onvA== 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=4mjPmvXysWT0DgB3PSQGnyz6HfpRACYycHeQnWkOz6Y=; b=Lwjg6S9c9qq1qkHlWFy9M4BZQ9H7M6aG3rF5zizkM7/nYcY+RSQoigJr4ofIXEv+Wl TR2lpa53cyoigx33b6QZZbG5klURHhSHjQ1cZaLE4qrqgaHwyfnNG5KVrgsV4pp+1Lb+ 5Zoq2DMcOHrHeY4umhsxivlGdRajphkptDZpipxw8PJlP+3qbDYG4N9AusE3qpshVOg7 E/YB5ZJGVuMI0f1t8qq9fccBsXqhD1BOiO4rdwfgD5c6dum0/hAA4joj6xrPqaJmGiaC SeuOvkL5IahUkdIxaENxbsU/rFuSSAiATqcs0ESAAmDCy9bjFjBQ+BWxenYDDhbejWyO NKrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZX+VZBI9; 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 f141si967464oib.125.2020.02.27.18.08.28; Thu, 27 Feb 2020 18:08:42 -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=ZX+VZBI9; 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 S1730646AbgB1CIN (ORCPT + 99 others); Thu, 27 Feb 2020 21:08:13 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:37068 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730460AbgB1CIN (ORCPT ); Thu, 27 Feb 2020 21:08:13 -0500 Received: by mail-pg1-f196.google.com with SMTP id z12so670398pgl.4; Thu, 27 Feb 2020 18:08:12 -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=4mjPmvXysWT0DgB3PSQGnyz6HfpRACYycHeQnWkOz6Y=; b=ZX+VZBI9RskmB38Sd4RrA9/Aek92Spv7yQBdBSNLRoSEFNRURWgTZE11IoKdjOZ3YK PGTlTDyR8NTYR1vcoWariC/tTjag+7sxf8YW+rk/DcYghR05j5n+ThZTm8AjLUAWsf+g mFCkQAz4hd1zRFWqdRgwUUgNLsRq6ztHgVWHvB7RVUKj7e+NNLnxVuI+LXwl58RhQyMM C0ZuJTShk4JZqg5OsJaVIZ6xUdVXOWqff9hkmcjsftTwAYUIan8B/5r/e0oRS3ts714o eK39VCi2cDLhZ+epNfi/Q/heRRxkFVXJzWlDWJH5vKB02rkr5U2AVlfW2YkKlQVbssoB yT5A== 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=4mjPmvXysWT0DgB3PSQGnyz6HfpRACYycHeQnWkOz6Y=; b=hLXV6rqIHS2bCRdwfB7qMjr+fA6/V7yWf09K/+ni2lHwqS0+Eq1SeaUVaw/Ye/OiLd EiCCW6XXa1SWp8W7uzcLwvtkqb6Yro9q44bcQd1qYHhSilq9MjyJwxmneQ9Ooy+oRNbl gGHYJ04j5rctFM9xgbAmbJmsqfNI/T3jTMYdrxdqJ+A1JBcsFWSg9xavh7BJx608XM6T 3RLDatRJGi7wWXOJuL9FrHkC+wh9yrN+BCYeGEunJqnZ+V+e/6ypXGYPGyeBA85f8Omj mC56fSplSR6MD8TAHpE0i1T9kvf3eWTibaEprRZiV3q3RGXS/mU2DiEmFnvfW00hkODg zOhQ== X-Gm-Message-State: APjAAAX0vMHmWYyVSop29cjxOZdoNJjJA8475x7dSsPhIskeB0PwuqM0 lOUW5TaA4fa8JlNZdBZrHsY= X-Received: by 2002:a62:1dca:: with SMTP id d193mr2085368pfd.140.1582855692123; Thu, 27 Feb 2020 18:08:12 -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.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Feb 2020 18:08:11 -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 3/7] usb: gadget: aspeed: add ast2600 vhub support Date: Thu, 27 Feb 2020 18:07:53 -0800 Message-Id: <20200228020757.10513-4-rentao.bupt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200228020757.10513-1-rentao.bupt@gmail.com> References: <20200228020757.10513-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/v6. 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