From patchwork Tue Jul 7 13:50:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 11648631 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8DFA260D for ; Tue, 7 Jul 2020 13:51:09 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D4C6E2073E for ; Tue, 7 Jul 2020 13:51:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="fdgbLT/j"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="fAqdBECC" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D4C6E2073E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=Fk0cn2w2Yg1Gvd1ydx/aE9HasHBuGNCwVUW46sS80I8=; b=fdgbLT/jp+BXLCLHFWasjSsdPy N8/Svynv+AmRaOmiE8IZfhryQRLASJzEI7tGw5Kk2OpgZqDlEEQWfgH6hxHTr70DGMPyJewgB1ZIV iNT7BrspHOJGqBvR6tGEaVxXtpWnVTzuhsB/kwnIBTqlriRaJmV1T+0o3gBFgSDstPxOukKEvO9Hf GeC03iEQD1sso0129GILPncBCM802HHwODhfSVmvS+Zz6cYJWeSlSg97S/z1+PKchWIVIPZZM5l/y 0YFJEZJ8ZmdIzFGQSZzDPWxUShqvp4lrGAXIlKyQazH294jlAzjuhy7ztWJkgRTu9mAgJyLf+fvz9 mDYybzQg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jso01-0006Tx-1Q; Tue, 07 Jul 2020 13:51:05 +0000 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jsnzy-0006TF-N0 for linux-rockchip@lists.infradead.org; Tue, 07 Jul 2020 13:51:03 +0000 Received: by mail-pg1-x542.google.com with SMTP id m22so9665013pgv.9 for ; Tue, 07 Jul 2020 06:51:02 -0700 (PDT) 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 :content-transfer-encoding; bh=OcKDQszk38ybVOVud7KGyYFhi2Dy2zveOyRdVgXykZI=; b=fAqdBECC33gTvIEVQW9eoeHSYtYGmNdx53b2n3NGxHD0aiKuC/eVm32b5aBXDQUcbI hcxDBrajtNMs498DECR9zh3N0Bt+jCZM6RgsGXCqKS8pCd5pHn+lxeCPxvtbqhlPlzUq GcO67ivQfDap1kC/bD3tRhhU3dPF3ObmfyMTI= 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 :content-transfer-encoding; bh=OcKDQszk38ybVOVud7KGyYFhi2Dy2zveOyRdVgXykZI=; b=EMj5JJCD8JKHMC+/bUNPtITwGN1sf7+Oxvzjyi3a3C4kT2JgkYub/mrjwpxbRJOdKW s8d6+3FYkfAa2wubH0drNBL3MDsmeG8ahpxXp6f8bvcYQyTHUnTEvlWTQh0NQ3N7jx2a 3f0zRPTLntkK4Bo180eSc8fFJLj8J/MweG6MNv+1v1N8TxbjaKWayp4zLgKwktbzh9y8 LuxKGSaoL/u7+nxueNkq5+pCWi0ndtOOUCwy/PRwE40YKBQLlIeIBGpfmmgpttbcaebk 89F8Z4A8Ot0JkjIH77isKGrSMRDQIS+2MCmJWl/4xd3YOxLtCzmkBpbZPtC6HvV3PPMG sL9w== X-Gm-Message-State: AOAM531OhwKlw02trrC6GnrYpBqotPPMqHaxUTPlFUPfetHzydizeQ9T 1HbCSm9fTA/sFe7FueasPas2LQ== X-Google-Smtp-Source: ABdhPJz/1SmFymgAvzgPpjot/CuHnffjZtOEi8O+E9xX8Vdbe/HxZicVnV5tUfR2vEGR0UCGxmwy0Q== X-Received: by 2002:a65:63ca:: with SMTP id n10mr45749455pgv.252.1594129860294; Tue, 07 Jul 2020 06:51:00 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:11b1:83c1:7d95:bab3]) by smtp.gmail.com with ESMTPSA id 73sm22980495pfy.24.2020.07.07.06.50.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2020 06:50:59 -0700 (PDT) From: Jagan Teki To: Kever Yang , Philipp Tomsich , Simon Glass Subject: [PATCH v3 1/6] rock-pi-4: Enable USB3 Host Date: Tue, 7 Jul 2020 19:20:44 +0530 Message-Id: <20200707135049.9521-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200707_095102_874503_FDEBC3C2 X-CRM114-Status: UNSURE ( 6.88 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:542 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-rockchip@lists.infradead.org, Tom Cubie , U-Boot-Denx , Jagan Teki , Suniel Mahesh , linux-amarula Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org Enable USB3.0 Host support for RockPI-4 boards. Note that the Upper USB3.0 port is marked as otg and lower USB3.0 port marked as host, so this below log capture when USB3.0 mass storage plug in at lower USB 3.0 port. Log: Bus usb@fe380000: USB EHCI 1.00 Bus usb@fe3c0000: USB EHCI 1.00 Bus dwc3: usb maximum-speed not found Register 2000140 NbrPorts 2 Starting the controller USB XHCI 1.10 Bus dwc3: usb maximum-speed not found Register 2000140 NbrPorts 2 Starting the controller USB XHCI 1.10 scanning bus usb@fe380000 for devices... 1 USB Device(s) found scanning bus usb@fe3c0000 for devices... 1 USB Device(s) found scanning bus dwc3 for devices... 1 USB Device(s) found scanning bus dwc3 for devices... cannot reset port 1!? 2 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found => usb tree USB device tree: 1 Hub (480 Mb/s, 0mA) u-boot EHCI Host Controller 1 Hub (480 Mb/s, 0mA) u-boot EHCI Host Controller 1 Hub (5 Gb/s, 0mA) U-Boot XHCI Host Controller 1 Hub (5 Gb/s, 0mA) | U-Boot XHCI Host Controller | +-2 Mass Storage (5 Gb/s, 224mA) SanDisk Dual Drive 040130e3ee554b7078843f4eb331646 Cc: Tom Cubie Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- Changes for v3: - collect kever review tag configs/rock-pi-4-rk3399_defconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configs/rock-pi-4-rk3399_defconfig b/configs/rock-pi-4-rk3399_defconfig index 0d86fdc895..2487872219 100644 --- a/configs/rock-pi-4-rk3399_defconfig +++ b/configs/rock-pi-4-rk3399_defconfig @@ -28,6 +28,7 @@ CONFIG_ENV_IS_IN_MMC=y CONFIG_SYS_RELOC_GD_ENV_ADDR=y CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y +CONFIG_MISC=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=y @@ -35,11 +36,14 @@ CONFIG_MMC_SDHCI_ROCKCHIP=y CONFIG_DM_ETH=y CONFIG_ETH_DESIGNWARE=y CONFIG_GMAC_ROCKCHIP=y +CONFIG_PHY_ROCKCHIP_INNO_USB2=y +CONFIG_PHY_ROCKCHIP_TYPEC=y CONFIG_PMIC_RK8XX=y CONFIG_REGULATOR_PWM=y CONFIG_REGULATOR_RK8XX=y CONFIG_PWM_ROCKCHIP=y CONFIG_RAM_RK3399_LPDDR4=y +CONFIG_DM_RESET=y CONFIG_BAUDRATE=1500000 CONFIG_DEBUG_UART_SHIFT=2 CONFIG_SYSRESET=y @@ -48,6 +52,8 @@ CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_DWC3=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_GENERIC=y +CONFIG_USB_DWC3=y +CONFIG_USB_DWC3_GENERIC=y CONFIG_USB_HOST_ETHER=y CONFIG_USB_ETHER_ASIX=y CONFIG_USB_ETHER_ASIX88179=y From patchwork Tue Jul 7 13:50:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 11648633 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 84FD592A for ; Tue, 7 Jul 2020 13:51:10 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5B5C92073E for ; Tue, 7 Jul 2020 13:51:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="GbVmvyYC"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="g+f+97Pl" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5B5C92073E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=XL9JRbuMKsRuIvOPPlByedTFUbal1UG6hr62OFbVTi8=; b=GbVmvyYCFRbQiIF9YH1phdaVT IeRndaHNuMxHopckXID6lSHXhrDumWALjaspd/udDE2TFLlUlrqNF9NY/ftXPttkzCBlJwjFpIN0T 3OzxG43CEsXhh4yeEkDR4TL8Srckm70Z7OTNT2eUSQ16DmxunGAxnzVigdW7283uZfuaHLnyiahsB SP2lglhZdu4yJDoArD7mji3BbXvb2nT3fEy3v2tTciRv1IKfIfRaXH1dQO3FXeMZ5L4fj82LWUlqe t0Oa4iZYYh6FDDeOWr5ZAlXCfl1AVenKCcVDdE8XG59NvWR7KnKtckyWZpz8kiCVffLcDtRSEnIDx MoQoWy6mQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jso04-0006Ua-Fv; Tue, 07 Jul 2020 13:51:08 +0000 Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jso02-0006Tw-FZ for linux-rockchip@lists.infradead.org; Tue, 07 Jul 2020 13:51:07 +0000 Received: by mail-pl1-x642.google.com with SMTP id x11so16768533plo.7 for ; Tue, 07 Jul 2020 06:51:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=51d4v7u6qUCsnLIzAlZ6gMPyxBe3jmcotgtEKWp8NQE=; b=g+f+97PlpVSApujs/6fajlblEfRXJLjF/zt33mXpyMxbE1bUoR3Q+7FvLktSgAVhDJ oyyzYVHyAjKnO/QR4rzPuKw2nTtitKyRDR4dqsHQGOas0R3Dl1Q9p6iI/R06JaQ6zXWe aWPuvjRLBUBDR4ZsmfSIw0uEJUlb1YfojmRsQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=51d4v7u6qUCsnLIzAlZ6gMPyxBe3jmcotgtEKWp8NQE=; b=Vq/qfaRngsSLthPmruCYNXn/SCaPjFQ1KD4o1YnUqxn96YVZr6XRuXWfWO6mJiMJR0 sHqUzHFY4eNb6gLi9BlTIZfa9PQcwYK0sTRak04Q0ZLDD8clejJ6VWszgAUYsmjIeJvK E1GQPrmffDQhJg0eZyZpY6wlEmjOkRRzo3dVfthP8dQLqgMMeEHBEdq4JtdrOYTnAee5 hqlX5BUZvGLPhPCYlUdaDq5K0s21Y9jnCCuPlR2uwIxM4rUf2OyTBjqf8jI2Sa50F4yl CTnObcOqRRs9ph6kqVLQzj6/fkQCwmbHs3vBZZWeUJCc51pOwzut83+X9fZjh2/F9WMf tD+w== X-Gm-Message-State: AOAM530CZbCUeEIWv3n9cSrKlV9HAq3Lq6z/NQaDUKANAJ/3evrSHC9j fNUX1uKCEALaoHbLnnRwKq95AURFYuSZsw== X-Google-Smtp-Source: ABdhPJzGSZao4y46DdsM0zeK4WYxU9BKpeavG4p5atNK8fd6YsvShb9HbSRX9jPs5QfdUvaXECf0lA== X-Received: by 2002:a17:902:6a83:: with SMTP id n3mr46047568plk.42.1594129864420; Tue, 07 Jul 2020 06:51:04 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:11b1:83c1:7d95:bab3]) by smtp.gmail.com with ESMTPSA id 73sm22980495pfy.24.2020.07.07.06.51.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2020 06:51:03 -0700 (PDT) From: Jagan Teki To: Kever Yang , Philipp Tomsich , Simon Glass Subject: [PATCH v3 2/6] rock-pi-4: Enable PCI/NVME Date: Tue, 7 Jul 2020 19:20:45 +0530 Message-Id: <20200707135049.9521-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200707135049.9521-1-jagan@amarulasolutions.com> References: <20200707135049.9521-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200707_095106_584507_E4DC7F27 X-CRM114-Status: UNSURE ( 8.44 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:642 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-rockchip@lists.infradead.org, Tom Cubie , U-Boot-Denx , Jagan Teki , Suniel Mahesh , linux-amarula Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org Enable PCI/NVME for M.2 Slot on RockPI-4 boards. => nvme info Device 0: Vendor: 0x144d Rev: 2B2QEXM7 Prod: S4EUNG0MC10012Y Type: Hard Disk Capacity: 238475.1 MB = 232.8 GB (488397168 x 512) Cc: Tom Cubie Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- Changes for v3: - collect kever review tag configs/rock-pi-4-rk3399_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/rock-pi-4-rk3399_defconfig b/configs/rock-pi-4-rk3399_defconfig index 2487872219..f3eeef0293 100644 --- a/configs/rock-pi-4-rk3399_defconfig +++ b/configs/rock-pi-4-rk3399_defconfig @@ -18,6 +18,7 @@ CONFIG_TPL=y CONFIG_CMD_BOOTZ=y CONFIG_CMD_GPT=y CONFIG_CMD_MMC=y +CONFIG_CMD_PCI=y CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_TIME=y @@ -36,6 +37,8 @@ CONFIG_MMC_SDHCI_ROCKCHIP=y CONFIG_DM_ETH=y CONFIG_ETH_DESIGNWARE=y CONFIG_GMAC_ROCKCHIP=y +CONFIG_NVME=y +CONFIG_PCI=y CONFIG_PHY_ROCKCHIP_INNO_USB2=y CONFIG_PHY_ROCKCHIP_TYPEC=y CONFIG_PMIC_RK8XX=y From patchwork Tue Jul 7 13:50:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 11648635 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 25B3860D for ; Tue, 7 Jul 2020 13:51:13 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F20222073E for ; Tue, 7 Jul 2020 13:51:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="1hObblDC"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="icJXs0jg" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F20222073E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=OGLTrl/xlNFTIuNzYpRLqengrj4tKMKPHVZwZBY0PC0=; b=1hObblDCLahOzHg0Ol0aAry67 LbSA1orMtld8rw5vtqUWqs2WPAyQBLC26qPlmUTgnoFiAkBSLeNAREUkK1n1PJ8KBjIANeq7/S6DO PxSncyGssEBvRtOJUYrXE+G+pGGgVbG9AMVQnnP8zgfvxiSpMplZSwvSaQkmHKPqjQTOyGS6j3IIF Hp7M14DuKifx94S90YLzWYL/L3DUEJbShT56WZ8rQ+pAETqTjHRe2M4kahxfEoz6IMkZ7CoXQ4WmO l2x6tG8FM8kwvEO/PQ1nlvGoKX08jpx/metmE5oMqe5gffTQWcvalrwFa3UiQ4woiKGMsvf2T8Eox vDG6y+15w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jso07-0006Vb-8t; Tue, 07 Jul 2020 13:51:11 +0000 Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jso05-0006UY-Rj for linux-rockchip@lists.infradead.org; Tue, 07 Jul 2020 13:51:10 +0000 Received: by mail-pl1-x644.google.com with SMTP id s14so16771646plq.6 for ; Tue, 07 Jul 2020 06:51:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZklUhPKXUi8jNXq7qrID4uU3s+n83RLbPThqzwemmaE=; b=icJXs0jgmG2irIx78Qyts6XjT5aWBBaBNYGb/AGuxRTxGbYZOS36k7fup3blT4kVWL ku4uT6vysw8qDglzZi1H02UDLtiNuh3QkUlovSQ8HuVSBn6aXYBiHf5KHmtscZ1RJeQB QJhRGTc9mdoC242XdTbHuEPsjck5PX8+qN1PA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ZklUhPKXUi8jNXq7qrID4uU3s+n83RLbPThqzwemmaE=; b=QT6TksNWEgqcSmfa0Pd/NQ240U5uY6aZLqM6IP8GZ7L76KVNcB5Npmtzwb/basDz/L xpQUWIawWRvfl/jyC8fzI67LnmJIXH0IQlS7FYA+alXtl54RWUZxY3guSB+7CSrqcqTQ YrFJyizBLwUpkFw65dtPJjktl3QZr/Vq2yyFM68NleiZnID6/b4GiiyxqUs1p0aexQLx j9TQikA1BbcNm2SROsGkI/wXwdLkvzgAAmtb8VC+LKfkTmHOGmC9ZRJER7T7LQ1Np2Pj yah+x8ukd+otbxdDDrKu4XGlhxdESybPGjweiuV4iHljtU5aJJps56UKd2MZTI+kNX87 nVZA== X-Gm-Message-State: AOAM531qIrrn/RZnUdkqqP9JOgvIH+4ddcX3hIvBSHiZCy5HhSCxbb4K 9Elddz1q1ZUrSmK9YORxKKFwGQ== X-Google-Smtp-Source: ABdhPJwuEomcKU4znFGvjJ2b+6eYhL3vGgzhqi/Eb7xsvxC4jhYg33Fr7B6PlqHJJ8vWWKsYOjfjpw== X-Received: by 2002:a17:902:a515:: with SMTP id s21mr38535139plq.192.1594129867764; Tue, 07 Jul 2020 06:51:07 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:11b1:83c1:7d95:bab3]) by smtp.gmail.com with ESMTPSA id 73sm22980495pfy.24.2020.07.07.06.51.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2020 06:51:07 -0700 (PDT) From: Jagan Teki To: Kever Yang , Philipp Tomsich , Simon Glass Subject: [PATCH v3 3/6] rock-pi-4: Enable USB Gadget Date: Tue, 7 Jul 2020 19:20:46 +0530 Message-Id: <20200707135049.9521-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200707135049.9521-1-jagan@amarulasolutions.com> References: <20200707135049.9521-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200707_095109_930269_D5C61425 X-CRM114-Status: UNSURE ( 8.85 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:644 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: U-Boot-Denx , linux-rockchip@lists.infradead.org, linux-amarula , Jagan Teki , Suniel Mahesh Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org Enable USB gadget for rock-pi-4 boards. This would help to use fastboot by default. Note: Connect the Host USB cable (Port A or C) to rock-pi-4 Upper USB 3.0 port. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- Changes for v3: - collect kever review tag configs/rock-pi-4-rk3399_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/rock-pi-4-rk3399_defconfig b/configs/rock-pi-4-rk3399_defconfig index f3eeef0293..a4b322074c 100644 --- a/configs/rock-pi-4-rk3399_defconfig +++ b/configs/rock-pi-4-rk3399_defconfig @@ -8,6 +8,7 @@ CONFIG_NR_DRAM_BANKS=1 CONFIG_DEBUG_UART_BASE=0xFF1A0000 CONFIG_DEBUG_UART_CLOCK=24000000 CONFIG_DEBUG_UART=y +# CONFIG_ANDROID_BOOT_IMAGE is not set CONFIG_DEFAULT_FDT_FILE="rockchip/rk3399-rock-pi-4.dtb" CONFIG_MISC_INIT_R=y CONFIG_DISPLAY_BOARDINFO_LATE=y @@ -57,6 +58,7 @@ CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_GENERIC=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GENERIC=y +CONFIG_USB_GADGET=y CONFIG_USB_HOST_ETHER=y CONFIG_USB_ETHER_ASIX=y CONFIG_USB_ETHER_ASIX88179=y From patchwork Tue Jul 7 13:50:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 11648637 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9179160D for ; Tue, 7 Jul 2020 13:51:18 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6AA6C2073E for ; Tue, 7 Jul 2020 13:51:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="WYB6Avfe"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="C14pNviP" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6AA6C2073E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=57//whOq2PeY9xICR7hmamLgMHTG4YeZuAjyNolDZa0=; b=WYB6Avfe4XK101acBKaAxRyv2 AgImyHcNscSbTbTujN6jqfbFWxRkG4WCq25+G6ymQSWn2wf8cvGU59jv5aEmpzBVuuQwj2iwHyCKd 4bG7VpPutyp4LfLi088DlXDMhfgxAHlOmXbqITbjaS/NPLuB6peI2rQk7iTYwDZvdlLQd6a3c2iYZ 2x/iwFAaENcjU7LAdvxUD7/Z9EXDpr0ROX4qPsSokSgrincaHPvcsDSab+Jua7Y6Au+cGNzCceJfo 1UXgv9AnYdz4/qAgcM5S/2tPfgOdcpWvUl8w2Fn+zfF3ULoWNK4yuzHPoZJ2/YEQuuKQtoNFnrcsf T3xCM7Ogw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jso0C-0006XA-Pf; Tue, 07 Jul 2020 13:51:16 +0000 Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jso0A-0006Vz-M7 for linux-rockchip@lists.infradead.org; Tue, 07 Jul 2020 13:51:15 +0000 Received: by mail-pg1-x541.google.com with SMTP id e18so20030437pgn.7 for ; Tue, 07 Jul 2020 06:51:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=iFC1+uCp9rs00HK1PxPOuS+r6HkfCAjyp/N5un3y0Gw=; b=C14pNviPl2zjRiR0XEd1n9GUrqs2YAhLRbIqMkPT708hOwExkosXswbTkCBShQ/2tw RGlYqBJTC+q6/7AtLG0ud28IveNmpEKyPui4zunXBa0hMr+aKZ0l5KqTppnb5RNA4Pam k3GTYIuiEIVEudltaxtYv4A3tT6bvjAK80h/o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=iFC1+uCp9rs00HK1PxPOuS+r6HkfCAjyp/N5un3y0Gw=; b=jnIU1ZbaMsxEgxXLgsSBhKJf31TbZJp71PlJGc77MNrOPhvGtiMMLRrn5GSWbvNDho QZD7vW+Qa9Jc2xL0tSJAwAVWRXWyvqQMEBZ6nUh5qBjlu6hrw/DIO1VmElJxYY9X3xry Azyk4UePmODGuWINUeMy3DBGunhBD7A2w02kBaYAVDTSwRPyZMQyflN9gx6YImP5p4ku lwOidRSrfQ0ea6ZElRK6kpT1jNYn/NGRJGWMxAdiJmTUHpcziyhOtT6jrRWIkBgyY+1Q lGw+beIJWiNlmhP7KLayXrZKyddS6scRYdio5CargfZkl5ydNKToNh4VuZfG1QOd40H+ rVlQ== X-Gm-Message-State: AOAM530cu33ndePrqLroR+7uYbCIx/KLS8/hkTdf37eO2ANwI+nehSQh oEnMnYLL/lu9gmNBAcql5/ZmEg== X-Google-Smtp-Source: ABdhPJyjhkGoEH2jPE98rJBo0m6BGlxcaoN8Bo1lfOzq5Sml2CBI6kEIt7KinebdSq/ols9ItIQJqw== X-Received: by 2002:a63:9247:: with SMTP id s7mr46444266pgn.355.1594129871701; Tue, 07 Jul 2020 06:51:11 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:11b1:83c1:7d95:bab3]) by smtp.gmail.com with ESMTPSA id 73sm22980495pfy.24.2020.07.07.06.51.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2020 06:51:10 -0700 (PDT) From: Jagan Teki To: Kever Yang , Philipp Tomsich , Simon Glass Subject: [PATCH v3 4/6] rock-pi-4: Enable HDMI output Date: Tue, 7 Jul 2020 19:20:47 +0530 Message-Id: <20200707135049.9521-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200707135049.9521-1-jagan@amarulasolutions.com> References: <20200707135049.9521-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200707_095114_747016_883C5EA1 X-CRM114-Status: UNSURE ( 8.25 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:541 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: U-Boot-Denx , linux-rockchip@lists.infradead.org, linux-amarula , Jagan Teki , Suniel Mahesh Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org Enable config options to get HDMI output on RockPI-4 boards. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- Changes for v3: - fix configs configs/rock-pi-4-rk3399_defconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configs/rock-pi-4-rk3399_defconfig b/configs/rock-pi-4-rk3399_defconfig index a4b322074c..98f71a50a5 100644 --- a/configs/rock-pi-4-rk3399_defconfig +++ b/configs/rock-pi-4-rk3399_defconfig @@ -58,6 +58,7 @@ CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_GENERIC=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GENERIC=y +CONFIG_USB_KEYBOARD=y CONFIG_USB_GADGET=y CONFIG_USB_HOST_ETHER=y CONFIG_USB_ETHER_ASIX=y @@ -65,5 +66,9 @@ CONFIG_USB_ETHER_ASIX88179=y CONFIG_USB_ETHER_MCS7830=y CONFIG_USB_ETHER_RTL8152=y CONFIG_USB_ETHER_SMSC95XX=y +CONFIG_DM_VIDEO=y +CONFIG_DISPLAY=y +CONFIG_VIDEO_ROCKCHIP=y +CONFIG_DISPLAY_ROCKCHIP_HDMI=y CONFIG_SPL_TINY_MEMSET=y CONFIG_ERRNO_STR=y From patchwork Tue Jul 7 13:50:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 11648639 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1CA2760D for ; Tue, 7 Jul 2020 13:51:22 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E82D82073E for ; Tue, 7 Jul 2020 13:51:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="HvjBsg7P"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="eaQzIk3G" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E82D82073E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=p85EES977ZqLzCcClxXkgnR5QHjtHEBgOqR6GF8ljg8=; b=HvjBsg7Ppm3NyuPGs+nQUlyTY nnFfGGZ2QbrxTN08zgNJ3mNxCfE/plrq7b7AigasnDC47Pkxcy+AjrjRtiJKtGJb1ULD6+NP5UBJt O8KRP36ZgTBzMVayhth/vMqaGXZldqDpkzfUkVWcQIIWd4+Aagfcx6wxtY46wEq9h+WEvOxrpwx4J D8lQxDM6p8xmnvpk9+e+V5m/TKvL5w5ojqyKYwEZucEkShiFBm4QnUEWT+3U8MLbr1KC/bqhs1kPY 3yymJtU19jjztB8T8yrn7P3s3xiYy4rfPXvyfY+15wQo/7+3PBA6qqRYl5dku66caUG6QUvl7UzoF 8M9PJfhHw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jso0G-0006YK-9M; Tue, 07 Jul 2020 13:51:20 +0000 Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jso0D-0006X8-FY for linux-rockchip@lists.infradead.org; Tue, 07 Jul 2020 13:51:18 +0000 Received: by mail-pg1-x533.google.com with SMTP id e18so20030531pgn.7 for ; Tue, 07 Jul 2020 06:51:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=570L8wHPqY4gRv/5g1wc7q9ZAEAdwqWu9R9tzybHuTI=; b=eaQzIk3GjOQDN4E+iQO11VUQvonClCQXMurWFZQsC5z6PthjN+zhuLxu6sNreewDiE Fm8/gF50oxL4rZ95BvsJuhjq/dRJTf8uRIeB22qBNIymJXKPQF9ATwVxnhZCh9VUozfc TczhLrMz7FjBK3jT9JnWikycHmUh+ccni5hkI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=570L8wHPqY4gRv/5g1wc7q9ZAEAdwqWu9R9tzybHuTI=; b=kXMV/vqvxtPYU7nOLcmQpixwWGTtXrtsK7ozh0JkjHET1mMKcK2+CFT2SVPPnMM5dU aaa7dKmSsYoda0gj9zMR8gp9RzZXUBviBnKGwhVsUW163ffeaTi/TZ3MHJvS1iYh+EPl 0CTD08r8Fa67gnP7EF7bO6Obc1BvNNPU8qxEhWMT2wNAIpdwO8r3+l/08sFrD8uEf7Da gCe237xy0NZjujeAzMtHOZzv8n/9CvBZ2nQ/pegjR+90c9McR1pV7X/BJE5xEDF5VaUm uoV45aq7r+G4wqM9e+nemkH75dG0Y9X8bU2InDFW4/Xhd264hcHushJNqQu8qeCmaUbT 8aMQ== X-Gm-Message-State: AOAM533il0Qc2qOHMx5G0AdRuFDyh2MhuXAt9IuY8nq5OK4fXyqmeWnT +niaNr9IkldbQkYBJW8xAplHRA== X-Google-Smtp-Source: ABdhPJzYDCY5leTDHfEv6ijtHqN0/z+4hXCrRJlOHc6e6528nENC8/lkbhb01c5snsx5NC9wLzs60w== X-Received: by 2002:a63:2e86:: with SMTP id u128mr24873346pgu.228.1594129875735; Tue, 07 Jul 2020 06:51:15 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:11b1:83c1:7d95:bab3]) by smtp.gmail.com with ESMTPSA id 73sm22980495pfy.24.2020.07.07.06.51.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2020 06:51:15 -0700 (PDT) From: Jagan Teki To: Kever Yang , Philipp Tomsich , Simon Glass Subject: [PATCH v3 5/6] roc-rk3399-pc: Enable USB Gadget Date: Tue, 7 Jul 2020 19:20:48 +0530 Message-Id: <20200707135049.9521-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200707135049.9521-1-jagan@amarulasolutions.com> References: <20200707135049.9521-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200707_095117_528586_F6BA559D X-CRM114-Status: UNSURE ( 9.14 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:533 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: U-Boot-Denx , linux-rockchip@lists.infradead.org, linux-amarula , Jagan Teki , Suniel Mahesh Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org Enable DWC3 core, gadget for roc-rk3399-pc board. This would help to use fastboot by default. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- Changes for v3: - collect kever review tag configs/roc-pc-mezzanine-rk3399_defconfig | 3 +++ configs/roc-pc-rk3399_defconfig | 3 +++ 2 files changed, 6 insertions(+) diff --git a/configs/roc-pc-mezzanine-rk3399_defconfig b/configs/roc-pc-mezzanine-rk3399_defconfig index b3c8f19e43..b2c370cc59 100644 --- a/configs/roc-pc-mezzanine-rk3399_defconfig +++ b/configs/roc-pc-mezzanine-rk3399_defconfig @@ -13,6 +13,7 @@ CONFIG_DEBUG_UART_CLOCK=24000000 CONFIG_SPL_SPI_FLASH_SUPPORT=y CONFIG_SPL_SPI_SUPPORT=y CONFIG_DEBUG_UART=y +# CONFIG_ANDROID_BOOT_IMAGE is not set CONFIG_DEFAULT_FDT_FILE="rockchip/rk3399-roc-pc-mezzanine.dtb" CONFIG_DISPLAY_BOARDINFO_LATE=y # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set @@ -65,7 +66,9 @@ CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_GENERIC=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GENERIC=y +CONFIG_ROCKCHIP_USB2_PHY=y CONFIG_USB_KEYBOARD=y +CONFIG_USB_GADGET=y CONFIG_USB_HOST_ETHER=y CONFIG_USB_ETHER_ASIX=y CONFIG_USB_ETHER_ASIX88179=y diff --git a/configs/roc-pc-rk3399_defconfig b/configs/roc-pc-rk3399_defconfig index edb327b46b..588d03952a 100644 --- a/configs/roc-pc-rk3399_defconfig +++ b/configs/roc-pc-rk3399_defconfig @@ -13,6 +13,7 @@ CONFIG_DEBUG_UART_CLOCK=24000000 CONFIG_SPL_SPI_FLASH_SUPPORT=y CONFIG_SPL_SPI_SUPPORT=y CONFIG_DEBUG_UART=y +# CONFIG_ANDROID_BOOT_IMAGE is not set CONFIG_DEFAULT_FDT_FILE="rockchip/rk3399-roc-pc.dtb" CONFIG_DISPLAY_BOARDINFO_LATE=y # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set @@ -62,7 +63,9 @@ CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_GENERIC=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GENERIC=y +CONFIG_ROCKCHIP_USB2_PHY=y CONFIG_USB_KEYBOARD=y +CONFIG_USB_GADGET=y CONFIG_USB_HOST_ETHER=y CONFIG_USB_ETHER_ASIX=y CONFIG_USB_ETHER_ASIX88179=y From patchwork Tue Jul 7 13:50:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 11648641 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DFFEA92A for ; Tue, 7 Jul 2020 13:51:25 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B8AE42073E for ; Tue, 7 Jul 2020 13:51:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Q/s2NX8b"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="LikJzzlk" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B8AE42073E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=l/sxZYJAYeEDG5tgUg1UTrGXhD1qmB/9Owno7iInwHQ=; b=Q/s2NX8baPfXJDIHA88ys8gts Y+FqPXF6XiRriSKBMnjYVt/q270brhnGoPm6Jwr2r6Mt6yib4NeFQg8Lie5z8dVIhvM3/yC3RxFFz s06Es6RXIaQ+agdIj6JUL+mDNaKXe7JgxD7MuRwyLJcbUXjHaNFQ0TcJOMrhl4CyEQd2Ly+G2c83t Jv7LDIVncbncwnZwO3XBz+MhljpCakuZgEMnCAzpnwgTUwA7X6ZZnwhCDZCvHTgmGAEO8UZbqfn5g juG/5R8nJHxl0P416/ltKl5XLWR+4zabv+8N1iW8iU4UM9iFfVvh8LGCL1w38Kvn9IdO2dtROK+Ad fwOIYZQZA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jso0J-0006ZP-QH; Tue, 07 Jul 2020 13:51:24 +0000 Received: from mail-pj1-x1044.google.com ([2607:f8b0:4864:20::1044]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jso0H-0006YL-RN for linux-rockchip@lists.infradead.org; Tue, 07 Jul 2020 13:51:22 +0000 Received: by mail-pj1-x1044.google.com with SMTP id cm21so8990832pjb.3 for ; Tue, 07 Jul 2020 06:51:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=X09XRwdN6OD0FcvM3vVAEHq81Npbq7hoDY+clcDkkik=; b=LikJzzlkwTPPzvOtuVBuoZP2yvmghGNgarLX7ZBY9X1wt8frnslyOEZkkPP1pQ9dlK j6kGxbyAzshCSwpnnbaK//mo9iot9zzxswEK2didEyzis7okjsUH3Up5YDmS25HIBe+Y AziaytSDcngOh4NAMmxSAffhvi/88KR6w1L90= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=X09XRwdN6OD0FcvM3vVAEHq81Npbq7hoDY+clcDkkik=; b=UcqiYV++idKYJ3uxnW0hxnOkNc7eRZCg6EvA4PmcCUFka6ypdXxZfw/qhar2sRGZo1 1QnX1zlhl/SKm76JPK07LynlGE0KOcrgSPS/86wOqSBdCiXrDGpqbtdmkwuDLCKFwP8T EryS8TBZuhOb+h1s2yClcXHdDfazB/KO7zI1n9sJu02q0UYh0F1d1MeAfVndPIPsdJ5Y 9Cy0x4d8JOhN1po7TCM4MgP/uvlRwL3kOF2TYWkKk6PnFApGuC3DmQhqoXqh2riOHhzh pLAxZTqP70bGD7DNlI/ADzFBow9mQqAM35zWLslhP5esMZnE+grqVKVivfnSJ5OUzA55 ZrZg== X-Gm-Message-State: AOAM5335JVeKlFq00sYagtOtNTdkx2c5fN5qHkYR3lkqDnfVPQAbO19P yWo5oVvVvyZM6nx40l4qXz1RVQ== X-Google-Smtp-Source: ABdhPJwDgjWrESrMyFcwbvRHyQO6vgrU1gJEEbfIWVRqYkQB7OlHIYA/jWxxJM283SP8PEyaSqymPg== X-Received: by 2002:a17:90a:8a07:: with SMTP id w7mr4516991pjn.219.1594129879693; Tue, 07 Jul 2020 06:51:19 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:11b1:83c1:7d95:bab3]) by smtp.gmail.com with ESMTPSA id 73sm22980495pfy.24.2020.07.07.06.51.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2020 06:51:18 -0700 (PDT) From: Jagan Teki To: Kever Yang , Philipp Tomsich , Simon Glass Subject: [PATCH v3 6/6] roc-rk3399-pc: Update ENV offset, size Date: Tue, 7 Jul 2020 19:20:49 +0530 Message-Id: <20200707135049.9521-6-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200707135049.9521-1-jagan@amarulasolutions.com> References: <20200707135049.9521-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200707_095121_932934_AC4422F2 X-CRM114-Status: UNSURE ( 8.55 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:1044 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: U-Boot-Denx , linux-rockchip@lists.infradead.org, linux-amarula , Jagan Teki , Suniel Mahesh Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org Adjust the ENV offset, size to fit into all images on 16MB flash. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- Changes for v3: - fix configs configs/roc-pc-mezzanine-rk3399_defconfig | 4 ++-- configs/roc-pc-rk3399_defconfig | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/configs/roc-pc-mezzanine-rk3399_defconfig b/configs/roc-pc-mezzanine-rk3399_defconfig index b2c370cc59..f15dddc684 100644 --- a/configs/roc-pc-mezzanine-rk3399_defconfig +++ b/configs/roc-pc-mezzanine-rk3399_defconfig @@ -1,8 +1,8 @@ CONFIG_ARM=y CONFIG_ARCH_ROCKCHIP=y CONFIG_SYS_TEXT_BASE=0x00200000 -CONFIG_ENV_SIZE=0x6000 -CONFIG_ENV_OFFSET=0x460000 +CONFIG_ENV_SIZE=0x8000 +CONFIG_ENV_OFFSET=0x3F8000 CONFIG_ENV_SECT_SIZE=0x1000 CONFIG_SPL_DM_SPI=y CONFIG_ROCKCHIP_RK3399=y diff --git a/configs/roc-pc-rk3399_defconfig b/configs/roc-pc-rk3399_defconfig index 588d03952a..9ffde7f960 100644 --- a/configs/roc-pc-rk3399_defconfig +++ b/configs/roc-pc-rk3399_defconfig @@ -1,8 +1,8 @@ CONFIG_ARM=y CONFIG_ARCH_ROCKCHIP=y CONFIG_SYS_TEXT_BASE=0x00200000 -CONFIG_ENV_SIZE=0x6000 -CONFIG_ENV_OFFSET=0x460000 +CONFIG_ENV_SIZE=0x8000 +CONFIG_ENV_OFFSET=0x3F8000 CONFIG_ENV_SECT_SIZE=0x1000 CONFIG_SPL_DM_SPI=y CONFIG_ROCKCHIP_RK3399=y