From patchwork Thu Oct 17 19:07:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 11196903 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 4A5B51668 for ; Thu, 17 Oct 2019 19:07:57 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 908B121835 for ; Thu, 17 Oct 2019 19:07:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="O6rlaCI0"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="VNjZyhbh" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 908B121835 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=bombadil.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=mD9u8mR7xjxKHwN0ZJxx0fPj3aHoGxoPjFrMgJnY9fw=; b=O6rlaCI0976PJq f/FbksaBYj9OES0JNc7TPG0N7MlmAna3cqaq4Ixnd+rP2Aflg+ahhy270u/8umqbz5AtlgA89o5kB 2sZk8QE8Hay1chk6uqD92VpyeAjLmMkQ1aUPPe8oz3jiObGJfanVtxotCwCxx1b+JWrA+ZDCKb5Gw eRPYkDeJSKcsTCgFk3w3gFncBKoCyid2M+GLH549BTXf+cM/9oruQDF8jsATvJQ6R1eD+mtfnLRPP +o8LfiZY04phVajscOaKZpl5BU1kgEfSon4Vb/ItY1e8bIrySYXtCn8K9B02kkM/X9NkYiIkUBraV vPJS7y6QyhKnVGBGxhZQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iLB7p-00018D-OS; Thu, 17 Oct 2019 19:07:53 +0000 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iLB7n-00016s-MC for linux-rockchip@lists.infradead.org; Thu, 17 Oct 2019 19:07:52 +0000 Received: by mail-pg1-x543.google.com with SMTP id t3so1881019pga.8 for ; Thu, 17 Oct 2019 12:07:51 -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=NdmLPLRPe+98EGV7GB7Iy+EA9njdrHI72DqxGxv83yE=; b=VNjZyhbhd+gIdAZ72ilnHNhwv3N7Cy66jaTD3d86EPLpfSrNMe49ZyiQYOyQ9BwEVd 0sgfTALaSWBGWXMNSrnW2jVAHYqBrcKY69DtQ4i+BjfuqykN5ofyOZ61AL4bL3P9QpFy S8aUK4W5lAQnYVMl3N8wkrBp0v4SOVSEcg1TI= 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=NdmLPLRPe+98EGV7GB7Iy+EA9njdrHI72DqxGxv83yE=; b=E/iErkdPi4dnT1qGUL9pJ9prJD6GYUOJzPBjH1s8kcErMdU+GVOOD3jVD9DXJWMCeW 5Gwk/635VHiAhLVxhMBIkjUT7hxRCxRQAIqTgqpC5wre93Fy3UP2Xo6QIg2ZdaLV93QE zb60Y6uLLxvCjBFBPHaYrpktwgvWpOJitJQct7HXMyj2LNObtNDGPKJ9AK/pFREqq0O0 fkpYxFL57Pt4nqsfiKGPcv6n8FLxsR3CDHn+rjsFPWYZPdCTUF5jyl/CE5B7VLnAWXwh X0lvi12KoBLKVMQ0QrGCUYx67+yGOIhLg7ClF4C2TrcqsYpKltCp1Y5UrUN3n426RFFu GgFg== X-Gm-Message-State: APjAAAUQTKT44muKjnpKp3GpvL7iBc+ZmadaBH0rM9bKHmM7OobcTaYB Rd+Wn4KWLt5zVhvjO6xIQHhvJA== X-Google-Smtp-Source: APXvYqzyKo7ksjrUJ/dmhkuOZ2k1cM+3mVb+fkQ5FUVMaqIKYHuYRTb30A/eGiAFMmiatmBMwBrGPA== X-Received: by 2002:a17:90a:db43:: with SMTP id u3mr5964627pjx.54.1571339270809; Thu, 17 Oct 2019 12:07:50 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.31]) by smtp.gmail.com with ESMTPSA id y28sm4422736pfq.48.2019.10.17.12.07.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Oct 2019 12:07:50 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Subject: [PATCH v3 1/5] Makefile: Add rockchip image type Date: Fri, 18 Oct 2019 00:37:06 +0530 Message-Id: <20191017190710.29985-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191017190710.29985-1-jagan@amarulasolutions.com> References: <20191017190710.29985-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191017_120751_723547_56AECDED X-CRM114-Status: UNSURE ( 7.87 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.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:543 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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@lists.denx.de, "Matwey V . Kornilov" , Jagan Teki , linux-rockchip@lists.infradead.org Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org Add rockchip image type support. right now the image type marked with rksd, So create image type variable with required image type like rksd or rkspi. Cc: Kever Yang Cc: Matwey V. Kornilov Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6fda3268e7..ec55e0f6a4 100644 --- a/Makefile +++ b/Makefile @@ -1334,7 +1334,14 @@ u-boot-with-spl.bin: $(SPL_IMAGE) $(SPL_PAYLOAD) FORCE $(call if_changed,pad_cat) ifeq ($(CONFIG_ARCH_ROCKCHIP),y) -MKIMAGEFLAGS_u-boot-tpl.img = -n $(CONFIG_SYS_SOC) -T rksd + +ifeq ($(CONFIG_SPI_FLASH_SUPPORT),y) +ROCKCHIP_IMG_TYPE := rkspi +else +ROCKCHIP_IMG_TYPE := rksd +endif + +MKIMAGEFLAGS_u-boot-tpl.img = -n $(CONFIG_SYS_SOC) -T $(ROCKCHIP_IMG_TYPE) tpl/u-boot-tpl.img: tpl/u-boot-tpl.bin FORCE $(call if_changed,mkimage) idbloader.img: tpl/u-boot-tpl.img spl/u-boot-spl.bin FORCE From patchwork Thu Oct 17 19:07:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 11196907 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 C9EB3912 for ; Thu, 17 Oct 2019 19:08:00 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 A8E0421835 for ; Thu, 17 Oct 2019 19:08:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="cgNORMXS"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="YX+hkK68" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A8E0421835 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=bombadil.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=2ia2/SNrYgU0F5L9IF85GJyTW3OJdghQIzWhBtNfIFo=; b=cgNORMXS0u0zWS 3LF6rWHx+6pV87BhR6i5KHszjFZ7uHDnSwTA26Jjd5NQQlrqrkcVXW56nnBsWnkikMLjxLFfshKRZ FGruuS+1kEJ+e2Q7Fa3QGrCwaUSMbqd29Ia10ueIEVFDiC27x8+laKIWLZgeFRTs7d39u2meamJze 7EJlchTQSFidBf9p4GP1RfWLVScscx3jf4nofMeLV9ydEEjZLMrsSoDr1XZqhvcYeWL/sY+CU+y2c oT2Ikdf2rwz9qnn7RkcXCcJDOAJssprIl4gD4zxSdHdHdIRzAYtz2D7hFadHJu0EtltfDpxikuXzR BIzeVUoQyq8X2aaUcf1g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iLB7u-0001BV-7q; Thu, 17 Oct 2019 19:07:58 +0000 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iLB7r-00019d-IS for linux-rockchip@lists.infradead.org; Thu, 17 Oct 2019 19:07:56 +0000 Received: by mail-pg1-x542.google.com with SMTP id p30so1902321pgl.2 for ; Thu, 17 Oct 2019 12:07:55 -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=Dt2abGEwZm6aJCbceP+4oam9g7aHcxE+ciGv4qjQOp0=; b=YX+hkK68hzDGrZuA1dkTVjAeml1iCe6N1XxaW3KO03oZrKWxE61UK/t863LUC8A5g7 3OIfD0MvBYK3z14Enfu6S0G3VVCrHfd5kxjk2RcDJiDwyM4vXPb4EPoITh3ugpVwj5w7 Ll5BJgB5U5dIdH2Zfs88Epevb7XSCWbMud034= 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=Dt2abGEwZm6aJCbceP+4oam9g7aHcxE+ciGv4qjQOp0=; b=lOn5kR3WKCcvifwpmv8IMNwVpCS5pp1lD4tzmkc5AKrG8Q8PXD/9M5YilWtiR2HSas Pp+qOiUs3wcfScurdKS6nVN/x0vkQmml0Ef89LCRSg3Yomh3nIgBEnd89McO1MQH8Suk B5xFlKY39VJA8oyDx7b/BW/xLA0cFp9tF+/q6wnGXY1zwLuLknk3zknVlNGELHlD6RCk /+vaGcFb99JRqAhNEhW0eCg/QFAOfRZroNeNXKixrbE5XhBr+dpFjXo125vSVlQwrxUx x8VvJJ/jyBMoA2ZCsZklyzSXRIyluMgK9SVFipesXiHDRRteDd8r4QY4KvZSsQUWebmT 0kKA== X-Gm-Message-State: APjAAAWw6V6AQ0mwx1kDtsec5U6Q4Imc9YmFYvKF0Ad2NJyMFDY0tUfm Usy8pSrFS+y6jVIM+El++PsUJ3dmdyo= X-Google-Smtp-Source: APXvYqxPsHM+TsSDXw+zcrEHG5a1ddym2mNnHUpytB9L8m7rIy1GRJJwnuhRgU3bHB0JacNAKdqzYA== X-Received: by 2002:a63:cb4f:: with SMTP id m15mr5963057pgi.325.1571339274506; Thu, 17 Oct 2019 12:07:54 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.31]) by smtp.gmail.com with ESMTPSA id y28sm4422736pfq.48.2019.10.17.12.07.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Oct 2019 12:07:53 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Subject: [PATCH v3 2/5] Makefile: Rename idbloader.img with u-boot-spl-rockchip.bin Date: Fri, 18 Oct 2019 00:37:07 +0530 Message-Id: <20191017190710.29985-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191017190710.29985-1-jagan@amarulasolutions.com> References: <20191017190710.29985-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191017_120755_609230_DEBFE207 X-CRM114-Status: UNSURE ( 9.17 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.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_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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@lists.denx.de, "Matwey V . Kornilov" , Jagan Teki , linux-rockchip@lists.infradead.org Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org idbloader.img name is specific to rockchip, where it usually created using rockchip tools. Since the image is created as per U-Boot generic builds like SPL, better to follow the generic U-Boot naming notation like other SoC's following. Enable idbloader.img with u-boot-spl-rockchip.bin and create the same in spl directory since it is SPL file and Makefile.spl will clean it by default. Cc: Kever Yang Cc: Matwey V. Kornilov Signed-off-by: Jagan Teki --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ec55e0f6a4..918b5d53e0 100644 --- a/Makefile +++ b/Makefile @@ -887,7 +887,7 @@ ALL-y += u-boot-with-dtb.bin endif ifeq ($(CONFIG_ARCH_ROCKCHIP)$(CONFIG_SPL)$(CONFIG_TPL),yyy) -ALL-y += idbloader.img +ALL-y += spl/u-boot-spl-rockchip.bin endif LDFLAGS_u-boot += $(LDFLAGS_FINAL) @@ -1344,7 +1344,7 @@ endif MKIMAGEFLAGS_u-boot-tpl.img = -n $(CONFIG_SYS_SOC) -T $(ROCKCHIP_IMG_TYPE) tpl/u-boot-tpl.img: tpl/u-boot-tpl.bin FORCE $(call if_changed,mkimage) -idbloader.img: tpl/u-boot-tpl.img spl/u-boot-spl.bin FORCE +spl/u-boot-spl-rockchip.bin: tpl/u-boot-tpl.img spl/u-boot-spl.bin FORCE $(call if_changed,cat) endif From patchwork Thu Oct 17 19:07:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 11196909 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 9E419912 for ; Thu, 17 Oct 2019 19:08:04 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 7CAB721835 for ; Thu, 17 Oct 2019 19:08:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Yi6EU6F/"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="dL9Ypva3" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7CAB721835 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=bombadil.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=KaFgBSvQNuONe8/YfWRXnNQHyiVF1eIcYwL6haINeFc=; b=Yi6EU6F/XAZgLq 49KHV041ZvFqa9hVMa9fW76MilrOdaSAKZXAZVS5wwsMvWwvu+2t7opgs6gPOQ03PYMPPbG2VxCG5 CqdWPkFbusaPjrdJmi1kDiOL+W4azA12z0pTsG4RpHjQ8yJZNzW60cSKBekbvzb+M+ToI5ERgc5CR Tv12oniHbHMxE1VYGk+rRwkQ2CvQZJb7FFvIz9cULC4EaTX473wj3FSBXeEgYW8t8rVxtfM5gKALM jyBisv1v3xUQclnFXajWZ9BQ98PmK10LM41t1hS2Cm9csMD9ifMpRKfvAQlnDVZqhCoPCI5PWHfTk 7o1gfRidPsUzx0dsvXCA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iLB7x-0001E8-SV; Thu, 17 Oct 2019 19:08:01 +0000 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iLB7v-0001CE-BO for linux-rockchip@lists.infradead.org; Thu, 17 Oct 2019 19:08:00 +0000 Received: by mail-pf1-x444.google.com with SMTP id v4so2238441pff.6 for ; Thu, 17 Oct 2019 12:07:58 -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=EceJrxHKDTq4iJkELxJviUFELSWGnMnLGPrn+81Zk0Q=; b=dL9Ypva30+uHwEtIw1u6hRMzHSKgSyxw5BIL6BRf2+n2bytK7NknYYzBg4OWqvyoRS jw++wqS/NY51pXsCAs8fjBNBjsB0FzRe7MGkbkBXgNJmlK2dcNJg/cDEPkzAdZawCz3a 3IuesneYyKgqE5XB6LzcMdOVHEQwchtvZGIGo= 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=EceJrxHKDTq4iJkELxJviUFELSWGnMnLGPrn+81Zk0Q=; b=XegB/o/q0+Tm8uEM14zpwVwG/KDuXpRZtS/+MM6lbPDw2FzKKC/EshYTb1l1x3yKxu cg1b+KNmi2XCMfLhaFfg1AoxdQAh2lV+dVeSjB4HVI0wrQnN0s2Xa+siTjrAc0Xntv0Z 4B1tO1h/aVX7JeS01hHCIej0nxl+auzVIAKQ0/qg824Kev7zBvV2jqck9azVyQrL0o8H 5i2wAKrZA0WItvtzjIYzs1pTF+uQbEl3UuaWBNALgrQqIh1iz5F6ebs8ZN6F7/WVhGZj gpS7QHCVtrv3NZZZ3bqK/J1sg6zBhMu6voojBFzPDnVzgx7nejjL3rGa/8xAHoKWGJXq O9Xw== X-Gm-Message-State: APjAAAUurlGRvUkvz/IrAFz2QjM+Eit4hE0R245wQ4NsU0MDqua5JGqb Fdyse9C5Xeg6aKN6t5we09Kktg== X-Google-Smtp-Source: APXvYqxRPAyR5RfuCeh5P8IhMttdYJVV71E/PyaslDQ6H61O/jBl51v0UlFBk8k6HwKDEGGjWx6toQ== X-Received: by 2002:a63:e211:: with SMTP id q17mr5642448pgh.316.1571339278081; Thu, 17 Oct 2019 12:07:58 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.31]) by smtp.gmail.com with ESMTPSA id y28sm4422736pfq.48.2019.10.17.12.07.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Oct 2019 12:07:57 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Subject: [PATCH v3 3/5] arm: dts: rk3368: Add rk3368-u-boot.dtsi Date: Fri, 18 Oct 2019 00:37:08 +0530 Message-Id: <20191017190710.29985-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191017190710.29985-1-jagan@amarulasolutions.com> References: <20191017190710.29985-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191017_120759_405070_0FBEED1B X-CRM114-Status: GOOD ( 11.20 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.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:444 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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@lists.denx.de, Jagan Teki , linux-rockchip@lists.infradead.org Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org Add U-Boot specific dtsi file for rk3368 SoC. This would help to add U-Boot specific dts nodes, properties which are common across rk3368. Right now, the file is empty, will add required changes in future patches. Signed-off-by: Jagan Teki --- arch/arm/dts/rk3368-geekbox-u-boot.dtsi | 2 ++ arch/arm/dts/rk3368-lion-u-boot.dtsi | 2 ++ arch/arm/dts/rk3368-px5-evb-u-boot.dtsi | 3 +++ arch/arm/dts/rk3368-sheep-u-boot.dtsi | 2 ++ arch/arm/dts/rk3368-u-boot.dtsi | 4 ++++ 5 files changed, 13 insertions(+) create mode 100644 arch/arm/dts/rk3368-u-boot.dtsi diff --git a/arch/arm/dts/rk3368-geekbox-u-boot.dtsi b/arch/arm/dts/rk3368-geekbox-u-boot.dtsi index 30ea9e433a..0b724fa45f 100644 --- a/arch/arm/dts/rk3368-geekbox-u-boot.dtsi +++ b/arch/arm/dts/rk3368-geekbox-u-boot.dtsi @@ -3,6 +3,8 @@ * (C) Copyright 2017 Theobroma Systems Design und Consulting GmbH */ +#include "rk3368-u-boot.dtsi" + &pinctrl { u-boot,dm-pre-reloc; }; diff --git a/arch/arm/dts/rk3368-lion-u-boot.dtsi b/arch/arm/dts/rk3368-lion-u-boot.dtsi index edc93e438f..5050d3dee8 100644 --- a/arch/arm/dts/rk3368-lion-u-boot.dtsi +++ b/arch/arm/dts/rk3368-lion-u-boot.dtsi @@ -3,6 +3,8 @@ * (C) Copyright 2017 Theobroma Systems Design und Consulting GmbH */ +#include "rk3368-u-boot.dtsi" + / { config { u-boot,spl-payload-offset = <0x40000>; /* @ 256KB */ diff --git a/arch/arm/dts/rk3368-px5-evb-u-boot.dtsi b/arch/arm/dts/rk3368-px5-evb-u-boot.dtsi index 002767a033..5fee02a65b 100644 --- a/arch/arm/dts/rk3368-px5-evb-u-boot.dtsi +++ b/arch/arm/dts/rk3368-px5-evb-u-boot.dtsi @@ -2,6 +2,9 @@ /* * (C) Copyright 2017 Theobroma Systems Design und Consulting GmbH */ + +#include "rk3368-u-boot.dtsi" + / { chosen { u-boot,spl-boot-order = &emmc; diff --git a/arch/arm/dts/rk3368-sheep-u-boot.dtsi b/arch/arm/dts/rk3368-sheep-u-boot.dtsi index 30ea9e433a..0b724fa45f 100644 --- a/arch/arm/dts/rk3368-sheep-u-boot.dtsi +++ b/arch/arm/dts/rk3368-sheep-u-boot.dtsi @@ -3,6 +3,8 @@ * (C) Copyright 2017 Theobroma Systems Design und Consulting GmbH */ +#include "rk3368-u-boot.dtsi" + &pinctrl { u-boot,dm-pre-reloc; }; diff --git a/arch/arm/dts/rk3368-u-boot.dtsi b/arch/arm/dts/rk3368-u-boot.dtsi new file mode 100644 index 0000000000..1e7d079315 --- /dev/null +++ b/arch/arm/dts/rk3368-u-boot.dtsi @@ -0,0 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2019 Jagan Teki + */ From patchwork Thu Oct 17 19:07:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 11196911 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 4544E912 for ; Thu, 17 Oct 2019 19:08:07 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 23B6321835 for ; Thu, 17 Oct 2019 19:08:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="TYYEpSey"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="Kik4shD7" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 23B6321835 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=bombadil.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=krFUBVHTRcWTYykVR7NfZ8a1VRvsGY7S2hCzLbPaYKU=; b=TYYEpSeyNcYTBR +lPX7P63ZRBUwOJj+yLZz2QamfIcFtMLYeS16MgucYp8Obj9gDRXnnA3lzE/tpvKeMzRwtH7gcv/F GM2SrzfX4h+j3LcZg6THQSu5OrR0BGgwyAQsMMiIoiJ8aqVxja4i539hqIyNoASWVZMaZS79ltUw2 vJkDQMO5h8RsiZmT4Cwvfs17zcw08f7wORRrTiV2w4U8BMHHGNMU5hdBJXlh/kii/jzW/zpMXNwvP lZ+yLLuUagtkCqvLWrj0nr3wRMz6ZXbeFgwWfCnfimNLKkZhqCQnxB0/DQLPwr01THW+ReJdsWuBx Xeomzrlv6KlAYM5ZTrCw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iLB80-0001GI-Ku; Thu, 17 Oct 2019 19:08:04 +0000 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iLB7y-0001EV-9Z for linux-rockchip@lists.infradead.org; Thu, 17 Oct 2019 19:08:03 +0000 Received: by mail-pg1-x543.google.com with SMTP id i32so1876733pgl.10 for ; Thu, 17 Oct 2019 12:08: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:in-reply-to:references :mime-version:content-transfer-encoding; bh=5mlVgZ2xsyFCkSJmW+KRkFZqD8wWmh4kqGu0mgsTBRg=; b=Kik4shD7A9hKSbapxndgvibTbvXSoQXN4LFtASJvUYqoK4SYtqobODB3T6a7D+JjWN hSDi1goG40SD6HuJSSgGbPq903pB0uPje3s8DPKN+k3T4Ms0zBKy+sJYqic4wyJ5T8Fj AMr4QlPD7UkQM1eMSaGaJrba8XaOAlHS3okPw= 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=5mlVgZ2xsyFCkSJmW+KRkFZqD8wWmh4kqGu0mgsTBRg=; b=CnFM8E5TIcFF8ZpWjA5H/atFh8ZzaPhuqRSKS1z3LKsDOf5+Squw2brhXIaaaAy7aw i28FRQfj/Y9+0YghbNFAdl760HZsDuAuytpBOslueuu8PIHCpkkZ30NjLHoFr+6yNeN+ 45FUZEOPP9X8vg+0CzQzYIb58dfUfCiYYOfdn1eV/RHP5Y71x0AqXhzL8yuF7o+TxyNQ fWRk4LqAJTL2Fib3XhBTHSXxhLgpcqkjnFGB/yOXeJXQKbuvV9T8Gz7+oulg20wasXzV d5UzQFjzwq95Xpo0x/A6UQbLZxcAGtU76hvVgfy86kdzeIwDQ9PjVdi5DuvtcLgL0k8b Lk4g== X-Gm-Message-State: APjAAAWVV2oISEJYVa5qltc0NW5DwkFinCkZ5Y15EdIDyxAEEyeLhq+L 0ywry3ClB9k0W7EgMZqMcoozdg== X-Google-Smtp-Source: APXvYqwQJaRDrkHW8fkf85nnyJbrjb7N5X13gHFwVla9UKT5i6l9UynqB+RnAR4h9U3bbOPNGEH77A== X-Received: by 2002:aa7:9832:: with SMTP id q18mr1911213pfl.102.1571339281717; Thu, 17 Oct 2019 12:08:01 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.31]) by smtp.gmail.com with ESMTPSA id y28sm4422736pfq.48.2019.10.17.12.07.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Oct 2019 12:08:01 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Subject: [PATCH v3 4/5] rockchip: Add Binman support Date: Fri, 18 Oct 2019 00:37:09 +0530 Message-Id: <20191017190710.29985-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191017190710.29985-1-jagan@amarulasolutions.com> References: <20191017190710.29985-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191017_120802_381694_DD1844E3 X-CRM114-Status: GOOD ( 13.55 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.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:543 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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@lists.denx.de, "Matwey V . Kornilov" , Jagan Teki , linux-rockchip@lists.infradead.org Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org TPL-based rockchip platform like rk3288, rk3328, rk3368 and rk3399 has three stage boot loaders like TPL, SPL and U-Boot proper. For each stage we need to burn the image on to flash with respective offsets. This patch create a single image using binman, so that user can get rid of burning different stage boot images. The new image called 'u-boot-rockchip-with-tpl-spl.bin' which can burn into flash like: ₹ sudo dd if=u-boot-rockchip-with-tpl-spl.bin of=/dev/sda seek=64 This would easily extend if other rockchip family SoC's would make use of single image creation. Cc: Kever Yang Cc: Matwey V. Kornilov Signed-off-by: Jagan Teki --- Makefile | 10 ++++++++++ arch/arm/Kconfig | 1 + arch/arm/dts/rk3288-u-boot.dtsi | 2 ++ arch/arm/dts/rk3328-u-boot.dtsi | 2 ++ arch/arm/dts/rk3368-u-boot.dtsi | 2 ++ arch/arm/dts/rk3399-u-boot.dtsi | 2 ++ arch/arm/dts/rockchip-u-boot.dtsi | 21 +++++++++++++++++++++ include/configs/rockchip-common.h | 2 ++ 8 files changed, 42 insertions(+) create mode 100644 arch/arm/dts/rockchip-u-boot.dtsi diff --git a/Makefile b/Makefile index 918b5d53e0..049781e0ba 100644 --- a/Makefile +++ b/Makefile @@ -888,6 +888,7 @@ endif ifeq ($(CONFIG_ARCH_ROCKCHIP)$(CONFIG_SPL)$(CONFIG_TPL),yyy) ALL-y += spl/u-boot-spl-rockchip.bin +ALL-y += u-boot-rockchip-with-tpl-spl.bin endif LDFLAGS_u-boot += $(LDFLAGS_FINAL) @@ -1346,6 +1347,15 @@ tpl/u-boot-tpl.img: tpl/u-boot-tpl.bin FORCE $(call if_changed,mkimage) spl/u-boot-spl-rockchip.bin: tpl/u-boot-tpl.img spl/u-boot-spl.bin FORCE $(call if_changed,cat) + +ifdef CONFIG_SPL_LOAD_FIT +ROCKCHIP_UBOOT_IMG := u-boot.itb +else +ROCKCHIP_UBOOT_IMG := u-boot.img +endif + +u-boot-rockchip-with-tpl-spl.bin: spl/u-boot-spl-rockchip.bin $(ROCKCHIP_UBOOT_IMG) FORCE + $(call if_changed,binman) endif ifeq ($(CONFIG_ARCH_LPC32XX)$(CONFIG_SPL),yy) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 1df2aba3c2..87fa1f43f4 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1594,6 +1594,7 @@ config ARCH_STM32MP config ARCH_ROCKCHIP bool "Support Rockchip SoCs" select BLK + select BINMAN if TPL && SPL select DM select DM_GPIO select DM_I2C diff --git a/arch/arm/dts/rk3288-u-boot.dtsi b/arch/arm/dts/rk3288-u-boot.dtsi index 3f00a3b6d3..6d31735362 100644 --- a/arch/arm/dts/rk3288-u-boot.dtsi +++ b/arch/arm/dts/rk3288-u-boot.dtsi @@ -3,6 +3,8 @@ * Copyright (C) 2019 Rockchip Electronics Co., Ltd */ +#include "rockchip-u-boot.dtsi" + / { chosen { u-boot,spl-boot-order = \ diff --git a/arch/arm/dts/rk3328-u-boot.dtsi b/arch/arm/dts/rk3328-u-boot.dtsi index ffbd657e31..0c51a8dbfb 100644 --- a/arch/arm/dts/rk3328-u-boot.dtsi +++ b/arch/arm/dts/rk3328-u-boot.dtsi @@ -3,6 +3,8 @@ * (C) Copyright 2019 Rockchip Electronics Co., Ltd */ +#include "rockchip-u-boot.dtsi" + / { aliases { mmc0 = &emmc; diff --git a/arch/arm/dts/rk3368-u-boot.dtsi b/arch/arm/dts/rk3368-u-boot.dtsi index 1e7d079315..41ac054b81 100644 --- a/arch/arm/dts/rk3368-u-boot.dtsi +++ b/arch/arm/dts/rk3368-u-boot.dtsi @@ -2,3 +2,5 @@ /* * Copyright (C) 2019 Jagan Teki */ + +#include "rockchip-u-boot.dtsi" diff --git a/arch/arm/dts/rk3399-u-boot.dtsi b/arch/arm/dts/rk3399-u-boot.dtsi index 2738a3889e..fe8a73d653 100644 --- a/arch/arm/dts/rk3399-u-boot.dtsi +++ b/arch/arm/dts/rk3399-u-boot.dtsi @@ -3,6 +3,8 @@ * Copyright (C) 2019 Jagan Teki */ +#include "rockchip-u-boot.dtsi" + &pmu { u-boot,dm-pre-reloc; }; diff --git a/arch/arm/dts/rockchip-u-boot.dtsi b/arch/arm/dts/rockchip-u-boot.dtsi new file mode 100644 index 0000000000..c496107119 --- /dev/null +++ b/arch/arm/dts/rockchip-u-boot.dtsi @@ -0,0 +1,21 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2019 Jagan Teki + */ + +#include + +/ { + binman { + filename = "u-boot-rockchip-with-tpl-spl.bin"; + pad-byte = <0xff>; + + blob { + filename = "spl/u-boot-spl-rockchip.bin"; + }; + + u-boot-img { + offset = ; + }; + }; +}; diff --git a/include/configs/rockchip-common.h b/include/configs/rockchip-common.h index 68e1105a4b..d7f5ca9fa4 100644 --- a/include/configs/rockchip-common.h +++ b/include/configs/rockchip-common.h @@ -9,6 +9,8 @@ #define CONFIG_SYS_NS16550_MEM32 +#define CONFIG_SPL_PAD_TO 8355840 + #ifndef CONFIG_SPL_BUILD /* First try to boot from SD (index 0), then eMMC (index 1) */ From patchwork Thu Oct 17 19:07:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 11196913 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 58AD414ED for ; Thu, 17 Oct 2019 19:08:11 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 3622721835 for ; Thu, 17 Oct 2019 19:08:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Wd5BPTk8"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="QLaelHh2" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3622721835 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=bombadil.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=h7toJaFQS5NsTdN78qcfQ6Sok5nnSEz92nc0yaeBjeE=; b=Wd5BPTk8fdxZkM OOUudONaCpZzVeFkaFViXnW8QYhDM3t+7c/RdxC9NkYg176oZmxZCgg+RYhMCF20BTduj5Un074/1 998cf+jRGb97dejHTPsuXh8+YogbKXRzqZsf6rovosy/5q25ChT0Q+r3ceKunAO1Bl78jNuXjtgL1 PbVGjNCMP+hGVwf/p02UOug8bTQL0VrEbS2cZ5Qhn8XJ+cmpo90haha3hMZ85y1LDDJs4Sm4p+tPf muCg0yM4z9N3bD5tZtN/Fr/Bpq7gfY0fhXPtYSwlPJq5tz5jjuByLmWV5OKkkoNUc4F9OE/6/kV6a PZMW8ntcyQAIEXOYmcMg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iLB84-0001Jf-PX; Thu, 17 Oct 2019 19:08:08 +0000 Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iLB82-0001HI-0l for linux-rockchip@lists.infradead.org; Thu, 17 Oct 2019 19:08:07 +0000 Received: by mail-pg1-x541.google.com with SMTP id e10so1872513pgd.11 for ; Thu, 17 Oct 2019 12:08:05 -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=/wGnggWrvG382A2BPL2imHgbeucx8RYhjd+hggml6Rw=; b=QLaelHh2K8UEAb67NhkrSBb5PwFkCGwGQ5q9EqAs9841oXpcDswyj2j+hY0HVx+U0B 2PpT06AYUfe36VtZaxH5ErbGBXABOxgaCeKm7JwBEw1GEOD2pQEORY6CmJtcBJQh7pGE M7Hx/TdZ1MAoH5zisKYqmm8FV63yB343dJy7I= 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=/wGnggWrvG382A2BPL2imHgbeucx8RYhjd+hggml6Rw=; b=fSd3k5+5MRUfEnN7imFRJNqGRVvwnI46G2ho9kNfQfQf94P5nfbFPg6r0wVGI7RYSE CllxGKy5/dJaRdlrZ7WKsFaN1Kz9RuSbK+a9q8vD/WcFjeYXtp4GRP6KAjcr5isb1Bb5 pzUUIf1MclQf3ARweGCV5D/4HR8n+OnNlQ1sXX2YhoJLwz4muhzWi33o17TRm/1YrFlm se48r+A1kG5lWrnqzdg41sn+0itHKWViYJfspagTuOwbhRrgBwpxOM5qFlpwcgHWn3tT AYYY4SW/XgFFeEbRkpfX7KLm24ahxZJZ6ctTy8WFEVLStcF7rq1iR1JQZmYCs5SH5py0 0HVg== X-Gm-Message-State: APjAAAVNrTGC1itbZpiljUV/unn9gQ/zIQkxBIc7PiPAXclFlyuZrd5a hrtDxCFXiRYHfTe0yNtDlRIfXA== X-Google-Smtp-Source: APXvYqx3uP1QpWMyokfQ2yO0U2LKFsB2UWszrtSK35VMvB81i/VESiVp7t9dA+R4m1DAFKCnc6WOYQ== X-Received: by 2002:aa7:9295:: with SMTP id j21mr1941741pfa.223.1571339284985; Thu, 17 Oct 2019 12:08:04 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.31]) by smtp.gmail.com with ESMTPSA id y28sm4422736pfq.48.2019.10.17.12.08.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Oct 2019 12:08:04 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Subject: [PATCH v3 5/5] doc: boards: Add rockchip documentation Date: Fri, 18 Oct 2019 00:37:10 +0530 Message-Id: <20191017190710.29985-6-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191017190710.29985-1-jagan@amarulasolutions.com> References: <20191017190710.29985-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191017_120806_061465_20117CB3 X-CRM114-Status: GOOD ( 11.35 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.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_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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@lists.denx.de, "Matwey V . Kornilov" , Jagan Teki , linux-rockchip@lists.infradead.org Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org Rockchip has documentation file, doc/README.rockchip but which is not so readable to add or understand the existing contents. Even the format that support is legacy readme in U-Boot. Add rockchip specific documentation file using new rst format, which describes the information about Rockchip supported boards and it's usage steps. Added minimal information about rk3288, rk3328, rk3368 and rk3399 boards and usage. This would indeed updated further based on the requirements and updates. Cc: Kever Yang Cc: Matwey V. Kornilov Signed-off-by: Jagan Teki --- doc/board/rockchip/index.rst | 10 +++ doc/board/rockchip/rockchip.rst | 125 ++++++++++++++++++++++++++++++++ 2 files changed, 135 insertions(+) create mode 100644 doc/board/rockchip/index.rst create mode 100644 doc/board/rockchip/rockchip.rst diff --git a/doc/board/rockchip/index.rst b/doc/board/rockchip/index.rst new file mode 100644 index 0000000000..0c377e9bbb --- /dev/null +++ b/doc/board/rockchip/index.rst @@ -0,0 +1,10 @@ +.. SPDX-License-Identifier: GPL-2.0+ +.. Copyright (C) 2019 Jagan Teki + +Rockchip +======== + +.. toctree:: + :maxdepth: 2 + + rockchip diff --git a/doc/board/rockchip/rockchip.rst b/doc/board/rockchip/rockchip.rst new file mode 100644 index 0000000000..782a0f1c7a --- /dev/null +++ b/doc/board/rockchip/rockchip.rst @@ -0,0 +1,125 @@ +.. SPDX-License-Identifier: GPL-2.0+ +.. Copyright (C) 2019 Jagan Teki + +ROCKCHIP +======== + +About this +---------- + +This document describes the information about Rockchip supported boards +and it's usage steps. + +Rockchip boards +--------------- + +Rockchip is SoC solutions provider for tablets & PCs, streaming media +TV boxes, AI audio & vision, IoT hardware. + +A wide range of Rockchip SoCs with associated boardsare supported in +mainline U-Boot. + +List of mainline supported rockchip boards: + +* rk3288 + - Evb-RK3288 + - Firefly-RK3288 + - mqmaker MiQi + - Phytec RK3288 PCM-947 + - PopMetal-RK3288 + - Radxa Rock 2 Square + - Tinker-RK3288 + - Google Jerry + - Google Mickey + - Google Minnie + - Google Speedy + - Amarula Vyasa-RK3288 +* rk3328 + - Rockchip RK3328 EVB + - Pine64 Rock64 +* rk3368 + - GeekBox + - PX5 EVB + - Rockchip sheep board + - Theobroma Systems RK3368-uQ7 SoM +* rk3399 + - 96boards RK3399 Ficus + - 96boards Rock960 + - Firefly-RK3399 Board + - Firefly ROC-RK3399-PC Board + - FriendlyElec NanoPC-T4 + - FriendlyElec NanoPi M4 + - FriendlyARM NanoPi NEO4 + - Google Bob + - Khadas Edge + - Khadas Edge-Captain + - Khadas Edge-V + - Orange Pi RK3399 Board + - Pine64 RockPro64 + - Radxa ROCK Pi 4 + - Rockchip RK3399 Evaluation Board + - Theobroma Systems RK3399-Q7 SoM + +Building +-------- + +TF-A +^^^^ + +TF-A would require to build for ARM64 Rockchip SoCs platforms. + +To build TF-A:: + + git clone https://github.com/ARM-software/arm-trusted-firmware.git + cd arm-trusted-firmware + make realclean + make CROSS_COMPILE=aarch64-linux-gnu- PLAT=rk3399 + +Specify the PLAT= with desired rockchip platform to build TF-A for. + +U-Boot +^^^^^^ + +To build rk3328 boards:: + + export BL31=/path/to/arm-trusted-firmware/to/bl31.elf + make evb-rk3328_defconfig + make + +To build rk3288 boards:: + + make evb-rk3288_defconfig + make + +To build rk3368 boards:: + + export BL31=/path/to/arm-trusted-firmware/to/bl31.elf + make evb-px5_defconfig + make + +To build rk3399 boards:: + + export BL31=/path/to/arm-trusted-firmware/to/bl31.elf + make evb-rk3399_defconfig + make + +SD Card Flashing +---------------- + +To write an image that boots from an SD card (assumed to be /dev/sda): + +TPL + SPL:: + + sudo dd if=u-boot-rockchip-with-tpl-spl.bin of=/dev/sda seek=64 + sync + +TODO +---- + +- Add SPL-alone SD Card flashing steps +- Add rockchip idbloader image building +- Describe steps for eMMC flashing +- Add missing SoC's with it boards list + +.. Jagan Teki +.. Thu Oct 17 22:36:14 IST 2019