From patchwork Tue Nov 19 08:26:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 889 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 2A6173F1EA for ; Tue, 19 Nov 2019 09:26:43 +0100 (CET) Received: by mail-pf1-f198.google.com with SMTP id s24sf16242723pfd.0 for ; Tue, 19 Nov 2019 00:26:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1574151999; cv=pass; d=google.com; s=arc-20160816; b=09oOYHZSaeLG1e2XFrpcgwsLVccjkGeF5iIzs/jsdfUp3REXBzVMOgj3Y2r3YH0VBp s/a5PV+aV2lb5ihvUgGsN1xaB+1Srma/isOLKUearq6HFbwtlNSmG/DFtvX7BLGL9+n0 E1FKq+2kZfZsn/Ke7itX69ZMP0mgyVLJjYOWJ8RB9MNycVmLb14PqrTiPndRcARPMJqV lP+VqnMCg0m7X2vGrF5ZT5YqnKr+QyXeo1hua8l/S2d4Ugv96w9C66mzO2i8UkK2+Am7 tXbY68jGtNOzrMr7vRSJC7vmUUcxUbcwQNGjbqYjOiA8Rzxypy8F+ssQYeRg8WFSV5ZL Y8pw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=VPdiqNuFHcnGjtJa4ROE+G+ltGBfS0k6gou/4qUY1Eg=; b=HlGVHQnw1B9GhSi8Hq9cCSxagulJt2nlVnpE4l3K5CL9Hca2juSjD+CV4bascwIVk7 D2EHadbBw61KlvGer6TDGBptKu+YV2wltUQXhVJTxeckX+hcwlXlNJmZxuyp8UO7Apne Kh2bF4qpGob+M2SOTwrKPcaAGtwwRiVj89QTcsUobJAL0QLU4SFSJ6oWsIJZhBhR+Hpp 3IYXVOFcCvbk8oGEoTPibI+vPx6jjZBl+NA+HaOX06Oexba0IOk7zK4BVBZYmKbxYM1w TrrlER9L79NKKDxN3316aVTgAuWfk4h1vkdX7YhZcz0TUa2DJpwhHyEDPvX2QhWRIE0K kWAg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=CBV978NK; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=VPdiqNuFHcnGjtJa4ROE+G+ltGBfS0k6gou/4qUY1Eg=; b=JzmOOgj+GuNhpnyFXCv4HBNiBdB/pe9/1p03E6LArwhE9uuSCUu1lT8C6Yi3xG33GT lvBey7NDIIxnbQdDR0Wuxg989MVM04ZN4M6TXalbXKJRWVpYJwFjrQ7O68BesVbS+AHM re9EzeuvjszyKITQEyKvSb8Qni6YIUE9r1qto= 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:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-unsubscribe; bh=VPdiqNuFHcnGjtJa4ROE+G+ltGBfS0k6gou/4qUY1Eg=; b=J97HYdqkKFsu2qbFEbYeupp3RGloFEBKhOqFA2340acgEeLQcgf1Vaddg/gOmKfTDH bD0Bj87O7vg7AObw0YPODvcB2aO0VcApSnMbvXKG8ew/dgaH0RfmN1CKK0C4xrcqDHDM 1E1rfI2//Uod2MFHMOVHB5gWuI1/1U0d7Q2sjqgS8ldsjWMWoBEPKvTWM+Q5BZ+FXjXn 9IuzhPksKH3ZDQcAkOcivPItkjZcO3V/qj2TkilFIrf1PLUpsz26mxTv7dspqyJhsCjF cqKB/N6se5hSs8YvQJKQx95QHx/3xXfAAp4cHXc2mclQ8Bo/BNC8vpYJd5r9SUrNxJEk 9nqg== X-Gm-Message-State: APjAAAXYFL9h+Zriork36rCDC2RBLH5yayM7GmMhmxQqKrhFR/lgMgGs Jzuac26Bbj712CYQTvK2cxVEGqzK X-Google-Smtp-Source: APXvYqwpT781P9aaBd7AMOblbIAZJ4R5h83+fPZex6QBoI/rmgJxKMWSRzrbVK34lJjAfpMXrrjxVw== X-Received: by 2002:a63:e647:: with SMTP id p7mr1019963pgj.47.1574151997701; Tue, 19 Nov 2019 00:26:37 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:2144:: with SMTP id a62ls813738pje.5.canary-gmail; Tue, 19 Nov 2019 00:26:37 -0800 (PST) X-Received: by 2002:a17:902:9a8e:: with SMTP id w14mr34810489plp.215.1574151997128; Tue, 19 Nov 2019 00:26:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574151997; cv=none; d=google.com; s=arc-20160816; b=tFyeXOLtkdbP5e0KBcAcr0NYYObOwgrnHRzrUH9483w74YISHMlE7FEaDGRrTx8AsN cYSiENN7ekbXkJchGUtfCCPDElOhZZwsNy1+xACQ9WO7iwTdfaIOkgiNvaLIYT+N3apl cZeSpc0K0jasgE6uHTpCQpCZ0JLWFbBpYJs8VNBRVuW1Z4VAGI//gD/BdGYxBSWPfJ5L EWkBCw7d6l7k70ozK5GIwr6gDMR1NcNzUYTgz3gK/PDauWHT2M0XMbNqcpS/YvwZ5o65 R82+b0y8xAYP4E3MUM7QoWJ2/3fJJFo+Ue/dnprcmPnEThy4Y6++oVr7hi0fGqu2GnPw lZZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=0jzcsQL7X9uXyRzO1HHA95zvKPXeBG7xR+XHJn4gpSs=; b=BVXBJ/RWy/8cD9DUxByqpHc2bSk3KxEWfVFpSDh6udA1nMY20v/V9XpjGNJ5xhWl19 Rprn8WJIo9ViimhCTF364DNTimrP41i5E99f+YnVaXjqFb76ucuxitO+0qFxdPntjpHd d8AkSbT8xr3vIDdQV/jQyMwZmhorinEFd7CbFIQOvbulcOrd5laHcK6k+GsuBIa67V4p 1myb7viASjbB287RZ24g62n+6rrOEFGZ5waMw6x4Gwhid6WpKtNmbLkG5A3CDfdIaBCP VxVBPlKB7lK7v7t0WrQj+KZBaQqRg09z92lc0jlPsRwcPaVuXyVB81gA7BP16wqlWkci WrJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=CBV978NK; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id f14sor20064806pgm.0.2019.11.19.00.26.33 for (Google Transport Security); Tue, 19 Nov 2019 00:26:33 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a63:1042:: with SMTP id 2mr4365515pgq.59.1574151993411; Tue, 19 Nov 2019 00:26:33 -0800 (PST) Received: from localhost.localdomain ([115.97.180.31]) by smtp.gmail.com with ESMTPSA id u7sm2312221pjx.19.2019.11.19.00.26.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Nov 2019 00:26:32 -0800 (PST) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: Levin Du , u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v2 00/10] rockchip: rk3399: Add fastboot support Date: Tue, 19 Nov 2019 13:56:13 +0530 Message-Id: <20191119082623.6165-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=CBV978NK; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This is v2 set for fastboot support on rk3399, tested on rock960 and rebased on u-boot-rockchip/master Changes for v2: - collect Levin Du Tested-by - fix rk3399 product number (Thanks to Levin Du) - add patch to fix fastboot flash device num for rk3328 - add patch to enable gadget on rock960 - rebased on u-boot-rockchip/master [1] https://patchwork.ozlabs.org/cover/1181569/ Any inputs? Jagan. Jagan Teki (10): gadget: Select USB_GADGET_MANUFACTURER for rockchip gadget: Select USB_GADGET_VENDOR_NUM for rockchip gadget: rockchip: USB_GADGET_PRODUCT_NUM gadget: rockchip: Add rk3128 USB_GADGET_PRODUCT_NUM fastboot: rockchip: Select FASTBOOT_FLASH[_MMC_DEV] fastboot: rockchip: Fix rk3328 default mmc device usb: dwc3: Add phy interface for dwc3_uboot gadget: rockchip: Add rk3399 USB_GADGET_PRODUCT_NUM rockchip: Setup dwc3_device (for non-dm gadgets) rock960: Enable USB Gadget arch/arm/mach-rockchip/board.c | 32 +++++++++++++++++++++++++++++-- configs/elgin-rv1108_defconfig | 2 -- configs/evb-rk3036_defconfig | 5 ----- configs/evb-rk3128_defconfig | 2 -- configs/evb-rk3229_defconfig | 5 ----- configs/evb-rk3288_defconfig | 5 ----- configs/evb-rk3328_defconfig | 5 ----- configs/evb-rv1108_defconfig | 2 -- configs/firefly-rk3288_defconfig | 5 ----- configs/kylin-rk3036_defconfig | 5 ----- configs/miqi-rk3288_defconfig | 5 ----- configs/phycore-rk3288_defconfig | 5 ----- configs/popmetal-rk3288_defconfig | 5 ----- configs/rock2_defconfig | 2 -- configs/rock64-rk3328_defconfig | 5 ----- configs/rock960-rk3399_defconfig | 2 ++ configs/tinker-rk3288_defconfig | 5 ----- configs/tinker-s-rk3288_defconfig | 5 ----- configs/vyasa-rk3288_defconfig | 3 --- drivers/fastboot/Kconfig | 3 ++- drivers/usb/dwc3/core.c | 27 ++++++++++++++++++++++++++ drivers/usb/dwc3/core.h | 12 ++++++++++++ drivers/usb/gadget/Kconfig | 7 +++++++ include/dwc3-uboot.h | 2 ++ include/linux/usb/phy.h | 19 ++++++++++++++++++ 25 files changed, 101 insertions(+), 74 deletions(-) create mode 100644 include/linux/usb/phy.h