From patchwork Thu Sep 15 07:23:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manoj Sai X-Patchwork-Id: 2359 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 80DEB3F032 for ; Thu, 15 Sep 2022 09:23:32 +0200 (CEST) Received: by mail-pl1-f200.google.com with SMTP id n9-20020a170902d2c900b001782ad97c7asf8314522plc.8 for ; Thu, 15 Sep 2022 00:23:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1663226611; cv=pass; d=google.com; s=arc-20160816; b=0jkYoptJLlFiZ0juuXUCdKKRPeOEU0VqTekShEeNi828IHBLgVp21Q9mEXHmJ/EeSF wVT0Q4IkOSSQSMsTgtDOpeUHCOaPDdIaQCiiKhp5h+cQy+28tLtN04oidu8pTGO0dE2O IeO7MZF+tgOQclH0eGcLeqyT9ksJsrfz8x3cHCNKdll7Boernra2GszetdkuqcKF7EF3 Ij184zyohgg7XEvpI4gJ/GrmtnqEGUXVc1DeW8bz7edbGjA7pgZ4e5+W8a0RCwgaOgys eTkJKjA+naAjPZMnB3uEZgx/zDXRGq7O2EcM4/yOu2HXz6pTbWFuc0mmTxea0XRubQXs k67A== 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:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=/oh0j5/jSm6x2c/6ZPCzFOVs47oDZsUaoLGFqV6yFUs=; b=Uz+B6/c+im2Y2fH98HVu5a6EyjLdoQ0GVi8EIyZ6KTzg9PPt1nf++UMlPuAxrWpcZf OT1pSbnl6GExSi1cj/nrgdSkwVgWFNpWd8egi9hOYnrwSvEdf0dTO33Af4xzJOXtMJh3 BLc0kcb6K70ZajvcejK5kwwQOsOpUbQoSPwpLoRI0y9q7JvivKOWJeFeFIAKUpiDEXrh PhXAq7AGt4OV4/6TAeY6KMHfIrMwRnfyQQttzx4mzQXea3P7/qxAz4wgW65wL65TOlks pLriYt4wTxx/+tTN1B7kgXDf7howKI3dHKli0GI8HsvKHQptBCsWciS9JBTG5Cyj9lpk 1S2g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=nkJQBLEj; spf=pass (google.com: domain of abbaraju.manojsai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=abbaraju.manojsai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date; bh=/oh0j5/jSm6x2c/6ZPCzFOVs47oDZsUaoLGFqV6yFUs=; b=gdHHZtydpo0qmcfmz/LPe86eyv9cj0GihU9iw6k84JWwIrj43jZZaZLv+i8kUcum0/ pqGmhrcN+zkqXot3duXyJgzC9mVSt3tCgSqDCusLzkfxmlAWvCWF8CCuZGdsgg6CPvT6 hyKkwdf2AEr2CTSO1wGX705mWVrs6cxAkJB84= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date; bh=/oh0j5/jSm6x2c/6ZPCzFOVs47oDZsUaoLGFqV6yFUs=; b=aiiivwE8WZzeaIeblmsVEus6RVPG+6b827vdskElKV09XrsRagpNX5uDygyb4tcRvQ T8Oc1SVoCe+FA9zp5F66FUTg8t9azrLkXstOI+rzjFQeNsGQqmsJV+21LqoctlJYMn4O AyYlwn44Zz3rykay7MDg8qkeC6KStMfd1quTf1TtzQKiFUe6kLoYI0fLRj8qbolDekxC Qxs+MSEWPKNV7cfywIstojaeb8bU3EMbd35J+fPxAch6hBb5c1tffSFokTVhDNi1VAjZ SIjvmf8lkyy8et8zuSXQQokdQIcSC2NEeActmM2mIPA8L4tMw5ukB5fi9rDU3aVuVk2g QUFw== X-Gm-Message-State: ACrzQf16DZwg23l87xUntGzVItwIPXbje1hX5QY7B5XRMC+x4oAITTZr VHgeitPbBK5C810H3WSsZX4ztQXv X-Google-Smtp-Source: AMsMyM6alwYhqnC/RcUEV5aYEa7nqHrAPrG8ijzD30gv5KcYyZJGSW3EW1Gp5C7aPJcSmtt7w+biYw== X-Received: by 2002:a17:90a:a088:b0:1fb:6f0a:96bb with SMTP id r8-20020a17090aa08800b001fb6f0a96bbmr9138526pjp.190.1663226611136; Thu, 15 Sep 2022 00:23:31 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:55c7:0:b0:53e:419b:9648 with SMTP id j190-20020a6255c7000000b0053e419b9648ls9938881pfb.3.-pod-prod-gmail; Thu, 15 Sep 2022 00:23:30 -0700 (PDT) X-Received: by 2002:a05:6a00:2316:b0:548:58b6:b17c with SMTP id h22-20020a056a00231600b0054858b6b17cmr5472180pfh.53.1663226610234; Thu, 15 Sep 2022 00:23:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663226610; cv=none; d=google.com; s=arc-20160816; b=xDDqa2Rz6MrlzqqU5+vSgRrSuliTUjgPwp2Cmg+MxAxVXGkmcj63sW2K5LI9upc/sA usvNVQ+B6QWunQsw3RgBsojY2HUAyG71ZSOQyBvX8esT0A7omGv42Pk2iJmi1ZPH+p68 onCqD6H89IJ+OlA4mtoeMHuoazhFYHh/Ugufxz7L+Mk7LEpmSFDUEI2cOeIJtIoMTJvi MCs3kd2yhu1GS45SZGWzvDI5JWE04tlfGTOSnNA36sEB1g8XC46tnxPDdyWHSuMozWrW jQq7icIhyfpXbIQrc0nK1AN6DBCiYkvR3zWW+v1HdWvA+upxh9ZMBm3EFeXW/CQeZVIO +6cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=3I8Jgc/N7R4UUjfevagBebYuP6qVziyKPtS7DHsN/5I=; b=VmjJ8GMcac3ohJ4LR8PbejYtlfv2PUIEoGqjZdt06vKd/pFLz8GCUe/vC82bLwZ7x5 W1F0qMbLS320pnQ0ogKJuxek8q0EE52nSRxtzyJdYALSKjTH6o3eSpT/tUVYacmAH+b9 Dd0L4U6SpE6HZIdEEDsXZuYc6liESbbau9xliQDZbD8pGdYrgWRrBZQr8P9ZkwfzdNCM OwXAqcvuxffQpPFdrlAE+8s+RwqrsyGkXg+3io8kjhPvR3lmFvDa0HiBACmkFsIVUtU8 c+gZ19HDY6t9euXXWhXdpxWD8hsKCQMQPuVE2HATSCkbBAsD7ea+fKqIzgFztK/qkpSo Dc9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=nkJQBLEj; spf=pass (google.com: domain of abbaraju.manojsai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=abbaraju.manojsai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 k19-20020a170902761300b0016d0affdf66sor1014780pll.70.2022.09.15.00.23.30 for (Google Transport Security); Thu, 15 Sep 2022 00:23:30 -0700 (PDT) Received-SPF: pass (google.com: domain of abbaraju.manojsai@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:903:3093:b0:178:44cd:ec7 with SMTP id u19-20020a170903309300b0017844cd0ec7mr2258675plc.30.1663226609868; Thu, 15 Sep 2022 00:23:29 -0700 (PDT) Received: from localhost.localdomain ([183.83.136.224]) by smtp.gmail.com with ESMTPSA id w5-20020aa79545000000b0053818255880sm11560287pfq.193.2022.09.15.00.23.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Sep 2022 00:23:29 -0700 (PDT) From: Manoj Sai To: Simon Glass , Philipp Tomsich , Kever Yang , Johan Jonker , Alper Nebi Yasak , "Marty E . Plummer" Cc: Da Xue , dsx724 , linux-amarula@amarulasolutions.com, u-boot@lists.denx.de, Jagan Teki , Suniel Mahesh , Michael Nazzareno Trimarchi , Manoj Sai Subject: [PATCH v3] configs:rockchip:roc-rk3399-pc:Enable more configs Date: Thu, 15 Sep 2022 12:53:19 +0530 Message-Id: <20220915072319.16072-1-abbaraju.manojsai@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220913115326.48577-1-abbaraju.manojsai@amarulasolutions.com> References: <20220913115326.48577-1-abbaraju.manojsai@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: abbaraju.manojsai@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=nkJQBLEj; spf=pass (google.com: domain of abbaraju.manojsai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=abbaraju.manojsai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 patch enables the following: 1) use preboot configuration to enable usb devices. 2) Enable USB configs so keyboards and other USB devices work, update the number of ports of the usb root hub. - with this addition the updated USB device Tree: 1 Hub (12 Mb/s, 0mA) U-Boot Root Hub 1 Hub (12 Mb/s, 0mA) | U-Boot Root Hub | +-2 Hub (12 Mb/s, 100mA) USB 2.0 Hub [MTT] 1 Hub (5 Gb/s, 0mA) U-Boot XHCI Host Controller 3) enable crypto RNG support. 4) Change SPI speed and frequency: - increase the maximum SPI slave device speed, SPI flash max frequency for the environment from 10Mhz to 30MHz. - performance stats for speed update from 10MHz to 30MHz: with 10Mhz speed update: => sf update 0x300000 0x800000 0x400000 4194304 bytes written, 0 bytes skipped in 36.819s, speed 119837 B/s with 30Mhz speed update: => sf update 0x300000 0x800000 0x400000 4194304 bytes written, 0 bytes skipped in 20.319s, speed 220752 B/s Signed-off-by: Manoj Sai Signed-off-by: Da Xue Signed-off-by: dsx724 Reviewed-by: Kever Yang --- Changes for v3: - shortened the commit header. Changes for v2: - fixed prefix in the commit message. - squash all four patches into a single patch. --- configs/roc-pc-rk3399_defconfig | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configs/roc-pc-rk3399_defconfig b/configs/roc-pc-rk3399_defconfig index 4625e47537..7754cb8388 100644 --- a/configs/roc-pc-rk3399_defconfig +++ b/configs/roc-pc-rk3399_defconfig @@ -20,6 +20,7 @@ CONFIG_DEBUG_UART=y CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x300000 # CONFIG_ANDROID_BOOT_IMAGE is not set +CONFIG_USE_PREBOOT=y CONFIG_DEFAULT_FDT_FILE="rockchip/rk3399-roc-pc.dtb" CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_MAX_SIZE=0x2e000 @@ -44,6 +45,7 @@ CONFIG_CMD_TIME=y CONFIG_SPL_OF_CONTROL=y CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents" CONFIG_ENV_IS_IN_SPI_FLASH=y +CONFIG_ENV_SPI_MAX_HZ=30000000 CONFIG_SYS_RELOC_GD_ENV_ADDR=y CONFIG_SPL_DM_SEQ_ALIAS=y CONFIG_ROCKCHIP_GPIO=y @@ -54,6 +56,7 @@ CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=y CONFIG_MMC_SDHCI_ROCKCHIP=y CONFIG_SF_DEFAULT_BUS=1 +CONFIG_SF_DEFAULT_SPEED=30000000 CONFIG_SPI_FLASH_WINBOND=y CONFIG_ETH_DESIGNWARE=y CONFIG_GMAC_ROCKCHIP=y @@ -66,6 +69,8 @@ CONFIG_PWM_ROCKCHIP=y # CONFIG_RAM_ROCKCHIP_DEBUG is not set CONFIG_RAM_RK3399_LPDDR4=y CONFIG_DM_RESET=y +CONFIG_DM_RNG=y +CONFIG_RNG_ROCKCHIP=y CONFIG_BAUDRATE=1500000 CONFIG_DEBUG_UART_SHIFT=2 CONFIG_ROCKCHIP_SPI=y @@ -75,6 +80,9 @@ CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_DWC3=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_GENERIC=y +CONFIG_USB_OHCI_HCD=y +CONFIG_USB_OHCI_GENERIC=y +CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS=2 CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GENERIC=y CONFIG_USB_KEYBOARD=y