From patchwork Thu Apr 23 17:00:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1101 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-yb1-f200.google.com (mail-yb1-f200.google.com [209.85.219.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 7827741496 for ; Thu, 23 Apr 2020 19:01:10 +0200 (CEST) Received: by mail-yb1-f200.google.com with SMTP id y7sf6863862ybj.15 for ; Thu, 23 Apr 2020 10:01:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1587661269; cv=pass; d=google.com; s=arc-20160816; b=RmOgpCQ5fkX31we2dgKFnrGCQnYRxMVg4LX9NA7OhEScUj9P7Q9BSIsA9y49PQM+yl 1NXX+7JYSppaTGEN7p+mYOE+M60SXQAjysDyAGKmo/vaALp1ceN87tlNGECTQQDnAknG EigXsEnXHkuxw08awLRJ5ldW9rggpJv46ICh5W6vCdCwrkzibedDd/IQTBjloXKFv4ju oEJevUQi4fHdv8sLsY2UXbItdk4pau8BJ2cLXcrmb7nE9Cr22Sl8OqoLlzuP6a5G1HnI ExEoP6qPZDcrhHix3L7b9vq8yVYNLP239jM1TAZputV3Pm9EAgv2UlL4q54ylp759fU6 H++Q== 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:message-id:date:subject:cc:to:from :mime-version:dkim-signature; bh=mmLSLuPoX1fO/BdsYRcOMXl3+9hnIg285Nbz0g4Fhi0=; b=jb/vEc4+juxIkcaz9BQarB8m3YdVdxMNhxgUpddh0oPW4/OPsfcxRjx20hVtrB5odO PEgKIqvB5tq6Pn2EM/A0ydKW+HKZw9yusKp1zBS0HHY1SI4+M7MVWO27enmVi78v9Us3 +24+De4sArH1lJgkjSMpnUWteku7l6JPefsEfVxj2cvXqCH6R88MKuPO05eI5YrSXGCq WgO+ki7EAbOpsSLH/wCEe7m9fxbvOVcVD+mCtVWxYSGYvjjFdrp96aSRSg8e2UjGWvs5 s1cZX4Xd7OiICW+ykdYlOccXcblUCn6dt0zX5hnZkBm1zINgFO8dFFau6Raax+HxUD8j smjQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=qs6rmlF9; 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=mime-version:from:to:cc:subject:date:message-id:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=mmLSLuPoX1fO/BdsYRcOMXl3+9hnIg285Nbz0g4Fhi0=; b=qDz96NIFi604LNFNwLD43CZV3isOQiegR82y9dz2jkiWzz67S34Op7BatVJBOi4i7h rJk4v+vWVSUPAYgDKSUTc7lc56BjURgLIA4/7w8MzYAiiLMmnUynfFZpR8NCqR+IIWQF 09zWsGzp0IECp5JQrfgEJCuDVwstHX5I3sw74= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:to:cc:subject:date:message-id :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=mmLSLuPoX1fO/BdsYRcOMXl3+9hnIg285Nbz0g4Fhi0=; b=goUb8t533HznjXihqCf1XUomavuDKrQltuaRQusfN9pd8fbr+nZaZpk85IJirU1qub DW5xk8u6tjuI9VRLBPug3Z06EfmbNFzSzpnwr5A/OkTzj4tKAOLstC1bp949TDtrKqYx j1UvXiNkvNVn4UH05DaskGLP+il0mvoxkIwJwgN0yxnfxYtYmXhAbHq1ma/V1/eVVPQy yHQu4YgZptW3UEPWcRnOxf6UtgHAA/f/gxeAd8zBvaHfYKeYfzwAoNJznrrdSmBv2kvM bkY2LXJ0FsPGFB/QbMO7+1WNW7VOqnFUIJ8K/A73UWiF7ka88ujpilLDWmzcAVWfhjuB rSqQ== X-Gm-Message-State: AGi0PuZmV6/Rm9i6eruwOWPQNeecjxvXR3jNrJpkFLCLzg+ZYNJ/BFbk gbGR4wnOL29RoP9tYF5Msmg2RkO8 X-Google-Smtp-Source: APiQypIjYuNYeeBAznDuxYeYKvyxhBiXYV5zelFHXCVCcY+ESCrt9GOsVuRX9i4ZLoEP6YEdi6sPVA== X-Received: by 2002:a25:9d81:: with SMTP id v1mr8069277ybp.443.1587661268875; Thu, 23 Apr 2020 10:01:08 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a25:408:: with SMTP id 8ls526491ybe.8.gmail; Thu, 23 Apr 2020 10:01:08 -0700 (PDT) X-Received: by 2002:a05:6902:50f:: with SMTP id x15mr7914082ybs.135.1587661268419; Thu, 23 Apr 2020 10:01:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587661268; cv=none; d=google.com; s=arc-20160816; b=FuSM+F7Y2TaDLHfWdv3oet61xnwJFHMrJ41DUyMmG7WKW0ZU9Z0c48qfSzXeEYbu9h 9GW1fWn969AdfF25jGc6KBA0oxDe7g6O8WgrWAOk9/TfZTEg0ZeodKEuey/SDDxeT60u h5vY7Uzh4smk5r+dalzruue/N5pY41jj20CmnvDCmh2F8kZOyrzXchsqOU2t6iq+Llwt UgKZCS155v5LfqjNg6CQCVh/xsIBcaT/L/99LchBUc69I9fpQonme9JNYGIR7hDGd8nK p/a0fKru9vY1SNX5hgMwM8EFtYcgb5gWtB9nEUG99R0MvXr2ILFQ4txRFO2szRZC405p u1sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature; bh=EFLDtqaVdfT6m3NsdJhMNjgtZ8K5RmFKpArlt1rdx0s=; b=dtkt0SYvFUHE2NMipiUBJU9ppS+jeIdThUAowhSmEBNMx933X7p+T0+OkYNHfEofId bvyDtxtXlXDutpFekivfoQJWxnBBj3vyWbSm8UEWmBQ9skJ8UkRQ/mtYBbLI3+OXLNl5 zmuQq6mF2JD+z0aMT6VPvaqGIHnVil5iJNYUugtT3UudBrcfQpwp6B/DGFxFoxTiTe1H GQ7/42oXRcNvqwuNz3SBTLNywr9OHvqblpnGjJFIb7PlaDbQXm0BDbz+OqHaZAz3UsKs A/rnRJ5qNHInJ56fg4y9UHw6CkUCPsV6G1Kq/WwXZHrmD7/B5TAYVCFOgsqCw6dqVSDs BDTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=qs6rmlF9; 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 x9sor2206819ybk.84.2020.04.23.10.01.07 for (Google Transport Security); Thu, 23 Apr 2020 10:01:07 -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:a65:4548:: with SMTP id x8mr4798173pgr.223.1587661267285; Thu, 23 Apr 2020 10:01:07 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:587e:69d7:8a4e:a122]) by smtp.gmail.com with ESMTPSA id w2sm3084146pfc.194.2020.04.23.10.01.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Apr 2020 10:01:06 -0700 (PDT) From: Jagan Teki To: u-boot@lists.denx.de Cc: Rick Chen , Bin Meng , Bhargav Shah , Sagar Shrikant Kadam , linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v4 0/5] riscv: sifive/fu540: Enable SPI-NOR support Date: Thu, 23 Apr 2020 22:30:52 +0530 Message-Id: <20200423170057.1976-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.17.1 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=qs6rmlF9; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This is series v4 for SPI-NOR support on SiFive FU540 platform with HiFive Unleashed board. Here is the previous version changes[1]. All patches on top of u-boot-spi/master. Changes for v4: - add spi-mem exec_op - rebase on master Changes for v3: - fixed QPP support - dropped sf commands log [1] https://patchwork.ozlabs.org/project/uboot/cover/20200420125238.9610-1-jagan@amarulasolutions.com/ Any inputs? Jagan. Jagan Teki (5): spi: sifive: Add spi-mem exec op spi: sifive: Fix format register proto field spi: sifive: Fix QPP transfer riscv: dts: hifive-unleashed-a00: Add -u-boot.dtsi sifive: fu540: Enable spi-nor flash support .../dts/hifive-unleashed-a00-u-boot.dtsi | 11 ++ board/sifive/fu540/Kconfig | 3 + drivers/spi/spi-sifive.c | 156 +++++++++++++++--- 3 files changed, 146 insertions(+), 24 deletions(-) create mode 100644 arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi Tested-by: Sagar Kadam