From patchwork Tue Oct 22 17:54:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 862 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id D95C83F047 for ; Tue, 22 Oct 2019 19:55:24 +0200 (CEST) Received: by mail-pl1-f197.google.com with SMTP id h11sf10944724plt.11 for ; Tue, 22 Oct 2019 10:55:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1571766923; cv=pass; d=google.com; s=arc-20160816; b=jiV8xcOClXFjd9Vv0OXOUjCzuyFJwLQG00sGcTqFrQRl4O8qI3PZMVrq/I641taD32 bEZTKJ9psjBCiLjWCrHhNhqz6xLmYMMhSyMVkDIprlKhWG1cpQaJSpH/F7aQLWs+rg43 8JzK8b3a0+Ub5wG3fYydbgZKDg6U7urstv708jhZ+eLpyp7DryON4QEr2InrVlMin5fZ hWTZdAdq4S3fYMNwBopH2svyNnEn+JIu8Rp//CZuPnoMl9PzkxKeiM6Z9hCKcrSgYuSN twogpxkGsXBrQ6sd20taVcckx/CjJtsRVfCei81ZRnP5HhE5KFpQtBtW5xEY+X2+Fzha E2+g== 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=xlumbnwmKyidQ3FeM+pplydLVc0fLNMqX3IJ9lPeecU=; b=DmMm5FKILtk3p7Afgpb2/ckDmnpRc0qjPXwPdqefAslqR+yYKRrnyrWuoBJdCCAIQf jJedH63xa7G5EkPO0oUGEhoihf8slGT3sKfo1ghDZJu4Opswsfgun1aEgZcuHh+3Se5a 0FLUI3CoFkfXnEOHgUefqkm9jEF/ZAdELnvExcC33omwskeOhnXZ4NCWaRKxlrVFL1Q4 0FitcRwUzwDdgvLy3X2Mzfbik3eGRiRYfikGYV6VeGLkaXhdm8pVYE8TxzXpc27dAirr a+HRadUIKRaus+h+WWDzTjtQ82IzwuOJssxeHwuuksKWVyvlOC86fqjh2zIhGL2GZKFT MQJg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=MeR3yWTf; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 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=xlumbnwmKyidQ3FeM+pplydLVc0fLNMqX3IJ9lPeecU=; b=me3qtEwhUfXDfKt1M6Lqj+kokzEdurXGCumoeBrKQvOIg4mEUWTS7gAUPTj1NYHGvQ Qu1PbRG6KcIvtQJd1uaGFgCro/a9K3Uyc4UwPZNXlTaDmxmjyTA8qwiqMMcdijNJHx7x d8kmiaVzzqtrukpQR36FXGhMhs0yHgR7RcdqM= 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=xlumbnwmKyidQ3FeM+pplydLVc0fLNMqX3IJ9lPeecU=; b=Jd7kw7wLT94t7DUqaN8rIvY/6nfTPi7hmJRsV4de4nxx6efXspoC5mriGOqm+OP/dM N3MgcNL+xWylPtCfOpBG6zAH1C9R/ndSoZaQVy8EB+xi+CqNFvzQKTSw+rYlXq5AX7Gi Rqxwr33y/OKXkQWHhtqGKR/knrH1aFU5IgJwqTprXavRwIZdcM4qzXkskbFzkkS37izP 4VvMsMwrowFRMw7AXABD/wxdDs788KW9z/sVjI/VfXZWIsbl+a+SZ+q8mTsFPRufI9uS YISiqwQJ6MnsQH9jgAJSIf/5W9HmY45HicKIbQkc/A59FeaugS5C2XnBBcG+atL77xwD ZRIw== X-Gm-Message-State: APjAAAVnsqhbzari7MvHlAfEbymOBMEKiueK44iLfv2iJCQXTg+EkpTw SC6SJ8zuAF4qA5p5r1ssrduOMID8 X-Google-Smtp-Source: APXvYqya0c8V5GLJNvl0LZqMzzlzm4MxlkuByKZH07EaoYHcj9SX1B99VE9MnEVwmxBWkNq969NYng== X-Received: by 2002:a17:90a:8c92:: with SMTP id b18mr6174699pjo.136.1571766922732; Tue, 22 Oct 2019 10:55:22 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:7551:: with SMTP id f17ls677515pgn.16.gmail; Tue, 22 Oct 2019 10:55:22 -0700 (PDT) X-Received: by 2002:a63:6a46:: with SMTP id f67mr4976311pgc.87.1571766922056; Tue, 22 Oct 2019 10:55:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571766922; cv=none; d=google.com; s=arc-20160816; b=dhTx/0XAHcRQfIKdIv+cPFQBOBveyfYZ+VY77eK3Q59vIUqWlKAS2gCZRUNnUKjGrU 1+HQWnLhqK80EnVZp4jhFv0NtRq2tMqpBBHFcqjPgiawxUDlTbEMdVHIcaiK9OLcCtCd TpmZ8gSOs7OLw2Mejxp70sMocUtYbUVFrAx79ygQgXut4Fe/ggX+uosdOFxlXCIOvMdc duHf++4pOb4V2OuaLYw+7qGk+P4CIstoIB7QsCgw4l+s6f0TZ9HbLZKbx/U4bz7/aYxk 2cLXfQlX7Uy4sXVxO8Dv8f/ZMYo6ENu2bGG2sLysdgSBxiToYcEBktSPAWpvybkc4Emx tLFw== 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=Bieu4vNF/+8kVFKGTBu4ktmF1t4JBGnFT262VX3GElY=; b=cLh2TuQodoAaOJm30AAK0Rsqg2f1Qk+GychNMvPXgYkfJ33FcErQ0jG5zIJynUbezR 42Ubb96UaxMGVEjWSaZ1e78uC9wuLyHC3rGWmiBFtY12gpyqGrqEa+OTCxJypXPFr4KA yoF6btjAY1Y3gt/NK8TiPMKn1WXBLcLlw2tp0WIbKJ4HE8AlwmKghflkgWcyyTGFAEg7 yGqnul4MLd9C5AdWAJax10gWNjIYULiwF+ZtGohOcu3JYOJZy7NoXB0O6KbbpNGaTbcZ y0UZv6PzvSRAe9mxaW3L6H9NqjB+0VjRP3er4hfJ6q/hVGU7FdomEgEuVhAevDlq6SxD KtHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=MeR3yWTf; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id j10sor22695278pjn.21.2019.10.22.10.55.21 for (Google Transport Security); Tue, 22 Oct 2019 10:55:21 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:90a:3608:: with SMTP id s8mr6310110pjb.44.1571766920627; Tue, 22 Oct 2019 10:55:20 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.31]) by smtp.gmail.com with ESMTPSA id b3sm20454775pfd.125.2019.10.22.10.55.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2019 10:55:20 -0700 (PDT) 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 0/9] rockchip: rk3399: Add fastboot support Date: Tue, 22 Oct 2019 23:24:49 +0530 Message-Id: <20191022175458.22604-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=MeR3yWTf; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 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 patchset add fastboot support on RK3399 and also rework of CONFIG items related to fastboot support. patch 0001 - 0005: existing gadget, fastboot config move patch 0006: add phy interface for dwc3_uboot patch 0007: 0008: dwc3 setup for rk3399 patch 0009: enable fastboot, nanopc-t4, roc-pc SD card work fine, but eMMC seems unstable when partitioning with gpt like below but it can be problem with fastboot though. => gpt write mmc 0 $partitions Writing GPT: mmc write failed ** Can't write to device 0 ** ** Can't write to device 0 ** error! => gpt verify mmc 0 $partitions GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645 gpt_verify_headers: *** ERROR: Invalid GPT *** Verify GPT: error! Any inputs? Jagan. Jagan Teki (9): 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] usb: dwc3: Add phy interface for dwc3_uboot gadget: rockchip: Add rk3399 USB_GADGET_PRODUCT_NUM rockchip: Setup dwc3_device (for non-dm gadgets) [DO NOT MERGE] rockchip: rk3399: Enable fastboot 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/nanopc-t4-rk3399_defconfig | 3 +++ configs/phycore-rk3288_defconfig | 5 ----- configs/popmetal-rk3288_defconfig | 5 ----- configs/roc-rk3399-pc_defconfig | 3 +++ configs/rock2_defconfig | 2 -- configs/rock64-rk3328_defconfig | 5 ----- configs/tinker-rk3288_defconfig | 5 ----- configs/vyasa-rk3288_defconfig | 3 --- drivers/fastboot/Kconfig | 4 +++- drivers/usb/dwc3/core.c | 26 ++++++++++++++++++++++++ drivers/usb/dwc3/core.h | 12 +++++++++++ drivers/usb/gadget/Kconfig | 6 ++++++ include/dwc3-uboot.h | 2 ++ include/linux/usb/phy.h | 19 ++++++++++++++++++ 25 files changed, 104 insertions(+), 69 deletions(-) create mode 100644 include/linux/usb/phy.h