From patchwork Sun May 24 17:32:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1224 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 38A0C3F06D for ; Sun, 24 May 2020 19:32:49 +0200 (CEST) Received: by mail-pf1-f198.google.com with SMTP id v62sf5398465pfv.9 for ; Sun, 24 May 2020 10:32:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1590341568; cv=pass; d=google.com; s=arc-20160816; b=RMYzPX/NZ8aQdK/TbSewsg/zLD9gipBGAldVHH+jFmEU1DaZTF/K5bVxOWb8q6E2QS ncNo9D5mOja+7+DryiM4hDYH8b6Jo0e6uKooQg+NzcPUURHBjzrCYJaDOrGSTH/P/wct gG1n4ue7ZH8T/GZrbf2aZd1hqb5aNswPBflA61qgMg7689pjers33cy7F9g1KcHcmcJ4 Wdt/UEWC83n41FIPWk2e/UyLsAK+SI1GWVYTJYKS3v3zyh38UuZptRyLWXwPIly00mR5 LVR9xXb7eMMSPm/6Nn7uVsxqelUdP5EXEwpMUbIhnzbrDzwrDSjNuH2nBS0ihi2RgavW nWrw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=lSwMfig63hRWY2znGRus8S00+JdtNRmWUcT2yFRpdB8=; b=uayZWPymQWIZehEBTiDmPIEWIFfU+92xZ4pkFeUdzbujIehEM6RcPBUHPtdTFqAGOZ f0ljLbMKkcTJYmWrrmnrdvhbtIVw6SOU59N2dXHHFsD1mfMWkNT/v3+0DGZVPULUiifB J2+8460kv6tSNEAWOQbqL+/Lu8/jwLAO/Atu1g8clHAg5oDg0kxacU+4PK4bOtrHysUv IvlJdZ7bUApFCxQ3n6bwp7Q6ar0K9FRcL4KKkqRH9lbXgOWAtTqAsiu9l4LcVy89xQHJ TAmr6x1wNkL+qUDz9fQRqiJAXIELdCenPSDE7N9MO2wK8jR3EZFnqNN5BmNTxy2neu1o 5S9A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=oZUW2Mmf; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=lSwMfig63hRWY2znGRus8S00+JdtNRmWUcT2yFRpdB8=; b=JoJcV/rx8pT1gyK/FNsDQKItx+wmE1fzEPoerlXapT1zhJODrBOH/BvA5gAfXHcpM2 hYZn2guLiOMI/3C8PpD+5MHPvhx/RzvLEqkmSALnaPt9ylxJD6MudgwSlinI5TL5Grd2 VVdj8fELS57aWsvr5VJzvq4dQqbSNfmnxVCcE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-unsubscribe; bh=lSwMfig63hRWY2znGRus8S00+JdtNRmWUcT2yFRpdB8=; b=aW9VwXl45falhEWVFH0tF0d+j9X6BzYUkn0mY1BOCS+LPamDgf7G/pM8iaby0gnLiU qbAj1NUDSEt++TbM2KqmM/qWde8gENUYbKSf7XqCpWQ4k7w0C9a+OCMG04vMqWEhkzRr qvaGk+u+VeM5uofDvathAhyo2/idVuGLIqh/f5XbDn5EMzg7FQLzbp5gzkBgcc5YkKO4 hbY8A6pyp9eQGDFYUcIF0kXS0wLwOyMN5Zrbxx/ssBnlQCfbGtJC5baJFI2+OCX7gDxe /8MXRm2TlkHj3quoSECLnhyDxRQVTewM/etqXh0c2875lu6BExpMsRQncqhmBA2I6cE6 py8A== X-Gm-Message-State: AOAM531mpq/OYyOdHAcCDRwNYcnmkdZHd4tXvwKRvmk5OTNOqfbR9c1S 2eC8jLowx9F7+3tXAToOeIbohpkZ X-Google-Smtp-Source: ABdhPJwGQNz53KRLM61K/UWLOul6SdT/3ahKyDe4lNLDuY5nAy1SlP6XuUiv+Q3+28XdARwyeSMiCA== X-Received: by 2002:a17:90a:e54d:: with SMTP id ei13mr17209069pjb.126.1590341567649; Sun, 24 May 2020 10:32:47 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:aa7:9638:: with SMTP id r24ls2231470pfg.3.gmail; Sun, 24 May 2020 10:32:47 -0700 (PDT) X-Received: by 2002:a63:f856:: with SMTP id v22mr23660478pgj.64.1590341567170; Sun, 24 May 2020 10:32:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590341567; cv=none; d=google.com; s=arc-20160816; b=is7UVdPQd5JxxlweCPPc/YObs7CrVVgiHWyNQRVInbITTmzuq1gMdOYeu2KF2D/7/6 M5sVh7XvZ/jvgCOzUHp1mx7/OZta81ztkDB0NSDiA20zi+l3kx0N9Oi0cCeg/mGaJeqO PoMV6KBDRwamXvMgwRB/tHg+x5nJ+mCxkhZIBXDMNeuLQCreUYrvHnpZJg8DvWgRcD1g 5CdmBizEKmm05X9CBgqU5XxyKFVkYdOldb541cZ9cM+JUhwu56sOtwqkpLQ9x3BMcHJ5 NOdpX/NW9Z9Gvmu3O5stLWpZp7P72+TA9NPcXZWI3nBvozbuGN2pD+ajwkMbgpE/wa5f tdaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=JJFMF+Ax+5gVV/Q38dMlVO4gPHQpjzSEEKwWZgAY++Q=; b=DmRXNwePVUa6jFECVF8PlvW4FoZYXyTOqq3gVUepFwTn5qEZd4PDjOG7f74W80/5IZ hYjCKIW6FZccDoOgBn8vgj1HX4s+j/mHsAEi2R6W9NH40XsVVzoInbeEgCobQx0tfaOx +CoRLgRxFsVAWMCOelXUZvlXF69LegP6KEfZFYfg5G1+9Ae5PlfwWV3q/TYpeXU2ekaC +11f4Uu4th5PWngny03ZL1AXOY0Td/3yFhJzuzsfYa4IXPONMrtn0qBQyBgwyxF38blr xOzXC5kRhFkfN3Coq0FEgg8tAAgFtj9Vorxpjs3wTRto8rRuoKAhxSD5ZPam/aRNWOhr B3fQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=oZUW2Mmf; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id t14sor20646557pjw.36.2020.05.24.10.32.47 for (Google Transport Security); Sun, 24 May 2020 10:32:47 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:90a:1141:: with SMTP id d1mr16820302pje.31.1590341566632; Sun, 24 May 2020 10:32:46 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:9b1:856c:6c2b:bde7]) by smtp.gmail.com with ESMTPSA id y85sm10617271pfc.24.2020.05.24.10.32.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 May 2020 10:32:45 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: sunil@amarulasolutions.com, u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH 1/3] arm64: dts: rk3399-nanopi4: Add u-boot,spl-boot-order Date: Sun, 24 May 2020 23:02:11 +0530 Message-Id: <20200524173213.201123-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=oZUW2Mmf; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add u-boot,spl-boot-order as sdhci and sdmmc for booting from eMMC and SD card. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- arch/arm/dts/rk3399-nanopi4-u-boot.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/dts/rk3399-nanopi4-u-boot.dtsi b/arch/arm/dts/rk3399-nanopi4-u-boot.dtsi index a126bbaf08..a9d10592d5 100644 --- a/arch/arm/dts/rk3399-nanopi4-u-boot.dtsi +++ b/arch/arm/dts/rk3399-nanopi4-u-boot.dtsi @@ -5,6 +5,12 @@ #include "rk3399-u-boot.dtsi" +/{ + chosen { + u-boot,spl-boot-order = "same-as-spl", &sdhci, &sdmmc; + }; +}; + &sdmmc { pinctrl-0 = <&sdmmc_bus4 &sdmmc_clk &sdmmc_cmd &sdmmc_cd>; }; From patchwork Sun May 24 17:32:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1225 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-oi1-f199.google.com (mail-oi1-f199.google.com [209.85.167.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 780663F06D for ; Sun, 24 May 2020 19:33:11 +0200 (CEST) Received: by mail-oi1-f199.google.com with SMTP id 203sf8262834oie.19 for ; Sun, 24 May 2020 10:33:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1590341589; cv=pass; d=google.com; s=arc-20160816; b=u9pXv7R+WgRZnTaInT+6xoA5vwQb/f5SbcBL3KYIAzjXA6DynMcgHo5TO4DCx1BqTo LPtQyo1cYEyV3tf1ycgocWxYGAdjW1pXUQjvpMedt0aTBWZMqVX+B7b2EB94t9BKULAG FE3rI9mkl2xUKrdyp8Jrdg3dhB8EvXBnwHxrgT0owvIVJ5XPnBTHtrPqUID7lKZBVt+F vh7qVn+6kmo4A/EHKrOfrK24mSBqlXPCvDlI3BneMRmhj8BLw0B4udBgoaajmzxQzZUc Otsu56rTDGMYk8ecBNJYkiCEUSSq/QQ3agT75L1sfvmI/P6H1ZKfMqVoD9ObFEDGVG6z A9nw== 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=4L8hT0WPrm5vFV+4EDm4CIaGxCpZpypgyYU870iWLA0=; b=IF8swwbAZgai97fRbti+sAQ7Py2WsPDym2m1bV1zyqzyZuCUw/ptIiqMADvli3dEjj MN0Vg/VAQ9gCKSzR3wGclWsbF67blMuWMZ7sG4G6M0+m7PrxrXDpNfuUXuw9pqgQXAn6 6Nw+Wa3KkZD8i6HAQ32WcWJkgXAF1fwZin0BE0C8f5+xuyhIEonojdMR2RkZfwkB9QWA AO2ULi7vW3tBBnTiuB/BfUV73zm5n5rpwiNX8uVJWj1D5mH2rC9FbfEFhS+c3EIScJEK H27QDznA+VbmUEHPRaqSZ1hoMYqJ7NtvVDd4/9Jz4lz5tao4IkLW2stjNyWABcx7DAIE ovLg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="TK/jvCjS"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=4L8hT0WPrm5vFV+4EDm4CIaGxCpZpypgyYU870iWLA0=; b=r0BRIw3iS4PGHt0yV2kUZjnJzFrvv9gP3fL80GYoxPReufexWzvVKMAICqZgVVgfiC SrPxOr+BqitOL6P4gD0Za/4kMhMTqzcmHqIs90cw3tVo/aQlVrG/fM715RE8lC9UDugr Fi2z/O3jHD94vwQd5bPvA5FlUaPh/y35lMcTk= 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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=4L8hT0WPrm5vFV+4EDm4CIaGxCpZpypgyYU870iWLA0=; b=nOGz5MeIq3UzwAHXQcCnO7knYLu9VAtkoccFzlmDd0dl4exhFqJyVjX2rT56KQ4grg hVy/RjWpOkggaMMJiIZqejaoVYyjQTbLEpTHibXPsFg7qYfqKV8FFjdtRk0srSNVOnLe Aypi/mkwBXcx2BH58sgjX75ifV/g4Ha93fGhZMLVo1NafLEqYChwiFavFYJHRUgroGeG Yavwb4QXsBdqFBaJUMQTcCzibpfZdbbqpHx4jPaXk+dfM5pn+Dh+TLUTxHzHxEZ+3vhm WGLxYmVy0r/e8Q0BG+4DEs6MBus2goyRxFjQsRmV6Jl/kzqs0X28CS2VMzyTdd/je2FV 7A/w== X-Gm-Message-State: AOAM53246wecwi55ysd8qfMSxj3pVt72SnHLiKUGIWDIhCySfElv6de5 nB89j3drQwgzIjW14wQzhe7yOjZE X-Google-Smtp-Source: ABdhPJzWkpTBhZIjE7Q6Tf/TtYJNJAqvZX69yp3Fs+VpsyBWOgzFWaCCRejSHHyAPm3Mgk3+DbzQvw== X-Received: by 2002:a9d:5888:: with SMTP id x8mr19386292otg.230.1590341589487; Sun, 24 May 2020 10:33:09 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6808:10e:: with SMTP id b14ls1142763oie.1.gmail; Sun, 24 May 2020 10:33:09 -0700 (PDT) X-Received: by 2002:aca:40d:: with SMTP id 13mr1390480oie.8.1590341589110; Sun, 24 May 2020 10:33:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590341589; cv=none; d=google.com; s=arc-20160816; b=VObXWornez5YpWuncpMiZ3ULt+ya5vClc7+9FZELcDSF83xlyYVz/aIQthGsWu1D0J XFeG/bJoBYkQdJaR8Sp3qitnXBdRdUNDeTBR8/wpKQztfbRUkR5M17LZFibL1FqQ96Dh KrKovZHBebT5+2wGke+FHUu1oJHXm5cb6wEmjNc+S+VwJJQjlRWCevNwu+xXDUHbtA/k ZctPATB5zK/wLWlz4h7JEw7MlIMzW/Lazu3JvBjvCmj2/i3aarYNcUOWi9pEdR+MDLMU HY1uUrQZAda8wPQJ2fENN6UwdZRp4ubLMat6IfgwB5ijol1DENOoL/HXFIQSYwDK7HOD jXzA== 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=ne/8/a9OXvwh91Zw6UxFhdu2CXcMc/kGaJGpUeeEHPo=; b=rcsAsTayARQ+jJJX28+8LV48K6++no2fOR5mI8TKEknR4cZdYz3UK/JFgkUsELvdad GuaXdKG1gv05eZ99goZpoC8QJnZRRovgmq1XfZWraeC62v7v9NWPUu/Y0hQdtt1Cp/2G Bt/VykJ3tcve5lBIXYwQgFCuNQqf7M5T57jdM5RttEzj1FoYK7r8xz1ifprEUYoOAcaF d26zyH84RXW0UuwvdQcYSO52H1y0PLTF/PB8tHe4tYD+MJ+QmEc1G4Sc/bCGj6WlbX/L 4zBMWvT6A4QgajozzLr+Uu46XjHcYv6GYgKoAjICcT+aSroK43sdY7XMhJZHsCj+Yqj8 sTIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="TK/jvCjS"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id 30sor9366378otc.98.2020.05.24.10.33.08 for (Google Transport Security); Sun, 24 May 2020 10:33:08 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:aa7:9466:: with SMTP id t6mr13857242pfq.299.1590341588529; Sun, 24 May 2020 10:33:08 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:9b1:856c:6c2b:bde7]) by smtp.gmail.com with ESMTPSA id y85sm10617271pfc.24.2020.05.24.10.32.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 May 2020 10:33:07 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: sunil@amarulasolutions.com, u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH 2/3] nanopc-t4: Enable USB Gadget Date: Sun, 24 May 2020 23:02:12 +0530 Message-Id: <20200524173213.201123-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200524173213.201123-1-jagan@amarulasolutions.com> References: <20200524173213.201123-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="TK/jvCjS"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Enable DWC3 core, gadget for nanopc-t4 board. This would help to use fastboot by default. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- configs/nanopc-t4-rk3399_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/nanopc-t4-rk3399_defconfig b/configs/nanopc-t4-rk3399_defconfig index 3bb5b498f2..40fb797c49 100644 --- a/configs/nanopc-t4-rk3399_defconfig +++ b/configs/nanopc-t4-rk3399_defconfig @@ -50,7 +50,10 @@ 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_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 Sun May 24 17:32:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1226 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 40C7D3F06D for ; Sun, 24 May 2020 19:33:29 +0200 (CEST) Received: by mail-pj1-f72.google.com with SMTP id jx21sf11492925pjb.7 for ; Sun, 24 May 2020 10:33:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1590341607; cv=pass; d=google.com; s=arc-20160816; b=DlCXdFPskd38VKMgh7RibfUiuDr7wXlieoUychyBOVSFYYhthtvXHThb06I4xPifaL 2dThBsjoRINb/aHd5P3AupBq28/kur/zivvfYgG5Uxg+bj5369o+DTsDcPauC1OtXESh Dl0Cj0fsC2OQYYed59lofv/ftDkoW1qWtfZycKI5bt+dwyjGYATIwZsSM73iE+pbRJuW Ff0UcrnyPKsleLWEg3hvK4ml40eiRSpSHsbZ0HLlpDxuyKwAY7Ge30blPZn30RWbX7rk CkMEB0XnMPou0p14W0GgSzIREM2KzUIuMwMOdQHDliapdzvjOsH/cl0tuDvZbKF81ExV mwIA== 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=uR7DZh8CCwpEQsDxWcHB7AxTG6L28qlqjS4oo+tCQkE=; b=I0bdzKnbfTg87K8tdH9egmUbpzrPpO9vOxyJQR2b5ZrHYjMOhRoKiaJJUOZ9YKg4Eg vjmat6BDL8z5DFldun09gB8NdMwpvi2nz9m/mLxzmx05BGOzmmvidt2j2EM3G9h83ydH 9ViHj3gJB66kFyrmxQBqIPuAOLA1U4bKNJBLEL6MGsmufIo0MpHYXRdUaNlaSSwRG682 hMjTmwULN2G2TkUtOnqRRwynbPtVO/RKsf/R5W+ZGK9FFU6NpVBNuMQNEY02CArAhVFZ +p8oy8qPOU6RxjNBZyoBRWWkwdcRSyAeLor00/Jelyp1e6ju/8raq4fYcdkm2rih3vWg W9Ng== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=f2EAXMoZ; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=uR7DZh8CCwpEQsDxWcHB7AxTG6L28qlqjS4oo+tCQkE=; b=rEOb/Im7O5rZ+sTASKlBvZeP9M4763Gm9mbA9oW02LhAP7cFNK+rgXwrgjhzcu1FtE 86McFDRQY6APjC8tTFabK5rYq/paP5uIt4C59NMVd8ExxR4lH5/smVwJ/3E1Hf94YHg0 gNbpdXNgAVjTlz2ltDItuvvmner/O8tU+1Kvs= 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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=uR7DZh8CCwpEQsDxWcHB7AxTG6L28qlqjS4oo+tCQkE=; b=ir9t/h7P2MIPiAWSjb68zT62IJbG+fs6vgwggb9o3ZJpi12fexCdImaph03JXgRjgO /0ZTeFigGCLyIrZQtlPsZrLXaoFDMOjTAD5hK3I2Z+BmnbstLrx98+auWS8dkmvy87lZ 8QTdusJkzIOk9LPxX+x9s6ruMbCzcm64Rk/D2RqZGk5CDAIw+I6FP2I44NtC9cGScuML 438zsxgbl7530I4SRDQ/bOzMl66d96KJ2k5AmovDfydvioQqnbiGmae9p/uUREVlyWSM LZfqsqdXp87F6oM0wb1BuB8T5tyH6iGRdNBj/oaQ2n+IsabeTwWqUeDiN2G43XvR6feI 1peA== X-Gm-Message-State: AOAM53372jcYQ13b0ziCiQLH/Smilnm0ootxlLIbyI8L4NHWGrY6ds/J /Or6NZ2GRh6Tv6nviJp/Lla2memx X-Google-Smtp-Source: ABdhPJw/mO+uKPXxdDLEntfCzxaVMkSEe2zxipppdpUH+lnzOIjrH+c6GACfC9ewKhksiCCCRMaW9Q== X-Received: by 2002:a17:90a:1aa3:: with SMTP id p32mr17065249pjp.4.1590341607542; Sun, 24 May 2020 10:33:27 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:12c:: with SMTP id 41ls2922326plb.2.gmail; Sun, 24 May 2020 10:33:27 -0700 (PDT) X-Received: by 2002:a17:902:8e87:: with SMTP id bg7mr24130127plb.91.1590341607092; Sun, 24 May 2020 10:33:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590341607; cv=none; d=google.com; s=arc-20160816; b=q3bPygPadFF0wY0CT26oQ2NZT3/dLih55WfMPr0g2rfrGhYzcA5IZMws1YphndMdxT Rad1sud9jlaWNrvSX0ognhAQPFAhrBh+3lxy482juUmq5rD5Xxq6Cr7vuZFAavrnxCW7 fAWKsSeUz8unYqSd8d0SR48Gd5oURzMe72/ot/Ur3sagsmiihsqN3pgq2giARMZ+dBQC oJz+e7EOzXZwpquhzNwkASwhuwjZfj5Y87ABhPorJjnlk+73iPlNiGpqGgkDH82BGzOe uhA7dp+znnH6K4Y3EkR+TajHUy2jWdLNVGXEMlIokN9DhQqhowcd7arZcBJWbqbih1mq zfxA== 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=lD59mt+Urc8oNiqOxLeBOVU51+Fn4Lh/7rB6OWjHyyA=; b=q8eqMIJL8Ex6ike5Cu2RE+fZg5X2a8krqJ/bvX/blgxSp9+e7Pr6tVqufN29OvfjSa o7hVRiCWF7JBJGCSFZ7TlD07wFE1KwBqkrgq3vvhwajUyWDwfYoJhiWKFGrPQL6tENiP ZGgdMDDyKSicP0TfbtLZtZi3UO9/CCaWdsrhm0We87BARSVIoUYziT/ceM5j9xA45O40 Je1LwTXcvYf3XlI9TXd6TKHCzvjRcjaCI+xONSiQp29tGA0vnAO1iZ5Ii9IXO9vK7DCs bTzFfp6n7dhSuf1jwZalalx7nCbi0tgatpuce6ubZ6EH4dlINbULU3golywvIZK7sFud BtQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=f2EAXMoZ; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id u1sor20161845plq.39.2020.05.24.10.33.27 for (Google Transport Security); Sun, 24 May 2020 10:33:27 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:902:ab8b:: with SMTP id f11mr25341765plr.145.1590341606762; Sun, 24 May 2020 10:33:26 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:9b1:856c:6c2b:bde7]) by smtp.gmail.com with ESMTPSA id y85sm10617271pfc.24.2020.05.24.10.33.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 May 2020 10:33:26 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: sunil@amarulasolutions.com, u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH 3/3] doc: rockchip: Document eMMC program steps Date: Sun, 24 May 2020 23:02:13 +0530 Message-Id: <20200524173213.201123-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200524173213.201123-1-jagan@amarulasolutions.com> References: <20200524173213.201123-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=f2EAXMoZ; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Document eMMC partition creation and program steps for rockchip platforms. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- doc/board/rockchip/rockchip.rst | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/doc/board/rockchip/rockchip.rst b/doc/board/rockchip/rockchip.rst index cd9c8d6dc4..1faa675aa8 100644 --- a/doc/board/rockchip/rockchip.rst +++ b/doc/board/rockchip/rockchip.rst @@ -117,14 +117,42 @@ To write an image that boots from an SD card (assumed to be /dev/sda):: sudo dd if=u-boot-rockchip.bin of=/dev/sda seek=64 sync +eMMC +^^^^ + +eMMC flash would probe on mmc0 in most of the rockchip platforms. + +Create GPT partition layout as defined in configurations:: + + mmc dev 0 + gpt write mmc 0 $partitions + +Connect the USB-OTG cable between host and target device. + +Launch fastboot at target:: + + fastboot 0 + +Upon successful gadget connection,host show the USB device like:: + + lsusb + Bus 001 Device 020: ID 2207:330c Fuzhou Rockchip Electronics Company RK3399 in Mask ROM mode + +Program the flash:: + + sudo fastboot -i 0x2207 flash loader1 idbloader.img + sudo fastboot -i 0x2207 flash loader2 u-boot.itb + +Note: for rockchip 32-bit platforms the U-Boot proper image +is u-boot-dtb.img + TODO ---- - Add rockchip idbloader image building - Add rockchip TPL image building - Document SPI flash boot -- Describe steps for eMMC flashing - Add missing SoC's with it boards list .. Jagan Teki -.. Fri Jan 10 00:08:40 IST 2020 +.. Sunday 24 May 2020 10:08:41 PM IST