From patchwork Thu Nov 3 16:06:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yu, Richard" X-Patchwork-Id: 14976 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp624732wru; Thu, 3 Nov 2022 09:11:43 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4Jglw++YQvKLY+U3LF4SuIZ8lycr3rZZPkU8d9933/2HuQZXE0XNLmFkwiJARuRqk4sGmj X-Received: by 2002:a50:9fae:0:b0:464:472e:cbc4 with SMTP id c43-20020a509fae000000b00464472ecbc4mr2618616edf.143.1667491903110; Thu, 03 Nov 2022 09:11:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667491903; cv=none; d=google.com; s=arc-20160816; b=E+P5e2KmX1xTXAso3TBTJP9yYEuElGUVuRAQQ7/Ba7qHcHZBcG/AWiKENOlbLhqQmL wGf5JjO5A0GOYKjEBeuPRHfqzk+6rVIB2nPrmeU1TNRc/++HZ29F4WwTlFiVnVgKZUHK UW06+ZdDfYTcocwq4sx++LRfXD/k0gt7nYWQwqxrOsjHkC9wZJT3eqCjuVb9CMGc9IrQ auVPrp2uNloSro7y8nxDLmJNKzCwHYZHZjrQIdacp5YTS/lcSj1KzJYYKPiNTtAVbhTV ARAalPdTpsJaTUpEh1mZRjkoKt/FK6x0LCCoqAA3JJenuW+/qp6yA+Uk7aKWRBP+7MTY XZ+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :to:from:dkim-signature; bh=yEYFuNfnfU7EZumdDn0VomNI6piViCEvsXu1bSlFvEk=; b=0d8y16KrcAJwXg8I3tLWkoBQTjsyi63wUmZidHSLU+//6Gt6hAybjKghVp+JOhvitO jWhnX9f0O0PC4lYi2w30EdeF/BVUZr3WX4ANDnQMaKk/EIWG7SwT7OYrWAtbmSKQdbe7 oW0+Rc76jlabKpyTm8i/HvPmyyGlI0TS0SnvzD8HCrYerV5dFRgh9nCbfJ9KskzY9Wxv WNbaZtGGZl7XlJDGkiKSDaJ4SA8El/gAIPDBiTJme8SygxwjsN12d3/m/W5ApIdPgBcE 5saXr5RGbiqKbvxY8pDLC/xZsCSV7E6C0EdvfEprdM/5D5K/o8Go6ILENTOa6DqSfjJN ZpLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=CGwFSf9T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hpe.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mp36-20020a1709071b2400b007a1b49ca799si2021223ejc.385.2022.11.03.09.11.11; Thu, 03 Nov 2022 09:11:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=CGwFSf9T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hpe.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232270AbiKCQIs (ORCPT + 99 others); Thu, 3 Nov 2022 12:08:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231419AbiKCQH7 (ORCPT ); Thu, 3 Nov 2022 12:07:59 -0400 Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAB4E18B32; Thu, 3 Nov 2022 09:07:54 -0700 (PDT) Received: from pps.filterd (m0134421.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 2A3FxVQo026919; Thu, 3 Nov 2022 16:07:34 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : subject : date : message-id : in-reply-to : references; s=pps0720; bh=yEYFuNfnfU7EZumdDn0VomNI6piViCEvsXu1bSlFvEk=; b=CGwFSf9TlSKpfs0KbXDLQV/GzCegQXVvqUXkTtJSIJLINHr3A86JXuBSB6mF57+7zkj6 VwuiUsk6YY3fICzcpvBOfP69EPqf6Qr0W0jfr2VTyo64rBAEiE0RaY1T/lL7Uq4xlZNL TyAMMtLiHR+weOE4Y9+/S1TSVxaipOCHRAAd/Nk1QhQfI9QXyJIJNC25wF0/50o/D0bH t+FelsO+GnSjEnfrctrQhBPZaHWL0hcNX2K/LoZ5Rn/WR6eBITP8SFOlsgG7Q0X8zbCB lo6cWWNelxhqjsngLrd36xzyFdcgPPRXeSt77qKnoYM9Ul0u937jqiCpl+EOaA5naeRx 1w== Received: from p1lg14879.it.hpe.com (p1lg14879.it.hpe.com [16.230.97.200]) by mx0b-002e3701.pphosted.com (PPS) with ESMTPS id 3kmgs5r3es-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 03 Nov 2022 16:07:34 +0000 Received: from p1lg14885.dc01.its.hpecorp.net (unknown [10.119.18.236]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by p1lg14879.it.hpe.com (Postfix) with ESMTPS id 62BA8295AB; Thu, 3 Nov 2022 16:07:33 +0000 (UTC) Received: from hpe.com (unknown [16.231.227.36]) by p1lg14885.dc01.its.hpecorp.net (Postfix) with ESMTP id D01DA804D22; Thu, 3 Nov 2022 16:07:32 +0000 (UTC) From: richard.yu@hpe.com To: verdun@hpe.com, nick.hawkins@hpe.com, richard.yu@hpe.com, gregkh@linuxfoundation.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux@armlinux.org.uk, balbi@kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v1 1/7] usb: gadget: udc: gxp_udc: add gxp USB support Date: Thu, 3 Nov 2022 11:06:19 -0500 Message-Id: <20221103160625.15574-2-richard.yu@hpe.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221103160625.15574-1-richard.yu@hpe.com> References: <20221103160625.15574-1-richard.yu@hpe.com> X-Proofpoint-GUID: -Ig6TUUZ93omwRfThA152xaOkyATGqTo X-Proofpoint-ORIG-GUID: -Ig6TUUZ93omwRfThA152xaOkyATGqTo X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-03_04,2022-11-03_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=922 spamscore=0 suspectscore=0 priorityscore=1501 malwarescore=0 impostorscore=0 lowpriorityscore=0 phishscore=0 mlxscore=0 bulkscore=0 clxscore=1015 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211030107 X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748491989479958744?= X-GMAIL-MSGID: =?utf-8?q?1748491989479958744?= From: Richard Yu The GXP vEHCI controller presents an 8 port EHCI compatible PCI function to host software. Each EHCI port is logically connected to a corresponding set of virtual device registers. Signed-off-by: Richard Yu --- drivers/usb/gadget/udc/Kconfig | 6 + drivers/usb/gadget/udc/Makefile | 1 + drivers/usb/gadget/udc/gxp_udc.c | 1300 ++++++++++++++++++++++++++++++ 3 files changed, 1307 insertions(+) create mode 100644 drivers/usb/gadget/udc/gxp_udc.c diff --git a/drivers/usb/gadget/udc/Kconfig b/drivers/usb/gadget/udc/Kconfig index 5756acb07b8d..5eab5c140edf 100644 --- a/drivers/usb/gadget/udc/Kconfig +++ b/drivers/usb/gadget/udc/Kconfig @@ -463,6 +463,12 @@ config USB_TEGRA_XUDC dynamically linked module called "tegra_xudc" and force all gadget drivers to also be dynamically linked. +config USB_GXP_UDC + bool "GXP UDC Driver" + depends on ARCH_HPE_GXP || COMPILE_TEST + help + Say "y" to add support for GXP UDC driver + config USB_ASPEED_UDC tristate "Aspeed UDC driver support" depends on ARCH_ASPEED || COMPILE_TEST diff --git a/drivers/usb/gadget/udc/Makefile b/drivers/usb/gadget/udc/Makefile index 12f9e4c9eb0c..e1d6e0711b4d 100644 --- a/drivers/usb/gadget/udc/Makefile +++ b/drivers/usb/gadget/udc/Makefile @@ -43,3 +43,4 @@ obj-$(CONFIG_USB_ASPEED_VHUB) += aspeed-vhub/ obj-$(CONFIG_USB_ASPEED_UDC) += aspeed_udc.o obj-$(CONFIG_USB_BDC_UDC) += bdc/ obj-$(CONFIG_USB_MAX3420_UDC) += max3420_udc.o +obj-$(CONFIG_USB_GXP_UDC) += gxp_udc.o diff --git a/drivers/usb/gadget/udc/gxp_udc.c b/drivers/usb/gadget/udc/gxp_udc.c new file mode 100644 index 000000000000..2e046f88af6c --- /dev/null +++ b/drivers/usb/gadget/udc/gxp_udc.c @@ -0,0 +1,1300 @@ +// SPDX-License-Identifier: GPL-2.0=or-later +/* Copyright (C) 2022 Hewlett-Packard Enterprise Development Company, L.P. */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#define EVGBASE 0x0800 +#define EVGISTAT 0x0000 +#define EVGIEN 0x0004 +#define EVDBG 0x0008 +#define EVFEMAP 0x0010 +#define EVFEMAP_VDEVNUM_MASK 0x07 +#define EVFEMAP_VDEVNUM(val) val +#define EVFEMAP_EPNUM_MASK 0x70 +#define EVFEMAP_EPNUM(val) ((val) << 4) + +#define EVDBASE 0x1000 +#define EVDISTAT 0x0000 +#define EVDISTAT_ALL_EP_INT 0x000000ff +#define EVDISTAT_EP0_INT 0x00000001 +#define EVDISTAT_EP1_INT 0x00000002 +#define EVDISTAT_EP2_INT 0x00000004 +#define EVDISTAT_EP3_INT 0x00000008 +#define EVDISTAT_EP4_INT 0x00000010 +#define EVDISTAT_EP5_INT 0x00000020 +#define EVDISTAT_EP6_INT 0x00000040 +#define EVDISTAT_EP7_INT 0x00000080 +#define EVDISTAT_SETUP_DAT_RCV 0x00010000 +#define EVDISTAT_PORTEN_CHANGE 0x00100000 +#define EVDISTAT_PORTRST 0x80000000 + +#define EVDIEN 0x0004 + +#define EVDISTAT_MASK (EVDISTAT_SETUP_DAT_RCV | EVDISTAT_PORTEN_CHANGE | \ + EVDISTAT_PORTRST | EVDISTAT_ALL_EP_INT) +#define EVDIEN_MASK (EVDISTAT_SETUP_DAT_RCV | EVDISTAT_PORTEN_CHANGE | \ + EVDISTAT_PORTRST | EVDISTAT_EP0_INT) + +#define EVDCS 0x0008 +#define EVDCS_CONNECT 0x00000001 +#define EVDCS_PORTENABLESTS 0x01000000 + +#define EVDADDR 0x000c +#define EVDSETUPL 0x0010 +#define EVDSETUPH 0x0014 + +#define EVDEPCC 0x0000 +#define EVDEPCC_EPENABLE 0x00000001 +#define EVDEPCC_CFGINOUT 0x00000002 +#define EVDEPCC_DT_RESET 0x00000004 +#define EVDEPCC_DISARMCMD 0x00000020 +#define EVDEPCC_STALL 0x00000080 +#define EVDEPCC_TXN_PER_UFRAME_MASK 0x00030000 +#define EVDEPCC_TXN_PER_UFRAME(val) ((val) << 16) +#define EVDEPCC_EP_TYPE_MASK 0x000C0000 +#define EVDEPCC_EP_TYPE(val) ((val) << 18) +#define EVDEPCC_EP_SIZE_MASK 0x00700000 +#define EVDEPCC_EP_SIZE(val) ((val) << 20) + +#define EP_TYPE_CONTROL 0x00 +#define EP_TYPE_BULK 0x01 +#define EP_TYPE_INT 0x02 +#define EP_TYPE_ISOC 0x03 + +#define EP_IN 0x01 +#define EP_OUT 0x00 + +#define EVDEPSTS 0x0004 +#define EVDEPSTS_DONE 0x00000001 +#define EVDEPSTS_SHORT 0x00000002 +#define EVDEPSTS_STALLDET 0x00000004 +#define EVDEPSTS_BUFARMED 0x00010000 + +#define EVDEPEVTEN 0x0008 +#define EVDEPEVTEN_DONE 0x00000001 +#define EVDEPEVTEN_SHORT 0x00000002 +#define EVDEPEVTEN_STALLDET 0x00000004 +#define EVDEPADDR 0x000c +#define EVDEPLEN 0x0010 +#define EVDEPNTX 0x0014 + +#define GXP_UDC_MAX_NUM_EP 8 +#define GXP_UDC_MAX_NUM_FLEX_EP 16 +#define GXP_UDC_MAX_NUM_VDEVICE 8 +#define GXP_UDC_MAX_NUM_FLEX_EP_PER_VDEV 7 + +static bool udcg_init_done; + +static const char * const gxp_udc_name[] = { + "gxp-udc0", "gxp-udc1", "gxp-udc2", "gxp-udc3", + "gxp-udc4", "gxp-udc5", "gxp-udc6", "gxp-udc7"}; + +static const char * const gxp_udc_ep_name[] = { + "ep0", "ep1", "ep2", "ep3", "ep4", "ep5", "ep6", "ep7"}; + +struct gxp_udc_req { + struct usb_request req; + struct list_head queue; +}; + +struct gxp_udc_ep { + void __iomem *base; + struct gxp_udc_drvdata *drvdata; + + struct usb_ep ep; + struct list_head queue; + unsigned char epnum; + unsigned char type; + bool stall; + bool wedged; + int is_in; +}; + +struct gxp_udc_drvdata { + void __iomem *base; + struct platform_device *pdev; + struct regmap *udcg_map; + struct gxp_udc_ep ep[GXP_UDC_MAX_NUM_EP]; + + int irq; + struct usb_gadget gadget; + struct usb_gadget_driver *driver; + + u32 vdevnum; + u32 fepnum; + u32 devaddr; + + __le16 ep0_data; + struct usb_request *ep0_req; + bool deffer_set_address; + + /* This lock is used to protect the drvdata structure access */ + spinlock_t lock; +}; + +static void gxp_udc_out_0byte_status(struct gxp_udc_ep *ep); +static void gxp_udc_in_0byte_status(struct gxp_udc_ep *ep); + +static unsigned char gxp_udc_femap_read(struct gxp_udc_drvdata *drvdata, + int fep) +{ + unsigned int value; + int i = fep & 0x03; + + regmap_read(drvdata->udcg_map, EVFEMAP + (fep & ~0x03), &value); + value = (value >> (8 * i)) & 0xff; + + return (unsigned char)value; +} + +static void gxp_udc_femap_write(struct gxp_udc_drvdata *drvdata, int fep, + unsigned char value) +{ + unsigned int reg; + unsigned int tmp = value; + int i = fep & 0x03; + + regmap_read(drvdata->udcg_map, EVFEMAP + (fep & ~0x03), ®); + tmp = tmp << (8 * i); + reg &= ~(0xff << (8 * i)); + reg |= tmp; + regmap_write(drvdata->udcg_map, EVFEMAP + (fep & ~0x03), reg); +} + +static int gxp_udc_start_dma(struct gxp_udc_ep *ep, struct gxp_udc_req *req) +{ + writel(req->req.dma, ep->base + EVDEPADDR); + writel(req->req.length, ep->base + EVDEPLEN); + + return 0; +} + +static int gxp_udc_done_dma(struct gxp_udc_ep *ep, struct gxp_udc_req *req) +{ + u32 len; + + len = readl(ep->base + EVDEPLEN); + req->req.actual = req->req.length - len; + + if (len && ep->is_in) { + /* remaining data to send, rearm again */ + writel(len, ep->base + EVDEPLEN); + return 0; + } + return 1; +} + +static u32 evdepcc_ep_type(int value) +{ + switch (value) { + case USB_ENDPOINT_XFER_CONTROL: + /* control */ + return EP_TYPE_CONTROL; + + case USB_ENDPOINT_XFER_ISOC: + /* isochronous */ + return EP_TYPE_ISOC; + + case USB_ENDPOINT_XFER_BULK: + /* bulk */ + return EP_TYPE_BULK; + + case USB_ENDPOINT_XFER_INT: + /* interrupt */ + return EP_TYPE_INT; + + default: + return 0; + } +} + +static u32 evdepcc_ep_size(int value) +{ + switch (value) { + case 8: + return 0x00; + case 16: + return 0x01; + case 32: + return 0x02; + case 64: + return 0x03; + case 128: + return 0x04; + case 256: + return 0x05; + case 512: + return 0x06; + case 1024: + default: + return 0x07; + } +} + +static int gxp_udc_ep_init(struct gxp_udc_ep *ep, int type, int dir_in, + int size) +{ + u32 val; + u32 tmp; + + ep->is_in = dir_in; + ep->type = type; + ep->ep.maxpacket = size; + + val = readl(ep->base + EVDEPCC); + if (dir_in) { + /* to host */ + val |= EVDEPCC_CFGINOUT; + } else { + /* to device */ + val &= ~EVDEPCC_CFGINOUT; + } + + tmp = evdepcc_ep_type(type); + val &= ~EVDEPCC_EP_TYPE_MASK; + val |= EVDEPCC_EP_TYPE(tmp); + + tmp = evdepcc_ep_size(size); + val &= ~EVDEPCC_EP_SIZE_MASK; + val |= EVDEPCC_EP_SIZE(tmp); + + val &= ~EVDEPCC_TXN_PER_UFRAME_MASK; + if (type == USB_ENDPOINT_XFER_INT || + type == USB_ENDPOINT_XFER_ISOC) { + val |= EVDEPCC_TXN_PER_UFRAME(1); + } + + val |= EVDEPCC_EPENABLE; + writel(val, ep->base + EVDEPCC); + + val = readl(ep->base + EVDEPSTS); + val &= ~(EVDEPSTS_DONE | EVDEPSTS_SHORT | EVDEPSTS_STALLDET); + writel(val, ep->base + EVDEPSTS); + + val = readl(ep->base + EVDEPEVTEN); + val |= EVDEPEVTEN_DONE; + val |= EVDEPEVTEN_SHORT; + val |= EVDEPEVTEN_STALLDET; + writel(val, ep->base + EVDEPEVTEN); + + return 0; +} + +static struct usb_request *gxp_udc_ep_alloc_request(struct usb_ep *_ep, + gfp_t gfp_flags) +{ + struct gxp_udc_req *req; + struct gxp_udc_ep *ep; + + req = kzalloc(sizeof(*req), gfp_flags); + if (!req) + return NULL; + + ep = container_of(_ep, struct gxp_udc_ep, ep); + pr_debug("%s: ep%d\n", __func__, ep->epnum); + + INIT_LIST_HEAD(&req->queue); + + return &req->req; +} + +static void gxp_udc_ep_free_request(struct usb_ep *_ep, + struct usb_request *_req) +{ + struct gxp_udc_req *req; + struct gxp_udc_ep *ep; + + if (!_req) + return; + + ep = container_of(_ep, struct gxp_udc_ep, ep); + pr_debug("%s: ep%d\n", __func__, ep->epnum); + + req = container_of(_req, struct gxp_udc_req, req); + WARN_ON(!list_empty(&req->queue)); + kfree(req); +} + +static int gxp_udc_ep_queue(struct usb_ep *_ep, struct usb_request *_req, + gfp_t gfp_flags) +{ + struct gxp_udc_req *req; + struct gxp_udc_ep *ep; + unsigned long flags; + u32 val; + int ret; + + if (!_req || !_ep) + return -EINVAL; + + ep = container_of(_ep, struct gxp_udc_ep, ep); + req = container_of(_req, struct gxp_udc_req, req); + + if (!ep->drvdata->driver || + ep->drvdata->gadget.speed == USB_SPEED_UNKNOWN) + return -ESHUTDOWN; + + pr_debug("%s: vdev%d ep%d\n", + __func__, ep->drvdata->vdevnum, ep->epnum); + + spin_lock_irqsave(&ep->drvdata->lock, flags); + + if (ep->epnum == 0) { + val = readl(ep->base + EVDEPCC); + ep->is_in = (val & EVDEPCC_CFGINOUT) ? 1 : 0; + + if (!_req->length) { + /* ep0 control write transaction no data stage. */ + _req->status = 0; + + if (_req->complete) { + spin_unlock(&ep->drvdata->lock); + usb_gadget_giveback_request(_ep, _req); + spin_lock(&ep->drvdata->lock); + } + + gxp_udc_in_0byte_status(ep); + return 0; + } + } + + ret = usb_gadget_map_request(&ep->drvdata->gadget, + &req->req, ep->is_in); + if (ret) { + dev_dbg(&ep->drvdata->pdev->dev, + "usb_gadget_map_request failed ep%d\n", ep->epnum); + spin_unlock_irqrestore(&ep->drvdata->lock, flags); + return ret; + } + + req->req.actual = 0; + req->req.status = -EINPROGRESS; + + if (list_empty(&ep->queue)) { + list_add_tail(&req->queue, &ep->queue); + gxp_udc_start_dma(ep, req); + } else { + list_add_tail(&req->queue, &ep->queue); + } + + spin_unlock_irqrestore(&ep->drvdata->lock, flags); + + return 0; +} + +static int gxp_udc_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) +{ + struct gxp_udc_req *req; + struct gxp_udc_ep *ep; + unsigned long flags; + + if (!_ep || !_req) + return -EINVAL; + + ep = container_of(_ep, struct gxp_udc_ep, ep); + req = container_of(_req, struct gxp_udc_req, req); + + pr_debug("%s: vdev%d ep%d\n", + __func__, ep->drvdata->vdevnum, ep->epnum); + + spin_lock_irqsave(&ep->drvdata->lock, flags); + + /* ensure the req is still queued on this ep */ + list_for_each_entry(req, &ep->queue, queue) { + if (&req->req == _req) + break; + } + if (&req->req != _req) { + pr_debug("%s: vdev%d ep%d _req is not queued in this ep\n", + __func__, ep->drvdata->vdevnum, ep->epnum); + spin_unlock_irqrestore(&ep->drvdata->lock, flags); + return -EINVAL; + } + + if (ep->drvdata->gadget.speed == USB_SPEED_UNKNOWN) + _req->status = -ESHUTDOWN; + else + _req->status = -ECONNRESET; + + /* remove req from queue */ + list_del_init(&req->queue); + usb_gadget_unmap_request(&ep->drvdata->gadget, &req->req, ep->is_in); + if (req->req.complete) { + spin_unlock(&ep->drvdata->lock); + usb_gadget_giveback_request(_ep, _req); + spin_lock(&ep->drvdata->lock); + } + + spin_unlock_irqrestore(&ep->drvdata->lock, flags); + + return 0; +} + +static int gxp_udc_ep_enable(struct usb_ep *_ep, + const struct usb_endpoint_descriptor *desc) +{ + struct gxp_udc_ep *ep; + struct gxp_udc_drvdata *drvdata; + u32 val; + + if (!_ep) + return -EINVAL; + + ep = container_of(_ep, struct gxp_udc_ep, ep); + drvdata = ep->drvdata; + + pr_debug("%s vdev%d ep%d\n", __func__, drvdata->vdevnum, ep->epnum); + + if (!drvdata->driver || drvdata->gadget.speed == USB_SPEED_UNKNOWN) { + dev_err(&drvdata->pdev->dev, + "vdev%d ep enable failed no driver or speed unknown\n", + drvdata->vdevnum); + return -ESHUTDOWN; + } + + if (usb_endpoint_num(desc) > GXP_UDC_MAX_NUM_EP) { + dev_err(&drvdata->pdev->dev, + "vdev%d ep enable failed ep%d is out of range(%d)\n", + drvdata->vdevnum, usb_endpoint_num(desc), + GXP_UDC_MAX_NUM_EP); + return -EINVAL; + } + + ep->ep.desc = desc; + + ep->stall = false; + ep->wedged = false; + + /* setup ep according to the setting of desc */ + gxp_udc_ep_init(ep, usb_endpoint_type(desc), usb_endpoint_dir_in(desc), + usb_endpoint_maxp(desc)); + + /* enable ep interrupt */ + val = readl(drvdata->base + EVDIEN); + val |= 1 << ep->epnum; + writel(val, drvdata->base + EVDIEN); + + return 0; +} + +static int gxp_udc_ep_disable(struct usb_ep *_ep) +{ + struct gxp_udc_ep *ep; + struct gxp_udc_req *req; + unsigned long flags; + u32 val; + + if (!_ep) + return -EINVAL; + + if (!_ep->desc) + return -EINVAL; + + _ep->desc = NULL; + + ep = container_of(_ep, struct gxp_udc_ep, ep); + ep->stall = false; + ep->wedged = false; + + pr_debug("%s vdev%d ep%d\n", + __func__, ep->drvdata->vdevnum, ep->epnum); + spin_lock_irqsave(&ep->drvdata->lock, flags); + + /* clean queue */ + while (!list_empty(&ep->queue)) { + req = list_entry(ep->queue.next, struct gxp_udc_req, queue); + gxp_udc_ep_dequeue(&ep->ep, &req->req); + } + + /* disable ep */ + val = readl(ep->base + EVDEPCC); + val &= ~EVDEPCC_EPENABLE; + writel(val, ep->base + EVDEPCC); + + /* disable interrupt */ + val = readl(ep->drvdata->base + EVDIEN); + val &= ~(1 << ep->epnum); + writel(val, ep->drvdata->base + EVDIEN); + + spin_unlock_irqrestore(&ep->drvdata->lock, flags); + + return 0; +} + +static int gxp_udc_ep_set_halt_and_wedge(struct usb_ep *_ep, + int value, int wedge) +{ + struct gxp_udc_ep *ep; + struct gxp_udc_req *req; + u32 val; + + if (!_ep) + return -EINVAL; + + ep = container_of(_ep, struct gxp_udc_ep, ep); + + pr_debug("vdev%d ep%d gxp_udc_ep_set_halt(%d)\n", + ep->drvdata->vdevnum, ep->epnum, value); + + val = readl(ep->base + EVDEPCC); + + /* value = 1, halt on endpoint. 0, clear halt */ + if (value) { + ep->stall = true; + if (wedge) + ep->wedged = true; + + val |= EVDEPCC_STALL; + writel(val, ep->base + EVDEPCC); + } else { + ep->stall = false; + ep->wedged = false; + + val &= ~EVDEPCC_STALL; + val |= EVDEPCC_DT_RESET; + writel(val, ep->base + EVDEPCC); + + /* + * resume dma if it is in endpoint and there is + * request in queue when clear halt + */ + if (ep->is_in && !list_empty(&ep->queue) && !value) { + req = list_entry(ep->queue.next, + struct gxp_udc_req, queue); + if (req) + gxp_udc_start_dma(ep, req); + } + } + + return 0; +} + +static int gxp_udc_ep_set_halt(struct usb_ep *_ep, int value) +{ + struct gxp_udc_ep *ep; + + ep = container_of(_ep, struct gxp_udc_ep, ep); + + pr_debug("%s: vdev%d ep%d value:%d\n", + __func__, ep->drvdata->vdevnum, ep->epnum, value); + return gxp_udc_ep_set_halt_and_wedge(_ep, value, 0); +} + +static int gxp_udc_ep_set_wedge(struct usb_ep *_ep) +{ + struct gxp_udc_ep *ep; + + ep = container_of(_ep, struct gxp_udc_ep, ep); + + pr_debug("%s: vdev%d ep%d\n", + __func__, ep->drvdata->vdevnum, ep->epnum); + return gxp_udc_ep_set_halt_and_wedge(_ep, 1, 1); +} + +static const struct usb_ep_ops gxp_udc_ep_ops = { + .enable = gxp_udc_ep_enable, + .disable = gxp_udc_ep_disable, + + .alloc_request = gxp_udc_ep_alloc_request, + .free_request = gxp_udc_ep_free_request, + + .queue = gxp_udc_ep_queue, + .dequeue = gxp_udc_ep_dequeue, + + .set_halt = gxp_udc_ep_set_halt, + .set_wedge = gxp_udc_ep_set_wedge, +}; + +static int gxp_udc_connect(struct gxp_udc_drvdata *drvdata) +{ + unsigned int val; + unsigned char femap; + int i; + int j; + + /* clear event before enable int */ + val = readl(drvdata->base + EVDISTAT); + val |= EVDISTAT_MASK; + val |= (EVDISTAT_SETUP_DAT_RCV | EVDISTAT_PORTEN_CHANGE | EVDISTAT_PORTRST); + writel(val, drvdata->base + EVDISTAT); + + /* ep0 init */ + gxp_udc_ep_init(&drvdata->ep[0], USB_ENDPOINT_XFER_CONTROL, EP_IN, 64); + + /* enable interrupt */ + val = readl(drvdata->base + EVDIEN); + val |= EVDIEN_MASK; + writel(val, drvdata->base + EVDIEN); + + /* enable vdevice interrupt */ + regmap_update_bits(drvdata->udcg_map, EVGIEN, BIT(drvdata->vdevnum), + BIT(drvdata->vdevnum)); + + /* initial flex ep */ + for (j = 1; j < drvdata->fepnum + 1; j++) { + for (i = 0; i < GXP_UDC_MAX_NUM_FLEX_EP; i++) { + femap = gxp_udc_femap_read(drvdata, i); + /* if the flex ep is free (ep==0) */ + if (!(femap & EVFEMAP_EPNUM_MASK)) { + femap &= ~EVFEMAP_EPNUM_MASK; + femap |= EVFEMAP_EPNUM(j); + femap &= ~EVFEMAP_VDEVNUM_MASK; + femap |= EVFEMAP_VDEVNUM(drvdata->vdevnum); + gxp_udc_femap_write(drvdata, i, femap); + break; + } + } + if (i == GXP_UDC_MAX_NUM_FLEX_EP) { + dev_err(&drvdata->pdev->dev, + "vdev%d cannot find a free flex ep\n", + drvdata->vdevnum); + return -ENODEV; + } + } + + /* set connect bit, EVDCS */ + val = readl(drvdata->base + EVDCS); + + val |= EVDCS_CONNECT; + writel(val, drvdata->base + EVDCS); + + return 0; +} + +static int gxp_udc_disconnect(struct gxp_udc_drvdata *drvdata) +{ + unsigned int val; + unsigned char femap; + int i; + + /* disable interrupt */ + val = readl(drvdata->base + EVDIEN); + val &= ~EVDIEN_MASK; + writel(val, drvdata->base + EVDIEN); + + /* disable vdevice interrupt */ + regmap_update_bits(drvdata->udcg_map, EVGIEN, BIT(drvdata->vdevnum), 0); + + /* clear connect bit, EVDCS */ + val = readl(drvdata->base + EVDCS); + val &= ~EVDCS_CONNECT; + writel(val, drvdata->base + EVDCS); + + /* free flex ep */ + for (i = 0; i < GXP_UDC_MAX_NUM_FLEX_EP; i++) { + femap = gxp_udc_femap_read(drvdata, i); + if (EVFEMAP_VDEVNUM(drvdata->vdevnum) == + (femap & EVFEMAP_VDEVNUM_MASK)) { + gxp_udc_femap_write(drvdata, i, 0); + } + } + + return 0; +} + +static int gxp_udc_start(struct usb_gadget *gadget, + struct usb_gadget_driver *driver) +{ + struct gxp_udc_drvdata *drvdata; + + if (!gadget) + return -ENODEV; + + drvdata = container_of(gadget, struct gxp_udc_drvdata, gadget); + spin_lock(&drvdata->lock); + + if (drvdata->driver) { + dev_err(&drvdata->pdev->dev, + "vdev%d start failed driver!=NULL\n", drvdata->vdevnum); + + spin_unlock(&drvdata->lock); + return -EBUSY; + } + + drvdata->deffer_set_address = false; + + /* hook up the driver */ + driver->driver.bus = NULL; + drvdata->driver = driver; + + gxp_udc_connect(drvdata); + + spin_unlock(&drvdata->lock); + return 0; +} + +static int gxp_udc_stop(struct usb_gadget *gadget) +{ + struct gxp_udc_drvdata *drvdata; + + if (!gadget) + return -ENODEV; + + drvdata = container_of(gadget, struct gxp_udc_drvdata, gadget); + spin_lock(&drvdata->lock); + + gxp_udc_disconnect(drvdata); + drvdata->gadget.speed = USB_SPEED_UNKNOWN; + drvdata->driver = NULL; + + spin_unlock(&drvdata->lock); + return 0; +} + +static const struct usb_gadget_ops gxp_udc_gadget_ops = { + .udc_start = gxp_udc_start, + .udc_stop = gxp_udc_stop, +}; + +static void gxp_udc_out_0byte_status(struct gxp_udc_ep *ep) +{ + u32 evdepcc; + + /* out */ + evdepcc = readl(ep->base + EVDEPCC); + evdepcc &= ~EVDEPCC_CFGINOUT; + writel(evdepcc, ep->base + EVDEPCC); + + /* 0 len */ + writel(0, ep->base + EVDEPLEN); +} + +static void gxp_udc_in_0byte_status(struct gxp_udc_ep *ep) +{ + u32 evdepcc; + + /* in */ + evdepcc = readl(ep->base + EVDEPCC); + evdepcc |= EVDEPCC_CFGINOUT; + writel(evdepcc, ep->base + EVDEPCC); + + /* 0 len */ + writel(0, ep->base + EVDEPLEN); +} + +static int gxp_udc_ep_nuke(struct gxp_udc_ep *ep) +{ + u32 evdepcc; + struct gxp_udc_req *req; + + if (!ep) + return -EINVAL; + + /* disarm dma */ + evdepcc = readl(ep->base + EVDEPCC); + evdepcc |= EVDEPCC_DISARMCMD; + writel(evdepcc, ep->base + EVDEPCC); + + while (!list_empty(&ep->queue)) { + req = list_first_entry(&ep->queue, struct gxp_udc_req, queue); + gxp_udc_ep_dequeue(&ep->ep, &req->req); + } + + return 0; +} + +static int gxp_udc_set_feature(struct gxp_udc_drvdata *drvdata, + struct usb_ctrlrequest *ctrl) +{ + struct gxp_udc_ep *ep; + + if (ctrl->bRequestType == USB_RECIP_ENDPOINT) { + ep = &drvdata->ep[ctrl->wIndex & USB_ENDPOINT_NUMBER_MASK]; + if (le16_to_cpu(ctrl->wValue) == USB_ENDPOINT_HALT) { + gxp_udc_ep_set_halt(&ep->ep, 1); + return 1; + } + } + return 0; +} + +static int gxp_udc_clear_feature(struct gxp_udc_drvdata *drvdata, + struct usb_ctrlrequest *ctrl) +{ + struct gxp_udc_ep *ep; + + if (ctrl->bRequestType == USB_RECIP_ENDPOINT) { + ep = &drvdata->ep[ctrl->wIndex & USB_ENDPOINT_NUMBER_MASK]; + if (le16_to_cpu(ctrl->wValue) == USB_ENDPOINT_HALT) { + if (ep->wedged) + gxp_udc_ep_set_halt(&ep->ep, 0); + return 1; + } + } + return 0; +} + +static int gxp_udc_get_status(struct gxp_udc_drvdata *drvdata, + struct usb_ctrlrequest *ctrl) +{ + int ret; + u32 evdepcc; + + switch (ctrl->bRequestType & USB_RECIP_MASK) { + case USB_RECIP_DEVICE: + /* fill the req to send */ + drvdata->ep0_data = 1; + drvdata->ep0_req->length = 2; + drvdata->ep0_req->buf = &drvdata->ep0_data; + gxp_udc_ep_queue(&drvdata->ep[0].ep, drvdata->ep0_req, + GFP_KERNEL); + ret = 1; + break; + + case USB_RECIP_ENDPOINT: + evdepcc = readl(drvdata->ep[ctrl->wIndex & + USB_ENDPOINT_NUMBER_MASK].base + EVDEPCC); + /* fill the req to send */ + if (evdepcc & EVDEPCC_STALL) + drvdata->ep0_data = 1; + else + drvdata->ep0_data = 0; + drvdata->ep0_req->length = 2; + drvdata->ep0_req->buf = &drvdata->ep0_data; + gxp_udc_ep_queue(&drvdata->ep[0].ep, drvdata->ep0_req, + GFP_KERNEL); + ret = 1; + break; + + default: + ret = 0; + break; + } + + return ret; +} + +static void gxp_udc_handle_ep0_int(struct gxp_udc_ep *ep) +{ + struct gxp_udc_drvdata *drvdata = ep->drvdata; + struct gxp_udc_req *req; + u32 evdepsts; + u32 evdepcc; + + evdepcc = readl(ep->base + EVDEPCC); + evdepsts = readl(ep->base + EVDEPSTS); + writel(evdepsts, ep->base + EVDEPSTS); /* write 1 to clear status */ + + if (evdepsts & EVDEPSTS_STALLDET) { + pr_debug("ep%d get stalldet int\n", ep->epnum); + evdepcc &= ~EVDEPCC_STALL; + evdepcc |= EVDEPCC_DT_RESET; + writel(evdepcc, ep->base + EVDEPCC); + } + + if (evdepsts & EVDEPSTS_DONE || evdepsts & EVDEPSTS_SHORT) { + if (drvdata->deffer_set_address) { + writel(drvdata->devaddr, drvdata->base + EVDADDR); + drvdata->deffer_set_address = false; + } else if (!list_empty(&ep->queue)) { + req = list_entry(ep->queue.next, + struct gxp_udc_req, queue); + if (gxp_udc_done_dma(ep, req)) { + /* req is done */ + list_del_init(&req->queue); + usb_gadget_unmap_request(&ep->drvdata->gadget, + &req->req, ep->is_in); + if (req->req.complete) { + req->req.status = 0; + usb_gadget_giveback_request(&ep->ep, + &req->req); + } + + if (!list_empty(&ep->queue)) { + /* process next req in queue */ + req = list_entry(ep->queue.next, + struct gxp_udc_req, + queue); + gxp_udc_start_dma(ep, req); + pr_debug("ep0 queue is not empty after done a req!!\n"); + } else { + /* last req completed -> status stage */ + if (evdepcc & EVDEPCC_CFGINOUT) { + /* data in -> out status */ + gxp_udc_out_0byte_status(ep); + } else { + /* data out ->in status */ + gxp_udc_in_0byte_status(ep); + } + } + } + } + } +} + +static void gxp_udc_handle_ep_int(struct gxp_udc_ep *ep) +{ + struct gxp_udc_req *req; + u32 evdepsts; + u32 evdepcc; + + evdepsts = readl(ep->base + EVDEPSTS); + writel(evdepsts, ep->base + EVDEPSTS); /* write 1 to clear status */ + + if (evdepsts & EVDEPSTS_STALLDET) { + pr_debug("ep%d get stalldet int\n", ep->epnum); + evdepcc = readl(ep->base + EVDEPCC); + evdepcc &= ~EVDEPCC_STALL; + evdepcc |= EVDEPCC_DT_RESET; + writel(evdepcc, ep->base + EVDEPCC); + } + + if (evdepsts & EVDEPSTS_DONE || evdepsts & EVDEPSTS_SHORT) { + if (evdepsts & EVDEPSTS_SHORT) + pr_debug("ep%d get short int\n", ep->epnum); + if (evdepsts & EVDEPSTS_DONE) + pr_debug("ep%d get done int\n", ep->epnum); + + if (!list_empty(&ep->queue)) { + req = list_entry(ep->queue.next, + struct gxp_udc_req, queue); + if (gxp_udc_done_dma(ep, req)) { + /* req is done */ + list_del_init(&req->queue); + usb_gadget_unmap_request(&ep->drvdata->gadget, + &req->req, ep->is_in); + if (req->req.complete) { + req->req.status = 0; + usb_gadget_giveback_request(&ep->ep, + &req->req); + } + + if (!list_empty(&ep->queue)) { + /* process next req in queue */ + req = list_entry(ep->queue.next, + struct gxp_udc_req, + queue); + gxp_udc_start_dma(ep, req); + } + } + } + } +} + +static void gxp_udc_handle_setup_data_rcv(struct gxp_udc_drvdata *drvdata) +{ + struct usb_ctrlrequest ctrl = {0}; + u32 *ptr; + u32 val; + int handled = 0; + int ret; + + ptr = (u32 *)&ctrl; + + ptr[0] = readl(drvdata->base + EVDSETUPL); + ptr[1] = readl(drvdata->base + EVDSETUPH); + + if ((ctrl.bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) { + switch (ctrl.bRequest) { + case USB_REQ_SET_ADDRESS: + pr_debug("vdev%d get setup data USB_REQ_SET_ADDRESS\n", + drvdata->vdevnum); + /* + * this request is unique in that the device does + * not set its address until after the completion + * of the status stage.(ref: usb nutshell) + */ + drvdata->devaddr = ctrl.wValue & 0x7f; + drvdata->deffer_set_address = true; + gxp_udc_in_0byte_status(&drvdata->ep[0]); + handled = 1; + break; + + case USB_REQ_SET_FEATURE: + pr_debug("vdev%d get setup data USB_REQ_SET_FEATURE\n", + drvdata->vdevnum); + handled = gxp_udc_set_feature(drvdata, &ctrl); + break; + + case USB_REQ_CLEAR_FEATURE: + pr_debug("vdev%d get setup data USB_REQ_CLEAR_FEATURE\n", + drvdata->vdevnum); + handled = gxp_udc_clear_feature(drvdata, &ctrl); + break; + + case USB_REQ_GET_STATUS: + pr_debug("vdev%d get setup data USB_REQ_GET_STATUS\n", + drvdata->vdevnum); + handled = gxp_udc_get_status(drvdata, &ctrl); + break; + + default: + handled = 0; + break; + } + } + + /* + * pass the request to upper layer driver code(composite.c) + * if it is not handled by the code above. + */ + if (drvdata->driver && !handled) { + ret = drvdata->driver->setup(&drvdata->gadget, &ctrl); + if (ret < 0) { + dev_err(&drvdata->pdev->dev, + "setup failed, return %d\n", ret); + /* set ep0 to stall */ + val = readl(drvdata->ep[0].base + EVDEPCC); + val |= EVDEPCC_STALL; + writel(val, drvdata->ep[0].base + EVDEPCC); + return; + } + } +} + +static irqreturn_t gxp_udc_irq(int irq, void *_drvdata) +{ + struct gxp_udc_drvdata *drvdata = _drvdata; + + u32 evgistat; + u32 evdistat; + u32 evdcs; + u32 i; + + regmap_read(drvdata->udcg_map, EVGISTAT, &evgistat); + if (evgistat & (1 << drvdata->vdevnum)) { + evdistat = readl(drvdata->base + EVDISTAT); + while (evdistat & EVDISTAT_MASK) { + pr_debug("vdev%d get int = 0x%08x\n", + drvdata->vdevnum, evdistat); + + if (evdistat & EVDISTAT_PORTEN_CHANGE) { + evdcs = readl(drvdata->base + EVDCS); + drvdata->gadget.speed = + (evdcs & EVDCS_PORTENABLESTS) ? + USB_SPEED_HIGH : USB_SPEED_UNKNOWN; + + pr_debug("vdev%d get port enable change int speed = %d\n", + drvdata->vdevnum, + drvdata->gadget.speed); + + /* write 1 to clear */ + writel(EVDISTAT_PORTEN_CHANGE, + drvdata->base + EVDISTAT); + } + + if (evdistat & EVDISTAT_PORTRST) { + pr_debug("vdev%d get port rst int\n", + drvdata->vdevnum); + writel(0, drvdata->base + EVDADDR); + + for (i = 0; i < drvdata->fepnum + 1; i++) + gxp_udc_ep_nuke(&drvdata->ep[i]); + + usb_gadget_udc_reset(&drvdata->gadget, + drvdata->driver); + + /* write 1 to clear */ + writel(EVDISTAT_PORTRST, + drvdata->base + EVDISTAT); + } + + if (evdistat & EVDISTAT_SETUP_DAT_RCV) { + pr_debug("vdev%d get setup data rcv int\n", + drvdata->vdevnum); + gxp_udc_handle_setup_data_rcv(drvdata); + /* write 1 to clear */ + writel(EVDISTAT_SETUP_DAT_RCV, + drvdata->base + EVDISTAT); + } + if (evdistat & 0x01) + gxp_udc_handle_ep0_int(&drvdata->ep[0]); + + for (i = 1; i < GXP_UDC_MAX_NUM_EP; i++) + if (evdistat & (1 << i)) + gxp_udc_handle_ep_int(&drvdata->ep[i]); + + evdistat = readl(drvdata->base + EVDISTAT); + } + return IRQ_HANDLED; + } + return IRQ_NONE; +} + +static int gxp_udc_init(struct gxp_udc_drvdata *drvdata) +{ + int i; + struct gxp_udc_ep *ep; + + /* Disable device interrupt */ + writel(0, drvdata->base + EVDIEN); + + drvdata->gadget.max_speed = USB_SPEED_HIGH; + drvdata->gadget.speed = USB_SPEED_UNKNOWN; + drvdata->gadget.ops = &gxp_udc_gadget_ops; + drvdata->gadget.name = gxp_udc_name[drvdata->vdevnum]; + drvdata->gadget.is_otg = 0; + drvdata->gadget.is_a_peripheral = 0; + + drvdata->gadget.ep0 = &drvdata->ep[0].ep; + drvdata->ep0_req = gxp_udc_ep_alloc_request(&drvdata->ep[0].ep, + GFP_KERNEL); + + INIT_LIST_HEAD(&drvdata->gadget.ep_list); + + for (i = 0; i < drvdata->fepnum + 1; i++) { + ep = &drvdata->ep[i]; + + ep->drvdata = drvdata; + + INIT_LIST_HEAD(&ep->queue); + INIT_LIST_HEAD(&ep->ep.ep_list); + if (i > 0) + list_add_tail(&ep->ep.ep_list, + &drvdata->gadget.ep_list); + + usb_ep_set_maxpacket_limit(&ep->ep, (i > 0) ? 512 : 64); + ep->epnum = i; + ep->ep.name = gxp_udc_ep_name[i]; + ep->ep.ops = &gxp_udc_ep_ops; + ep->base = drvdata->base + 0x20 * (i + 1); + if (i == 0) { + ep->ep.caps.type_control = true; + } else { + ep->ep.caps.type_iso = true; + ep->ep.caps.type_bulk = true; + ep->ep.caps.type_int = true; + } + + ep->ep.caps.dir_in = true; + ep->ep.caps.dir_out = true; + } + + return 0; +} + +static void gxp_udcg_init(struct gxp_udc_drvdata *drvdata) +{ + int i; + + if (!udcg_init_done) { + /* disable interrupt */ + regmap_write(drvdata->udcg_map, EVGIEN, 0); + + /* disable all flex ep map */ + for (i = 0; i < GXP_UDC_MAX_NUM_FLEX_EP; i += 4) + regmap_write(drvdata->udcg_map, EVFEMAP + i, 0); + + udcg_init_done = true; + } +} + +static int gxp_udc_probe(struct platform_device *pdev) +{ + struct resource *res; + struct gxp_udc_drvdata *drvdata; + int ret; + u32 vdevnum; + u32 fepnum; + + drvdata = devm_kzalloc(&pdev->dev, sizeof(struct gxp_udc_drvdata), + GFP_KERNEL); + if (!drvdata) + return -ENOMEM; + + platform_set_drvdata(pdev, drvdata); + drvdata->pdev = pdev; + + spin_lock_init(&drvdata->lock); + + res = platform_get_resource(pdev, IORESOURCE_MEM, 0); + drvdata->base = devm_ioremap_resource(&pdev->dev, res); + if (IS_ERR(drvdata->base)) + return PTR_ERR(drvdata->base); + + ret = platform_get_irq(pdev, 0); + if (ret < 0) { + dev_err(&pdev->dev, "unable to obtain IRQ number\n"); + return ret; + } + drvdata->irq = ret; + + if (of_property_read_u32(pdev->dev.of_node, "vdevnum", &vdevnum)) { + dev_err(&pdev->dev, + "property vdevnum is undefined\n"); + return -EINVAL; + } + + if (vdevnum > GXP_UDC_MAX_NUM_VDEVICE) { + dev_err(&pdev->dev, + "property vdevnum(%d) is invalid\n", vdevnum); + return -EINVAL; + } + drvdata->vdevnum = vdevnum; + + if (of_property_read_u32(pdev->dev.of_node, "fepnum", &fepnum)) { + dev_err(&pdev->dev, "property fepnum is undefined\n"); + return -EINVAL; + } + + if (fepnum > GXP_UDC_MAX_NUM_FLEX_EP_PER_VDEV) { + dev_err(&pdev->dev, "property fepnum(%d) is invalid\n", fepnum); + return -EINVAL; + } + drvdata->fepnum = fepnum; + + drvdata->udcg_map = syscon_regmap_lookup_by_phandle(pdev->dev.of_node, + "hpe,syscon-phandle"); + if (IS_ERR(drvdata->udcg_map)) { + dev_err(&pdev->dev, "failed to map udcg_handle\n"); + return -ENODEV; + } + gxp_udcg_init(drvdata); + + gxp_udc_init(drvdata); + ret = usb_add_gadget_udc(&pdev->dev, &drvdata->gadget); + if (ret) { + dev_err(&pdev->dev, "add gadget failed\n"); + return ret; + } + + ret = devm_request_irq(&pdev->dev, + drvdata->irq, + gxp_udc_irq, + IRQF_SHARED, + gxp_udc_name[vdevnum], + drvdata); + + if (ret < 0) { + dev_err(&pdev->dev, "irq request failed\n"); + return ret; + } + + return 0; +} + +static const struct of_device_id gxp_udc_of_match[] = { + { .compatible = "hpe,gxp-udc" }, + {}, +}; +MODULE_DEVICE_TABLE(of, gxp_udc_of_match); + +static struct platform_driver gxp_udc_driver = { + .driver = { + .name = "gxp-udc", + .of_match_table = of_match_ptr(gxp_udc_of_match), + }, + .probe = gxp_udc_probe, +}; +module_platform_driver(gxp_udc_driver); + +MODULE_AUTHOR("Richard Yu "); +MODULE_DESCRIPTION("HPE GXP UDC Driver"); +MODULE_LICENSE("GPL"); From patchwork Thu Nov 3 16:06:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yu, Richard" X-Patchwork-Id: 14975 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp624520wru; Thu, 3 Nov 2022 09:11:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7M7p78VDa+bq9Zg6FxShlb/Wds/HNiBz9oZEbNdjQ+3kD1SAyXsZHTFYsJvpyHa2GFiKi0 X-Received: by 2002:a17:907:6d25:b0:7aa:f5a4:5f66 with SMTP id sa37-20020a1709076d2500b007aaf5a45f66mr28995086ejc.216.1667491883512; Thu, 03 Nov 2022 09:11:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667491883; cv=none; d=google.com; s=arc-20160816; b=zjJHlFSjzd5akA3R2aWcvR2oebWJpGZuPsEMh0g8hkzusZlFKudofzXlJtyfzQ7TC2 wagSqszGY3aFpYK4X50AINsObo5umnFAi9GgxwtQ8TXOQCDZgeLOQVz//sa7A1HXwpI1 kIKJKPDC8CRRRfFKQlj3TyX6Kwgt+SJiqT4g8yFkauOHg2hKw7vhUr2IrWf/wKwQi0pU xyG/UWFi8im2AWOHxPSEHDPbDpGGFjpuM3VDgdTfvObLH7VIVtjpNwX8/zNJh3apY/wl NyQPQrQBkGLagWBvh/otOBSjcCn5q4O94D/Woh37K33EiQnzjODuRplPjsgX0jgGzj1b aa+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:to:from:dkim-signature; bh=LhiAKVp9m688wUxXx2M1ClnBoWdFG6OPFXaTZB32dSk=; b=vlUdurzxXcK5uU8M6NNTfvNyK5Pc37C77BAmNsxfHz9Son2Jo/BMXxUfar0cM5isNv mIFI3l8752d0xP8BWwphtT8qFeDVcOcBYpFEhbpfe/ytJAVeisacA7ur181+vFqT2+/f qZV3wHK/Wjt9z/UfbUFZ2P4e7wXgJmFFj5NCsHLH3GoeVs8VKZ1xhLX3GFSfmuW6epck 8H+Oj9lTptDzPQVfJ0AG6LiZh1MHOcbqS3rHOZE8TYBb+fVn3XN6FvH89XODFFhNZvYR Rad7wPl0kp0I29dzyBrwrq+zWzlA1+k6+o3o9prhMJ3//9tU8yqDtW7FTSvJJfdy7DFZ Zd2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b="Su64QcL/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hpe.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y10-20020a50eb8a000000b0045d15f39bf4si1585190edr.479.2022.11.03.09.10.53; Thu, 03 Nov 2022 09:11:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b="Su64QcL/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hpe.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232305AbiKCQJC (ORCPT + 99 others); Thu, 3 Nov 2022 12:09:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231545AbiKCQIB (ORCPT ); Thu, 3 Nov 2022 12:08:01 -0400 Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com [148.163.143.35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1CB3186C3; Thu, 3 Nov 2022 09:08:00 -0700 (PDT) Received: from pps.filterd (m0150244.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 2A3G4rqr031962; Thu, 3 Nov 2022 16:07:35 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : subject : date : message-id : in-reply-to : references : mime-version; s=pps0720; bh=LhiAKVp9m688wUxXx2M1ClnBoWdFG6OPFXaTZB32dSk=; b=Su64QcL/uZfaCQ5VE7mo0vmEw9KTeay7KK024q0P1dWB1RONf9IicefqwifsHl7rLrhg s8XyDMxTkxBUqiNjkDDmK60BUAZAHYQKBoLtvKn5K4/J2e6yyB8xImNlRsjn9M6H/raH RmluNUE1V1sE5XHBcDuPS0Oi2yi62T5t08voBso1OGPiKMIjwdy6efA8OHrXjHX4yCGZ hr4z6YkRVBmjR5gC6Z4LxMwwaZzRIsxYj+y29bUxA/ZY5rnPqAjhQaMLdCyajh5NRJvy 66EMtCzbFxelirmW/zvtiRtFxWWHlaDaVum5yLRi7XTak/i8nXxbd5c53/bJmbUtD82c zQ== Received: from p1lg14881.it.hpe.com (p1lg14881.it.hpe.com [16.230.97.202]) by mx0b-002e3701.pphosted.com (PPS) with ESMTPS id 3kmg470c05-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 03 Nov 2022 16:07:35 +0000 Received: from p1lg14885.dc01.its.hpecorp.net (unknown [10.119.18.236]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by p1lg14881.it.hpe.com (Postfix) with ESMTPS id 21B8E804723; Thu, 3 Nov 2022 16:07:33 +0000 (UTC) Received: from hpe.com (unknown [16.231.227.36]) by p1lg14885.dc01.its.hpecorp.net (Postfix) with ESMTP id 67AC78036BB; Thu, 3 Nov 2022 16:07:33 +0000 (UTC) From: richard.yu@hpe.com To: verdun@hpe.com, nick.hawkins@hpe.com, richard.yu@hpe.com, gregkh@linuxfoundation.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux@armlinux.org.uk, balbi@kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v1 2/7] dt-bindings: usb: hpe,gxp-udc: Add binding for gxp gadget Date: Thu, 3 Nov 2022 11:06:20 -0500 Message-Id: <20221103160625.15574-3-richard.yu@hpe.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221103160625.15574-1-richard.yu@hpe.com> References: <20221103160625.15574-1-richard.yu@hpe.com> X-Proofpoint-GUID: 2w5h7FawyUsJ5gpQ1DXL198IZylJJfmr X-Proofpoint-ORIG-GUID: 2w5h7FawyUsJ5gpQ1DXL198IZylJJfmr X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-03_04,2022-11-03_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=664 impostorscore=0 phishscore=0 adultscore=0 mlxscore=0 lowpriorityscore=0 suspectscore=0 malwarescore=0 clxscore=1015 priorityscore=1501 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211030107 X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748491968842431056?= X-GMAIL-MSGID: =?utf-8?q?1748491968842431056?= From: Richard Yu Create documentation for the hpe,gxp-udc binding to support access to the virtual USB device. Signed-off-by: Richard Yu --- .../devicetree/bindings/usb/hpe,gxp-udc.yaml | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/hpe,gxp-udc.yaml diff --git a/Documentation/devicetree/bindings/usb/hpe,gxp-udc.yaml b/Documentation/devicetree/bindings/usb/hpe,gxp-udc.yaml new file mode 100644 index 000000000000..f1ec4df8c3d3 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/hpe,gxp-udc.yaml @@ -0,0 +1,57 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/hpe,gxp-udc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: HPE GXP Gadget Universal Device Controller (UDC) + +maintainers: + - Richard Yu + - Jean-Marie Verdun + - Nick Hawkins + +properties: + compatible: + const: hpe,gxp-udc + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + vdevnum: + description: + virtual device number. + + fepnum: + description: + number of the flexible end-points this device is needed. + + hpe,syscon-phandle: + $ref: '/schemas/types.yaml#/definitions/phandle' + description: + Phandle to the gxp vEHCI controller access vDevice registers. + +required: + - compatible + - reg + - interrupts + - vdevnum + - fepnum + - hpe,syscon-phandle + +additionalProperties: false + +examples: + - | + udc@80401000 { + compatible = "hpe,gxp-udc"; + reg = <0x80401000 0x1000>; + interrupts = <13>; + interrupt-parent = <&vic1>; + vdevnum = <0>; + fepnum = <7>; + hpe,syscon-phandle = <&udc_system_controller>; + }; From patchwork Thu Nov 3 16:06:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yu, Richard" X-Patchwork-Id: 14974 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp623905wru; Thu, 3 Nov 2022 09:10:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7STifMt2zDN4R+f3uAdEShneGScd3WVDEuD/hKoqThvvlRrvKfgTDi1isDCkwaMIe/GHgC X-Received: by 2002:a17:906:9753:b0:7ad:9ada:799b with SMTP id o19-20020a170906975300b007ad9ada799bmr29979405ejy.292.1667491823722; Thu, 03 Nov 2022 09:10:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667491823; cv=none; d=google.com; s=arc-20160816; b=rkwX9j/8yK8BwvfhC9tVElsxNe39hU1xeEUCbDLfPilWT8GGtaGQAUekqRd0+mM4X0 +ajnC6WRrUBIPd+bW5fep2A9oVI6ioC/VFuOSgIK9Xw2BGN/Qm9+nRxxTaIXr1+9g/MQ 9gKw/wRwinh62LzMEyAYrW9NFxdyECpvozB7VETq1kt1J9V1RbxiTvS3qAXy8ngrpsFu X/UG8uRmWhoo/iCPpHvsLs13u4iL0uUOoPZu2+I6l6u29JReQvxDiiQjQapw5yTDY8mY Z9nQnfebLsPKOBPrwJN9P3nmp+S5cYdwU0JVQGvnDv6zLLyul3o3ByZgVi2983MAHVRP ycUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:to:from:dkim-signature; bh=KrxVRU/txJr2LMOTCV8p6clKZuVcvyAEuFzxM3lBwpc=; b=YUeLBEGTJB6FC6VPvGR7MqIwhUQX/gjP26sxYHFMNmHiismjdVCd1a3V3ywGt6o+ai 0DJNXwGUaMCiUd3mb7UC389QgxKKI2zgfiULtY4nygmLl5WePXl5iz+91eU9fa42ogiR xa6p8EB3fsNkHgs4eJ1nj/k7p+GpP8aBxLEVtKWEzVRC+5+b6n7/bcOBobb+4WXMwCpb cnRzh3JWGDm2iUc6+RUDnz2WVyySf23t9wKg1pGhkiwhTBe0T+F4S+kDG4zrMoC+gdTR K6rnAwacQMBBeu3K5e4B6vYDTSkZgekDVxXTbOau9qeITJQ6094mvxg+1alYPRymeBUD d0+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=FAiP2Gxs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hpe.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jw1-20020a17090776a100b007a6c5a23a48si1319021ejc.551.2022.11.03.09.09.59; Thu, 03 Nov 2022 09:10:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=FAiP2Gxs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hpe.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231777AbiKCQI4 (ORCPT + 99 others); Thu, 3 Nov 2022 12:08:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231669AbiKCQII (ORCPT ); Thu, 3 Nov 2022 12:08:08 -0400 Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com [148.163.143.35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8881A14D39; Thu, 3 Nov 2022 09:08:02 -0700 (PDT) Received: from pps.filterd (m0134423.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 2A3FWFMe019085; Thu, 3 Nov 2022 16:07:35 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : subject : date : message-id : in-reply-to : references : mime-version; s=pps0720; bh=KrxVRU/txJr2LMOTCV8p6clKZuVcvyAEuFzxM3lBwpc=; b=FAiP2GxscvuKyQweDNLiAhk3cDiA3gxMbsYNKHqRB8gmLBcYISlS7LxUU9NwwUAwYhhP pzJmywD3NrDYt6yTRoM7dwa0stDv/jf9leU7qYvpjv9HkbLIc9byxGUPABKGIdOaOqJG gw7uYQr2XNsi/v6lXFQceUtkczISU5eVsARBqNou6aug65YsjzT7OyBTPDbnzcGOULsN lQo47jWfPNLG51oFd9vgiQvO61slOIrfSsmY7Ln5dDCFnETPyEVc5nrZml5AzoxYX2z0 b8BFvG8B61ljuFJSwqntAIGafWusLsgp14As7HpysWFQcLiFnVhTmXzVhVUqM+ae+T7i /A== Received: from p1lg14881.it.hpe.com (p1lg14881.it.hpe.com [16.230.97.202]) by mx0b-002e3701.pphosted.com (PPS) with ESMTPS id 3kmg5h0f6y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 03 Nov 2022 16:07:35 +0000 Received: from p1lg14885.dc01.its.hpecorp.net (unknown [10.119.18.236]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by p1lg14881.it.hpe.com (Postfix) with ESMTPS id 8A34980471E; Thu, 3 Nov 2022 16:07:34 +0000 (UTC) Received: from hpe.com (unknown [16.231.227.36]) by p1lg14885.dc01.its.hpecorp.net (Postfix) with ESMTP id EEE93808992; Thu, 3 Nov 2022 16:07:33 +0000 (UTC) From: richard.yu@hpe.com To: verdun@hpe.com, nick.hawkins@hpe.com, richard.yu@hpe.com, gregkh@linuxfoundation.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux@armlinux.org.uk, balbi@kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v1 3/7] dt-bindings: usb: hpe,gxp-udcg: Add binding for gxp gadget group Date: Thu, 3 Nov 2022 11:06:21 -0500 Message-Id: <20221103160625.15574-4-richard.yu@hpe.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221103160625.15574-1-richard.yu@hpe.com> References: <20221103160625.15574-1-richard.yu@hpe.com> X-Proofpoint-GUID: 8JILtnqF2AvCm6AjX6Bx_3Z9U2RD3sWX X-Proofpoint-ORIG-GUID: 8JILtnqF2AvCm6AjX6Bx_3Z9U2RD3sWX X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-03_04,2022-11-03_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 adultscore=0 malwarescore=0 spamscore=0 phishscore=0 mlxlogscore=902 clxscore=1015 bulkscore=0 suspectscore=0 impostorscore=0 priorityscore=1501 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211030107 X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748491906801078908?= X-GMAIL-MSGID: =?utf-8?q?1748491906801078908?= From: Richard Yu Create documentation for the hpe,gxp-udcg binding to support access to the gxp USB gadget group. Signed-off-by: Richard Yu Reviewed-by: Krzysztof Kozlowski --- .../devicetree/bindings/usb/hpe,gxp-udcg.yaml | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/hpe,gxp-udcg.yaml diff --git a/Documentation/devicetree/bindings/usb/hpe,gxp-udcg.yaml b/Documentation/devicetree/bindings/usb/hpe,gxp-udcg.yaml new file mode 100644 index 000000000000..f1dd681c8d7d --- /dev/null +++ b/Documentation/devicetree/bindings/usb/hpe,gxp-udcg.yaml @@ -0,0 +1,34 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/hpe,gxp-udcg.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: HPE GXP Gadget Universal Device Controller Group (UDCG) + +maintainers: + - Richard Yu + - Jean-Marie Verdun + - Nick Hawkins + +properties: + compatible: + items: + - const: hpe,gxp-udcg + - const: syscon + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + system-controller@80400800 { + compatible = "hpe,gxp-udcg", "syscon"; + reg = <0x80400800 0x200>; + }; From patchwork Thu Nov 3 16:06:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yu, Richard" X-Patchwork-Id: 14970 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp623163wru; Thu, 3 Nov 2022 09:09:08 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5Kdrdb1QV7w3o8UzZvzlsPsc+uXFV60Rl1HytUyXRBK09PPGHofKPBXHIHR1TmknRxHRtZ X-Received: by 2002:a05:6402:1c0a:b0:463:3cda:3750 with SMTP id ck10-20020a0564021c0a00b004633cda3750mr25381026edb.341.1667491747849; Thu, 03 Nov 2022 09:09:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667491747; cv=none; d=google.com; s=arc-20160816; b=H01EyCrZMbz14N4DpRrVspMgpa5/ZU5F8+ClPHQgfdPNgoYQBtL1/nvLOyFgMmJOhn Xlmu4r1Graz4VSiIe0FnEh5NumdthmgRpu3H8Y9B6IK/xgIptOzV8DpT3ANZvQ8QNml/ 5ca1liLOZSpQSnRjC1K8pH2DfULAjkl40hYgLX8wJzBLhfXaQ6A+tKj1ZsSCTsorsoNd aPj4C8GsbEOxVLBS4wEzDy+sjAj9w8aoNSOf9W0mxAzQGqyndRm0duYXkLSmKl1Q3/wV VeYXOx/wVZ0AsYOQonp2PKx/fN8Z0lMyvdwNNtKS80b8NvOGtCWAsS/k33kY4226odBq dsDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:to:from:dkim-signature; bh=PijJeW7nT9vvqoxeQzAjDcw+HIn5vW1PglHKsUborrQ=; b=O5PFTZIeFzqgv93/SF6XQXz3iAXQ7kPfMdSKUSY8eVziMzbtmAfCjIMHN5yqiGyHkn 3akhRHkl4wy5cpi/j29v7B5+/LM6ItpkrEvdZ4rFcfaDwrjHvHKBBfOvY8e6iVvJEhVT pWBDHhtofSckzh2sY6kRH++bYqufjSdd9HpQJAyRg4HQLicmNjgmQJSROtAa3MuIhZwo httWwXyUGZydZKEfsMvBjRsUZywj7wi2Es7He/AU7wxxvrs5j+kqdf8bIaFwtreMG6mI iHeLY4codXzXDClQbtg4AjYVGGsC1Cgel6Qr8YkOjDbHICAUvj1XsAJWTN63pZb0High 4GzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=CpVP+LDz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hpe.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j11-20020aa7c40b000000b004511d552be3si1608723edq.4.2022.11.03.09.08.41; Thu, 03 Nov 2022 09:09:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=CpVP+LDz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hpe.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232157AbiKCQIa (ORCPT + 99 others); Thu, 3 Nov 2022 12:08:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232106AbiKCQH5 (ORCPT ); Thu, 3 Nov 2022 12:07:57 -0400 Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C88EDBE23; Thu, 3 Nov 2022 09:07:51 -0700 (PDT) Received: from pps.filterd (m0150241.ppops.net [127.0.0.1]) by mx0a-002e3701.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 2A3G5qhn014486; Thu, 3 Nov 2022 16:07:35 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : subject : date : message-id : in-reply-to : references : mime-version; s=pps0720; bh=PijJeW7nT9vvqoxeQzAjDcw+HIn5vW1PglHKsUborrQ=; b=CpVP+LDzngHA3hV/k/ez7Fd+36l1ghc3zxlHb2VoSbHxIF6cBMES3/d1eZGwIWsu4oY3 ZFIk057C2X8k3vAB8yUSL736ke5J4z7GlZjYOO62a0eJffn/MztQEZpO8+RBC6m5e99M fiw4RLnSd0fYVZZderdYeaDetyvlMxeW6LXl3fcKPJxTbQSBR3qlBGFhLEjPeviOVTDJ MpVsgCl8YK9wAdb0W/h2rnFZpRkQqAqwnlf7G6Jx17t+fSV6bk5Nls/YrJokxYvpbAlj +ZrmMy0wrVX+Kh4MiOCNsSusgwKRTPHsN4bYv4OYtMnYtiAlCIQEpE5JRekOOqZ6EZ/f rQ== Received: from p1lg14878.it.hpe.com (p1lg14878.it.hpe.com [16.230.97.204]) by mx0a-002e3701.pphosted.com (PPS) with ESMTPS id 3kmghb84a4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 03 Nov 2022 16:07:35 +0000 Received: from p1lg14885.dc01.its.hpecorp.net (unknown [10.119.18.236]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by p1lg14878.it.hpe.com (Postfix) with ESMTPS id 254B013961; Thu, 3 Nov 2022 16:07:35 +0000 (UTC) Received: from hpe.com (unknown [16.231.227.36]) by p1lg14885.dc01.its.hpecorp.net (Postfix) with ESMTP id 8E4808036BB; Thu, 3 Nov 2022 16:07:34 +0000 (UTC) From: richard.yu@hpe.com To: verdun@hpe.com, nick.hawkins@hpe.com, richard.yu@hpe.com, gregkh@linuxfoundation.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux@armlinux.org.uk, balbi@kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v1 4/7] dt-bindings: usb: hpe,gxp-vuhc: add binding for gxp vEHCI Date: Thu, 3 Nov 2022 11:06:22 -0500 Message-Id: <20221103160625.15574-5-richard.yu@hpe.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221103160625.15574-1-richard.yu@hpe.com> References: <20221103160625.15574-1-richard.yu@hpe.com> X-Proofpoint-GUID: 52PkHq7mYRBwpWf7ph1UgTQ1cW_-sLe6 X-Proofpoint-ORIG-GUID: 52PkHq7mYRBwpWf7ph1UgTQ1cW_-sLe6 X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-03_04,2022-11-03_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 suspectscore=0 impostorscore=0 clxscore=1015 mlxlogscore=972 spamscore=0 adultscore=0 bulkscore=0 mlxscore=0 phishscore=0 lowpriorityscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211030107 X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748491826952623931?= X-GMAIL-MSGID: =?utf-8?q?1748491826952623931?= From: Richard Yu Create documentation for the hpe,gxp-vuhc binding to support access to the gxp virtual EHCI controller. Signed-off-by: Richard Yu --- .../devicetree/bindings/usb/hpe,gxp-vuhc.yaml | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/hpe,gxp-vuhc.yaml diff --git a/Documentation/devicetree/bindings/usb/hpe,gxp-vuhc.yaml b/Documentation/devicetree/bindings/usb/hpe,gxp-vuhc.yaml new file mode 100644 index 000000000000..1411a2550092 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/hpe,gxp-vuhc.yaml @@ -0,0 +1,34 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/hpe,gxp-vuhc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: HPE GXP Virtual Universal Host Controller (vUHC) + +maintainers: + - Richard Yu + - Jean-Marie Verdun + - Nick Hawkins + +properties: + compatible: + items: + - const: hpe,gxp-vuhc + - const: syscon + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + vuhc@80400000 { + compatible = "hpe,gxp-vuhc", "syscon"; + reg = <0x80400000 0x80>; + }; From patchwork Thu Nov 3 16:06:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yu, Richard" X-Patchwork-Id: 14971 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp623271wru; Thu, 3 Nov 2022 09:09:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7n4VS9qNeryXtE2BmsGwEes4l7uURw8oDbJLhMUKL4hhuzhG5e5N/jL1aPHc49HqqIy3DL X-Received: by 2002:aa7:cdcf:0:b0:463:56ff:4cf8 with SMTP id h15-20020aa7cdcf000000b0046356ff4cf8mr23269614edw.215.1667491761715; Thu, 03 Nov 2022 09:09:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667491761; cv=none; d=google.com; s=arc-20160816; b=x+hyfLsTPrE/G8osvfcxnDMic4SLHb9xRBABEPrW/rMedVSDEIPlq5zldESjQNlZvm axw5to8RlA9wQLE7mx8KLKXNmOJoNBlnHZds2lryX1i/ntXDltJIfPl3ObJfTDtSBT5P I121f70InFgT+lYH25zUUOhtvWW1KsSKUQ4SrNP90HFLjFz4tOyJU/tfl6r6YchA40Vv iDtFKfhmgToCsigmZDWCSBud1QdW4VTWQ+C7eOQs7f4wj8b7oXb+y/G2IqItojXJtDC7 6GlLWIH0dHnYdCOvOkXQx2XybGPtOMMg1j84QE937cNd+uSVmrLimv0eIk/qQBU2cAdZ kvSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :to:from:dkim-signature; bh=QSk1OKq1KTLOe0DWMcTX1bXrnC//dX11HNzcBpa1eCo=; b=Lovhm/4yX2+NVEuD19R5vkekHqov5S+hMWns6eUlLMdRybNlahsT251kAlBvelHYbN ZgykWf2GqzS6WRenBYrilYPropvOPZrNi+TZgiF5T3YftMIFr0rkLDmluRYZcI5b6+RP KWLxmI8g2hm0pxgB2zOH+vvxjRwx/AMBrxNYYv2/oQaXeM3L/6x7pFv0oPe5oaxPVUvH rR5iaLCeaVtu/6dYEONeuoXTzkW+xF7751rcNAfzoB4RIMElMatnOyIaKb4npb2NRTgC WkcTq+C/GYZ/k0auuKnfH/MtSTXqF4ELoZCNWTraQFmsiJAM1qXzax4bizz2SVX58jnZ 6/fQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=X9IIsU5F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hpe.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qa12-20020a170907868c00b0077eca9fa444si1718133ejc.187.2022.11.03.09.08.56; Thu, 03 Nov 2022 09:09:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=X9IIsU5F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hpe.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232213AbiKCQIg (ORCPT + 99 others); Thu, 3 Nov 2022 12:08:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232116AbiKCQH5 (ORCPT ); Thu, 3 Nov 2022 12:07:57 -0400 Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5442218397; Thu, 3 Nov 2022 09:07:54 -0700 (PDT) Received: from pps.filterd (m0134421.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 2A3FxnBn027310; Thu, 3 Nov 2022 16:07:36 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : subject : date : message-id : in-reply-to : references; s=pps0720; bh=QSk1OKq1KTLOe0DWMcTX1bXrnC//dX11HNzcBpa1eCo=; b=X9IIsU5FDSsZs87yzj+lc86GL5vtWMjJANL0oUqxUx1QAxo26dVWUxZUGL1GXUlaFJV5 4TzNmdj45PK88yZotqta7oVf/C/lw0laIe+R8q7G+vCmbYHVU1WGhm8z2IgLF988eafY +6RdTiCo4XGkP094IpYStrJ1eGp6cyK/0YHl62zxDUZEkx0mD56SdJ/Jl/S5dhzT+mUb yNoOrFbEJAL0Rja/SDTBP9Rp75rL/4xztosTMhXkdG58y3KOXvV64PIy35wbiCmyj4V8 6qWAnG5IQ/3/DoytctiAhKCq/Sk5BzhOXuSnY3+jfaX/FMv56vurOGlkCYf9JeNvh7eN ZA== Received: from p1lg14878.it.hpe.com (p1lg14878.it.hpe.com [16.230.97.204]) by mx0b-002e3701.pphosted.com (PPS) with ESMTPS id 3kmgs5r3f0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 03 Nov 2022 16:07:36 +0000 Received: from p1lg14885.dc01.its.hpecorp.net (unknown [10.119.18.236]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by p1lg14878.it.hpe.com (Postfix) with ESMTPS id B2ECAD263; Thu, 3 Nov 2022 16:07:35 +0000 (UTC) Received: from hpe.com (unknown [16.231.227.36]) by p1lg14885.dc01.its.hpecorp.net (Postfix) with ESMTP id 28823803A9B; Thu, 3 Nov 2022 16:07:35 +0000 (UTC) From: richard.yu@hpe.com To: verdun@hpe.com, nick.hawkins@hpe.com, richard.yu@hpe.com, gregkh@linuxfoundation.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux@armlinux.org.uk, balbi@kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v1 5/7] ARM: dts: hpe: Add UDC nodes Date: Thu, 3 Nov 2022 11:06:23 -0500 Message-Id: <20221103160625.15574-6-richard.yu@hpe.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221103160625.15574-1-richard.yu@hpe.com> References: <20221103160625.15574-1-richard.yu@hpe.com> X-Proofpoint-GUID: E-eg5tWKBw8-X6UKYJjrMfsa-cP6M_hN X-Proofpoint-ORIG-GUID: E-eg5tWKBw8-X6UKYJjrMfsa-cP6M_hN X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-03_04,2022-11-03_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=384 spamscore=0 suspectscore=0 priorityscore=1501 malwarescore=0 impostorscore=0 lowpriorityscore=0 phishscore=0 mlxscore=0 bulkscore=0 clxscore=1015 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211030107 X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748491841682782889?= X-GMAIL-MSGID: =?utf-8?q?1748491841682782889?= From: Richard Yu Add support for the USB drivers on HPE GXP SoC. Signed-off-by: Richard Yu --- arch/arm/boot/dts/hpe-gxp.dtsi | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/arch/arm/boot/dts/hpe-gxp.dtsi b/arch/arm/boot/dts/hpe-gxp.dtsi index cf735b3c4f35..60f2d3b15d90 100644 --- a/arch/arm/boot/dts/hpe-gxp.dtsi +++ b/arch/arm/boot/dts/hpe-gxp.dtsi @@ -59,6 +59,36 @@ ranges = <0x0 0xc0000000 0x30000000>; dma-ranges; + vuhc0: vuhc@80400000 { + compatible = "hpe,gxp-vuhc", "syscon"; + reg = <0x80400000 0x80>; + }; + + udc_system_controller: system-controller@80400800 { + compatible = "hpe,gxp-udcg", "syscon"; + reg = <0x80400800 0x200>; + }; + + gadget0: udc@80401000 { + compatible = "hpe,gxp-udc"; + reg = <0x80401000 0x1000>; + interrupts = <13>; + interrupt-parent = <&vic1>; + vdevnum = <0>; + fepnum = <7>; + hpe,syscon-phandle = <&udc_system_controller>; + }; + + gadget1: udc@80402000 { + compatible = "hpe,gxp-udc"; + reg = <0x80402000 0x1000>; + interrupts = <13>; + interrupt-parent = <&vic1>; + vdevnum = <1>; + fepnum = <7>; + hpe,syscon-phandle = <&udc_system_controller>; + }; + vic0: interrupt-controller@eff0000 { compatible = "arm,pl192-vic"; reg = <0xeff0000 0x1000>; From patchwork Thu Nov 3 16:06:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yu, Richard" X-Patchwork-Id: 14972 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp623387wru; Thu, 3 Nov 2022 09:09:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM43utz3YsDenr+m1Zt7F+7bKDU4RubA+g1TP8tyLiq+lsutknC4lfHACcNidmHdGCQp++ni X-Received: by 2002:a17:906:6a1c:b0:7ad:e132:bb86 with SMTP id qw28-20020a1709066a1c00b007ade132bb86mr19320398ejc.408.1667491771745; Thu, 03 Nov 2022 09:09:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667491771; cv=none; d=google.com; s=arc-20160816; b=RJQGVkZ7NC51b2OAbKVRQ1NYLOxYU9kRq6gh3crZ4ZL0N14anjA1IZ9fPh2QI2Fa3p bV4phFVPDqe8KzksMThz20VMl8FQ1mor33tJCOHsYEMAxjTzTPBbXbIRZNm8aiwUMYTl 2D5l6+Mh1egmN8oMPJhcR4n5alqG8gLsaBeSfinwIKCs2B6tTpMYNY9weYFm0cvLjIdp qBc6XoOSROj201fljuqvgRY/2k3PqTFhJw+sDLuvQWNYkgWN03UjkHGlgdQlyFlhu8Pt E7WL9gvMTkLU3QWXkB3juGhBgi8YaHFErvK+0Z3yzadiWMJeaRKt4Q7biJMwyE5jNYGE l2uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :to:from:dkim-signature; bh=YxmPKQbDiTs1/y27RVzhSO4c2/OD91j4WXjgBAU6fzY=; b=A2Lkuj55agwpOreYg6JES8TD/pphgkz18fX85XVl1m0Bbg2mecC7MsF8rTi6Ah9Drd y7bteBK+Z4ErfjYMBBkP25g+E/G5Frr2V/aPar8TKl4u8D3jveDtpeq19uGM/wIT6anH rTpa6+KFIQYdb75Ber3eZxoO1MwwSxhHY5WAgngSKZscPpqvPyEf63iZx+bYsuNnMVcd 5Ndw7Vo7WrXOmi+f15HI39qZaIw18LUs9OOa2kQsfbzymiBjyHLwRtQ2OMVQD4/ZhEm+ mkRC66jM+CSL7wRl9MZ6hR1uA5zJfyYIC+2BhJUVulVgNNqVADQUU2uEFpt15rf5ClGg EpYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=XeEGEHqd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hpe.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id co22-20020a0564020c1600b004614acc0706si610472edb.250.2022.11.03.09.09.07; Thu, 03 Nov 2022 09:09:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=XeEGEHqd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hpe.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232147AbiKCQIl (ORCPT + 99 others); Thu, 3 Nov 2022 12:08:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230496AbiKCQH6 (ORCPT ); Thu, 3 Nov 2022 12:07:58 -0400 Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6ED45183AE; Thu, 3 Nov 2022 09:07:54 -0700 (PDT) Received: from pps.filterd (m0150242.ppops.net [127.0.0.1]) by mx0a-002e3701.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 2A3FgvPV021175; Thu, 3 Nov 2022 16:07:37 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : subject : date : message-id : in-reply-to : references; s=pps0720; bh=YxmPKQbDiTs1/y27RVzhSO4c2/OD91j4WXjgBAU6fzY=; b=XeEGEHqdMHUhIgwAQIJ3uxhB11vZXwlUShftpj/83pjJWCD28ZEBCvgSsHaEUefsTqTG EB2p/z3b9iXn3l+hfn1CRjXrV3oR3nVssaS/meNZXs7E2VcSDJ5/I5qepfBpyE+6uMMh m5z7By7WM0cK+FAhxSdMCRhH6YF1XUpKJHk+4yNzKZeOSebgb5t640mg58wtnpZ/Zj12 HBnaKI2ruyU0u9ZjHqE0aY2ir7kSX1v5KFvfEBXtgEwBnMfK+6PTtQ+LKMNxxhbt1EKS Cjra+1BaRuXJQm3ijpzcRFldK+tw7OHqeTOkYCRo+F3T36EUuuUvHahn+BDOFt7ud4ax +A== Received: from p1lg14878.it.hpe.com (p1lg14878.it.hpe.com [16.230.97.204]) by mx0a-002e3701.pphosted.com (PPS) with ESMTPS id 3kmghc88t7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 03 Nov 2022 16:07:36 +0000 Received: from p1lg14885.dc01.its.hpecorp.net (unknown [10.119.18.236]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by p1lg14878.it.hpe.com (Postfix) with ESMTPS id 4EF6B13961; Thu, 3 Nov 2022 16:07:36 +0000 (UTC) Received: from hpe.com (unknown [16.231.227.36]) by p1lg14885.dc01.its.hpecorp.net (Postfix) with ESMTP id B89768036BB; Thu, 3 Nov 2022 16:07:35 +0000 (UTC) From: richard.yu@hpe.com To: verdun@hpe.com, nick.hawkins@hpe.com, richard.yu@hpe.com, gregkh@linuxfoundation.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux@armlinux.org.uk, balbi@kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v1 6/7] ARM: configs: multi_v7_defconfig: Enable HPE GXP USB Driver Date: Thu, 3 Nov 2022 11:06:24 -0500 Message-Id: <20221103160625.15574-7-richard.yu@hpe.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221103160625.15574-1-richard.yu@hpe.com> References: <20221103160625.15574-1-richard.yu@hpe.com> X-Proofpoint-GUID: YPwSws6hWVf46Wsy8E80qjOMVJdToATd X-Proofpoint-ORIG-GUID: YPwSws6hWVf46Wsy8E80qjOMVJdToATd X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-03_04,2022-11-03_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 impostorscore=0 malwarescore=0 lowpriorityscore=0 mlxscore=0 spamscore=0 phishscore=0 adultscore=0 priorityscore=1501 suspectscore=0 mlxlogscore=335 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211030107 X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748491851870760409?= X-GMAIL-MSGID: =?utf-8?q?1748491851870760409?= From: Richard Yu Enable the USB driver on the HPE GXP BMC. Signed-off-by: Richard Yu --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 12b35008571f..940632995b9b 100644 --- a/arch/arm/configs/multi_v7_defconfig +++ b/arch/arm/configs/multi_v7_defconfig @@ -836,6 +836,7 @@ CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_MVEBU=y CONFIG_USB_XHCI_TEGRA=m CONFIG_USB_BRCMSTB=m +CONFIG_USB_GXP_UDC=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_HCD_STI=y CONFIG_USB_EHCI_EXYNOS=m From patchwork Thu Nov 3 16:06:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yu, Richard" X-Patchwork-Id: 14973 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp623847wru; Thu, 3 Nov 2022 09:10:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6341/xXhBVZvIMBJMq7TKn/3POhKqu3GKzUPBSYSGnAIFQXF1IkLyKxZMIF6xnNqvvweew X-Received: by 2002:a05:6402:1219:b0:462:e788:723f with SMTP id c25-20020a056402121900b00462e788723fmr30590884edw.319.1667491817908; Thu, 03 Nov 2022 09:10:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667491817; cv=none; d=google.com; s=arc-20160816; b=hAKOiBbYaFFkVYf3rLmn65DYmio2byjEdq4c7FeAbpcWk6d6aIAS2CYlS/jf1wdja2 GltiZQ7c7XIPynXYrteWBwb4hDSMrCNoIRo+5xr5Iz0Pz56n+hMAYBhFkMBLIwik6qIW B34RrlxNqvSJa01T9u4lWpNnmhAIIkz/kQuPuA9hJaQEw9SI87MnoXRjP7aYwm4owwFT EldoszpkoN8RvYEdt/GzlZOoG80GSblBcU4gkkEsWDLuoV+lNYUBKB2UmRTT20u7w+D1 tyzzgWLr1h44t+dsj5WZQ4xdRQ7yIJZ31OaGSa2+0ILpAce8v19ARnxYl0F6ozqI/Mz8 uKow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :to:from:dkim-signature; bh=tdhKJ2aYYACy4JMxuIyet/qH+YIKSSsy28N/XIgDXIU=; b=nbqGZXxe/CA+yPRdrXN7KRcOBUDJtRNOTYMuqjbIsE8LYDw88/m2Ci4yNYSZxGPMZ9 u5DMM9le94ufE+kA6xJK7MS6uiMBPXz98PeruvXGpX2Hm3W3Zncn2pIUbO1wimHQogad oiOw6SRaLOMq97/jOchuwKldYQAnOkCiBMYYkZh+piEP3cTFkttZRlXockdDyCJ8dbfb EQs13odrVgnUTtn+UnRA7zQMzT9zKikYnxnK2m2rVB3FIanp1nXLpfbhhTS5OJyk7em+ iSJd8Smtgm34gGyLOZsngWL7QqhA7IaYE3ZBsQ1ge7VnBLL6kK15+tVAGBbkc1S2Bcac KLoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=MhjG5Q7Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hpe.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t5-20020a056402524500b004594b742e0asi2037728edd.323.2022.11.03.09.09.50; Thu, 03 Nov 2022 09:10:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=MhjG5Q7Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hpe.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232287AbiKCQIw (ORCPT + 99 others); Thu, 3 Nov 2022 12:08:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232088AbiKCQII (ORCPT ); Thu, 3 Nov 2022 12:08:08 -0400 Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com [148.163.143.35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4765518384; Thu, 3 Nov 2022 09:08:02 -0700 (PDT) Received: from pps.filterd (m0134423.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 2A3G233X030852; Thu, 3 Nov 2022 16:07:37 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : subject : date : message-id : in-reply-to : references; s=pps0720; bh=tdhKJ2aYYACy4JMxuIyet/qH+YIKSSsy28N/XIgDXIU=; b=MhjG5Q7ZuQ3zGYLwItaAOB2OkEUO3Wpiv8Uy/y2VhipJmKswyZK0zvotmvaYkQQR0DAi sXk6UlKlHEmnhUTugCkTpr0kb+cAYSUXdfks5xwrDrKJH11AsoQvemy6aQXpFGdw25vX 5PSmJwhLS80Sn7CGrfPsoYJrRPlAleLIVTf3S68IHqnnudY/mlMOdHPSN9qHhLlAlUi0 1NVLGjgSuoPDRMjJhXPWaV7iQzPifw+GHoFqmYEhmwuOLcr/fjysn19GmZoWKt1XIxhs 1TXfsbf0tLWSwDK8ei4vl5pBK6g41HIyvi5FOGW0BRh7OUSHszROWMLFmKMSEZJ5Frjn Vg== Received: from p1lg14878.it.hpe.com (p1lg14878.it.hpe.com [16.230.97.204]) by mx0b-002e3701.pphosted.com (PPS) with ESMTPS id 3kmg5h0f7j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 03 Nov 2022 16:07:37 +0000 Received: from p1lg14885.dc01.its.hpecorp.net (unknown [10.119.18.236]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by p1lg14878.it.hpe.com (Postfix) with ESMTPS id E4AA6D264; Thu, 3 Nov 2022 16:07:36 +0000 (UTC) Received: from hpe.com (unknown [16.231.227.36]) by p1lg14885.dc01.its.hpecorp.net (Postfix) with ESMTP id 550FF803A9B; Thu, 3 Nov 2022 16:07:36 +0000 (UTC) From: richard.yu@hpe.com To: verdun@hpe.com, nick.hawkins@hpe.com, richard.yu@hpe.com, gregkh@linuxfoundation.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux@armlinux.org.uk, balbi@kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v1 7/7] MAINTAINERS: add USB support to GXP Date: Thu, 3 Nov 2022 11:06:25 -0500 Message-Id: <20221103160625.15574-8-richard.yu@hpe.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221103160625.15574-1-richard.yu@hpe.com> References: <20221103160625.15574-1-richard.yu@hpe.com> X-Proofpoint-GUID: FK084rG75kcI_4xmpb2qxKpRtqrmaDPv X-Proofpoint-ORIG-GUID: FK084rG75kcI_4xmpb2qxKpRtqrmaDPv X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-03_04,2022-11-03_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 adultscore=0 malwarescore=0 spamscore=0 phishscore=0 mlxlogscore=835 clxscore=1015 bulkscore=0 suspectscore=0 impostorscore=0 priorityscore=1501 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211030107 X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748491900247224170?= X-GMAIL-MSGID: =?utf-8?q?1748491900247224170?= From: Richard Yu Add the usb driver and dt-binding documents Signed-off-by: Richard Yu --- MAINTAINERS | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 56ff555ed5a4..b7280eb2dacd 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2176,15 +2176,20 @@ F: arch/arm/mach-sa1100/jornada720.c ARM/HPE GXP ARCHITECTURE M: Jean-Marie Verdun M: Nick Hawkins +M: Richard Yu S: Maintained F: Documentation/devicetree/bindings/arm/hpe,gxp.yaml F: Documentation/devicetree/bindings/spi/hpe,gxp-spifi.yaml F: Documentation/devicetree/bindings/timer/hpe,gxp-timer.yaml +F: Documentation/devicetree/bindings/usb/hpe,gxp-udc.yaml +F: Documentation/devicetree/bindings/usb/hpe,gxp-udcg.yaml +F: Documentation/devicetree/bindings/usb/hpe,gxp-uvhc.yaml F: arch/arm/boot/dts/hpe-bmc* F: arch/arm/boot/dts/hpe-gxp* F: arch/arm/mach-hpe/ F: drivers/clocksource/timer-gxp.c F: drivers/spi/spi-gxp.c +F: drivers/usb/gadget/udc/gxp_udc.c F: drivers/watchdog/gxp-wdt.c ARM/IGEP MACHINE SUPPORT