Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5397907ybv; Mon, 17 Feb 2020 19:15:52 -0800 (PST) X-Google-Smtp-Source: APXvYqyC2we/KNXeGwauzBRDPaILV7PrL7bFabXsnW9FnwxTcbek5GC+uY93MseHGjOU8/7ZhCSr X-Received: by 2002:a9d:5885:: with SMTP id x5mr13982451otg.132.1581995752402; Mon, 17 Feb 2020 19:15:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581995752; cv=none; d=google.com; s=arc-20160816; b=O7AMTnsKpCPYR/zObrz8PMiFQ5duFf0SdcyDP2FG4mNudzjOf9neU4jc47JXdT0cEe 2I4ERNj0bAXuZa1t7y5uZ0ufD1OfHemJT0gLGm5Po5z4DFsNdLemYk8M0Ku6dJDtBjNn ybg3eabaSOnh+VbHOulTFkerXE01w3Vf+zVObtt0ABJASdAAP+2KZUGe1hCtB2DJjXqX 4774bMsISofKYlfh6oHWLQpJ4iYBu2PURVQeFMrBo63/O3MGbVayM0WgN1oagfDjo06D LrviyTa61IZ48wxv27gc5VPMB0HwdORYoTizaslNbo3r/kr310p6XKZWFPlVpl2SPfIv 8+KA== 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=QXKDYwEJ0FxdOMnutv0vajM2YUai+A8MQR7DaSJ50D8=; b=bvu6Ubcjtffp20Nbj1X2QUTCX+UlJDgvrfdo/wHcCxGIGYjwndN5E1hEzATAdz1Jvh FJaZQmlfVdZZOrkKglV3Vt9+84eUBgX1Nv+YrtZ8rXwzZj8I172BzPm21eGeV7BwMlbM EIMFMTjuqHFm4AczJ0uSxqH//GXk6YbmnnYkmWRTiPY5ZJftjsn6lludXwrB3gLquwo5 cTiqLPsthY4UILYcVY4A5KRzmiwUkFzIkk1gguCtFafABFXW1v6eZmEZq/3P0ApIWyjA 5BQ3h7B4XMHj07hETXzORhbTCd+CeZ2C0FjXM400GpPyYOR5S9YqrqG7hKUdpRjssVis OyHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=K52oErQH; 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 z7si1161223oth.181.2020.02.17.19.15.39; Mon, 17 Feb 2020 19:15:52 -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=K52oErQH; 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 S1726333AbgBRDN1 (ORCPT + 99 others); Mon, 17 Feb 2020 22:13:27 -0500 Received: from mail-pj1-f67.google.com ([209.85.216.67]:37862 "EHLO mail-pj1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726237AbgBRDN1 (ORCPT ); Mon, 17 Feb 2020 22:13:27 -0500 Received: by mail-pj1-f67.google.com with SMTP id m13so356920pjb.2; Mon, 17 Feb 2020 19:13:25 -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=QXKDYwEJ0FxdOMnutv0vajM2YUai+A8MQR7DaSJ50D8=; b=K52oErQHhH1VOS2rZN6/4aypLstAfecJCe/0dHwYOQxReOfbBeAgIk5iOrwuR74dut +X4DBNOJOcu+bps5CMA+Pe8icIX0UTJdE6qrDS+z0pGqyDPmelDdMDYCF+W+shvYFEz2 +t+GGcxWW22TPi20RBvTajOpA6i2HyzmN2CoFtrOaTC+AEVrV96UuSnFBNNR2vZ4oPA9 tvTUVR2QXobydoifr/ioajA2AEwqlDacsKGHnJ99+Xc2pt1rUF20T9ovZYryNlTnvIle bFhww5NrHBPB9J6qMFEIL2hFukX5LzQ0Eb3dIr82CPhEKNvWyrGS2ImGVXcVC+zxdu5Q pnfw== 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=QXKDYwEJ0FxdOMnutv0vajM2YUai+A8MQR7DaSJ50D8=; b=mNFqRAuYUcytMwVhhKvGh+W9g1DP4Zif78+1Z8hfvTRgOwt/J4h3qLJpJv9znKRPcn O3qf/0XPrvaOgkjMSl8GWJK5/ikZwlJK3H5hHwb8/XInrkge9Wuzs2o7fibb16QRdckm rXHOj65u+Pydhewoc/x8axDyhc6pmkF2SESvSaTbu73EV5UpYumK0dC5bo8TQhsiGYF2 YdeYEsb1FgCes3Ptu9t0iMUcMBNEaf5G8VBsNXovq/6jgWUBCPgjecjSvT5HPpRp7QSL OnnjLDKSebapNcqrrVW4HNwFwJ26MtfG8hdA7Z4qWDCVnSJvM2L7T3uct3OzF3EBxSZr Ob7A== X-Gm-Message-State: APjAAAW5pT1KwageJR+G8UifVIBKNjmSJ5OK72pOcJ5Op1ouScug/wws jNQVsa4NvQGcTGAr/g+MFsc= X-Received: by 2002:a17:902:547:: with SMTP id 65mr17940779plf.50.1581995605202; Mon, 17 Feb 2020 19:13:25 -0800 (PST) Received: from taoren-ubuntu-R90MNF91.thefacebook.com ([2620:10d:c090:180::6f94]) by smtp.gmail.com with ESMTPSA id b18sm1812595pfd.63.2020.02.17.19.13.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Feb 2020 19:13:24 -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 v3 0/5] aspeed-g6: enable usb support Date: Mon, 17 Feb 2020 19:13:10 -0800 Message-Id: <20200218031315.562-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 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 #2 enables ast2600 support in aspeed-vhub usb gadget driver. Patch #3 adds USB devices and according pin groups in aspeed-g6 dtsi. Patch #4 and #5 add vhub port/endpoint properties into aspeed-g4 and aspeed-g5 dtsi. Tao Ren (5): 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 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 | 79 +++++++++++++++------- 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 +++---- 10 files changed, 178 insertions(+), 62 deletions(-) -- 2.17.1